Remove measurement translations.
This commit is contained in:
parent
856e472587
commit
b187e3c1c7
|
@ -61,14 +61,6 @@ VApp {
|
||||||
files.push("valentina_" + locales[i] + ".ts");
|
files.push("valentina_" + locales[i] + ".ts");
|
||||||
}
|
}
|
||||||
|
|
||||||
var pmSystems = i18nconfig.pmSystems;
|
|
||||||
|
|
||||||
for (var i = 0; i < pmSystems.length; i++) {
|
|
||||||
for (var j = 0; j < locales.length; j++) {
|
|
||||||
files.push("measurements_" + pmSystems[i] + "_" + locales[j] + ".ts");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return files;
|
return files;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,11 +58,4 @@ Module {
|
||||||
// "sv", Not supported by Valentina
|
// "sv", Not supported by Valentina
|
||||||
// "tr", Not supported by Valentina
|
// "tr", Not supported by Valentina
|
||||||
]
|
]
|
||||||
|
|
||||||
readonly property stringList pmSystems: [
|
|
||||||
"p0", "p1", "p2", "p3", "p4", "p5", "p6", "p7", "p8", "p9", "p10", "p11", "p12", "p13", "p14", "p15",
|
|
||||||
"p16", "p17", "p18", "p19", "p20", "p21", "p22", "p23", "p24", "p25", "p26", "p27", "p28", "p29",
|
|
||||||
"p30", "p31", "p32", "p33", "p34", "p35", "p36", "p37", "p38", "p39", "p40", "p41", "p42", "p43",
|
|
||||||
"p44", "p45", "p46", "p47", "p48", "p49", "p50", "p51", "p52", "p53", "p54", "p998"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,32 +6,18 @@
|
||||||
start=$(date +%s)
|
start=$(date +%s)
|
||||||
|
|
||||||
# Download all translations from transifex.com.
|
# Download all translations from transifex.com.
|
||||||
cd ../share/translations
|
|
||||||
RESOURCES=`find . -regextype sed -regex ".*/measurements_p[0-9]\{1,2\}\.ts"`
|
|
||||||
cd ../../scripts
|
|
||||||
|
|
||||||
# Empty means unstable branch
|
# Empty means unstable branch
|
||||||
MEASUREMENTS_BRANCH='' # For example _05x
|
MEASUREMENTS_BRANCH='' # For example _05x
|
||||||
VALENTINA_BRANCH='' # for example 05x
|
VALENTINA_BRANCH='' # for example 05x
|
||||||
|
|
||||||
NUMBER=( $RESOURCES )
|
|
||||||
NUMBER=${#NUMBER[@]}
|
|
||||||
|
|
||||||
# Certant languages like he_IL and zh_CN are not supported by math parser
|
# Certant languages like he_IL and zh_CN are not supported by math parser
|
||||||
for ((i=0;i<NUMBER;i++)); do
|
tx pull -r valentina-project.valentina_${VALENTINA_BRANCH}ts --mode=default -f --skip -l "${LANGUAGES}" &
|
||||||
tx pull -r valentina-project.measurements_p${i}${MEASUREMENTS_BRANCH}ts --mode=default -f --skip -l "uk,de_DE,cs,he_IL,fr_FR,it_IT,nl,id,es,fi,en_US,en_CA,en_IN,ro_RO,zh_CN,pt_BR,el_GR,pl_PL" &
|
|
||||||
sleep 2
|
|
||||||
done
|
|
||||||
|
|
||||||
tx pull -r valentina-project.valentina_${VALENTINA_BRANCH}ts --mode=default -f --skip &
|
|
||||||
sleep 2
|
|
||||||
tx pull -r valentina-project.measurements_p998${MEASUREMENTS_BRANCH}ts --mode=default -f --skip -l "uk,de_DE,cs,he_IL,fr_FR,it_IT,nl,id,es,fi,en_US,en_CA,en_IN,ro_RO,zh_CN,pt_BR,el_GR,pl_PL" &
|
|
||||||
|
|
||||||
wait
|
wait
|
||||||
|
|
||||||
# Update local strings
|
# Update local strings
|
||||||
lupdate -recursive ../share/translations/translations.pro
|
lupdate -recursive ../share/translations/translations.pro
|
||||||
lupdate -recursive ../share/translations/measurements.pro
|
|
||||||
#clean stale QM files
|
#clean stale QM files
|
||||||
rm -f -v ../share/translations/*.qm
|
rm -f -v ../share/translations/*.qm
|
||||||
# force to run qmake
|
# force to run qmake
|
||||||
|
|
|
@ -5,29 +5,14 @@
|
||||||
start=$(date +%s)
|
start=$(date +%s)
|
||||||
|
|
||||||
# Download all translations from transifex.com.
|
# Download all translations from transifex.com.
|
||||||
cd ../share/translations
|
|
||||||
RESOURCES=`find . -regextype sed -regex ".*/measurements_p[0-9]\{1,2\}\.ts"`
|
|
||||||
cd ../../scripts
|
|
||||||
|
|
||||||
# Empty means unstable branch
|
# Empty means unstable branch
|
||||||
MEASUREMENTS_BRANCH='' # For example _05x
|
|
||||||
VALENTINA_BRANCH='' # for example 05x
|
VALENTINA_BRANCH='' # for example 05x
|
||||||
|
|
||||||
LANGUAGES="uk,de_DE,cs,he_IL,fr_FR,it_IT,nl,id,es,fi,en_US,en_CA,en_IN,ro_RO,zh_CN,pt_BR,el_GR,pl_PL"
|
LANGUAGES="uk,de_DE,cs,he_IL,fr_FR,it_IT,nl,id,es,fi,en_US,en_CA,en_IN,ro_RO,zh_CN,pt_BR,el_GR,pl_PL"
|
||||||
|
|
||||||
NUMBER=( $RESOURCES )
|
|
||||||
NUMBER=${#NUMBER[@]}
|
|
||||||
|
|
||||||
# Certant languages like he_IL and zh_CN are not supported by math parser
|
# Certant languages like he_IL and zh_CN are not supported by math parser
|
||||||
for ((i=0;i<NUMBER;i++)); do
|
|
||||||
tx pull -r valentina-project.measurements_p${i}${MEASUREMENTS_BRANCH}ts --mode=default -f --skip -l "${LANGUAGES}" &
|
|
||||||
sleep 2
|
|
||||||
done
|
|
||||||
|
|
||||||
tx pull -r valentina-project.valentina_${VALENTINA_BRANCH}ts --mode=default -f --skip -l "${LANGUAGES}" &
|
tx pull -r valentina-project.valentina_${VALENTINA_BRANCH}ts --mode=default -f --skip -l "${LANGUAGES}" &
|
||||||
sleep 2
|
|
||||||
tx pull -r valentina-project.measurements_p998${MEASUREMENTS_BRANCH}ts --mode=default -f --skip -l "${LANGUAGES}" &
|
|
||||||
|
|
||||||
wait
|
wait
|
||||||
|
|
||||||
# cannot fix incorrect placing for pattern making systems
|
# cannot fix incorrect placing for pattern making systems
|
||||||
|
@ -38,7 +23,6 @@ rm -r ./share
|
||||||
qbs resolve -d ../../build_translations modules.i18n.update:true moduleProviders.Qt.qmakeFilePaths:$HOME/Qt6.5/6.5.0/gcc_64/bin/qmake
|
qbs resolve -d ../../build_translations modules.i18n.update:true moduleProviders.Qt.qmakeFilePaths:$HOME/Qt6.5/6.5.0/gcc_64/bin/qmake
|
||||||
# Update local strings
|
# Update local strings
|
||||||
qbs -d ../../build_translations -f ../valentina.qbs -p 'Translations' modules.i18n.update:true moduleProviders.Qt.qmakeFilePaths:$HOME/Qt6.5/6.5.0/gcc_64/bin/qmake
|
qbs -d ../../build_translations -f ../valentina.qbs -p 'Translations' modules.i18n.update:true moduleProviders.Qt.qmakeFilePaths:$HOME/Qt6.5/6.5.0/gcc_64/bin/qmake
|
||||||
qbs -d ../../build_translations -f ../valentina.qbs -p 'MTranslations' modules.i18n.update:true moduleProviders.Qt.qmakeFilePaths:$HOME/Qt6.5/6.5.0/gcc_64/bin/qmake
|
|
||||||
|
|
||||||
end=$(date +%s)
|
end=$(date +%s)
|
||||||
runtime=$(python3 -c "print('Time passed %u:%02u seconds' % ((${end} - ${start})/60, (${end} - ${start})%60))")
|
runtime=$(python3 -c "print('Time passed %u:%02u seconds' % ((${end} - ${start})/60, (${end} - ${start})%60))")
|
||||||
|
|
|
@ -1,55 +0,0 @@
|
||||||
# Don't use this pro file for building project!!!
|
|
||||||
# I made this hack for creation one TS file for whole project.
|
|
||||||
# Because we have several libraries that also have strings for translation, have several TS files for each
|
|
||||||
# subproject annoying.
|
|
||||||
#
|
|
||||||
# Original idea "How to generate a single translation file for a large Qt project?"
|
|
||||||
# https://stackoverflow.com/questions/1829474/how-to-generate-a-single-translation-file-for-a-large-qt-project
|
|
||||||
|
|
||||||
TEMPLATE = app
|
|
||||||
DEPENDPATH += \
|
|
||||||
../../src/libs/vpatterndb
|
|
||||||
|
|
||||||
include(../../src/libs/vpatterndb/trmeasurements.pri)
|
|
||||||
|
|
||||||
# Add here path to new translation file with name "valentina_*_*.ts" if you want to add new language.
|
|
||||||
# Same paths in variable INSTALL_TRANSLATIONS (translations.pri).
|
|
||||||
|
|
||||||
# File measurements_*.ts we use in transifex.com. It is empty translation file only with english inside.
|
|
||||||
# transifex.com use this file like base for new language. Don't add path to measurements_*.ts to INSTALL_TRANSLATIONS
|
|
||||||
# variable (app.pro).
|
|
||||||
# When adding a translation here, also add it in the macx part (translations.pri).
|
|
||||||
|
|
||||||
PMSYSTEMS += \
|
|
||||||
p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 p21 p22 p23 p24 p25 p26 p27 p28 p29 p30 \
|
|
||||||
p31 p32 p33 p34 p35 p36 p37 p38 p39 p40 p41 p42 p43 p44 p45 p46 p47 p48 p49 p50 p51 p52 p53 p54 p998
|
|
||||||
|
|
||||||
LANGUAGES += \
|
|
||||||
uk_UA \
|
|
||||||
de_DE \
|
|
||||||
cs_CZ \
|
|
||||||
he_IL \
|
|
||||||
fr_FR \
|
|
||||||
it_IT \
|
|
||||||
nl_NL \
|
|
||||||
id_ID \
|
|
||||||
es_ES \
|
|
||||||
fi_FI \
|
|
||||||
en_US \
|
|
||||||
en_CA \
|
|
||||||
en_IN \
|
|
||||||
ro_RO \
|
|
||||||
zh_CN \
|
|
||||||
pt_BR \
|
|
||||||
el_GR \
|
|
||||||
pl_PL
|
|
||||||
|
|
||||||
|
|
||||||
for(sys, PMSYSTEMS) {
|
|
||||||
TRANSLATIONS += measurements_$${sys}.ts
|
|
||||||
|
|
||||||
for(lang, LANGUAGES) {
|
|
||||||
TRANSLATIONS += measurements_$${sys}_$${lang}.ts
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,48 +0,0 @@
|
||||||
import qbs.FileInfo
|
|
||||||
|
|
||||||
Product {
|
|
||||||
Depends { name: "i18n" }
|
|
||||||
Depends { name: "i18nconfig" }
|
|
||||||
|
|
||||||
name: "MTranslations"
|
|
||||||
type: "ts"
|
|
||||||
builtByDefault: false
|
|
||||||
|
|
||||||
Group {
|
|
||||||
name: "Headers"
|
|
||||||
prefix: project.sourceDirectory + "/src/"
|
|
||||||
files: [
|
|
||||||
"libs/vpatterndb/vtranslatemeasurements.h"
|
|
||||||
]
|
|
||||||
fileTags: "i18n.hpp"
|
|
||||||
}
|
|
||||||
|
|
||||||
Group {
|
|
||||||
name: "Sources"
|
|
||||||
prefix: project.sourceDirectory + "/src/"
|
|
||||||
files: [
|
|
||||||
"libs/vpatterndb/vtranslatemeasurements.cpp"
|
|
||||||
]
|
|
||||||
fileTags: "i18n.src"
|
|
||||||
}
|
|
||||||
|
|
||||||
Group {
|
|
||||||
name: "Translations"
|
|
||||||
files: {
|
|
||||||
var files = [];
|
|
||||||
|
|
||||||
var locales = i18nconfig.translationLocales;
|
|
||||||
var pmSystems = i18nconfig.pmSystems;
|
|
||||||
|
|
||||||
for (var i = 0; i < pmSystems.length; i++) {
|
|
||||||
files.push("measurements_" + pmSystems[i] + ".ts");
|
|
||||||
for (var j = 0; j < locales.length; j++) {
|
|
||||||
files.push("measurements_" + pmSystems[i] + "_" + locales[j] + ".ts");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return files;
|
|
||||||
}
|
|
||||||
fileTags: "i18n.ts"
|
|
||||||
}
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user