You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2008/06/09 01:41:37 UTC

svn commit: r664577 - in /tapestry/tapestry5/trunk/tapestry-core/src/main: java/org/apache/tapestry5/services/ resources/org/apache/tapestry5/corelib/components/ resources/org/apache/tapestry5/internal/

Author: hlship
Date: Sun Jun  8 16:41:37 2008
New Revision: 664577

URL: http://svn.apache.org/viewvc?rev=664577&view=rev
Log:
TAPESTRY-2100: Validation and Error messages for Portuguese locale

Added:
    tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/Errors_pt_PT.properties
    tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/internal/ValidationMessages_pt_PT.properties
Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java?rev=664577&r1=664576&r2=664577&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java Sun Jun  8 16:41:37 2008
@@ -1730,7 +1730,7 @@
         configuration.add(SymbolConstants.FILE_CHECK_UPDATE_TIMEOUT, "50 ms");
 
         // This should be overridden for particular applications.
-        configuration.add(SymbolConstants.SUPPORTED_LOCALES, "en,it,zh_CN");
+        configuration.add(SymbolConstants.SUPPORTED_LOCALES, "en,it,zh_CN,pt_PT");
 
         configuration.add(SymbolConstants.TAPESTRY_VERSION,
                           VersionUtils.readVersionNumber(

Added: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/Errors_pt_PT.properties
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/Errors_pt_PT.properties?rev=664577&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/Errors_pt_PT.properties (added)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/Errors_pt_PT.properties Sun Jun  8 16:41:37 2008
@@ -0,0 +1,15 @@
+# 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=Tem de corrigir os seguintes erros antes de prosseguir.

Added: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/internal/ValidationMessages_pt_PT.properties
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/internal/ValidationMessages_pt_PT.properties?rev=664577&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/internal/ValidationMessages_pt_PT.properties (added)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/internal/ValidationMessages_pt_PT.properties Sun Jun  8 16:41:37 2008
@@ -0,0 +1,35 @@
+# 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.
+
+# 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=Tem de fornecer um valor para %s.
+minimum-string-length=Tem de inserir pelo meno %d characteres para %s.
+maximum-string-length=Pode inserir no m\u00e1ximo %d characteres para %s.
+min-integer=O campo %2$s requer um valor no m\u00ednimo de %1$d.
+max-integer=O campo %2$s requer um valor no m\u00e1ximo de %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 n\u00e3o corresponde ao padr\u00e3o '%1$s'.
+
+# This is where the translator messages go.
+
+integer-format-exception=O valor '%s' n\u00e3o \u00e9 um valor inteiro.
+number-format-exception=O valor '%s' n\u00e3o \u00e9 um valor num\u00e9rico.
+
+# The label/alt text for the icon that is displayed next to each field.
+
+icon-label=[Error]