[Zope3-checkins] SVN: Zope3/trunk/src/buddydemo/ Added translations to BuddyDemo

Dmitry Vasiliev dima at hlabs.spb.ru
Mon Apr 18 08:08:11 EDT 2005


Log message for revision 30018:
  Added translations to BuddyDemo
  

Changed:
  A   Zope3/trunk/src/buddydemo/I18N.txt
  U   Zope3/trunk/src/buddydemo/info.pt
  U   Zope3/trunk/src/buddydemo/locales/buddydemo.pot
  A   Zope3/trunk/src/buddydemo/locales/en/
  A   Zope3/trunk/src/buddydemo/locales/en/LC_MESSAGES/
  A   Zope3/trunk/src/buddydemo/locales/en/LC_MESSAGES/buddydemo.mo
  A   Zope3/trunk/src/buddydemo/locales/en/LC_MESSAGES/buddydemo.po
  A   Zope3/trunk/src/buddydemo/locales/ru/
  A   Zope3/trunk/src/buddydemo/locales/ru/LC_MESSAGES/
  A   Zope3/trunk/src/buddydemo/locales/ru/LC_MESSAGES/buddydemo.mo
  A   Zope3/trunk/src/buddydemo/locales/ru/LC_MESSAGES/buddydemo.po
  U   Zope3/trunk/src/buddydemo/rename.pt

-=-
Added: Zope3/trunk/src/buddydemo/I18N.txt
===================================================================
--- Zope3/trunk/src/buddydemo/I18N.txt	2005-04-18 11:27:12 UTC (rev 30017)
+++ Zope3/trunk/src/buddydemo/I18N.txt	2005-04-18 12:08:10 UTC (rev 30018)
@@ -0,0 +1,36 @@
+Internationalization (I18n) and Localization (L10n)
+=====================================================
+
+  Creating/Updating Message Catalog Template (POT) Files
+  -----------------------------------------------------
+
+    1. Install 'buddydemo' in 'ZOPE3/src'. See INSTALL.txt for details.
+
+    2. Set the the Python path::
+
+        export PYTHONPATH=ZOPE3/src
+
+    3. Go into the 'locales' directory and execute i18nextract.py::
+
+      python2.3 utilities/i18nextract.py -d buddydemo -p ..
+
+
+  Updating Message Catalog (PO) Files
+  -----------------------------------
+
+    1. For each language do simply::
+
+        msgmerge -U de/LC_MESSAGES/buddydemo.po buddydemo.pot
+
+    2. Translate the updated PO file. 
+       Note: KBabel is a great tool for this task!
+
+
+  Compiling Message Catalogs (PO) to binary (MO) Files
+  ----------------------------------------------------
+
+    1. Go to the right directory, such as '<buddydemo>/locales/de/LC_MESSAGES'.
+
+    2. Run the following command::
+
+        msgfmt -o buddydemo.mo buddydemo.po

Modified: Zope3/trunk/src/buddydemo/info.pt
===================================================================
--- Zope3/trunk/src/buddydemo/info.pt	2005-04-18 11:27:12 UTC (rev 30017)
+++ Zope3/trunk/src/buddydemo/info.pt	2005-04-18 12:08:10 UTC (rev 30018)
@@ -13,10 +13,10 @@
     <tr><td i18n:translate="">Address:</td>
         <td tal:content="context/address">1 First Street</td>
         </tr>
-    <tr><td>City:</td>
+    <tr><td i18n:translate="">City:</td>
         <td tal:content="view/city | default">City</td>
         </tr>
-    <tr><td>State:</td>
+    <tr><td i18n:translate="">State:</td>
         <td tal:content="view/state | default">State</td>
         </tr>
     <tr><td i18n:translate="">Postal code:</td>

Modified: Zope3/trunk/src/buddydemo/locales/buddydemo.pot
===================================================================
--- Zope3/trunk/src/buddydemo/locales/buddydemo.pot	2005-04-18 11:27:12 UTC (rev 30017)
+++ Zope3/trunk/src/buddydemo/locales/buddydemo.pot	2005-04-18 12:08:10 UTC (rev 30018)
@@ -1,6 +1,6 @@
 ##############################################################################
 #
-# Copyright (c) 2003 Zope Corporation and Contributors.
+# Copyright (c) 2003-2004 Zope Corporation and Contributors.
 # All Rights Reserved.
 #
 # This software is subject to the provisions of the Zope Public License,
@@ -13,36 +13,40 @@
 ##############################################################################
 msgid ""
 msgstr ""
-"Project-Id-Version: Zope X3 Pre-M4\n"
-"POT-Creation-Date: Fri Mar 19 17:35:16 2004\n"
+"Project-Id-Version: Development/Revision: 30016\n"
+"POT-Creation-Date: Mon Apr 18 15:59:03 2005\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/translation_files/extract.py\n"
+"Generated-By: zope/app/locales/extract.py\n"
 
-#: src/buddydemo/configure.zcml:25
+#: src/buddydemo/configure.zcml:27
 msgid "Edit"
 msgstr ""
 
-#: src/buddydemo/configure.zcml:25
+#: src/buddydemo/configure.zcml:27
 msgid "Change Buddy Information"
 msgstr ""
 
-#: src/buddydemo/configure.zcml:33
+#: src/buddydemo/configure.zcml:35
 msgid "Add buddy information"
 msgstr ""
 
-#: src/buddydemo/configure.zcml:42
+#: src/buddydemo/configure.zcml:44
 msgid "Buddy"
 msgstr ""
 
-#: src/buddydemo/configure.zcml:71
+#: src/buddydemo/configure.zcml:73
 msgid "Rename"
 msgstr ""
 
+#: src/buddydemo/configure.zcml:93
+msgid "Buddy Folder"
+msgstr ""
+
 #: src/buddydemo/info.pt:10
 msgid "Email:"
 msgstr ""
@@ -51,6 +55,14 @@
 msgid "Address:"
 msgstr ""
 
+#: src/buddydemo/info.pt:16
+msgid "City:"
+msgstr ""
+
+#: src/buddydemo/info.pt:19
+msgid "State:"
+msgstr ""
+
 #: src/buddydemo/info.pt:22
 msgid "Postal code:"
 msgstr ""
@@ -85,6 +97,11 @@
 msgid "Postal code"
 msgstr ""
 
+#: src/buddydemo/rename.pt:17
+# Default: "Save Changes"
+msgid "rename-button"
+msgstr ""
+
 #: src/buddydemo/rename.pt:5
 msgid "Enter the Buddy information"
 msgstr ""

Added: Zope3/trunk/src/buddydemo/locales/en/LC_MESSAGES/buddydemo.mo
===================================================================
(Binary files differ)


Property changes on: Zope3/trunk/src/buddydemo/locales/en/LC_MESSAGES/buddydemo.mo
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: Zope3/trunk/src/buddydemo/locales/en/LC_MESSAGES/buddydemo.po
===================================================================
--- Zope3/trunk/src/buddydemo/locales/en/LC_MESSAGES/buddydemo.po	2005-04-18 11:27:12 UTC (rev 30017)
+++ Zope3/trunk/src/buddydemo/locales/en/LC_MESSAGES/buddydemo.po	2005-04-18 12:08:10 UTC (rev 30018)
@@ -0,0 +1,15 @@
+# English translation
+# This file contains no message ids because Zope's default language
+# is English
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: buddydemo\n"
+"POT-Creation-Date: Mon Apr 18 15:10:41 2005\n"
+"PO-Revision-Date: 2005-04-18 15:10-0400\n"
+"Last-Translator: Zope3 Dev Team <zope3-dev at zope.org>\n"
+"Language-Team: Zope3 Dev team <zope3-dev at zope.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+

Added: Zope3/trunk/src/buddydemo/locales/ru/LC_MESSAGES/buddydemo.mo
===================================================================
(Binary files differ)


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

Added: Zope3/trunk/src/buddydemo/locales/ru/LC_MESSAGES/buddydemo.po
===================================================================
--- Zope3/trunk/src/buddydemo/locales/ru/LC_MESSAGES/buddydemo.po	2005-04-18 11:27:12 UTC (rev 30017)
+++ Zope3/trunk/src/buddydemo/locales/ru/LC_MESSAGES/buddydemo.po	2005-04-18 12:08:10 UTC (rev 30018)
@@ -0,0 +1,108 @@
+# translation of buddydemo.po to Russian
+# #############################################################################
+#
+# 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.
+#
+# #############################################################################
+# Dmitry Vasiliev <dima at hlabs.spb.ru>, 2005
+msgid ""
+msgstr ""
+"Project-Id-Version: buddydemo\n"
+"POT-Creation-Date: Mon Apr 18 15:59:03 2005\n"
+"PO-Revision-Date: 2005-04-18 15:10-0400\n"
+"Last-Translator: Dmitry Vasiliev <dima at hlabs.spb.ru>\n"
+"Language-Team: Zope3 Dev team <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/buddydemo/configure.zcml:27
+msgid "Edit"
+msgstr "Редактировать"
+
+#: src/buddydemo/configure.zcml:27
+msgid "Change Buddy Information"
+msgstr "Изменить информацию о приятеле"
+
+#: src/buddydemo/configure.zcml:35
+msgid "Add buddy information"
+msgstr "Добавить приятеля"
+
+#: src/buddydemo/configure.zcml:44
+msgid "Buddy"
+msgstr "Приятель"
+
+#: src/buddydemo/configure.zcml:73
+msgid "Rename"
+msgstr "Переименовать"
+
+#: src/buddydemo/configure.zcml:93
+msgid "Buddy Folder"
+msgstr "Приятели"
+
+#: src/buddydemo/info.pt:10
+msgid "Email:"
+msgstr "Email:"
+
+#: src/buddydemo/info.pt:13
+msgid "Address:"
+msgstr "Адрес:"
+
+#: src/buddydemo/info.pt:16
+msgid "City:"
+msgstr "Город:"
+
+#: src/buddydemo/info.pt:19
+msgid "State:"
+msgstr "Штат:"
+
+#: src/buddydemo/info.pt:22
+msgid "Postal code:"
+msgstr "Почтовый код:"
+
+#: src/buddydemo/info.pt:5
+msgid "Buddy information"
+msgstr "Приятель"
+
+#: src/buddydemo/info.pt:6
+msgid "Name:"
+msgstr "Имя:"
+
+#: src/buddydemo/interfaces.py:11 src/buddydemo/rename.pt:8
+msgid "First name"
+msgstr "Имя"
+
+#: src/buddydemo/interfaces.py:12 src/buddydemo/rename.pt:12
+msgid "Last name"
+msgstr "Фамилия"
+
+#: src/buddydemo/interfaces.py:13
+msgid "Electronic mail address"
+msgstr "Адрес электронной почты"
+
+#: src/buddydemo/interfaces.py:14
+msgid "Postal address"
+msgstr "Почтовый адрес"
+
+#: src/buddydemo/interfaces.py:15
+msgid "Postal code"
+msgstr "Почтовый код"
+
+# Default: "Save Changes"
+#: src/buddydemo/rename.pt:17
+msgid "rename-button"
+msgstr "Сохранить изменения"
+
+#: src/buddydemo/rename.pt:5
+msgid "Enter the Buddy information"
+msgstr "Введите информацию о приятеле"
+

Modified: Zope3/trunk/src/buddydemo/rename.pt
===================================================================
--- Zope3/trunk/src/buddydemo/rename.pt	2005-04-18 11:27:12 UTC (rev 30017)
+++ Zope3/trunk/src/buddydemo/rename.pt	2005-04-18 12:08:10 UTC (rev 30018)
@@ -14,5 +14,6 @@
            tal:attributes="value context/last" /> </td>
   </tr>
 </table>
-<input type="submit" name="submit" value="Save Changes" />
+<input type="submit" name="submit" value="Save Changes"
+    i18n:attributes="value rename-button"/>
 </form></div></body></html>



More information about the Zope3-Checkins mailing list