]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Step 5. Normally the last.
authorAnthony Geay <anthony.geay@edf.fr>
Tue, 23 Feb 2016 09:12:15 +0000 (10:12 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Tue, 23 Feb 2016 09:12:15 +0000 (10:12 +0100)
src/PyConsole/CMakeLists.txt
src/PyConsole/resources/PyConsole_msg_en.ts [new file with mode: 0644]
src/PyConsole/resources/PyConsole_msg_fr.ts [new file with mode: 0644]
src/PyConsole/resources/PyConsole_msg_ja.ts [new file with mode: 0644]
src/PyConsoleBase/CMakeLists.txt
src/PyConsoleBase/resources/PyConsoleBase_msg_en.ts [new file with mode: 0644]
src/PyConsoleBase/resources/PyConsoleBase_msg_fr.ts [new file with mode: 0644]
src/PyConsoleBase/resources/PyConsoleBase_msg_ja.ts [new file with mode: 0644]
src/PyConsoleBase/resources/PyConsole_msg_en.ts [deleted file]
src/PyConsoleBase/resources/PyConsole_msg_fr.ts [deleted file]
src/PyConsoleBase/resources/PyConsole_msg_ja.ts [deleted file]

index 8516a1280331b500de1376f4734a7d66629df17b..851c8ebbec5abfc5611eb96afbdb8ac195a36799 100755 (executable)
@@ -59,6 +59,13 @@ SET(PyConsole_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
 # --- resources ---
 
 # --- sources ---
+# resource files / to be processed by lrelease
+
+SET(_ts_RESOURCES
+  resources/PyConsole_msg_en.ts
+  resources/PyConsole_msg_fr.ts
+  resources/PyConsole_msg_ja.ts
+)
 
 # sources / moc wrappings
 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
@@ -80,4 +87,4 @@ TARGET_LINK_LIBRARIES(PyConsole ${_link_LIBRARIES})
 INSTALL(TARGETS PyConsole EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
 
 INSTALL(FILES ${PyConsole_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
-
+QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
diff --git a/src/PyConsole/resources/PyConsole_msg_en.ts b/src/PyConsole/resources/PyConsole_msg_en.ts
new file mode 100644 (file)
index 0000000..a2d4aae
--- /dev/null
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="en_US">
+<context>
+    <name>PyConsole_Editor</name>
+    <message>
+        <source>TOT_DUMP_PYCOMMANDS</source>
+        <translation>Dump commands</translation>
+    </message>
+    <message>
+        <source>TOT_SAVE_PYLOG</source>
+        <translation>Save log</translation>
+    </message>
+    <message>
+        <source>PYTHON_FILES_FILTER</source>
+        <translation>PYTHON Files (*.py)</translation>
+    </message>
+    <message>
+        <source>LOG_FILES_FILTER</source>
+        <translation>Log files (*.log *.txt)</translation>
+    </message>
+    <message>
+        <source>ERR_FILE_NOT_WRITABLE</source>
+        <translation>File is not writable!</translation>
+    </message>
+</context>
+</TS>
diff --git a/src/PyConsole/resources/PyConsole_msg_fr.ts b/src/PyConsole/resources/PyConsole_msg_fr.ts
new file mode 100644 (file)
index 0000000..905d68f
--- /dev/null
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="fr_FR">
+<context>
+    <name>PyConsole_Editor</name>
+    <message>
+        <source>TOT_DUMP_PYCOMMANDS</source>
+        <translation>&amp;Générer le script des commandes</translation>
+    </message>
+    <message>
+        <source>TOT_SAVE_PYLOG</source>
+        <translation>Sauver la trace</translation>
+    </message>
+    <message>
+        <source>PYTHON_FILES_FILTER</source>
+        <translation>Fichiers PYTHON (*.py)</translation>
+    </message>
+    <message>
+        <source>LOG_FILES_FILTER</source>
+        <translation>Fichiers de trace (*.log *.txt)</translation>
+    </message>
+    <message>
+        <source>ERR_FILE_NOT_WRITABLE</source>
+        <translation>Le fichier n'est pas accessible en écriture!</translation>
+    </message>
+</context>
+</TS>
diff --git a/src/PyConsole/resources/PyConsole_msg_ja.ts b/src/PyConsole/resources/PyConsole_msg_ja.ts
new file mode 100644 (file)
index 0000000..dd8b48e
--- /dev/null
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="ja" sourcelanguage="en">
+  <context>
+    <name>PyConsole_Editor</name>
+    <message>
+      <source>TOT_DUMP_PYCOMMANDS</source>
+      <translation>スクリプト コマンドを生成します。</translation>
+    </message>
+    <message>
+      <source>TOT_SAVE_PYLOG</source>
+      <translation>ログの保存</translation>
+    </message>
+    <message>
+      <source>PYTHON_FILES_FILTER</source>
+      <translation>ファイル (*.py) PYTHON</translation>
+    </message>
+    <message>
+      <source>LOG_FILES_FILTER</source>
+      <translation>ログファイル (*.log *.txt)</translation>
+    </message>
+    <message>
+      <source>ERR_FILE_NOT_WRITABLE</source>
+      <translation>ファイルが書き込み禁止です!</translation>
+    </message>
+  </context>
+</TS>
index c19e06caaf4a3ae18fb72f7a950a9684c7dcded7..3e06a3fee8952f5c07c24a99e6ab55655ade9214 100755 (executable)
@@ -62,9 +62,9 @@ SET(PyConsoleBase_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
 
 # resource files / to be processed by lrelease
 SET(_ts_RESOURCES
-  resources/PyConsole_msg_en.ts
-  resources/PyConsole_msg_fr.ts
-  resources/PyConsole_msg_ja.ts
+  resources/PyConsoleBase_msg_en.ts
+  resources/PyConsoleBase_msg_fr.ts
+  resources/PyConsoleBase_msg_ja.ts
 )
 
 # --- sources ---
diff --git a/src/PyConsoleBase/resources/PyConsoleBase_msg_en.ts b/src/PyConsoleBase/resources/PyConsoleBase_msg_en.ts
new file mode 100644 (file)
index 0000000..8ddc1ad
--- /dev/null
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="en_US">
+<context>
+    <name>PyConsole_ConsoleBase</name>
+    <message>
+        <location filename="../PyConsole_ConsoleBase.cxx" line="216"/>
+        <source>EDIT_COPY_CMD</source>
+        <translation>&amp;Copy</translation>
+    </message>
+    <message>
+        <location filename="../PyConsole_ConsoleBase.cxx" line="221"/>
+        <source>EDIT_PASTE_CMD</source>
+        <translation>&amp;Paste</translation>
+    </message>
+    <message>
+        <location filename="../PyConsole_ConsoleBase.cxx" line="226"/>
+        <source>EDIT_CLEAR_CMD</source>
+        <translation>Clea&amp;r</translation>
+    </message>
+    <message>
+        <location filename="../PyConsole_ConsoleBase.cxx" line="231"/>
+        <source>EDIT_SELECTALL_CMD</source>
+        <translation>Select &amp;All</translation>
+    </message>
+    <message>
+        <source>EDIT_DUMPCOMMANDS_CMD</source>
+        <translation>D&amp;ump Commands</translation>
+    </message>
+    <message>
+      <source>EDIT_STARTLOG_CMD</source>
+        <translation>Start &amp;Log</translation>
+    </message>
+    <message>
+      <source>EDIT_STOPLOG_CMD</source>
+        <translation>Stop &amp;Log</translation>
+    </message>
+</context>
+</TS>
diff --git a/src/PyConsoleBase/resources/PyConsoleBase_msg_fr.ts b/src/PyConsoleBase/resources/PyConsoleBase_msg_fr.ts
new file mode 100644 (file)
index 0000000..624e689
--- /dev/null
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="fr_FR">
+<context>
+    <name>PyConsole_ConsoleBase</name>
+    <message>
+        <location filename="../PyConsole_ConsoleBase.cxx" line="216"/>
+        <source>EDIT_COPY_CMD</source>
+        <translation>&amp;Copier</translation>
+    </message>
+    <message>
+        <location filename="../PyConsole_ConsoleBase.cxx" line="221"/>
+        <source>EDIT_PASTE_CMD</source>
+        <translation>C&amp;oller</translation>
+    </message>
+    <message>
+        <location filename="../PyConsole_ConsoleBase.cxx" line="226"/>
+        <source>EDIT_CLEAR_CMD</source>
+        <translation>&amp;Effacer</translation>
+    </message>
+    <message>
+        <location filename="../PyConsole_ConsoleBase.cxx" line="231"/>
+        <source>EDIT_SELECTALL_CMD</source>
+        <translation>&amp;Tout sélectionner</translation>
+    </message>
+    <message>
+        <source>EDIT_DUMPCOMMANDS_CMD</source>
+        <translation>&amp;Générer le script des commandes</translation>
+    </message>
+    <message>
+        <source>EDIT_STARTLOG_CMD</source>
+        <translation>Démarrer une &amp;trace</translation>
+    </message>
+    <message>
+        <source>EDIT_STOPLOG_CMD</source>
+        <translation>Arrêter la &amp;trace</translation>
+    </message>
+</context>
+</TS>
diff --git a/src/PyConsoleBase/resources/PyConsoleBase_msg_ja.ts b/src/PyConsoleBase/resources/PyConsoleBase_msg_ja.ts
new file mode 100644 (file)
index 0000000..e7a98c0
--- /dev/null
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="ja" sourcelanguage="en">
+  <context>
+    <name>PyConsole_ConsoleBase</name>
+    <message>
+      <location filename="../PyConsole_ConsoleBase.cxx" line="216"/>
+      <source>EDIT_COPY_CMD</source>
+      <translation>コピー(&amp;C)</translation>
+    </message>
+    <message>
+      <location filename="../PyConsole_ConsoleBase.cxx" line="221"/>
+      <source>EDIT_PASTE_CMD</source>
+      <translation>貼り付け(&amp;P)</translation>
+    </message>
+    <message>
+      <location filename="../PyConsole_ConsoleBase.cxx" line="226"/>
+      <source>EDIT_CLEAR_CMD</source>
+      <translation>削除(&amp;r)</translation>
+    </message>
+    <message>
+      <location filename="../PyConsole_ConsoleBase.cxx" line="231"/>
+      <source>EDIT_SELECTALL_CMD</source>
+      <translation>すべて選択します。(&amp;A)</translation>
+    </message>
+    <message>
+      <source>EDIT_DUMPCOMMANDS_CMD</source>
+      <translation>スクリプト コマンドを生成します。(&amp;u)</translation>
+    </message>
+    <message>
+      <source>EDIT_STARTLOG_CMD</source>
+      <translation>ログの開始 (&amp;L)</translation>
+    </message>
+    <message>
+      <source>EDIT_STOPLOG_CMD</source>
+      <translation>ログの停止 (&amp;L)</translation>
+    </message>
+  </context>
+</TS>
diff --git a/src/PyConsoleBase/resources/PyConsole_msg_en.ts b/src/PyConsoleBase/resources/PyConsole_msg_en.ts
deleted file mode 100644 (file)
index af33f0b..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE TS>
-<TS version="2.0" language="en_US">
-<context>
-    <name>PyConsole_ConsoleBase</name>
-    <message>
-        <location filename="../PyConsole_ConsoleBase.cxx" line="216"/>
-        <source>EDIT_COPY_CMD</source>
-        <translation>&amp;Copy</translation>
-    </message>
-    <message>
-        <location filename="../PyConsole_ConsoleBase.cxx" line="221"/>
-        <source>EDIT_PASTE_CMD</source>
-        <translation>&amp;Paste</translation>
-    </message>
-    <message>
-        <location filename="../PyConsole_ConsoleBase.cxx" line="226"/>
-        <source>EDIT_CLEAR_CMD</source>
-        <translation>Clea&amp;r</translation>
-    </message>
-    <message>
-        <location filename="../PyConsole_ConsoleBase.cxx" line="231"/>
-        <source>EDIT_SELECTALL_CMD</source>
-        <translation>Select &amp;All</translation>
-    </message>
-    <message>
-        <source>EDIT_DUMPCOMMANDS_CMD</source>
-        <translation>D&amp;ump Commands</translation>
-    </message>
-    <message>
-      <source>EDIT_STARTLOG_CMD</source>
-        <translation>Start &amp;Log</translation>
-    </message>
-    <message>
-      <source>EDIT_STOPLOG_CMD</source>
-        <translation>Stop &amp;Log</translation>
-    </message>
-</context>
-<context>
-    <name>PyConsole_EditorBase</name>
-    <message>
-        <source>TOT_DUMP_PYCOMMANDS</source>
-        <translation>Dump commands</translation>
-    </message>
-    <message>
-        <source>TOT_SAVE_PYLOG</source>
-        <translation>Save log</translation>
-    </message>
-    <message>
-        <source>PYTHON_FILES_FILTER</source>
-        <translation>PYTHON Files (*.py)</translation>
-    </message>
-    <message>
-        <source>LOG_FILES_FILTER</source>
-        <translation>Log files (*.log *.txt)</translation>
-    </message>
-    <message>
-        <source>ERR_FILE_NOT_WRITABLE</source>
-        <translation>File is not writable!</translation>
-    </message>
-</context>
-</TS>
diff --git a/src/PyConsoleBase/resources/PyConsole_msg_fr.ts b/src/PyConsoleBase/resources/PyConsole_msg_fr.ts
deleted file mode 100755 (executable)
index bab57bf..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE TS>
-<TS version="2.0" language="fr_FR">
-<context>
-    <name>PyConsole_ConsoleBase</name>
-    <message>
-        <location filename="../PyConsole_ConsoleBase.cxx" line="216"/>
-        <source>EDIT_COPY_CMD</source>
-        <translation>&amp;Copier</translation>
-    </message>
-    <message>
-        <location filename="../PyConsole_ConsoleBase.cxx" line="221"/>
-        <source>EDIT_PASTE_CMD</source>
-        <translation>C&amp;oller</translation>
-    </message>
-    <message>
-        <location filename="../PyConsole_ConsoleBase.cxx" line="226"/>
-        <source>EDIT_CLEAR_CMD</source>
-        <translation>&amp;Effacer</translation>
-    </message>
-    <message>
-        <location filename="../PyConsole_ConsoleBase.cxx" line="231"/>
-        <source>EDIT_SELECTALL_CMD</source>
-        <translation>&amp;Tout sélectionner</translation>
-    </message>
-    <message>
-        <source>EDIT_DUMPCOMMANDS_CMD</source>
-        <translation>&amp;Générer le script des commandes</translation>
-    </message>
-    <message>
-        <source>EDIT_STARTLOG_CMD</source>
-        <translation>Démarrer une &amp;trace</translation>
-    </message>
-    <message>
-        <source>EDIT_STOPLOG_CMD</source>
-        <translation>Arrêter la &amp;trace</translation>
-    </message>
-</context>
-<context>
-    <name>PyConsole_Editor</name>
-    <message>
-        <source>TOT_DUMP_PYCOMMANDS</source>
-        <translation>&amp;Générer le script des commandes</translation>
-    </message>
-    <message>
-        <source>TOT_SAVE_PYLOG</source>
-        <translation>Sauver la trace</translation>
-    </message>
-    <message>
-        <source>PYTHON_FILES_FILTER</source>
-        <translation>Fichiers PYTHON (*.py)</translation>
-    </message>
-    <message>
-        <source>LOG_FILES_FILTER</source>
-        <translation>Fichiers de trace (*.log *.txt)</translation>
-    </message>
-    <message>
-        <source>ERR_FILE_NOT_WRITABLE</source>
-        <translation>Le fichier n'est pas accessible en écriture!</translation>
-    </message>
-</context>
-</TS>
diff --git a/src/PyConsoleBase/resources/PyConsole_msg_ja.ts b/src/PyConsoleBase/resources/PyConsole_msg_ja.ts
deleted file mode 100644 (file)
index c36cf6a..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE TS>
-<TS version="2.0" language="ja" sourcelanguage="en">
-  <context>
-    <name>PyConsole_ConsoleBase</name>
-    <message>
-      <location filename="../PyConsole_ConsoleBase.cxx" line="216"/>
-      <source>EDIT_COPY_CMD</source>
-      <translation>コピー(&amp;C)</translation>
-    </message>
-    <message>
-      <location filename="../PyConsole_ConsoleBase.cxx" line="221"/>
-      <source>EDIT_PASTE_CMD</source>
-      <translation>貼り付け(&amp;P)</translation>
-    </message>
-    <message>
-      <location filename="../PyConsole_ConsoleBase.cxx" line="226"/>
-      <source>EDIT_CLEAR_CMD</source>
-      <translation>削除(&amp;r)</translation>
-    </message>
-    <message>
-      <location filename="../PyConsole_ConsoleBase.cxx" line="231"/>
-      <source>EDIT_SELECTALL_CMD</source>
-      <translation>すべて選択します。(&amp;A)</translation>
-    </message>
-    <message>
-      <source>EDIT_DUMPCOMMANDS_CMD</source>
-      <translation>スクリプト コマンドを生成します。(&amp;u)</translation>
-    </message>
-    <message>
-      <source>EDIT_STARTLOG_CMD</source>
-      <translation>ログの開始 (&amp;L)</translation>
-    </message>
-    <message>
-      <source>EDIT_STOPLOG_CMD</source>
-      <translation>ログの停止 (&amp;L)</translation>
-    </message>
-  </context>
-  <context>
-    <name>PyConsole_Editor</name>
-    <message>
-      <source>TOT_DUMP_PYCOMMANDS</source>
-      <translation>スクリプト コマンドを生成します。</translation>
-    </message>
-    <message>
-      <source>TOT_SAVE_PYLOG</source>
-      <translation>ログの保存</translation>
-    </message>
-    <message>
-      <source>PYTHON_FILES_FILTER</source>
-      <translation>ファイル (*.py) PYTHON</translation>
-    </message>
-    <message>
-      <source>LOG_FILES_FILTER</source>
-      <translation>ログファイル (*.log *.txt)</translation>
-    </message>
-    <message>
-      <source>ERR_FILE_NOT_WRITABLE</source>
-      <translation>ファイルが書き込み禁止です!</translation>
-    </message>
-  </context>
-</TS>