]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Adding translation skeletons
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Tue, 7 Mar 2017 07:53:12 +0000 (08:53 +0100)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Tue, 7 Mar 2017 07:53:12 +0000 (08:53 +0100)
i18n/adao.pro [new file with mode: 0644]
i18n/adao_en.ts [new file with mode: 0644]
i18n/adao_fr.ts [new file with mode: 0644]

diff --git a/i18n/adao.pro b/i18n/adao.pro
new file mode 100644 (file)
index 0000000..1fc6ebe
--- /dev/null
@@ -0,0 +1,21 @@
+# Copy/paste the first lines to generate the list of source files
+#
+# clear ; echo ; echo -e "#\n# Debut des sources" ; echo ; \
+# echo -e "TRANSLATIONS += adao_fr.ts\n\nCODECFORTR = utf-8\n" ; \
+# find .. -name '*.ui' | sed 's#^\.#FORMS += .#g' ; \
+# find ../bin -name '*.py' | sed 's#^\.#SOURCES += .#g' ; \
+# find ../src -name '*.py' | grep -v tests/ | sed 's#^\.#SOURCES += .#g' ; \
+# echo
+#
+# Create/update the .ts files with:
+# pylupdate5 i18n/adao.pro
+# geany i18n/adao_*.ts # Pour traiter si necessaire les "obsolete"
+# linguist i18n/adao_*.ts
+# lrelease i18n/adao.pro
+#
+# Debut des sources
+
+TRANSLATIONS += adao_en.ts
+TRANSLATIONS += adao_fr.ts
+
+CODECFORTR = utf-8
diff --git a/i18n/adao_en.ts b/i18n/adao_en.ts
new file mode 100644 (file)
index 0000000..fab0d30
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS><TS version="2.0" language="en" sourcelanguage="">
+<context>
+    <name>@default</name>
+    <message>
+        <location filename="." line="0"/>
+        <source>ASSIMILATION_STUDY</source>
+        <translation type="obsolete">Data assimilation or optimization</translation>
+    </message>
+    <message>
+        <location filename="." line="0"/>
+        <source>CHECKING_STUDY</source>
+        <translation type="obsolete">Verification</translation>
+    </message>
+</context>
+</TS>
diff --git a/i18n/adao_fr.ts b/i18n/adao_fr.ts
new file mode 100644 (file)
index 0000000..5b38988
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS><TS version="2.0" language="fr" sourcelanguage="">
+<context>
+    <name>@default</name>
+    <message>
+        <location filename="." line="0"/>
+        <source>ASSIMILATION_STUDY</source>
+        <translation type="obsolete">Assimilation de données ou optimisation</translation>
+    </message>
+    <message>
+        <location filename="." line="0"/>
+        <source>CHECKING_STUDY</source>
+        <translation type="obsolete">Vérification</translation>
+    </message>
+</context>
+</TS>