tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject svn commit: r608675 - in /tapestry/tapestry5/trunk/tapestry-core/src: main/java/org/apache/tapestry/services/ main/resources/org/apache/tapestry/corelib/components/ main/resources/org/apache/tapestry/internal/ site/apt/guide/
Date Thu, 03 Jan 2008 23:40:09 GMT
Author: hlship
Date: Thu Jan  3 15:40:06 2008
New Revision: 608675

URL: http://svn.apache.org/viewvc?rev=608675&view=rev
Log:
TAPESTRY-1478: Validation messages for zh_CN locale

Added:
    tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Errors_zh_CN.properties
    tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/internal/ValidationMessages_zh_CN.properties
Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/services/TapestryModule.java
    tapestry/tapestry5/trunk/tapestry-core/src/site/apt/guide/conf.apt

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/services/TapestryModule.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/services/TapestryModule.java?rev=608675&r1=608674&r2=608675&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/services/TapestryModule.java
(original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/services/TapestryModule.java
Thu Jan  3 15:40:06 2008
@@ -1655,7 +1655,7 @@
         configuration.add("tapestry.file-check-update-timeout", "50 ms");
 
         // This should be overridden for particular applications.
-        configuration.add("tapestry.supported-locales", "en,it");
+        configuration.add("tapestry.supported-locales", "en,it,zh_CN");
 
         configuration.add("tapestry.default-cookie-max-age", "7 d");
 

Added: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Errors_zh_CN.properties
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Errors_zh_CN.properties?rev=608675&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Errors_zh_CN.properties
(added)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Errors_zh_CN.properties
Thu Jan  3 15:40:06 2008
@@ -0,0 +1,16 @@
+#Generated by ResourceBundle Editor (http://eclipse-rbe.sourceforge.net)
+# Copyright 2006 The Apache Software Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+default-banner = \u5728\u4F60\u7EE7\u7EED\u4E4B\u524D\uFF0C\u5FC5\u987B\u7EA0\u6B63\u5982\u4E0B\u9519\u8BEF.

Added: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/internal/ValidationMessages_zh_CN.properties
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/internal/ValidationMessages_zh_CN.properties?rev=608675&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/internal/ValidationMessages_zh_CN.properties
(added)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/internal/ValidationMessages_zh_CN.properties
Thu Jan  3 15:40:06 2008
@@ -0,0 +1,35 @@
+#Generated by ResourceBundle Editor (http://eclipse-rbe.sourceforge.net)
+# Copyright 2006, 2007 The Apache Software Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# The label/alt text for the icon that is displayed next to each field.
+icon-label = [\u9519\u8BEF]
+
+# This is where the translator messages go.
+integer-format-exception = '%s'\u7684\u5185\u5BB9\u5FC5\u987B\u662F\u6574\u6570\u3002
+
+max-integer = %2$s\u7684\u6570\u503C\u4E0D\u80FD\u5927\u4E8E%1$d\u3002
+
+maximum-string-length = %2$s\u7684\u5185\u5BB9\u4E0D\u80FD\u8D85\u8FC7%1$d\u5B57\u7B26\u3002
+
+min-integer = %2$s\u7684\u6570\u503C\u4E0D\u80FD\u5C0F\u4E8E%1$d\u3002
+
+minimum-string-length = %2$s\u7684\u5185\u5BB9\u4E0D\u80FD\u5C11\u4E8E%1$s\u5B57\u7B26\u3002
+
+number-format-exception = \u8F93\u5165\u7684'%s'\u4E0D\u662F\u6570\u5B57.
+
+# We try to keep these consistent, with the constraint value (if applicable)
+# as the first parameter, and the field's label as the second parameter. Occasionally
+# we must use specific indexing when that's not the best order.
+required = \u8BF7\u8F93\u5165%s\u7684\u5185\u5BB9\u3002

Modified: tapestry/tapestry5/trunk/tapestry-core/src/site/apt/guide/conf.apt
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/site/apt/guide/conf.apt?rev=608675&r1=608674&r2=608675&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/site/apt/guide/conf.apt (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/site/apt/guide/conf.apt Thu Jan  3 15:40:06
2008
@@ -108,7 +108,7 @@
     A comma-separated list of supported locales.  Incoming requests as "narrowed" to one
of these locales, based on closest match.
     If no match can be found, the first locale in the list is treated as the default.
     
-    The default is (currently) "en,it".  As the community contributes new localizations of
the necessary messages files,
+    The default is (currently) "en,it,zn_CH".  As the community contributes new localizations
of the necessary messages files,
     this list will expand.  Note that the Tapestry quickstart archetype overrides the factory
default, forcing the
     application to be localized only for "en".
     



Mime
View raw message