summaryrefslogtreecommitdiff
path: root/addons/web_mobile
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2012-02-02 15:56:03 +0100
committerOlivier Dony <odo@openerp.com>2012-02-02 15:56:03 +0100
commit7ebc5bdba308c376fcf53f2d6da7bc7beb41be2d (patch)
treef4457444c9bbd9e15441e87ab0b83f2afc8cc0b7 /addons/web_mobile
parent7e2bb94661881e41aa98026410cbbe86e9064055 (diff)
[IMP] refactored translation system to merge web translations with addons translations
- Moved the web *.po files to /i18n to be consistent with the addons convention. Using /po was considered for a while because it played better with LP's auto- detection of PO Templates, but that is not necessary anymore, we now have full control on LP templates. - In order to support addons that contain translations for both the web addon and the regular addon part, both kinds of translations are now merged in a single addon/i18n/addon.pot file. Terms that are used by the web part are now marked with a PO annotation: #. openerp-web so the web client can recognize them and only load the relevant translations in the browser memory. This is important because a complete PO file can be rather large, e.g. account/i18n/de.po = 400KB. - The web translation export scripts were updated to behave properly for addons that have a non-web part, and will merge the web translation in the original POT file, annotating the web translations as needed. These scripts are Unix-only and meant to be used by OpenERP packagers when needed. - The GetText spec says that PO auto-comments indicating the source location have this form: #: /path/to/file:lineno However OpenERP's POT export system defaults to a modified version of this format with an extra 'type' field: #: type:/path/to/file:lineno The babel extractors we use have the GetText format hardcoded so a small patch is needed on the server to make it more lenient and accept the standard source annotation, defaulting to 'code' type. This does not matter for openerp-web, but makes sure the server will not fail to load the new PO files that contain openerp-web translations with standard annotations. The patch for making the server more lenient was checked in trunk at revision 4002 rev-id odo@openerp.com-20120202143210-05p1w24t6u77cyv8 - The existing translation sync and export wizards for regular addons have not been updated to consider web addons, so for the time being we will have to export regular addons terms first, and run the web export script (gen_translations.sh) on the addons directory afterwards. This could be improved later. As soon as this change is merged we will have to perform a full update of addons translation templates in order to include the web terms as well. bzr revid: odo@openerp.com-20120202145603-ffo0il0qnfp3r6gt
Diffstat (limited to 'addons/web_mobile')
-rw-r--r--addons/web_mobile/i18n/ar.po (renamed from addons/web_mobile/po/ar.po)0
-rw-r--r--addons/web_mobile/i18n/bn.po (renamed from addons/web_mobile/po/bn.po)0
-rw-r--r--addons/web_mobile/i18n/da.po (renamed from addons/web_mobile/po/da.po)0
-rw-r--r--addons/web_mobile/i18n/de.po (renamed from addons/web_mobile/po/de.po)0
-rw-r--r--addons/web_mobile/i18n/es.po (renamed from addons/web_mobile/po/es.po)0
-rw-r--r--addons/web_mobile/i18n/es_EC.po (renamed from addons/web_mobile/po/es_EC.po)0
-rw-r--r--addons/web_mobile/i18n/et.po (renamed from addons/web_mobile/po/et.po)0
-rw-r--r--addons/web_mobile/i18n/fr.po (renamed from addons/web_mobile/po/fr.po)0
-rw-r--r--addons/web_mobile/i18n/gl.po (renamed from addons/web_mobile/po/gl.po)0
-rw-r--r--addons/web_mobile/i18n/hr.po (renamed from addons/web_mobile/po/hr.po)0
-rw-r--r--addons/web_mobile/i18n/it.po (renamed from addons/web_mobile/po/it.po)0
-rw-r--r--addons/web_mobile/i18n/nl.po (renamed from addons/web_mobile/po/nl.po)0
-rw-r--r--addons/web_mobile/i18n/nl_BE.po (renamed from addons/web_mobile/po/nl_BE.po)0
-rw-r--r--addons/web_mobile/i18n/pl.po (renamed from addons/web_mobile/po/pl.po)0
-rw-r--r--addons/web_mobile/i18n/pt.po (renamed from addons/web_mobile/po/pt.po)0
-rw-r--r--addons/web_mobile/i18n/pt_BR.po (renamed from addons/web_mobile/po/pt_BR.po)0
-rw-r--r--addons/web_mobile/i18n/ru.po (renamed from addons/web_mobile/po/ru.po)0
-rw-r--r--addons/web_mobile/i18n/sk.po (renamed from addons/web_mobile/po/sk.po)0
-rw-r--r--addons/web_mobile/i18n/sl.po (renamed from addons/web_mobile/po/sl.po)0
-rw-r--r--addons/web_mobile/i18n/sq.po (renamed from addons/web_mobile/po/sq.po)0
-rw-r--r--addons/web_mobile/i18n/tr.po (renamed from addons/web_mobile/po/tr.po)0
-rw-r--r--addons/web_mobile/i18n/uk.po (renamed from addons/web_mobile/po/uk.po)0
-rw-r--r--addons/web_mobile/i18n/web_mobile.pot86
-rw-r--r--addons/web_mobile/i18n/zh_CN.po (renamed from addons/web_mobile/po/zh_CN.po)0
-rw-r--r--addons/web_mobile/po/web_mobile.pot75
25 files changed, 86 insertions, 75 deletions
diff --git a/addons/web_mobile/po/ar.po b/addons/web_mobile/i18n/ar.po
index 48267c6d4d4..48267c6d4d4 100644
--- a/addons/web_mobile/po/ar.po
+++ b/addons/web_mobile/i18n/ar.po
diff --git a/addons/web_mobile/po/bn.po b/addons/web_mobile/i18n/bn.po
index 2277d50758f..2277d50758f 100644
--- a/addons/web_mobile/po/bn.po
+++ b/addons/web_mobile/i18n/bn.po
diff --git a/addons/web_mobile/po/da.po b/addons/web_mobile/i18n/da.po
index a29b55b6036..a29b55b6036 100644
--- a/addons/web_mobile/po/da.po
+++ b/addons/web_mobile/i18n/da.po
diff --git a/addons/web_mobile/po/de.po b/addons/web_mobile/i18n/de.po
index 59e44b5f8af..59e44b5f8af 100644
--- a/addons/web_mobile/po/de.po
+++ b/addons/web_mobile/i18n/de.po
diff --git a/addons/web_mobile/po/es.po b/addons/web_mobile/i18n/es.po
index 4c959d16f16..4c959d16f16 100644
--- a/addons/web_mobile/po/es.po
+++ b/addons/web_mobile/i18n/es.po
diff --git a/addons/web_mobile/po/es_EC.po b/addons/web_mobile/i18n/es_EC.po
index a2f0700a8d3..a2f0700a8d3 100644
--- a/addons/web_mobile/po/es_EC.po
+++ b/addons/web_mobile/i18n/es_EC.po
diff --git a/addons/web_mobile/po/et.po b/addons/web_mobile/i18n/et.po
index aef8a49c43c..aef8a49c43c 100644
--- a/addons/web_mobile/po/et.po
+++ b/addons/web_mobile/i18n/et.po
diff --git a/addons/web_mobile/po/fr.po b/addons/web_mobile/i18n/fr.po
index 091a24d6f69..091a24d6f69 100644
--- a/addons/web_mobile/po/fr.po
+++ b/addons/web_mobile/i18n/fr.po
diff --git a/addons/web_mobile/po/gl.po b/addons/web_mobile/i18n/gl.po
index bfc22cae6ea..bfc22cae6ea 100644
--- a/addons/web_mobile/po/gl.po
+++ b/addons/web_mobile/i18n/gl.po
diff --git a/addons/web_mobile/po/hr.po b/addons/web_mobile/i18n/hr.po
index 606df0036a9..606df0036a9 100644
--- a/addons/web_mobile/po/hr.po
+++ b/addons/web_mobile/i18n/hr.po
diff --git a/addons/web_mobile/po/it.po b/addons/web_mobile/i18n/it.po
index 540d25f96d1..540d25f96d1 100644
--- a/addons/web_mobile/po/it.po
+++ b/addons/web_mobile/i18n/it.po
diff --git a/addons/web_mobile/po/nl.po b/addons/web_mobile/i18n/nl.po
index 77815bde7ac..77815bde7ac 100644
--- a/addons/web_mobile/po/nl.po
+++ b/addons/web_mobile/i18n/nl.po
diff --git a/addons/web_mobile/po/nl_BE.po b/addons/web_mobile/i18n/nl_BE.po
index 6fde2f2da14..6fde2f2da14 100644
--- a/addons/web_mobile/po/nl_BE.po
+++ b/addons/web_mobile/i18n/nl_BE.po
diff --git a/addons/web_mobile/po/pl.po b/addons/web_mobile/i18n/pl.po
index 1b6a0acce84..1b6a0acce84 100644
--- a/addons/web_mobile/po/pl.po
+++ b/addons/web_mobile/i18n/pl.po
diff --git a/addons/web_mobile/po/pt.po b/addons/web_mobile/i18n/pt.po
index 39ec9fb5e67..39ec9fb5e67 100644
--- a/addons/web_mobile/po/pt.po
+++ b/addons/web_mobile/i18n/pt.po
diff --git a/addons/web_mobile/po/pt_BR.po b/addons/web_mobile/i18n/pt_BR.po
index 2532c63ed24..2532c63ed24 100644
--- a/addons/web_mobile/po/pt_BR.po
+++ b/addons/web_mobile/i18n/pt_BR.po
diff --git a/addons/web_mobile/po/ru.po b/addons/web_mobile/i18n/ru.po
index 9545e935e0e..9545e935e0e 100644
--- a/addons/web_mobile/po/ru.po
+++ b/addons/web_mobile/i18n/ru.po
diff --git a/addons/web_mobile/po/sk.po b/addons/web_mobile/i18n/sk.po
index bab3783deb1..bab3783deb1 100644
--- a/addons/web_mobile/po/sk.po
+++ b/addons/web_mobile/i18n/sk.po
diff --git a/addons/web_mobile/po/sl.po b/addons/web_mobile/i18n/sl.po
index 11478f91aa3..11478f91aa3 100644
--- a/addons/web_mobile/po/sl.po
+++ b/addons/web_mobile/i18n/sl.po
diff --git a/addons/web_mobile/po/sq.po b/addons/web_mobile/i18n/sq.po
index 1123267f093..1123267f093 100644
--- a/addons/web_mobile/po/sq.po
+++ b/addons/web_mobile/i18n/sq.po
diff --git a/addons/web_mobile/po/tr.po b/addons/web_mobile/i18n/tr.po
index cf82c9baa42..cf82c9baa42 100644
--- a/addons/web_mobile/po/tr.po
+++ b/addons/web_mobile/i18n/tr.po
diff --git a/addons/web_mobile/po/uk.po b/addons/web_mobile/i18n/uk.po
index fe1f4416f6f..fe1f4416f6f 100644
--- a/addons/web_mobile/po/uk.po
+++ b/addons/web_mobile/i18n/uk.po
diff --git a/addons/web_mobile/i18n/web_mobile.pot b/addons/web_mobile/i18n/web_mobile.pot
new file mode 100644
index 00000000000..04ffe4a2ff6
--- /dev/null
+++ b/addons/web_mobile/i18n/web_mobile.pot
@@ -0,0 +1,86 @@
+# Translations template for PROJECT.
+# Copyright (C) 2012 ORGANIZATION
+# This file is distributed under the same license as the PROJECT project.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PROJECT VERSION\n"
+"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
+"POT-Creation-Date: 2012-02-01 16:37+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@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.6\n"
+
+#. openerp-web
+#: addons/web_mobile/static/src/xml/web_mobile.xml:17
+msgid "OpenERP"
+msgstr ""
+
+#. openerp-web
+#: addons/web_mobile/static/src/xml/web_mobile.xml:22
+msgid "Database:"
+msgstr ""
+
+#. openerp-web
+#: addons/web_mobile/static/src/xml/web_mobile.xml:30
+msgid "Login:"
+msgstr ""
+
+#. openerp-web
+#: addons/web_mobile/static/src/xml/web_mobile.xml:32
+msgid "Password:"
+msgstr ""
+
+#. openerp-web
+#: addons/web_mobile/static/src/xml/web_mobile.xml:34
+msgid "Login"
+msgstr ""
+
+#. openerp-web
+#: addons/web_mobile/static/src/xml/web_mobile.xml:36
+msgid "Bad username or password"
+msgstr ""
+
+#. openerp-web
+#: addons/web_mobile/static/src/xml/web_mobile.xml:42
+msgid "Powered by openerp.com"
+msgstr ""
+
+#. openerp-web
+#: addons/web_mobile/static/src/xml/web_mobile.xml:57
+msgid "Favourite"
+msgstr ""
+
+#. openerp-web
+#: addons/web_mobile/static/src/xml/web_mobile.xml:58
+msgid "Preference"
+msgstr ""
+
+#. openerp-web
+#: addons/web_mobile/static/src/xml/web_mobile.xml:123
+msgid "Logout"
+msgstr ""
+
+#. openerp-web
+#: addons/web_mobile/static/src/xml/web_mobile.xml:132
+msgid "There are no records to show."
+msgstr ""
+
+#. openerp-web
+#: addons/web_mobile/static/src/xml/web_mobile.xml:264
+#: addons/web_mobile/static/src/xml/web_mobile.xml:268
+msgid "On"
+msgstr ""
+
+#. openerp-web
+#: addons/web_mobile/static/src/xml/web_mobile.xml:265
+#: addons/web_mobile/static/src/xml/web_mobile.xml:269
+msgid "Off"
+msgstr ""
+
diff --git a/addons/web_mobile/po/zh_CN.po b/addons/web_mobile/i18n/zh_CN.po
index fb44ad87bbd..fb44ad87bbd 100644
--- a/addons/web_mobile/po/zh_CN.po
+++ b/addons/web_mobile/i18n/zh_CN.po
diff --git a/addons/web_mobile/po/web_mobile.pot b/addons/web_mobile/po/web_mobile.pot
deleted file mode 100644
index 283905ff3ed..00000000000
--- a/addons/web_mobile/po/web_mobile.pot
+++ /dev/null
@@ -1,75 +0,0 @@
-# Translations template for PROJECT.
-# Copyright (C) 2011 ORGANIZATION
-# This file is distributed under the same license as the PROJECT project.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2011.
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: PROJECT VERSION\n"
-"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2011-12-20 18:48+0100\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@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.6\n"
-
-#: addons/web_mobile/static/src/xml/web_mobile.xml:0
-msgid "OpenERP"
-msgstr ""
-
-#: addons/web_mobile/static/src/xml/web_mobile.xml:0
-msgid "Database:"
-msgstr ""
-
-#: addons/web_mobile/static/src/xml/web_mobile.xml:0
-msgid "Login:"
-msgstr ""
-
-#: addons/web_mobile/static/src/xml/web_mobile.xml:0
-msgid "Password:"
-msgstr ""
-
-#: addons/web_mobile/static/src/xml/web_mobile.xml:0
-msgid "Login"
-msgstr ""
-
-#: addons/web_mobile/static/src/xml/web_mobile.xml:0
-msgid "Bad username or password"
-msgstr ""
-
-#: addons/web_mobile/static/src/xml/web_mobile.xml:0
-msgid "Powered by openerp.com"
-msgstr ""
-
-#: addons/web_mobile/static/src/xml/web_mobile.xml:0
-msgid "Favourite"
-msgstr ""
-
-#: addons/web_mobile/static/src/xml/web_mobile.xml:0
-msgid "Preference"
-msgstr ""
-
-#: addons/web_mobile/static/src/xml/web_mobile.xml:0
-msgid "Logout"
-msgstr ""
-
-#: addons/web_mobile/static/src/xml/web_mobile.xml:0
-msgid "There are no records to show."
-msgstr ""
-
-#: addons/web_mobile/static/src/xml/web_mobile.xml:0
-msgid ":"
-msgstr ""
-
-#: addons/web_mobile/static/src/xml/web_mobile.xml:0
-msgid "On"
-msgstr ""
-
-#: addons/web_mobile/static/src/xml/web_mobile.xml:0
-msgid "Off"
-msgstr ""
-