[Checkins] SVN: z3c.schema/trunk/ Add translations support and a russian translation.

Dan Korostelev nadako at gmail.com
Thu Oct 23 04:40:27 EDT 2008


Log message for revision 92501:
  Add translations support and a russian translation.

Changed:
  U   z3c.schema/trunk/CHANGES.txt
  U   z3c.schema/trunk/buildout.cfg
  U   z3c.schema/trunk/src/z3c/schema/baseurl/interfaces.py
  U   z3c.schema/trunk/src/z3c/schema/hostname/interfaces.py
  A   z3c.schema/trunk/src/z3c/schema/i18n/configure.zcml
  A   z3c.schema/trunk/src/z3c/schema/i18n/locales/
  A   z3c.schema/trunk/src/z3c/schema/i18n/locales/ru/
  A   z3c.schema/trunk/src/z3c/schema/i18n/locales/ru/LC_MESSAGES/
  A   z3c.schema/trunk/src/z3c/schema/i18n/locales/ru/LC_MESSAGES/z3c.schema.mo
  A   z3c.schema/trunk/src/z3c/schema/i18n/locales/ru/LC_MESSAGES/z3c.schema.po
  A   z3c.schema/trunk/src/z3c/schema/i18n/locales/z3c.schema.pot
  U   z3c.schema/trunk/src/z3c/schema/regex/interfaces.py

-=-
Modified: z3c.schema/trunk/CHANGES.txt
===================================================================
--- z3c.schema/trunk/CHANGES.txt	2008-10-23 08:02:19 UTC (rev 92500)
+++ z3c.schema/trunk/CHANGES.txt	2008-10-23 08:40:27 UTC (rev 92501)
@@ -6,6 +6,9 @@
 Version 0.6.0dev (unreleased)
 -----------------------------
 
+- Humanized exception's doc strings.
+- Added translations support.
+- Added Russian translation.
 
 Version 0.5.0 (2008-10-21)
 -----------------------------

Modified: z3c.schema/trunk/buildout.cfg
===================================================================
--- z3c.schema/trunk/buildout.cfg	2008-10-23 08:02:19 UTC (rev 92500)
+++ z3c.schema/trunk/buildout.cfg	2008-10-23 08:40:27 UTC (rev 92501)
@@ -1,6 +1,6 @@
 [buildout]
 develop = . 
-parts = test checker coverage-test coverage-report
+parts = test checker coverage-test coverage-report i18n
 
 [test]
 recipe = zc.recipe.testrunner
@@ -10,18 +10,26 @@
 recipe = lovely.recipe:importchecker
 path = src/z3c/schema
 
-
 [coverage-test]
 recipe = zc.recipe.testrunner
 eggs = z3c.schema [test]
 defaults = ['--coverage', '../../coverage']
 
-
 [coverage-report]
 recipe = zc.recipe.egg
 eggs = z3c.coverage
 scripts = coverage=coverage-report
 arguments = ('coverage', 'coverage/report')
 
-
-
+[i18n]
+recipe = lovely.recipe:i18n
+eggs =
+  zope.i18n
+  z3c.schema
+package = z3c.schema
+domain = z3c.schema
+location = src/z3c/schema
+output = i18n/locales
+zcml =
+  <include package="zope.i18n" file="meta.zcml" />
+  <include package="z3c.schema.i18n" />

Modified: z3c.schema/trunk/src/z3c/schema/baseurl/interfaces.py
===================================================================
--- z3c.schema/trunk/src/z3c/schema/baseurl/interfaces.py	2008-10-23 08:02:19 UTC (rev 92500)
+++ z3c.schema/trunk/src/z3c/schema/baseurl/interfaces.py	2008-10-23 08:40:27 UTC (rev 92501)
@@ -32,4 +32,4 @@
 
 
 class InvalidBaseURL(zope.schema.ValidationError):
-    __doc__ = _("""The specified BaseURL is not valid.""")
+    __doc__ = _("""The specified base URL is not valid.""")

Modified: z3c.schema/trunk/src/z3c/schema/hostname/interfaces.py
===================================================================
--- z3c.schema/trunk/src/z3c/schema/hostname/interfaces.py	2008-10-23 08:02:19 UTC (rev 92500)
+++ z3c.schema/trunk/src/z3c/schema/hostname/interfaces.py	2008-10-23 08:40:27 UTC (rev 92501)
@@ -28,4 +28,4 @@
 
 
 class InvalidHostName(zope.schema.ValidationError):
-    __doc__ = _("""The specified HostName is not valid.""")
+    __doc__ = _("""The specified host name is not valid.""")

Added: z3c.schema/trunk/src/z3c/schema/i18n/configure.zcml
===================================================================
--- z3c.schema/trunk/src/z3c/schema/i18n/configure.zcml	                        (rev 0)
+++ z3c.schema/trunk/src/z3c/schema/i18n/configure.zcml	2008-10-23 08:40:27 UTC (rev 92501)
@@ -0,0 +1,8 @@
+<configure
+    xmlns="http://namespaces.zope.org/zope"
+    xmlns:i18n="http://namespaces.zope.org/i18n"
+    i18n_domain="z3c.schema">
+
+  <i18n:registerTranslations directory="locales" />
+
+</configure>

Added: z3c.schema/trunk/src/z3c/schema/i18n/locales/ru/LC_MESSAGES/z3c.schema.mo
===================================================================
(Binary files differ)


Property changes on: z3c.schema/trunk/src/z3c/schema/i18n/locales/ru/LC_MESSAGES/z3c.schema.mo
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: z3c.schema/trunk/src/z3c/schema/i18n/locales/ru/LC_MESSAGES/z3c.schema.po
===================================================================
--- z3c.schema/trunk/src/z3c/schema/i18n/locales/ru/LC_MESSAGES/z3c.schema.po	                        (rev 0)
+++ z3c.schema/trunk/src/z3c/schema/i18n/locales/ru/LC_MESSAGES/z3c.schema.po	2008-10-23 08:40:27 UTC (rev 92501)
@@ -0,0 +1,57 @@
+# #############################################################################
+#
+# Copyright (c) 2003-2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+# #############################################################################
+msgid ""
+msgstr ""
+"Project-Id-Version: Development/Unknown\n"
+"POT-Creation-Date: Thu Oct 23 12:38:11 2008\n"
+"PO-Revision-Date: 2008-10-23 12:38+0300\n"
+"Last-Translator: Dan Korostelev <nadako at gmail.com>\n"
+"Language-Team: Zope 3 Developers <zope3-dev at zope.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: zope/app/locales/extract.py\n"
+
+#: src/z3c/schema/baseurl/interfaces.py:35
+msgid "The specified base URL is not valid."
+msgstr "Указан неверный базовый URL."
+
+#: src/z3c/schema/email/interfaces.py:30
+msgid "Not a valid RFC822 email address"
+msgstr "Неправильный формат e-mail адреса"
+
+#: src/z3c/schema/hostname/interfaces.py:31
+msgid "The specified host name is not valid."
+msgstr "Неправильное имя хоста."
+
+#: src/z3c/schema/ip/interfaces.py:29
+msgid "Not a valid IP address."
+msgstr "Неправильный формат IP-адреса."
+
+#: src/z3c/schema/optchoice/interfaces.py:48
+msgid "Value Type"
+msgstr "Тип значения"
+
+#: src/z3c/schema/optchoice/interfaces.py:49
+msgid "The freely entered values must be of this type."
+msgstr "Вводимые значения должны быть данного типа."
+
+#: src/z3c/schema/payments/interfaces.py:29
+msgid "The credit card number is incorrect."
+msgstr "Неправильный номер кредитной карты."
+
+#: src/z3c/schema/regex/interfaces.py:29
+msgid "The specified regular expression is not valid."
+msgstr "Указано неверное регулярное выражение."
+

Added: z3c.schema/trunk/src/z3c/schema/i18n/locales/z3c.schema.pot
===================================================================
--- z3c.schema/trunk/src/z3c/schema/i18n/locales/z3c.schema.pot	                        (rev 0)
+++ z3c.schema/trunk/src/z3c/schema/i18n/locales/z3c.schema.pot	2008-10-23 08:40:27 UTC (rev 92501)
@@ -0,0 +1,57 @@
+##############################################################################
+#
+# Copyright (c) 2003-2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+msgid ""
+msgstr ""
+"Project-Id-Version: Development/Unknown\n"
+"POT-Creation-Date: Thu Oct 23 12:38:11 2008\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: Zope 3 Developers <zope3-dev at zope.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: zope/app/locales/extract.py\n"
+
+#: src/z3c/schema/baseurl/interfaces.py:35
+msgid "The specified base URL is not valid."
+msgstr ""
+
+#: src/z3c/schema/email/interfaces.py:30
+msgid "Not a valid RFC822 email address"
+msgstr ""
+
+#: src/z3c/schema/hostname/interfaces.py:31
+msgid "The specified host name is not valid."
+msgstr ""
+
+#: src/z3c/schema/ip/interfaces.py:29
+msgid "Not a valid IP address."
+msgstr ""
+
+#: src/z3c/schema/optchoice/interfaces.py:48
+msgid "Value Type"
+msgstr ""
+
+#: src/z3c/schema/optchoice/interfaces.py:49
+msgid "The freely entered values must be of this type."
+msgstr ""
+
+#: src/z3c/schema/payments/interfaces.py:29
+msgid "The credit card number is incorrect."
+msgstr ""
+
+#: src/z3c/schema/regex/interfaces.py:29
+msgid "The specified regular expression is not valid."
+msgstr ""
+

Modified: z3c.schema/trunk/src/z3c/schema/regex/interfaces.py
===================================================================
--- z3c.schema/trunk/src/z3c/schema/regex/interfaces.py	2008-10-23 08:02:19 UTC (rev 92500)
+++ z3c.schema/trunk/src/z3c/schema/regex/interfaces.py	2008-10-23 08:40:27 UTC (rev 92501)
@@ -26,4 +26,4 @@
     """Regular Expression field"""
 
 class InvalidRegex(zope.schema.ValidationError):
-    __doc__ = _("""The specified Regular Expression is not valid.""")
+    __doc__ = _("""The specified regular expression is not valid.""")



More information about the Checkins mailing list