[jboss-svn-commits] JBL Code SVN: r23669 - labs/jbosstm/enterprise/tags/EAP_4_3_0/Transactions_JTA_Programmers_Guide/zh-CN.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sun Nov 2 20:36:38 EST 2008


Author: xhuang at jboss.com
Date: 2008-11-02 20:36:38 -0500 (Sun, 02 Nov 2008)
New Revision: 23669

Modified:
   labs/jbosstm/enterprise/tags/EAP_4_3_0/Transactions_JTA_Programmers_Guide/zh-CN/The_Resource_Manager.po
   labs/jbosstm/enterprise/tags/EAP_4_3_0/Transactions_JTA_Programmers_Guide/zh-CN/Transactions.po
Log:
update

Modified: labs/jbosstm/enterprise/tags/EAP_4_3_0/Transactions_JTA_Programmers_Guide/zh-CN/The_Resource_Manager.po
===================================================================
--- labs/jbosstm/enterprise/tags/EAP_4_3_0/Transactions_JTA_Programmers_Guide/zh-CN/The_Resource_Manager.po	2008-11-03 01:34:49 UTC (rev 23668)
+++ labs/jbosstm/enterprise/tags/EAP_4_3_0/Transactions_JTA_Programmers_Guide/zh-CN/The_Resource_Manager.po	2008-11-03 01:36:38 UTC (rev 23669)
@@ -1,3 +1,4 @@
+# translation of The_Resource_Manager.po to
 # Language zh-CN translations for  package.
 # Automatically generated, 2008.
 #
@@ -3,31 +4,32 @@
 msgid ""
 msgstr ""
-"Project-Id-Version:  \n"
+"Project-Id-Version: The_Resource_Manager\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2008-09-23 06:25+0000\n"
-"PO-Revision-Date: 2008-09-23 06:25+0000\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2008-11-03 11:35+1000\n"
+"Last-Translator: \n"
+"Language-Team:  <en at li.org>\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
 
 #. Tag: title
 #: The_Resource_Manager.xml:6
 #, no-c-format
 msgid "Test"
-msgstr ""
+msgstr "测试"
 
 #. Tag: para
 #: The_Resource_Manager.xml:7
 #, no-c-format
 msgid "This is a test paragraph"
-msgstr ""
+msgstr "This is a test paragraph"
 
 #. Tag: title
 #: The_Resource_Manager.xml:11
 #, no-c-format
 msgid "The XAResource Interface"
-msgstr ""
+msgstr "XAResource 接口"
 
 #. Tag: para
@@ -46,6 +48,9 @@
 "<interfacename>XAResource</interfacename> interface to support association "
 "of a top-level transaction to a resource such as a relational database."
 msgstr ""
+"虽然一些事务规格和系统定义了可用在事务里注册任意资源的通用资源,JTA 更依赖于 XA。<interfacename>javax."
+"transaction.xa.XAResource</interfacename> 接口是一个 <interfacename>XA</interfacename> 接口的 Java 映射。<interfacename>XAResource</"
+"interfacename> 接口定义了分布式事务处理环境里的资源管理者和事务管理者之间的合约。资源关联自和的资源适配器实现 <interfacename>XAResource</interfacename> 接口来支持底层事务和关系型数据库等资源间的关联。"
 
 #. Tag: para
 #: The_Resource_Manager.xml:15
@@ -660,3 +665,4 @@
 "level via a private interface between the resource adapter and the "
 "underlying resource manager."
 msgstr ""
+

Modified: labs/jbosstm/enterprise/tags/EAP_4_3_0/Transactions_JTA_Programmers_Guide/zh-CN/Transactions.po
===================================================================
--- labs/jbosstm/enterprise/tags/EAP_4_3_0/Transactions_JTA_Programmers_Guide/zh-CN/Transactions.po	2008-11-03 01:34:49 UTC (rev 23668)
+++ labs/jbosstm/enterprise/tags/EAP_4_3_0/Transactions_JTA_Programmers_Guide/zh-CN/Transactions.po	2008-11-03 01:36:38 UTC (rev 23669)
@@ -8,7 +8,7 @@
 "Project-Id-Version: Transactions\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2008-09-23 06:25+0000\n"
-"PO-Revision-Date: 2008-10-31 14:35+1000\n"
+"PO-Revision-Date: 2008-11-03 11:29+1000\n"
 "Last-Translator: \n"
 "Language-Team:  <en at li.org>\n"
 "MIME-Version: 1.0\n"
@@ -288,7 +288,6 @@
 #. Tag: para
 #: Transactions.xml:97
 #, no-c-format
-#, fuzzy
 msgid ""
 "When a transaction is suspended the application server must ensure that the "
 "resources in use by the application are no longer registered with the "
@@ -300,13 +299,13 @@
 "Enlisting a resource as a result of resuming a transaction triggers the "
 "Transaction Manager to inform the resource manager to re-associate the "
 "resource object with the resumed transaction."
-msgstr "当事务被暂停时,一样服务器"
+msgstr "当事务被暂停时,应用服务器必须确保使用的资源不再在该事务里注册。资源取消注册会触发事务管理者通知资源管理者取消指定资源对象和事务的关联。当恢复应用程序的事务上下文时,应用服务器必须确保使用的资源再次在事务里注册。恢复事务的结果是将资源登记为参与者,这触发了事务管理者通知资源管理者将指定资源对象和事务重新关联。"
 
 #. Tag: title
 #: Transactions.xml:101
 #, no-c-format
 msgid "The Transaction interface"
-msgstr ""
+msgstr "Transaction 接口"
 
 #. Tag: para
 #: Transactions.xml:102
@@ -317,31 +316,31 @@
 "top-level transaction is associated with one <code>Transaction</code> object "
 "when the transaction is created. The <code>Transaction</code> object can be "
 "used to:"
-msgstr ""
+msgstr "<interfacename>Transaction</interfacename> 接口允许在和目标对象关联的事务上执行操作。当事务被创建时,每个顶层的事务都和一个 <code>Transaction</code> 对象相关联。<code>Transaction</code> 对象可以被用来:"
 
 #. Tag: para
 #: Transactions.xml:108
 #, no-c-format
 msgid "Enlist the transactional resources in use by the application."
-msgstr ""
+msgstr "登记应用程序使用的事务性资源。"
 
 #. Tag: para
 #: Transactions.xml:113
 #, no-c-format
 msgid "Register for transaction synchronization call backs."
-msgstr ""
+msgstr "注册事务同步的回调方法。"
 
 #. Tag: para
 #: Transactions.xml:118
 #, no-c-format
 msgid "Commit or rollback the transaction."
-msgstr ""
+msgstr "提交或回滚事务。"
 
 #. Tag: para
 #: Transactions.xml:123
 #, no-c-format
 msgid "Obtain the status of the transaction."
-msgstr ""
+msgstr "获取事务的状态。"
 
 #. Tag: para
 #: Transactions.xml:128
@@ -353,18 +352,17 @@
 "thread. If the calling thread is not allowed to commit the transaction, the "
 "transaction manager throws an exception. At present JBossJTA does not impose "
 "restrictions on threads terminating transactions."
-msgstr ""
+msgstr "<methodname>commit</methodname> 和 <methodname>rollback</methodname> 方法允许提交或回滚目标对象。它不要求调用线程具有和线程关联的相同事务。如果调用线程不被允许提交事务,事务管理者将抛出异常。目前,JBossJTA 不强加对线程终止事务的限制。"
 
 #. Tag: title
 #: Transactions.xml:132
 #, no-c-format
 msgid "Resource enlistment"
-msgstr ""
+msgstr "资源登记"
 
 #. Tag: para
 #: Transactions.xml:133
 #, no-c-format
-#, fuzzy
 msgid ""
 "Transactional resources such as database connections are typically managed "
 "by the application server in conjunction with some resource adapter and "
@@ -375,7 +373,7 @@
 "enlisted with the transaction so that they can be informed when the "
 "transaction terminates, for example, are driven through the two-phase commit "
 "protocol."
-msgstr "list."
+msgstr "事务性资源如数据库连接通常都是由应用服务器和一些资源适配器来管理,它也可以使用连接池优化。为了让外部的事务管理者和资源管理者执行的事务性工作进行协调,应用服务器必须登记和取消事务里使用的资源。这些资源(参与者)都在事务里进行了登记,这样在事务结束时它们就可以得到通知,例如,通过两阶段提交协议进行驱动。"
 
 #. Tag: para
 #: Transactions.xml:137
@@ -389,6 +387,8 @@
 "the implementation of the <code>XAResource</code> can affect recovery in the "
 "event of a failure."
 msgstr ""
+"如前所述,JTA 比任何对象都更加紧密地和资源的 XA 切面进行了集成。对于应用程序使用的每个资源,应用服务器调用 <methodname>enlistResource</methodname> 和表示所使用的资源的 <code>XAResource</"
+"code>。请参考失效时 <code>XAResource</code> 实现如何影响切换的详细情况。"
 
 #. Tag: para
 #: Transactions.xml:140
@@ -400,6 +400,8 @@
 "responsible for passing the appropriate flag in its <methodname>XAResource."
 "start</methodname> method call to the resource manager."
 msgstr ""
+"登记请求导致事务管理者通知资源管理者启动事务和通过相应资源执行的工作的关联。事务管理者负责把合适的标记传递给对资源管理者的 <methodname>XAResource."
+"start</methodname> 方法调用。"
 
 #. Tag: para
 #: Transactions.xml:143
@@ -412,12 +414,11 @@
 "indicate whether the operation is due to the transaction being suspended "
 "(TMSUSPEND), a portion of the work has failed (TMFAIL), or a normal resource "
 "release by the application (TMSUCCESS)."
-msgstr ""
+msgstr "<methodname>delistResource</methodname> 方法用于取消指定资源和目标对象里的事务上下文的关联。应用服务器用两个参数调用这个方法:代表这个资源的 <code>XAResource</code> 对象,和指出该操作产生的原因,如由于事务被暂停所引起(TMSUSPEND)、部分工作失败(TMFAIL)或资源释放了普通的资源(TMSUCCESS)。"
 
 #. Tag: para
 #: Transactions.xml:146
 #, no-c-format
-#, fuzzy
 msgid ""
 "The de-list request results in the transaction manager informing the "
 "resource manager to end the association of the transaction with the target "
@@ -426,13 +427,13 @@
 "resource states must be kept intact. The transaction manager passes the "
 "appropriate flag value in its <methodname>XAResource.end</methodname> method "
 "call to the underlying resource manager."
-msgstr "list<code></code><methodname></methodname>."
+msgstr "取消登记的请求导致事务管理者通知资源管理者结束事务和目标 <code>XAResource</code> 的关联。flag 的值允许应用服务器指出它是否要返回相同的资源,因此资源状态必须保持不变。事务管理者把合适的 flag 值传递到对底层资源管理者的 <methodname>XAResource.end</methodname> 方法调用里。"
 
 #. Tag: title
 #: Transactions.xml:150
 #, no-c-format
 msgid "Transaction synchronization"
-msgstr ""
+msgstr "事务同步"
 
 #. Tag: para
 #: Transactions.xml:151
@@ -442,7 +443,7 @@
 "before and after the transaction completes. For each transaction started, "
 "the application server may optionally register a Synchronization call back "
 "object to be invoked by the transaction manager:"
-msgstr ""
+msgstr "事务同步允许应用服务器在事务完成之前和之后收到通知。对于每个启动的事务,应用服务器都可以注册一个事务管理者调用的 Synchronization 回调对象:"
 
 #. Tag: para
 #: Transactions.xml:157
@@ -454,7 +455,7 @@
 "<methodname>TransactionManager.commit</methodname> or the call is executed "
 "with no transaction context if <methodname>Transaction.commit</methodname> "
 "is used."
-msgstr ""
+msgstr "<methodname>beforeCompletion</methodname> 方法在两阶段事务完成过程开始前被调用。这个调用在初始 <methodname>TransactionManager.commit</methodname> 的调用者的相同事务上下文里执行,或者在使用了 <methodname>Transaction.commit</methodname> 的情况下不带事务上下文执行。"
 
 #. Tag: para
 #: Transactions.xml:162
@@ -463,13 +464,13 @@
 "The <methodname>afterCompletion</methodname> method is called after the "
 "transaction has completed. The status of the transaction is supplied in the "
 "parameter. This method is executed without a transaction context."
-msgstr ""
+msgstr "<methodname>afterCompletion</methodname> 方法在事务结束后被调用。这个事务的状态在参数里提供。这个方法执行时不带有事务上下文。"
 
 #. Tag: title
 #: Transactions.xml:168
 #, no-c-format
 msgid "Transaction equality"
-msgstr ""
+msgstr "事务比较"
 
 #. Tag: para
 #: Transactions.xml:169
@@ -479,7 +480,7 @@
 "allow comparison between the target object and another Transaction object. "
 "The equals method should return true if the target object and the parameter "
 "object both refer to the same global transaction."
-msgstr ""
+msgstr "事务管理者实现了 Transaction 对象的 equals 方法来允许比较目标对象和其他 Transaction 对象。如果目标对象和参数对象都引用了相同的全局事务,equals 方法应该返回 true。"
 
 #. Tag: screen
 #: Transactions.xml:173
@@ -491,4 +492,9 @@
 "        \n"
 "boolean isSame = txObj.equals(someOtherTxObj);"
 msgstr ""
+"Transaction txObj = TransactionManager.getTransaction();\n"
+"Transaction someOtherTxObj = ..\n"
+"        ..\n"
+"        \n"
+"boolean isSame = txObj.equals(someOtherTxObj);"
 




More information about the jboss-svn-commits mailing list