diff options
author | q5sys <jt@obs-sec.com> | 2017-07-18 16:03:16 -0400 |
---|---|---|
committer | q5sys <jt@obs-sec.com> | 2017-07-18 16:03:16 -0400 |
commit | ff091d9984fa5bd70dab07ed3b59aea9d753beb4 (patch) | |
tree | 986e4a2ec61853494f6788840c49d69a172b49a0 | |
parent | commit of qt5ct source tree (diff) | |
download | lumina-ff091d9984fa5bd70dab07ed3b59aea9d753beb4.tar.gz lumina-ff091d9984fa5bd70dab07ed3b59aea9d753beb4.tar.bz2 lumina-ff091d9984fa5bd70dab07ed3b59aea9d753beb4.zip |
removal of qt5ct utils
-rwxr-xr-x | src-qt5/core/lumina-theme-engine/utils/update_ts.sh | 40 | ||||
-rwxr-xr-x | src-qt5/core/lumina-theme-engine/utils/update_tx.sh | 37 |
2 files changed, 0 insertions, 77 deletions
diff --git a/src-qt5/core/lumina-theme-engine/utils/update_ts.sh b/src-qt5/core/lumina-theme-engine/utils/update_ts.sh deleted file mode 100755 index a19a955a..00000000 --- a/src-qt5/core/lumina-theme-engine/utils/update_ts.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh - -LOCALES='en ru uk_UA zh_CN zh_TW tr cs pt_BR pt de pl fr it it_IT kk lt hu nl ja sk es_ES es he gl_ES sr_BA sr_RS bg nl_NL el sr ca ar' - -echo "Locales: ${LOCALES}" - -for tr_dir in `find ../src/ -type d -name "translations"` -do - - plug_name=`echo $tr_dir | cut -d '/' -f 3` - - echo "Updating ${plug_name}" - - ts_files='' - qm_files='' - - for code in $LOCALES - do - ts_files="${ts_files} ${tr_dir}/${plug_name}_${code}.ts" - if [ "${code}" != "en" ]; then - qm_files="${qm_files} ${plug_name}_${code}.qm" - fi - done - qrc_file="${tr_dir}/translations.qrc" - - - /opt/qt56/bin/lupdate -no-obsolete -silent -extensions "cpp,ui" ${tr_dir}/../ -ts ${ts_files} - - - - echo "<!DOCTYPE RCC>" > $qrc_file - echo "<RCC version=\"1.0\">" >> $qrc_file - echo " <qresource>" >> $qrc_file - for qm_file in $qm_files - do - echo " <file>${qm_file}</file>" >> $qrc_file; - done - echo " </qresource>" >> $qrc_file - echo "</RCC>" >> $qrc_file -done diff --git a/src-qt5/core/lumina-theme-engine/utils/update_tx.sh b/src-qt5/core/lumina-theme-engine/utils/update_tx.sh deleted file mode 100755 index 82f36743..00000000 --- a/src-qt5/core/lumina-theme-engine/utils/update_tx.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh - -PROJECT_NAME=qt5ct -TX_CONFIG="../.tx/config" - -echo "[main]" > ${TX_CONFIG} -echo "host = https://www.transifex.com" >> ${TX_CONFIG} -echo "" >> ${TX_CONFIG} - -for tr_dir in `find ../src/ -type d -name "translations"` -do - - plug_name=`echo $tr_dir | cut -d '/' -f 3` - - echo "Updating ${plug_name}" - - - file_filter=`echo ${tr_dir} | sed 's/..\///'` - echo "[${PROJECT_NAME}.${plug_name}]" >> ${TX_CONFIG} - echo "file_filter = ${file_filter}/${plug_name}_<lang>.ts" >> ${TX_CONFIG} - echo "source_lang = en" >> ${TX_CONFIG} - echo "source_file = ${file_filter}/${plug_name}_en.ts" >> ${TX_CONFIG} - echo "type = QT" >> ${TX_CONFIG} - echo "" >> ${TX_CONFIG} - -done - - -for RESOURCE_NAME in qt5ct -do - echo "[${PROJECT_NAME}.${RESOURCE_NAME}-desktop]" >> ${TX_CONFIG} - echo "file_filter = src/qt5ct/desktop-translations/${RESOURCE_NAME}_<lang>.desktop.in" >> ${TX_CONFIG} - echo "source_lang = en" >> ${TX_CONFIG} - echo "source_file = src/qt5ct/${RESOURCE_NAME}.desktop" >> ${TX_CONFIG} - echo "type = DESKTOP" >> ${TX_CONFIG} - echo "" >> ${TX_CONFIG} -done |