[jboss-cvs] JBossAS SVN: r77222 - projects/docs/enterprise/4.3/Cache/Cache_FAQ/zh-CN.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Aug 20 01:59:05 EDT 2008


Author: xhuang at jboss.com
Date: 2008-08-20 01:59:05 -0400 (Wed, 20 Aug 2008)
New Revision: 77222

Modified:
   projects/docs/enterprise/4.3/Cache/Cache_FAQ/zh-CN/Cache_Frequently_Asked_Questions.po
Log:
update

Modified: projects/docs/enterprise/4.3/Cache/Cache_FAQ/zh-CN/Cache_Frequently_Asked_Questions.po
===================================================================
--- projects/docs/enterprise/4.3/Cache/Cache_FAQ/zh-CN/Cache_Frequently_Asked_Questions.po	2008-08-20 05:29:55 UTC (rev 77221)
+++ projects/docs/enterprise/4.3/Cache/Cache_FAQ/zh-CN/Cache_Frequently_Asked_Questions.po	2008-08-20 05:59:05 UTC (rev 77222)
@@ -5,13 +5,14 @@
 "Project-Id-Version: Cache_Frequently_Asked_Questions\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2008-05-30 03:54+0000\n"
-"PO-Revision-Date: 2008-08-18 16:08+1000\n"
+"PO-Revision-Date: 2008-08-20 12:54+1000\n"
 "Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
-"Language-Team:  <en at li.org>\n"
+"Language-Team: Chinese Simplified <kde-i18n-doc at lists.kde.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"
+"X-Generator: KAider 0.1\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
 
 #. Tag: title
 #: Cache_Frequently_Asked_Questions.xml:12
@@ -633,7 +634,7 @@
 msgid ""
 "Yes. All the above mentioned properties are per cache instance. Therefore "
 "you will need a separate JBoss Cache instance."
-msgstr ""
+msgstr "对。上面提及的所有属性都是为每个实例进行配置的。因此你需要单独的 JBoss Cache 实例。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:518
@@ -641,7 +642,7 @@
 msgid ""
 "Does the Tree Cache config <literal>ClusterName</literal> have any relation "
 "to the JBoss AS cluster <literal>PartitionName</literal> ?"
-msgstr ""
+msgstr "Tree Cache 配置里的 <literal>ClusterName</literal> 和 JBoss AS 群集的 <literal>PartitionName</literal> 有任何联系吗?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:528
@@ -649,7 +650,7 @@
 msgid ""
 "Yes. They are both JGroups group names. Besides the notion of a channel in "
 "JGroups, it also can partition the channel into different group names."
-msgstr ""
+msgstr "有。它们都是 JGroups 组名。除了 JGroups 里的通道标记外,通道也可以分成不同的组。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:537
@@ -658,7 +659,7 @@
 "When using multiple JGroups based components [cluster-service.xml, treecache "
 "(multiple instances)], what is the correct/valid way to configure those "
 "components to make sure my multicast addresses don't conflict?"
-msgstr ""
+msgstr "当使用多个基于 JGroups 的组件 [cluster-service.xml、treecache (多个实例)] 外,怎样正确地配置这组件来避免多点传送地址不会冲突?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:545
@@ -669,13 +670,13 @@
 "group name. But whether to run them on the same channel depends upon whether "
 "the communication performance is critical for you or not. If it is, then "
 "it'd be best to run them on different channels."
-msgstr ""
+msgstr "你可以考虑两个参数:多点传送地址(以及端口)和组名。你最少得用不同的组名来运行组件。但是否在同一通道里运行组件取决于通信性能对你而言是否很重要。如果是,那么你最好在不同的通道里运行它们。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:557
 #, no-c-format
 msgid "Does JBoss Cache currently support cache persistence storage?"
-msgstr ""
+msgstr "JBoss Cache 目前支持缓存的持久性存储吗?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:563
@@ -683,7 +684,7 @@
 msgid ""
 "Yes. Starting with release 1.1, JBoss Cache has a CacheLoader interface that "
 "supports cache persistence. See below."
-msgstr ""
+msgstr "是的。从 1.1 版本开始,JBoss Cache 有一个 CacheLoader 接口来支持缓存的持久化。请参考下面的内容。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:571
@@ -691,7 +692,7 @@
 msgid ""
 "Does JBoss Cache currently support cache passivation/ overflow to a data "
 "store?"
-msgstr ""
+msgstr "JBoss Cache 目前支持缓存钝化/溢出至数据库吗?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:577
@@ -700,25 +701,25 @@
 "Yes. Starting with release 1.2.4, JBoss Cache uses the CacheLoader to "
 "support cache passivation/ overflow. See documentation on how to configure "
 "and use this feature."
-msgstr ""
+msgstr "是的。从 1.2.4 开始,JBoss Cache 使用 CacheLoader 来支持缓存钝化/溢出。请参考和如何配置和使用该功能相关的文档。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:586
 #, no-c-format
 msgid "Is JBoss Cache thread safe?"
-msgstr ""
+msgstr "JBoss Cache 是线程安全(thread-safe)的吗?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:590
 #, no-c-format
 msgid "Yes, it is thread safe."
-msgstr ""
+msgstr "是的。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:596
 #, no-c-format
 msgid "Does JBoss Cache support XA (2PC) transactions now?"
-msgstr ""
+msgstr "JBoss Cache 目前支持 XA (2PC) 事务吗?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:600
@@ -727,13 +728,13 @@
 "No, although it is also on our to do list. Our internal implementation does "
 "use a similar 2PC procedure to coordinate a transaction among different "
 "instances."
-msgstr ""
+msgstr "不支持,虽然我们已经将其提上议程了。但我们内部的实现使用一个类似的 2PC 过程来协调多个实例间的事务。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:609
 #, no-c-format
 msgid "Which TransactionManagers are supported by JBoss Cache?"
-msgstr ""
+msgstr "JBoss Cache 支持哪些 TransactionManager?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:615
@@ -747,12 +748,14 @@
 "literal> is not thread safe .i.e., it does not support concurrent "
 "transactions. Instead, only one transaction is allowed at a time."
 msgstr ""
+"JBoss Cache 支持任何兼容 JTA 的 TransactionManager,如 JBossTM。用户可以通过 xml 文件配置 TransactionManager。JBossCache 也内嵌了一个用于测试的简单的 TransactionManager(<literal>org.jboss.cache.tm.DummyTransactionManager</literal>)。但请注意,<literal>"
+"DummyTransactionManager</literal> 不是线程安全的,也就是说它不支持并行的事务。相反,每次只允许一个事务。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:633
 #, no-c-format
 msgid "How do I set up the cache to be transactional?"
-msgstr ""
+msgstr "我怎样设立事务性的缓存?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:637
@@ -768,12 +771,14 @@
 "this attribute is specified, the cache will look up the transaction context "
 "from this transaction manager."
 msgstr ""
+"你可以使用缺省的 TransactionManager 在 JBoss 里运行 JBossCache,或者你得实现 <literal>TransactionManagerLookup</literal> 接口并返回 javax.transaction.TransactionManager 实例。配置属性 <literal>TransactionManagerLookupClass</literal> 定义了缓存用来获取 "
+"TransactionManager 引用的类。要支持其他 TransactionManager 并不需要实现这个类。一旦指定了这个属性,缓存将查找该 TransactionManager 的事务上下文。 "
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:652
 #, no-c-format
 msgid "For the client code, here is a snippet to start and commit a transaction:"
-msgstr ""
+msgstr "这里是一个启动和提交事务的客户端代码片段:"
 
 #. Tag: programlisting
 #: Cache_Frequently_Asked_Questions.xml:656
@@ -788,12 +793,20 @@
 "        tree.put(fqn, key, value);\n"
 "        tx.commit();"
 msgstr ""
+"tx = (UserTransaction)new InitialContext(prop).lookup(\"UserTransaction\");\n"
+"        tree = new TreeCache();\n"
+"        config = new PropertyConfigurator();\n"
+"        config.configure(tree, \"META-INF/replSync-service.xml\");\n"
+"\n"
+"        tx.begin()\n"
+"        tree.put(fqn, key, value);\n"
+"        tx.commit();"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:662
 #, no-c-format
 msgid "How do I control the cache locking level?"
-msgstr ""
+msgstr "我怎样才能控制缓存的锁级别?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:666
@@ -810,6 +823,8 @@
 "ignored if optimistic locking is used. For details, please refer to the user "
 "manual."
 msgstr ""
+"JBossCache 允许你通过事务隔离级别来控制锁级别。这是通过配置 <literal>IsolationLevel</literal> 属性来实现的。目前,JBossCache 内部采用了悲观锁定机制。悲观锁的事务隔离级别对应 JDBC 的隔离级别,也就是<literal>NONE</literal>、<literal>READ_UNCOMMITTED</literal>、 <literal>"
+"READ_COMMITTED</literal>、<literal>REPEATABLE_READ</literal> 和 <literal>SERIALIZABLE</literal>。请注意,如果使用乐观锁定,这些隔离级别将被忽略。详情请参考相关的用户手册。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:693




More information about the jboss-cvs-commits mailing list