--- On Thu, 9/9/10, Chris McDonough <chr...@plope.com> wrote:

> No, it isn't a bug.  The translation for that error
> message ("\"${val}\" is not a number") doesn't exist in 
> the russian .po file, so it uses the default input.  
> All validation messages should work fine when actually
> translated.

Confirmed. Sorry for the noise :)

I've attached the Spanish l10n patches for deform and colander trunks. I guess 
you cannot put binary *.mo files in a patch, correct? :)

Also, I took the liberty of putting a Spanish link in the Internationalization 
example. I hope that's ok.

Thanks. Douglas

"... allí­ es cuando te das cuenta que las cosas malas pueden resultar bastante 
buenas..." - Lionel Messi

Por favor, evite enviarme adjuntos de Word, Excel o PowerPoint.
Vea http://www.gnu.org/philosophy/no-word-attachments.es.html
Index: deformdemo/locale/es/LC_MESSAGES/deform.mo
===================================================================
No se puede mostrar: el archivo está marcado como binario.
svn:mime-type = application/octet-stream

Cambios de propiedades en deformdemo/locale/es/LC_MESSAGES/deform.mo
___________________________________________________________________
Añadido: svn:mime-type
   + application/octet-stream

Index: deformdemo/locale/es/LC_MESSAGES/deform.po
===================================================================
--- deformdemo/locale/es/LC_MESSAGES/deform.po	(revisión: 0)
+++ deformdemo/locale/es/LC_MESSAGES/deform.po	(revisión: 0)
@@ -0,0 +1,24 @@
+# Translations template for deform demo.
+# Copyright (C) 2010 ORGANIZATION
+# This file is distributed under the same license as the deformsite project.
+# FIRST AUTHOR <em...@address>, 2010.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: deformsite 0.0\n"
+"Report-Msgid-Bugs-To: em...@address\n"
+"POT-Creation-Date: 2010-04-25 19:14-0400\n"
+"PO-Revision-Date: 2010-09-09 13:53-0600\n"
+"Last-Translator: Douglas Cerna <douglasce...@yahoo.com>\n"
+"Language-Team: LANGUAGE <l...@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: Babel 0.9.5\n"
+
+msgid "A number between ${min} and ${max}"
+msgstr "Un número entre ${min} y ${max}"
+
+msgid "Submit"
+msgstr "Enviar"
+
Index: deformdemo/templates/translated_form.pt
===================================================================
--- deformdemo/templates/translated_form.pt	(revisión: 10230)
+++ deformdemo/templates/translated_form.pt	(copia de trabajo)
@@ -10,6 +10,9 @@
     <div>
       <a href="${request.path_url}?_LOCALE_=ru">Russian</a>
     </div>
+    <div>
+      <a href="${request.path_url}?_LOCALE_=es">Spanish</a>
+    </div>
     <h1>Captured</h1>
     <div id="captured" tal:content="captured"/>
     <h1>Code <a href="/allcode?start=${start}&amp;end=${end}#line-${start}"
Index: deform/locale/es/LC_MESSAGES/deform.mo
===================================================================
No se puede mostrar: el archivo está marcado como binario.
svn:mime-type = application/octet-stream

Cambios de propiedades en deform/locale/es/LC_MESSAGES/deform.mo
___________________________________________________________________
Añadido: svn:mime-type
   + application/octet-stream

Index: deform/locale/es/LC_MESSAGES/deform.po
===================================================================
--- deform/locale/es/LC_MESSAGES/deform.po	(revisión: 0)
+++ deform/locale/es/LC_MESSAGES/deform.po	(revisión: 0)
@@ -0,0 +1,63 @@
+# Translations template for deform.
+# Copyright (C) 2010 ORGANIZATION
+# This file is distributed under the same license as the deform project.
+# FIRST AUTHOR <em...@address>, 2010.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: deform 0.0\n"
+"Report-Msgid-Bugs-To: em...@address\n"
+"POT-Creation-Date: 2010-04-25 21:28-0400\n"
+"PO-Revision-Date: 2010-09-09 13:57-0600\n"
+"Last-Translator: Douglas Cerna <douglasce...@yahoo.com>\n"
+"Language-Team: LANGUAGE <l...@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: Babel 0.9.5\n"
+
+#: deform/schema.py:109
+msgid "${value} is not a dictionary"
+msgstr "${value} no es un diccionario"
+
+#: deform/schema.py:116
+msgid "${value} has no ${key} key"
+msgstr "${value} no tiene la clave ${key}"
+
+#: deform/schema.py:129
+#: deform/schema.py:142
+msgid "Required"
+msgstr "Requerido"
+
+#: deform/schema.py:138
+msgid "${value} is not iterable"
+msgstr "${value} no es iterable"
+
+#: deform/widget.py:398
+msgid "Fields did not match"
+msgstr "Los campos no coinciden"
+
+#: deform/widget.py:399
+msgid "Value"
+msgstr "Valor"
+
+#: deform/widget.py:400
+msgid "Confirm Value"
+msgstr "Confirmar Valor"
+
+#: deform/widget.py:445
+msgid "Password did not match confirm"
+msgstr "La contraseña no coincide con la confirmación"
+
+#: deform/widget.py:767
+msgid "Incomplete"
+msgstr "Incompleto"
+
+#: deform/templates/form.pt:21
+msgid "Errors have been highlighted below"
+msgstr "Los errores se han resaltado abajo"
+
+#: deform/templates/form.pt:19
+msgid "There was a problem with your submission"
+msgstr "Hubo un problema con su envío"
+
Index: colander/locale/es/LC_MESSAGES/colander.mo
===================================================================
No se puede mostrar: el archivo está marcado como binario.
svn:mime-type = application/octet-stream

Cambios de propiedades en colander/locale/es/LC_MESSAGES/colander.mo
___________________________________________________________________
Añadido: svn:mime-type
   + application/octet-stream

Index: colander/locale/es/LC_MESSAGES/colander.po
===================================================================
--- colander/locale/es/LC_MESSAGES/colander.po	(revisión: 0)
+++ colander/locale/es/LC_MESSAGES/colander.po	(revisión: 0)
@@ -0,0 +1,129 @@
+# Translations template for colander.
+# Copyright (C) 2010 ORGANIZATION
+# This file is distributed under the same license as the colander project.
+# FIRST AUTHOR <em...@address>, 2010.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: colander 0.5.2\n"
+"Report-Msgid-Bugs-To: em...@address\n"
+"POT-Creation-Date: 2010-04-25 21:09-0400\n"
+"PO-Revision-Date: 2010-09-09 14:12-0600\n"
+"Last-Translator: Douglas Cerna <douglasce...@yahoo.com>\n"
+"Language-Team: LANGUAGE <l...@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: Babel 0.9.5\n"
+
+#: colander/__init__.py:177
+msgid "Invalid value"
+msgstr "Valor inválido"
+
+#: colander/__init__.py:202
+msgid "String does not match expected pattern"
+msgstr "La cadena no coincide con el patrón esperado"
+
+#: colander/__init__.py:217
+msgid "Invalid email address"
+msgstr "Dirección de correo electrónico inválida"
+
+#: colander/__init__.py:246
+msgid "${val} is less than minimum value ${min}"
+msgstr "${val} es menor que el valor mínimo ${min}"
+
+#: colander/__init__.py:247
+msgid "${val} is greater than maximum value ${max}"
+msgstr "${val} es mayor que el valor máximo ${max}"
+
+#: colander/__init__.py:279
+msgid "Shorter than minimum length ${min}"
+msgstr "Más corto que la longitud mínima ${min}"
+
+#: colander/__init__.py:285
+msgid "Longer than maximum length ${max}"
+msgstr "Más largo que la longitud máxima ${max}"
+
+#: colander/__init__.py:298
+msgid "\"${val}\" is not one of ${choices}"
+msgstr "\"${val}\" no está en ${choices}"
+
+#: colander/__init__.py:367
+msgid "\"${val}\" is not a mapping type: ${err}"
+msgstr "\"${val}\" no es un tipo de mapeo: ${err}"
+
+#: colander/__init__.py:394
+msgid "\"${val}\" is required but missing"
+msgstr "\"${val}\" es requerido pero falta"
+
+#: colander/__init__.py:411
+msgid "Unrecognized keys in mapping: \"${val}\""
+msgstr "Claves no reconocidas en el mapeo: \"${val}\""
+
+#: colander/__init__.py:461
+#: colander/__init__.py:539
+msgid "\"${val}\" is not iterable"
+msgstr "\"${val}\" no es iterable"
+
+#: colander/__init__.py:469
+msgid "\"${val}\" has an incorrect number of elements (expected ${exp}, was ${was})"
+msgstr "\"${val}\" tiene un número incorrecto de elementos (esperados ${exp}, obtenidos ${was})"
+
+#: colander/__init__.py:644
+msgid "${val} is not a string: %{err}"
+msgstr "${val}no es una cadena: %{err}"
+
+#: colander/__init__.py:648
+#: colander/__init__.py:680
+#: colander/__init__.py:710
+#: colander/__init__.py:751
+#: colander/__init__.py:996
+msgid "Required"
+msgstr "Requerido"
+
+#: colander/__init__.py:662
+msgid "\"${val} cannot be serialized to str: ${err}"
+msgstr "\"${val} no puede serializarse a str: ${err}"
+
+#: colander/__init__.py:683
+#: colander/__init__.py:692
+#: colander/__init__.py:713
+#: colander/__init__.py:722
+msgid "\"${val}\" is not a number"
+msgstr "\"${val}\" no es un número"
+
+#: colander/__init__.py:747
+msgid "${val} is not a string"
+msgstr "${val} no es una cadena"
+
+#: colander/__init__.py:808
+#: colander/__init__.py:825
+#: colander/__init__.py:835
+msgid "relative name \"${val}\" irresolveable without package"
+msgstr "nombre relativo \"${val}\" no se puede resolver sin paquete"
+
+#: colander/__init__.py:860
+msgid "\"${val}\" is not a string"
+msgstr "\"${val}\" no es una cadena"
+
+#: colander/__init__.py:868
+msgid "The dotted name \"${name}\" cannot be imported"
+msgstr "El nombre con puntos \"${name}\" no pudo importarse"
+
+#: colander/__init__.py:876
+msgid "\"${val}\" has no __name__"
+msgstr "\"${val}\" no tiene __name__"
+
+#: colander/__init__.py:918
+#: colander/__init__.py:982
+msgid "${val} cannot be parsed as an iso8601 date: ${err}"
+msgstr "${val} no puede parsearse como una fecha iso8601: ${err}"
+
+#: colander/__init__.py:929
+msgid "\"${val}\" is not a datetime object"
+msgstr "\"${val}\" no es un objeto datetime"
+
+#: colander/__init__.py:988
+msgid "\"${val}\" is not a date object"
+msgstr "\"${val}\" no es un objeto date"
+
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to