diff options
author | Christopher Roy Bratusek <nano@jpberlin.de> | 2016-05-25 21:23:29 +0200 |
---|---|---|
committer | Christopher Roy Bratusek <nano@jpberlin.de> | 2016-05-25 21:23:29 +0200 |
commit | 34e77cf73cd0441309192fdca3123d61df0b909b (patch) | |
tree | 765ca06644409089d69f1ae7739e26d5c8665a80 /debian/merge-lumina-i18n.sh | |
parent | typo fix (diff) | |
download | lumina-34e77cf73cd0441309192fdca3123d61df0b909b.tar.gz lumina-34e77cf73cd0441309192fdca3123d61df0b909b.tar.bz2 lumina-34e77cf73cd0441309192fdca3123d61df0b909b.zip |
update merge-lumina-i18n.sh
Diffstat (limited to 'debian/merge-lumina-i18n.sh')
-rwxr-xr-x | debian/merge-lumina-i18n.sh | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/debian/merge-lumina-i18n.sh b/debian/merge-lumina-i18n.sh index 7bdded0c..a69bcbfe 100755 --- a/debian/merge-lumina-i18n.sh +++ b/debian/merge-lumina-i18n.sh @@ -10,15 +10,22 @@ git clone https://github.com/pcbsd/lumina-i18n.git LANGS=("${LNGDIR}"/*) LANGS=(${LANGS[@]/*\/ts\/}) -UTILS=( config desktop fileinfo fm info open screenshot search xconfig ) - -echo ${LANGS[@]} +UTILS=( config desktop fileinfo fm info open screenshot search textedit xconfig ) for lng in ${LANGS[@]}; do for utl in ${UTILS[@]}; do - [[ -e "${LNGDIR}"/${lng}/lumina-${utl}.ts ]] && \ - cp "${LNGDIR}"/${lng}/lumina-${utl}.ts \ - "${CURDIR}"/lumina-${utl}/i18n/lumina-${utl}_${lng}.ts + if [[ -e "${LNGDIR}"/${lng}/lumina-${utl}.ts ]]; then + if [[ -d "${CURDIR}"/src-qt5/core/lumina-${utl} ]]; then + cp "${LNGDIR}"/${lng}/lumina-${utl}.ts \ + "${CURDIR}"/src-qt5/core/lumina-${utl}/i18n/lumina-${utl}_${lng}.ts + elif [[ -d "${CURDIR}"/src-qt5/core-utils/lumina-${utl} ]]; then + cp "${LNGDIR}"/${lng}/lumina-${utl}.ts \ + "${CURDIR}"/src-qt5/core-utils/lumina-${utl}/i18n/lumina-${utl}_${lng}.ts + elif [[ -d "${CURDIR}"/src-qt5/desktop-utils/lumina-${utl} ]]; then + cp "${LNGDIR}"/${lng}/lumina-${utl}.ts \ + "${CURDIR}"/src-qt5/desktop-utils/lumina-${utl}/i18n/lumina-${utl}_${lng}.ts + fi + fi done done @@ -28,6 +35,7 @@ echo "updated lumina translations." # first ensure all translations are known to GIT # then create a commit using only the translation files # other changes to the source will still be tracked by dpkg-source -[[ -d "${CURDIR}"/.git ]] && ( git add */i18n/*.ts && git commit */i18n/*.ts \ +[[ -d "${CURDIR}"/.git ]] && ( git add src-qt5/*/*/i18n/*.ts && git commit src-qt5/*/*/i18n/*.ts \ -m "merge latest translations from https://github.com/pcbsd/lumina-i18n.git" ) + rm -rf lumina-i18n |