Author: alartin
Date: 2009-03-11 23:27:44 -0400 (Wed, 11 Mar 2009)
New Revision: 1937
Modified:
doc/trunk/reference/zh-CN/example.po
Log:
Modified: doc/trunk/reference/zh-CN/example.po
===================================================================
--- doc/trunk/reference/zh-CN/example.po 2009-03-12 03:26:08 UTC (rev 1936)
+++ doc/trunk/reference/zh-CN/example.po 2009-03-12 03:27:44 UTC (rev 1937)
@@ -6,7 +6,7 @@
"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2009-01-04 23:18+0000\n"
-"PO-Revision-Date: 2008-12-23 17:55+0800\n"
+"PO-Revision-Date: 2009-03-12 11:27+0800\n"
"Last-Translator: Sean Wu <alartin(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -22,17 +22,12 @@
#. Tag: para
#: example.xml:6
#, no-c-format
-msgid ""
-"Let's illustrate these ideas with a full example. We're going to implement
"
-"user login/logout for an application that uses JSF. First, we'll define a
"
-"Web Bean to hold the username and password entered during login:"
-msgstr ""
-"让我们通过一个完整的例子来演示这些想法。我们将是使用JSF来实现一个应用的用户登"
-"录/退出功能。首先,我们定一个Web Bean来持有登录过程中用户输入的用户名和密码:"
+msgid "Let's illustrate these ideas with a full example. We're going to
implement user login/logout for an application that uses JSF. First, we'll define a
Web Bean to hold the username and password entered during login:"
+msgstr "让我们通过一个完整的例子来演示这些想法。我们将是使用JSF来实现一个应用的用户登录/退出功能。首先,我们定一个Web
Bean来持有登录过程中用户输入的用户名和密码:"
#. Tag: programlisting
#: example.xml:11
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Named @RequestScoped\n"
"public class Credentials {\n"
@@ -48,7 +43,7 @@
" \n"
"}]]>"
msgstr ""
-"<![CDATA[@Named\n"
+"<![CDATA[@Named @RequestScoped\n"
"public class Credentials {\n"
" \n"
" private String username;\n"
@@ -70,7 +65,7 @@
#. Tag: programlisting
#: example.xml:15
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[<h:form>\n"
" <h:panelGrid columns=\"2\"
rendered=\"#{!login.loggedIn}\">\n"
@@ -79,35 +74,26 @@
" <h:outputLabel
for=\"password\">Password:</h:outputLabel>\n"
" <h:inputText id=\"password\"
value=\"#{credentials.password}\"/>\n"
" </h:panelGrid>\n"
-" <h:commandButton value=\"Login\"
action=\"#{login.login}\" rendered=\"#{!"
-"login.loggedIn}\"/>\n"
-" <h:commandButton value=\"Logout\"
acion=\"#{login.logout}\" rendered=\"#"
-"{login.loggedIn}\"/>\n"
+" <h:commandButton value=\"Login\"
action=\"#{login.login}\"
rendered=\"#{!login.loggedIn}\"/>\n"
+" <h:commandButton value=\"Logout\"
acion=\"#{login.logout}\" rendered=\"#{login.loggedIn}\"/>\n"
"</h:form>]]>"
msgstr ""
-"<![CDATA[<f:form>\n"
+"<![CDATA[<h:form>\n"
" <h:panelGrid columns=\"2\"
rendered=\"#{!login.loggedIn}\">\n"
" <h:outputLabel
for=\"username\">Username:</h:outputLabel>\n"
" <h:inputText id=\"username\"
value=\"#{credentials.username}\"/>\n"
" <h:outputLabel
for=\"password\">Password:</h:outputLabel>\n"
" <h:inputText id=\"password\"
value=\"#{credentials.password}\"/>\n"
" </h:panelGrid>\n"
-" <h:commandButton value=\"Login\"
action=\"#{login.login}\" rendered=\"#{!"
-"login.loggedIn}\"/>\n"
-" <h:commandButton value=\"Logout\"
acion=\"#{login.logout}\" rendered=\"#"
-"{login.loggedIn}\"/>\n"
-"</f:form]]>"
+" <h:commandButton value=\"Login\"
action=\"#{login.login}\"
rendered=\"#{!login.loggedIn}\"/>\n"
+" <h:commandButton value=\"Logout\"
acion=\"#{login.logout}\" rendered=\"#{login.loggedIn}\"/>\n"
+"</h:form>]]>"
#. Tag: para
#: example.xml:17
#, no-c-format
-msgid ""
-"The actual work is done by a session scoped Web Bean that maintains "
-"information about the currently logged-in user and exposes the "
-"<literal>User</literal> entity to other Web Beans:"
-msgstr ""
-"实际的工作由一个会话范围的Web Bean完成。这个会话范围的Web Bean维护当前登录用"
-"户的信息,并且将<literal>User</literal>实体暴露给其他Web Bean:"
+msgid "The actual work is done by a session scoped Web Bean that maintains
information about the currently logged-in user and exposes the
<literal>User</literal> entity to other Web Beans:"
+msgstr "实际的工作由一个会话范围的Web Bean完成。这个会话范围的Web
Bean维护当前登录用户的信息,并且将<literal>User</literal>实体暴露给其他Web Bean:"
#. Tag: programlisting
#: example.xml:21
@@ -124,8 +110,7 @@
" public void login() {\n"
" \n"
" List<User> results = userDatabase.createQuery(\n"
-" \"select u from User u where u.username=:username and
u.password=:"
-"password\")\n"
+" \"select u from User u where u.username=:username and
u.password=:password\")\n"
" .setParameter(\"username\",
credentials.getUsername())\n"
" .setParameter(\"password\",
credentials.getPassword())\n"
" .getResultList();\n"
@@ -161,8 +146,7 @@
" public void login() {\n"
" \n"
" List<User> results = userDatabase.createQuery(\n"
-" \"select u from User u where u.username=:username and
u.password=:"
-"password\")\n"
+" \"select u from User u where u.username=:username and
u.password=:password\")\n"
" .setParameter(\"username\",
credentials.getUsername())\n"
" .setParameter(\"password\",
credentials.getPassword())\n"
" .getResultList();\n"
@@ -246,10 +230,6 @@
#. Tag: para
#: example.xml:31
#, no-c-format
-msgid ""
-"Hopefully, this example gives a flavor of the Web Bean programming model. In
"
-"the next chapter, we'll explore Web Beans dependency injection in greater
"
-"depth."
-msgstr ""
-"希望这个例子能够让你尝试了Web Bean的编程模型。在下一章中,我们将更加深入的研"
-"究Web Bean的依赖注入。"
+msgid "Hopefully, this example gives a flavor of the Web Bean programming model. In
the next chapter, we'll explore Web Beans dependency injection in greater
depth."
+msgstr "希望这个例子能够让你尝试了Web Bean的编程模型。在下一章中,我们将更加深入的研究Web Bean的依赖注入。"
+