add translation support

This commit is contained in:
Frédéric Péters 2014-03-10 09:33:01 +01:00
parent 1c831ec4c4
commit 37963d5001
3 changed files with 81 additions and 0 deletions

View File

@ -11,6 +11,7 @@
<include package="collective.dms.mailcontent" />
<grok:grok package="." />
<i18n:registerTranslations directory="locales" />
<browser:view
name="batchimport"

View File

@ -0,0 +1,74 @@
# --- PLEASE EDIT THE LINES BELOW CORRECTLY ---
# SOME DESCRIPTIVE TITLE.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2014-03-10 08:32+0000\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"
"Plural-Forms: nplurals=1; plural=0\n"
"Language-Code: en\n"
"Language-Name: English\n"
"Preferred-Encodings: utf-8 latin1\n"
"Domain: collective.dms.batchimport\n"
#: ../profiles/default/controlpanel.xml
#: ../profiles/testing/controlpanel.xml
msgid "Batch Import"
msgstr "Import en masse"
#: ../batchimport.py:172
msgid "Batch Import Settings"
msgstr "Paramétrage de l'import en masse"
#: ../batchimport.py:34
msgid "Code"
msgstr "Code"
#: ../batchimport.py:46
msgid "Code to Portal Type Mapping"
msgstr "Correspondance entre code et type de contenu"
#: ../batchimport.py:40
msgid "FS Root Directory"
msgstr "Racine sur le système de fichiers"
#: ../batchimport.py:43
msgid "FS Root Directory for processed files"
msgstr "Racine sur le système de fichiers pour les fichiers traités"
#: ../fileimporter.py:25
msgid "File"
msgstr "Fichier"
#: ../fileimporter.py:62
msgid "Import"
msgstr "Importer"
#: ../batchimport.py:47
msgid "Mapping"
msgstr "Correspondance"
#: ../batchimport.py:35
msgid "Portal Type"
msgstr "Type de contenu"
#: ../utils.py:58
msgid "Scanned Mail"
msgstr "Document scanné"
#. Default: "Batch Import settings"
#: ../controlpanel.pt:13
msgid "heading_themis_settings"
msgstr "Paramétrage de l'import en masse"
#. Default: "Up to Site Setup"
#: ../controlpanel.pt:16
msgid "label_up_to_plone_setup"
msgstr "Retour à la configuration générale"

View File

@ -0,0 +1,6 @@
domain=collective.dms.batchimport
i18ndude rebuild-pot --pot $domain.pot --create $domain ../
i18ndude sync --pot $domain.pot */LC_MESSAGES/$domain.po
#i18ndude rebuild-pot --pot plone.pot --create plone ../profiles
#i18ndude sync --pot plone.pot */*/plone.po