Author: hlship
Date: Mon Nov 3 15:29:28 2008
New Revision: 711047
URL: http://svn.apache.org/viewvc?rev=711047&view=rev
Log:
TAP5-282: Add suport for Brazilian Portuguese (pt_BR) locale
Added:
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/BeanEditForm_pt_BR.properties
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/Errors_pt_BR.properties
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/internal/ValidationMessages_pt_BR.properties
Modified:
tapestry/tapestry5/trunk/src/site/apt/guide/conf.apt
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java
Modified: tapestry/tapestry5/trunk/src/site/apt/guide/conf.apt
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/src/site/apt/guide/conf.apt?rev=711047&r1=711046&r2=711047&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/src/site/apt/guide/conf.apt (original)
+++ tapestry/tapestry5/trunk/src/site/apt/guide/conf.apt Mon Nov 3 15:29:28
2008
@@ -192,7 +192,8 @@
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,zh_CN,pt_PT,de,ru,hr,fi_FI,sv_SE,fr_FR,da". As the community
contributes new localizations of the necessary messages files,
+ The default is (currently)
"en,it,zh_CN,pt_PT,de,ru,hr,fi_FI,sv_SE,fr_FR,da,pt_BR".
+ 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".
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=711047&r1=711046&r2=711047&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
Mon Nov 3 15:29:28 2008
@@ -1806,7 +1806,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,pt_PT,de,ru,hr,fi_FI,sv_SE,fr_FR,da");
+ configuration.add(SymbolConstants.SUPPORTED_LOCALES,
"en,it,zh_CN,pt_PT,de,ru,hr,fi_FI,sv_SE,fr_FR,da,pt_BR");
configuration.add(SymbolConstants.TAPESTRY_VERSION,
VersionUtils.readVersionNumber(
Added:
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/BeanEditForm_pt_BR.properties
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/BeanEditForm_pt_BR.properties?rev=711047&view=auto
==============================================================================
---
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/BeanEditForm_pt_BR.properties
(added)
+++
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/BeanEditForm_pt_BR.properties
Mon Nov 3 15:29:28 2008
@@ -0,0 +1,15 @@
+# Copyright 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.
+
+submit-label=Criar/Atualizar
Added:
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/Errors_pt_BR.properties
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/Errors_pt_BR.properties?rev=711047&view=auto
==============================================================================
---
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/Errors_pt_BR.properties
(added)
+++
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/Errors_pt_BR.properties
Mon Nov 3 15:29:28 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=Você deve corrigir os seguintes erros antes de continuar.
Added:
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/internal/ValidationMessages_pt_BR.properties
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/internal/ValidationMessages_pt_BR.properties?rev=711047&view=auto
==============================================================================
---
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/internal/ValidationMessages_pt_BR.properties
(added)
+++
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/internal/ValidationMessages_pt_BR.properties
Mon Nov 3 15:29:28 2008
@@ -0,0 +1,32 @@
+# Copyright 2006, 2007, 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=Você deve fornecer um valor para %s.
+minimum-string-length=Você deve fornecer ao menos %d caracteres para %s.
+maximum-string-length=Você deve fornecer até %d caracteres para %s.
+min-integer=%2$s deve ser igual ou maior que %1$d.
+max-integer=%2$s deve ser menor ou igual a %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ão atende ao padrão '%1$s'.
+invalid-email='%s' não é um e-mail válido.
+
+# This is where the translator messages go.
+
+integer-format-exception=Você deve fornecer um número inteiro para %s.
+number-format-exception=Você deve fornecer um número para %s.