From 4d45f00561243c5725c3d6723635638627fe203c Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Tue, 23 Feb 2016 10:12:15 +0100 Subject: [PATCH] Step 5. Normally the last. --- src/PyConsole/CMakeLists.txt | 9 ++++++- src/PyConsole/resources/PyConsole_msg_en.ts | 27 +++++++++++++++++++ src/PyConsole/resources/PyConsole_msg_fr.ts | 27 +++++++++++++++++++ src/PyConsole/resources/PyConsole_msg_ja.ts | 27 +++++++++++++++++++ src/PyConsoleBase/CMakeLists.txt | 6 ++--- ...sole_msg_en.ts => PyConsoleBase_msg_en.ts} | 23 ---------------- ...sole_msg_fr.ts => PyConsoleBase_msg_fr.ts} | 23 ---------------- ...sole_msg_ja.ts => PyConsoleBase_msg_ja.ts} | 23 ---------------- 8 files changed, 92 insertions(+), 73 deletions(-) create mode 100644 src/PyConsole/resources/PyConsole_msg_en.ts create mode 100644 src/PyConsole/resources/PyConsole_msg_fr.ts create mode 100644 src/PyConsole/resources/PyConsole_msg_ja.ts rename src/PyConsoleBase/resources/{PyConsole_msg_en.ts => PyConsoleBase_msg_en.ts} (64%) rename src/PyConsoleBase/resources/{PyConsole_msg_fr.ts => PyConsoleBase_msg_fr.ts} (63%) mode change 100755 => 100644 rename src/PyConsoleBase/resources/{PyConsole_msg_ja.ts => PyConsoleBase_msg_ja.ts} (64%) diff --git a/src/PyConsole/CMakeLists.txt b/src/PyConsole/CMakeLists.txt index 8516a1280..851c8ebbe 100755 --- a/src/PyConsole/CMakeLists.txt +++ b/src/PyConsole/CMakeLists.txt @@ -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 index 000000000..a2d4aae39 --- /dev/null +++ b/src/PyConsole/resources/PyConsole_msg_en.ts @@ -0,0 +1,27 @@ + + + + + PyConsole_Editor + + TOT_DUMP_PYCOMMANDS + Dump commands + + + TOT_SAVE_PYLOG + Save log + + + PYTHON_FILES_FILTER + PYTHON Files (*.py) + + + LOG_FILES_FILTER + Log files (*.log *.txt) + + + ERR_FILE_NOT_WRITABLE + File is not writable! + + + diff --git a/src/PyConsole/resources/PyConsole_msg_fr.ts b/src/PyConsole/resources/PyConsole_msg_fr.ts new file mode 100644 index 000000000..905d68f7c --- /dev/null +++ b/src/PyConsole/resources/PyConsole_msg_fr.ts @@ -0,0 +1,27 @@ + + + + + PyConsole_Editor + + TOT_DUMP_PYCOMMANDS + &Générer le script des commandes + + + TOT_SAVE_PYLOG + Sauver la trace + + + PYTHON_FILES_FILTER + Fichiers PYTHON (*.py) + + + LOG_FILES_FILTER + Fichiers de trace (*.log *.txt) + + + ERR_FILE_NOT_WRITABLE + Le fichier n'est pas accessible en écriture! + + + diff --git a/src/PyConsole/resources/PyConsole_msg_ja.ts b/src/PyConsole/resources/PyConsole_msg_ja.ts new file mode 100644 index 000000000..dd8b48e3e --- /dev/null +++ b/src/PyConsole/resources/PyConsole_msg_ja.ts @@ -0,0 +1,27 @@ + + + + + PyConsole_Editor + + TOT_DUMP_PYCOMMANDS + スクリプト コマンドを生成します。 + + + TOT_SAVE_PYLOG + ログの保存 + + + PYTHON_FILES_FILTER + ファイル (*.py) PYTHON + + + LOG_FILES_FILTER + ログファイル (*.log *.txt) + + + ERR_FILE_NOT_WRITABLE + ファイルが書き込み禁止です! + + + diff --git a/src/PyConsoleBase/CMakeLists.txt b/src/PyConsoleBase/CMakeLists.txt index c19e06caa..3e06a3fee 100755 --- a/src/PyConsoleBase/CMakeLists.txt +++ b/src/PyConsoleBase/CMakeLists.txt @@ -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/PyConsole_msg_en.ts b/src/PyConsoleBase/resources/PyConsoleBase_msg_en.ts similarity index 64% rename from src/PyConsoleBase/resources/PyConsole_msg_en.ts rename to src/PyConsoleBase/resources/PyConsoleBase_msg_en.ts index af33f0b3b..8ddc1ad90 100644 --- a/src/PyConsoleBase/resources/PyConsole_msg_en.ts +++ b/src/PyConsoleBase/resources/PyConsoleBase_msg_en.ts @@ -36,27 +36,4 @@ Stop &Log - - PyConsole_EditorBase - - TOT_DUMP_PYCOMMANDS - Dump commands - - - TOT_SAVE_PYLOG - Save log - - - PYTHON_FILES_FILTER - PYTHON Files (*.py) - - - LOG_FILES_FILTER - Log files (*.log *.txt) - - - ERR_FILE_NOT_WRITABLE - File is not writable! - - diff --git a/src/PyConsoleBase/resources/PyConsole_msg_fr.ts b/src/PyConsoleBase/resources/PyConsoleBase_msg_fr.ts old mode 100755 new mode 100644 similarity index 63% rename from src/PyConsoleBase/resources/PyConsole_msg_fr.ts rename to src/PyConsoleBase/resources/PyConsoleBase_msg_fr.ts index bab57bfa6..624e689a8 --- a/src/PyConsoleBase/resources/PyConsole_msg_fr.ts +++ b/src/PyConsoleBase/resources/PyConsoleBase_msg_fr.ts @@ -36,27 +36,4 @@ Arrêter la &trace - - PyConsole_Editor - - TOT_DUMP_PYCOMMANDS - &Générer le script des commandes - - - TOT_SAVE_PYLOG - Sauver la trace - - - PYTHON_FILES_FILTER - Fichiers PYTHON (*.py) - - - LOG_FILES_FILTER - Fichiers de trace (*.log *.txt) - - - ERR_FILE_NOT_WRITABLE - Le fichier n'est pas accessible en écriture! - - diff --git a/src/PyConsoleBase/resources/PyConsole_msg_ja.ts b/src/PyConsoleBase/resources/PyConsoleBase_msg_ja.ts similarity index 64% rename from src/PyConsoleBase/resources/PyConsole_msg_ja.ts rename to src/PyConsoleBase/resources/PyConsoleBase_msg_ja.ts index c36cf6ac3..e7a98c078 100644 --- a/src/PyConsoleBase/resources/PyConsole_msg_ja.ts +++ b/src/PyConsoleBase/resources/PyConsoleBase_msg_ja.ts @@ -36,27 +36,4 @@ ログの停止 (&L) - - PyConsole_Editor - - TOT_DUMP_PYCOMMANDS - スクリプト コマンドを生成します。 - - - TOT_SAVE_PYLOG - ログの保存 - - - PYTHON_FILES_FILTER - ファイル (*.py) PYTHON - - - LOG_FILES_FILTER - ログファイル (*.log *.txt) - - - ERR_FILE_NOT_WRITABLE - ファイルが書き込み禁止です! - - -- 2.39.2