diff options
| author | Olivier Dony <odo@openerp.com> | 2012-02-02 15:56:03 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2012-02-02 15:56:03 +0100 |
| commit | 7ebc5bdba308c376fcf53f2d6da7bc7beb41be2d (patch) | |
| tree | f4457444c9bbd9e15441e87ab0b83f2afc8cc0b7 /addons/web_dashboard | |
| parent | 7e2bb94661881e41aa98026410cbbe86e9064055 (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_dashboard')
| -rw-r--r-- | addons/web_dashboard/i18n/ar.po (renamed from addons/web_dashboard/po/ar.po) | 0 | ||||
| -rw-r--r-- | addons/web_dashboard/i18n/bn.po (renamed from addons/web_dashboard/po/bn.po) | 0 | ||||
| -rw-r--r-- | addons/web_dashboard/i18n/da.po (renamed from addons/web_dashboard/po/da.po) | 0 | ||||
| -rw-r--r-- | addons/web_dashboard/i18n/de.po (renamed from addons/web_dashboard/po/de.po) | 0 | ||||
| -rw-r--r-- | addons/web_dashboard/i18n/es.po (renamed from addons/web_dashboard/po/es.po) | 0 | ||||
| -rw-r--r-- | addons/web_dashboard/i18n/es_EC.po (renamed from addons/web_dashboard/po/es_EC.po) | 0 | ||||
| -rw-r--r-- | addons/web_dashboard/i18n/et.po (renamed from addons/web_dashboard/po/et.po) | 0 | ||||
| -rw-r--r-- | addons/web_dashboard/i18n/fr.po (renamed from addons/web_dashboard/po/fr.po) | 0 | ||||
| -rw-r--r-- | addons/web_dashboard/i18n/gl.po (renamed from addons/web_dashboard/po/gl.po) | 0 | ||||
| -rw-r--r-- | addons/web_dashboard/i18n/hr.po (renamed from addons/web_dashboard/po/hr.po) | 0 | ||||
| -rw-r--r-- | addons/web_dashboard/i18n/it.po (renamed from addons/web_dashboard/po/it.po) | 0 | ||||
| -rw-r--r-- | addons/web_dashboard/i18n/nl.po (renamed from addons/web_dashboard/po/nl.po) | 0 | ||||
| -rw-r--r-- | addons/web_dashboard/i18n/nl_BE.po (renamed from addons/web_dashboard/po/nl_BE.po) | 0 | ||||
| -rw-r--r-- | addons/web_dashboard/i18n/pl.po (renamed from addons/web_dashboard/po/pl.po) | 0 | ||||
| -rw-r--r-- | addons/web_dashboard/i18n/pt_BR.po (renamed from addons/web_dashboard/po/pt_BR.po) | 0 | ||||
| -rw-r--r-- | addons/web_dashboard/i18n/ru.po (renamed from addons/web_dashboard/po/ru.po) | 0 | ||||
| -rw-r--r-- | addons/web_dashboard/i18n/sk.po (renamed from addons/web_dashboard/po/sk.po) | 0 | ||||
| -rw-r--r-- | addons/web_dashboard/i18n/sl.po (renamed from addons/web_dashboard/po/sl.po) | 0 | ||||
| -rw-r--r-- | addons/web_dashboard/i18n/sq.po (renamed from addons/web_dashboard/po/sq.po) | 0 | ||||
| -rw-r--r-- | addons/web_dashboard/i18n/tr.po (renamed from addons/web_dashboard/po/tr.po) | 0 | ||||
| -rw-r--r-- | addons/web_dashboard/i18n/web_dashboard.pot | 86 | ||||
| -rw-r--r-- | addons/web_dashboard/i18n/zh_CN.po (renamed from addons/web_dashboard/po/zh_CN.po) | 0 | ||||
| -rw-r--r-- | addons/web_dashboard/po/web_dashboard.pot | 77 |
23 files changed, 86 insertions, 77 deletions
diff --git a/addons/web_dashboard/po/ar.po b/addons/web_dashboard/i18n/ar.po index a007bd1ccf1..a007bd1ccf1 100644 --- a/addons/web_dashboard/po/ar.po +++ b/addons/web_dashboard/i18n/ar.po diff --git a/addons/web_dashboard/po/bn.po b/addons/web_dashboard/i18n/bn.po index 71840018fe8..71840018fe8 100644 --- a/addons/web_dashboard/po/bn.po +++ b/addons/web_dashboard/i18n/bn.po diff --git a/addons/web_dashboard/po/da.po b/addons/web_dashboard/i18n/da.po index 0dc5ce2c855..0dc5ce2c855 100644 --- a/addons/web_dashboard/po/da.po +++ b/addons/web_dashboard/i18n/da.po diff --git a/addons/web_dashboard/po/de.po b/addons/web_dashboard/i18n/de.po index 2ff4dfbd677..2ff4dfbd677 100644 --- a/addons/web_dashboard/po/de.po +++ b/addons/web_dashboard/i18n/de.po diff --git a/addons/web_dashboard/po/es.po b/addons/web_dashboard/i18n/es.po index 0acf067c448..0acf067c448 100644 --- a/addons/web_dashboard/po/es.po +++ b/addons/web_dashboard/i18n/es.po diff --git a/addons/web_dashboard/po/es_EC.po b/addons/web_dashboard/i18n/es_EC.po index 91ffe7b249a..91ffe7b249a 100644 --- a/addons/web_dashboard/po/es_EC.po +++ b/addons/web_dashboard/i18n/es_EC.po diff --git a/addons/web_dashboard/po/et.po b/addons/web_dashboard/i18n/et.po index 8ea958b46ea..8ea958b46ea 100644 --- a/addons/web_dashboard/po/et.po +++ b/addons/web_dashboard/i18n/et.po diff --git a/addons/web_dashboard/po/fr.po b/addons/web_dashboard/i18n/fr.po index 60c91e27101..60c91e27101 100644 --- a/addons/web_dashboard/po/fr.po +++ b/addons/web_dashboard/i18n/fr.po diff --git a/addons/web_dashboard/po/gl.po b/addons/web_dashboard/i18n/gl.po index 772d5a5563b..772d5a5563b 100644 --- a/addons/web_dashboard/po/gl.po +++ b/addons/web_dashboard/i18n/gl.po diff --git a/addons/web_dashboard/po/hr.po b/addons/web_dashboard/i18n/hr.po index b3366387803..b3366387803 100644 --- a/addons/web_dashboard/po/hr.po +++ b/addons/web_dashboard/i18n/hr.po diff --git a/addons/web_dashboard/po/it.po b/addons/web_dashboard/i18n/it.po index 05dec36411c..05dec36411c 100644 --- a/addons/web_dashboard/po/it.po +++ b/addons/web_dashboard/i18n/it.po diff --git a/addons/web_dashboard/po/nl.po b/addons/web_dashboard/i18n/nl.po index 0538f0c7c44..0538f0c7c44 100644 --- a/addons/web_dashboard/po/nl.po +++ b/addons/web_dashboard/i18n/nl.po diff --git a/addons/web_dashboard/po/nl_BE.po b/addons/web_dashboard/i18n/nl_BE.po index 0d6e7629f32..0d6e7629f32 100644 --- a/addons/web_dashboard/po/nl_BE.po +++ b/addons/web_dashboard/i18n/nl_BE.po diff --git a/addons/web_dashboard/po/pl.po b/addons/web_dashboard/i18n/pl.po index 961e4a94a4d..961e4a94a4d 100644 --- a/addons/web_dashboard/po/pl.po +++ b/addons/web_dashboard/i18n/pl.po diff --git a/addons/web_dashboard/po/pt_BR.po b/addons/web_dashboard/i18n/pt_BR.po index 615b35f2306..615b35f2306 100644 --- a/addons/web_dashboard/po/pt_BR.po +++ b/addons/web_dashboard/i18n/pt_BR.po diff --git a/addons/web_dashboard/po/ru.po b/addons/web_dashboard/i18n/ru.po index 71028c2f0db..71028c2f0db 100644 --- a/addons/web_dashboard/po/ru.po +++ b/addons/web_dashboard/i18n/ru.po diff --git a/addons/web_dashboard/po/sk.po b/addons/web_dashboard/i18n/sk.po index 986baf69981..986baf69981 100644 --- a/addons/web_dashboard/po/sk.po +++ b/addons/web_dashboard/i18n/sk.po diff --git a/addons/web_dashboard/po/sl.po b/addons/web_dashboard/i18n/sl.po index 39aee7da594..39aee7da594 100644 --- a/addons/web_dashboard/po/sl.po +++ b/addons/web_dashboard/i18n/sl.po diff --git a/addons/web_dashboard/po/sq.po b/addons/web_dashboard/i18n/sq.po index d0a0140667a..d0a0140667a 100644 --- a/addons/web_dashboard/po/sq.po +++ b/addons/web_dashboard/i18n/sq.po diff --git a/addons/web_dashboard/po/tr.po b/addons/web_dashboard/i18n/tr.po index ae960f4dc43..ae960f4dc43 100644 --- a/addons/web_dashboard/po/tr.po +++ b/addons/web_dashboard/i18n/tr.po diff --git a/addons/web_dashboard/i18n/web_dashboard.pot b/addons/web_dashboard/i18n/web_dashboard.pot new file mode 100644 index 00000000000..976dccc2566 --- /dev/null +++ b/addons/web_dashboard/i18n/web_dashboard.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_dashboard/static/src/js/dashboard.js:63 +msgid "Edit Layout" +msgstr "" + +#. openerp-web +#: addons/web_dashboard/static/src/js/dashboard.js:109 +msgid "Are you sure you want to remove this item ?" +msgstr "" + +#. openerp-web +#: addons/web_dashboard/static/src/xml/web_dashboard.xml:6 +msgid "Reset" +msgstr "" + +#. openerp-web +#: addons/web_dashboard/static/src/xml/web_dashboard.xml:10 +msgid "Change Layout" +msgstr "" + +#. openerp-web +#: addons/web_dashboard/static/src/xml/web_dashboard.xml:27 +msgid " " +msgstr "" + +#. openerp-web +#: addons/web_dashboard/static/src/xml/web_dashboard.xml:28 +msgid "Create" +msgstr "" + +#. openerp-web +#: addons/web_dashboard/static/src/xml/web_dashboard.xml:39 +msgid "Choose dashboard layout" +msgstr "" + +#. openerp-web +#: addons/web_dashboard/static/src/xml/web_dashboard.xml:62 +msgid "progress:" +msgstr "" + +#. openerp-web +#: addons/web_dashboard/static/src/xml/web_dashboard.xml:67 +msgid "" +"Click on the functionalites listed below to launch them and configure " +"your system" +msgstr "" + +#. openerp-web +#: addons/web_dashboard/static/src/xml/web_dashboard.xml:110 +msgid "Welcome to OpenERP" +msgstr "" + +#. openerp-web +#: addons/web_dashboard/static/src/xml/web_dashboard.xml:118 +msgid "Remember to bookmark" +msgstr "" + +#. openerp-web +#: addons/web_dashboard/static/src/xml/web_dashboard.xml:119 +msgid "This url" +msgstr "" + +#. openerp-web +#: addons/web_dashboard/static/src/xml/web_dashboard.xml:121 +msgid "Your login:" +msgstr "" + diff --git a/addons/web_dashboard/po/zh_CN.po b/addons/web_dashboard/i18n/zh_CN.po index f201f6994b2..f201f6994b2 100644 --- a/addons/web_dashboard/po/zh_CN.po +++ b/addons/web_dashboard/i18n/zh_CN.po diff --git a/addons/web_dashboard/po/web_dashboard.pot b/addons/web_dashboard/po/web_dashboard.pot deleted file mode 100644 index b4d47c28975..00000000000 --- a/addons/web_dashboard/po/web_dashboard.pot +++ /dev/null @@ -1,77 +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_dashboard/static/src/js/dashboard.js:63 -msgid "Edit Layout" -msgstr "" - -#: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 -msgid "Reset" -msgstr "" - -#: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 -msgid "Change layout" -msgstr "" - -#: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 -msgid " " -msgstr "" - -#: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 -msgid "Create" -msgstr "" - -#: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 -msgid "Choose dashboard layout" -msgstr "" - -#: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 -msgid "progress:" -msgstr "" - -#: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 -msgid "%" -msgstr "" - -#: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 -msgid "" -"Click on the functionalites listed below to launch them and configure " -"your system" -msgstr "" - -#: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 -msgid "Welcome to OpenERP" -msgstr "" - -#: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 -msgid "Remember to bookmark this page." -msgstr "" - -#: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 -msgid "Remember your login:" -msgstr "" - -#: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 -msgid "Choose the first OpenERP Application you want to install.." -msgstr "" - -#: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 -msgid "Please choose the first application to install." -msgstr "" - |
