Simplify translations script
authorAlexander Sokolov <sokoloff.a@gmail.com>
Sun, 6 Oct 2013 18:01:11 +0000 (22:01 +0400)
committerAlexander Sokolov <sokoloff.a@gmail.com>
Sun, 6 Oct 2013 18:01:11 +0000 (22:01 +0400)
cmake/lxqt_use.cmake
lxqtpowermanager.cpp

index ea43f69..0ea1127 100644 (file)
@@ -119,24 +119,6 @@ function(lxqt_translate_desktop _RESULT)
         endif()
 
         set(__result ${__result} ${_outFile})
-
-
-        # TX file ***********************************************
-        set(_txFile "${CMAKE_BINARY_DIR}/tx/${_fileName}${_fileExt}.tx.sh")
-        string(REPLACE "${CMAKE_SOURCE_DIR}/" "" _tx_translationDir ${_translationDir})
-        string(REPLACE "${CMAKE_SOURCE_DIR}/" "" _tx_inFile ${_inFile})
-        string(REPLACE "." "" _fileType ${_fileExt})
-
-        file(WRITE ${_txFile}
-            "[ -f ${_inFile} ] || exit 0\n"
-            "echo '[razor-qt.${_fileName}_${_fileType}]'\n"
-            "echo 'type = DESKTOP'\n"
-            "echo 'source_lang = en'\n"
-            "echo 'source_file = ${_tx_inFile}'\n"
-            "echo 'file_filter = ${_tx_translationDir}/${_fileName}_<lang>${_fileExt}'\n"
-            "echo ''\n"
-        )
-
     endforeach()
 
     set(${_RESULT} ${__result} PARENT_SCOPE)
index d46894f..aa4596d 100644 (file)
@@ -39,7 +39,6 @@ using namespace LxQt;
 
 class MessageBox: public QMessageBox
 {
-    Q_OBJECT
 public:
     explicit MessageBox(QWidget *parent = 0): QMessageBox(parent) {}