summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2014-03-10 08:33:01 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2014-03-10 08:33:26 (GMT)
commit37963d500120684a4af9b4b5fba019e01195bec6 (patch)
tree03a1c44eb7e981ca1848a04af77e2bf10e49324b
parent1c831ec4c4b5a816602d371a171d1af818b012b9 (diff)
downloadcollective.dms.batchimport-37963d500120684a4af9b4b5fba019e01195bec6.zip
collective.dms.batchimport-37963d500120684a4af9b4b5fba019e01195bec6.tar.gz
collective.dms.batchimport-37963d500120684a4af9b4b5fba019e01195bec6.tar.bz2
add translation support
-rw-r--r--src/collective/dms/batchimport/configure.zcml1
-rw-r--r--src/collective/dms/batchimport/locales/fr/LC_MESSAGES/collective.dms.batchimport.po74
-rwxr-xr-xsrc/collective/dms/batchimport/locales/update.sh6
3 files changed, 81 insertions, 0 deletions
diff --git a/src/collective/dms/batchimport/configure.zcml b/src/collective/dms/batchimport/configure.zcml
index 1eb3999..d728c8b 100644
--- a/src/collective/dms/batchimport/configure.zcml
+++ b/src/collective/dms/batchimport/configure.zcml
@@ -11,6 +11,7 @@
<include package="collective.dms.mailcontent" />
<grok:grok package="." />
+ <i18n:registerTranslations directory="locales" />
<browser:view
name="batchimport"
diff --git a/src/collective/dms/batchimport/locales/fr/LC_MESSAGES/collective.dms.batchimport.po b/src/collective/dms/batchimport/locales/fr/LC_MESSAGES/collective.dms.batchimport.po
new file mode 100644
index 0000000..5f057cd
--- /dev/null
+++ b/src/collective/dms/batchimport/locales/fr/LC_MESSAGES/collective.dms.batchimport.po
@@ -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"
+
diff --git a/src/collective/dms/batchimport/locales/update.sh b/src/collective/dms/batchimport/locales/update.sh
new file mode 100755
index 0000000..b832e84
--- /dev/null
+++ b/src/collective/dms/batchimport/locales/update.sh
@@ -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