tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject svn commit: r608318 - 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 03:04:12 GMT
Author: hlship
Date: Wed Jan  2 19:04:11 2008
New Revision: 608318

URL: http://svn.apache.org/viewvc?rev=608318&view=rev
Log:
TAPESTRY-1940: Italian translation of messages for Error component, and validation

Added:
    tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Errors_it.properties
    tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/internal/ValidationMessages_it.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=608318&r1=608317&r2=608318&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
Wed Jan  2 19:04:11 2008
@@ -1654,8 +1654,8 @@
         configuration.add("tapestry.file-check-interval", "1 s");
         configuration.add("tapestry.file-check-update-timeout", "50 ms");
 
-// This should be overridden for particular applications.
-        configuration.add("tapestry.supported-locales", "en");
+        // This should be overridden for particular applications.
+        configuration.add("tapestry.supported-locales", "en,it");
 
         configuration.add("tapestry.default-cookie-max-age", "7 d");
 

Added: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Errors_it.properties
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Errors_it.properties?rev=608318&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Errors_it.properties
(added)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Errors_it.properties
Wed Jan  2 19:04:11 2008
@@ -0,0 +1,15 @@
+# Copyright 2008 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=Per poter proseguire è necessario correggere gli errori seguenti.
\ No newline at end of file

Added: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/internal/ValidationMessages_it.properties
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/internal/ValidationMessages_it.properties?rev=608318&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/internal/ValidationMessages_it.properties
(added)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/internal/ValidationMessages_it.properties
Wed Jan  2 19:04:11 2008
@@ -0,0 +1,35 @@
+# Copyright 2008 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.
+
+# 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=Il valore di %s deve essere immesso.
+minimum-string-length=Il campo %2$s richiede almeno %1$d caratteri.
+maximum-string-length=Il campo %2$s può contenere al massimo %1$d caratteri.
+min-integer=%2$s deve essere maggiore di %1$d. 
+max-integer=%2$s deve essere minore di %1$d.
+# This is lousy as a default, since the pattern string is meaningless to the user. You should
always override
+# this.
+regexp=%2$s non soddisfa la regola '%1$s'.
+
+# This is where the translator messages go.
+
+integer-format-exception=Il valore di '%s' deve essere un numero intero.
+number-format-exception=Il valore di '%s' deve essere un numero.
+
+# The label/alt text for the icon that is displayed next to each field.
+
+icon-label=[Errore]
\ No newline at end of file

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=608318&r1=608317&r2=608318&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 Wed Jan  2 19:04:11
2008
@@ -108,7 +108,9 @@
     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". 
+    The default is (currently) "en,it".  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".
     
   [tapestry.start-page-name]
     The logical name of the start page, the page that is rendered for the <root URL>.
 This is normally "start".



Mime
View raw message