Update transifex config.

This commit is contained in:
Roman Telezhynskyi 2023-05-08 17:47:26 +03:00
parent 598682e57b
commit cf412d058c
2 changed files with 164 additions and 164 deletions

View File

@ -1,347 +1,347 @@
[main]
host = https://www.transifex.com
lang_map = uk: uk_UA, cs : cs_CZ, nl : nl_NL, fi : fi_FI, es : es_ES, id : id_ID
host = https://app.transifex.com/
lang_map = es: es_ES, id: id_ID, uk: uk_UA, cs: cs_CZ, nl: nl_NL, fi: fi_FI
[valentina-project.valentina_ts]
file_filter = share/translations/valentina_<lang>.ts
minimum_perc = 20
source_file = share/translations/valentina.ts
source_lang = en
type = QT
[valentina-project.measurements_p0ts]
[o:valentina:p:valentina-project:r:measurements_p0ts]
file_filter = share/translations/measurements_p0_<lang>.ts
source_file = share/translations/measurements_p0.ts
source_lang = en
type = QT
[valentina-project.measurements_p1ts]
file_filter = share/translations/measurements_p1_<lang>.ts
source_file = share/translations/measurements_p1.ts
source_lang = en
type = QT
[valentina-project.measurements_p2ts]
file_filter = share/translations/measurements_p2_<lang>.ts
source_file = share/translations/measurements_p2.ts
source_lang = en
type = QT
[valentina-project.measurements_p3ts]
file_filter = share/translations/measurements_p3_<lang>.ts
source_file = share/translations/measurements_p3.ts
source_lang = en
type = QT
[valentina-project.measurements_p4ts]
file_filter = share/translations/measurements_p4_<lang>.ts
source_file = share/translations/measurements_p4.ts
source_lang = en
type = QT
[valentina-project.measurements_p5ts]
file_filter = share/translations/measurements_p5_<lang>.ts
source_file = share/translations/measurements_p5.ts
source_lang = en
type = QT
[valentina-project.measurements_p6ts]
file_filter = share/translations/measurements_p6_<lang>.ts
source_file = share/translations/measurements_p6.ts
source_lang = en
type = QT
[valentina-project.measurements_p7ts]
file_filter = share/translations/measurements_p7_<lang>.ts
source_file = share/translations/measurements_p7.ts
source_lang = en
type = QT
[valentina-project.measurements_p8ts]
file_filter = share/translations/measurements_p8_<lang>.ts
source_file = share/translations/measurements_p8.ts
source_lang = en
type = QT
[valentina-project.measurements_p9ts]
file_filter = share/translations/measurements_p9_<lang>.ts
source_file = share/translations/measurements_p9.ts
source_lang = en
type = QT
[valentina-project.measurements_p10ts]
[o:valentina:p:valentina-project:r:measurements_p10ts]
file_filter = share/translations/measurements_p10_<lang>.ts
source_file = share/translations/measurements_p10.ts
source_lang = en
type = QT
[valentina-project.measurements_p11ts]
[o:valentina:p:valentina-project:r:measurements_p11ts]
file_filter = share/translations/measurements_p11_<lang>.ts
source_file = share/translations/measurements_p11.ts
source_lang = en
type = QT
[valentina-project.measurements_p12ts]
[o:valentina:p:valentina-project:r:measurements_p12ts]
file_filter = share/translations/measurements_p12_<lang>.ts
source_file = share/translations/measurements_p12.ts
source_lang = en
type = QT
[valentina-project.measurements_p13ts]
[o:valentina:p:valentina-project:r:measurements_p13ts]
file_filter = share/translations/measurements_p13_<lang>.ts
source_file = share/translations/measurements_p13.ts
source_lang = en
type = QT
[valentina-project.measurements_p14ts]
[o:valentina:p:valentina-project:r:measurements_p14ts]
file_filter = share/translations/measurements_p14_<lang>.ts
source_file = share/translations/measurements_p14.ts
source_lang = en
type = QT
[valentina-project.measurements_p15ts]
[o:valentina:p:valentina-project:r:measurements_p15ts]
file_filter = share/translations/measurements_p15_<lang>.ts
source_file = share/translations/measurements_p15.ts
source_lang = en
type = QT
[valentina-project.measurements_p16ts]
[o:valentina:p:valentina-project:r:measurements_p16ts]
file_filter = share/translations/measurements_p16_<lang>.ts
source_file = share/translations/measurements_p16.ts
source_lang = en
type = QT
[valentina-project.measurements_p17ts]
[o:valentina:p:valentina-project:r:measurements_p17ts]
file_filter = share/translations/measurements_p17_<lang>.ts
source_file = share/translations/measurements_p17.ts
source_lang = en
type = QT
[valentina-project.measurements_p18ts]
[o:valentina:p:valentina-project:r:measurements_p18ts]
file_filter = share/translations/measurements_p18_<lang>.ts
source_file = share/translations/measurements_p18.ts
source_lang = en
type = QT
[valentina-project.measurements_p19ts]
[o:valentina:p:valentina-project:r:measurements_p19ts]
file_filter = share/translations/measurements_p19_<lang>.ts
source_file = share/translations/measurements_p19.ts
source_lang = en
type = QT
[valentina-project.measurements_p20ts]
[o:valentina:p:valentina-project:r:measurements_p1ts]
file_filter = share/translations/measurements_p1_<lang>.ts
source_file = share/translations/measurements_p1.ts
source_lang = en
type = QT
[o:valentina:p:valentina-project:r:measurements_p20ts]
file_filter = share/translations/measurements_p20_<lang>.ts
source_file = share/translations/measurements_p20.ts
source_lang = en
type = QT
[valentina-project.measurements_p21ts]
[o:valentina:p:valentina-project:r:measurements_p21ts]
file_filter = share/translations/measurements_p21_<lang>.ts
source_file = share/translations/measurements_p21.ts
source_lang = en
type = QT
[valentina-project.measurements_p22ts]
[o:valentina:p:valentina-project:r:measurements_p22ts]
file_filter = share/translations/measurements_p22_<lang>.ts
source_file = share/translations/measurements_p22.ts
source_lang = en
type = QT
[valentina-project.measurements_p23ts]
[o:valentina:p:valentina-project:r:measurements_p23ts]
file_filter = share/translations/measurements_p23_<lang>.ts
source_file = share/translations/measurements_p23.ts
source_lang = en
type = QT
[valentina-project.measurements_p24ts]
[o:valentina:p:valentina-project:r:measurements_p24ts]
file_filter = share/translations/measurements_p24_<lang>.ts
source_file = share/translations/measurements_p24.ts
source_lang = en
type = QT
[valentina-project.measurements_p25ts]
[o:valentina:p:valentina-project:r:measurements_p25ts]
file_filter = share/translations/measurements_p25_<lang>.ts
source_file = share/translations/measurements_p25.ts
source_lang = en
type = QT
[valentina-project.measurements_p26ts]
[o:valentina:p:valentina-project:r:measurements_p26ts]
file_filter = share/translations/measurements_p26_<lang>.ts
source_file = share/translations/measurements_p26.ts
source_lang = en
type = QT
[valentina-project.measurements_p27ts]
[o:valentina:p:valentina-project:r:measurements_p27ts]
file_filter = share/translations/measurements_p27_<lang>.ts
source_file = share/translations/measurements_p27.ts
source_lang = en
type = QT
[valentina-project.measurements_p28ts]
[o:valentina:p:valentina-project:r:measurements_p28ts]
file_filter = share/translations/measurements_p28_<lang>.ts
source_file = share/translations/measurements_p28.ts
source_lang = en
type = QT
[valentina-project.measurements_p29ts]
[o:valentina:p:valentina-project:r:measurements_p29ts]
file_filter = share/translations/measurements_p29_<lang>.ts
source_file = share/translations/measurements_p29.ts
source_lang = en
type = QT
[valentina-project.measurements_p30ts]
[o:valentina:p:valentina-project:r:measurements_p2ts]
file_filter = share/translations/measurements_p2_<lang>.ts
source_file = share/translations/measurements_p2.ts
source_lang = en
type = QT
[o:valentina:p:valentina-project:r:measurements_p30ts]
file_filter = share/translations/measurements_p30_<lang>.ts
source_file = share/translations/measurements_p30.ts
source_lang = en
type = QT
[valentina-project.measurements_p31ts]
[o:valentina:p:valentina-project:r:measurements_p31ts]
file_filter = share/translations/measurements_p31_<lang>.ts
source_file = share/translations/measurements_p31.ts
source_lang = en
type = QT
[valentina-project.measurements_p32ts]
[o:valentina:p:valentina-project:r:measurements_p32ts]
file_filter = share/translations/measurements_p32_<lang>.ts
source_file = share/translations/measurements_p32.ts
source_lang = en
type = QT
[valentina-project.measurements_p33ts]
[o:valentina:p:valentina-project:r:measurements_p33ts]
file_filter = share/translations/measurements_p33_<lang>.ts
source_file = share/translations/measurements_p33.ts
source_lang = en
type = QT
[valentina-project.measurements_p34ts]
[o:valentina:p:valentina-project:r:measurements_p34ts]
file_filter = share/translations/measurements_p34_<lang>.ts
source_file = share/translations/measurements_p34.ts
source_lang = en
type = QT
[valentina-project.measurements_p35ts]
[o:valentina:p:valentina-project:r:measurements_p35ts]
file_filter = share/translations/measurements_p35_<lang>.ts
source_file = share/translations/measurements_p35.ts
source_lang = en
type = QT
[valentina-project.measurements_p36ts]
[o:valentina:p:valentina-project:r:measurements_p36ts]
file_filter = share/translations/measurements_p36_<lang>.ts
source_file = share/translations/measurements_p36.ts
source_lang = en
type = QT
[valentina-project.measurements_p37ts]
[o:valentina:p:valentina-project:r:measurements_p37ts]
file_filter = share/translations/measurements_p37_<lang>.ts
source_file = share/translations/measurements_p37.ts
source_lang = en
type = QT
[valentina-project.measurements_p38ts]
[o:valentina:p:valentina-project:r:measurements_p38ts]
file_filter = share/translations/measurements_p38_<lang>.ts
source_file = share/translations/measurements_p38.ts
source_lang = en
type = QT
[valentina-project.measurements_p39ts]
[o:valentina:p:valentina-project:r:measurements_p39ts]
file_filter = share/translations/measurements_p39_<lang>.ts
source_file = share/translations/measurements_p39.ts
source_lang = en
type = QT
[valentina-project.measurements_p40ts]
[o:valentina:p:valentina-project:r:measurements_p3ts]
file_filter = share/translations/measurements_p3_<lang>.ts
source_file = share/translations/measurements_p3.ts
source_lang = en
type = QT
[o:valentina:p:valentina-project:r:measurements_p40ts]
file_filter = share/translations/measurements_p40_<lang>.ts
source_file = share/translations/measurements_p40.ts
source_lang = en
type = QT
[valentina-project.measurements_p41ts]
[o:valentina:p:valentina-project:r:measurements_p41ts]
file_filter = share/translations/measurements_p41_<lang>.ts
source_file = share/translations/measurements_p41.ts
source_lang = en
type = QT
[valentina-project.measurements_p42ts]
[o:valentina:p:valentina-project:r:measurements_p42ts]
file_filter = share/translations/measurements_p42_<lang>.ts
source_file = share/translations/measurements_p42.ts
source_lang = en
type = QT
[valentina-project.measurements_p43ts]
[o:valentina:p:valentina-project:r:measurements_p43ts]
file_filter = share/translations/measurements_p43_<lang>.ts
source_file = share/translations/measurements_p43.ts
source_lang = en
type = QT
[valentina-project.measurements_p44ts]
[o:valentina:p:valentina-project:r:measurements_p44ts]
file_filter = share/translations/measurements_p44_<lang>.ts
source_file = share/translations/measurements_p44.ts
source_lang = en
type = QT
[valentina-project.measurements_p45ts]
[o:valentina:p:valentina-project:r:measurements_p45ts]
file_filter = share/translations/measurements_p45_<lang>.ts
source_file = share/translations/measurements_p45.ts
source_lang = en
type = QT
[valentina-project.measurements_p46ts]
[o:valentina:p:valentina-project:r:measurements_p46ts]
file_filter = share/translations/measurements_p46_<lang>.ts
source_file = share/translations/measurements_p46.ts
source_lang = en
type = QT
[valentina-project.measurements_p47ts]
[o:valentina:p:valentina-project:r:measurements_p47ts]
file_filter = share/translations/measurements_p47_<lang>.ts
source_file = share/translations/measurements_p47.ts
source_lang = en
type = QT
[valentina-project.measurements_p48ts]
[o:valentina:p:valentina-project:r:measurements_p48ts]
file_filter = share/translations/measurements_p48_<lang>.ts
source_file = share/translations/measurements_p48.ts
source_lang = en
type = QT
[valentina-project.measurements_p49ts]
[o:valentina:p:valentina-project:r:measurements_p49ts]
file_filter = share/translations/measurements_p49_<lang>.ts
source_file = share/translations/measurements_p49.ts
source_lang = en
type = QT
[valentina-project.measurements_p50ts]
[o:valentina:p:valentina-project:r:measurements_p4ts]
file_filter = share/translations/measurements_p4_<lang>.ts
source_file = share/translations/measurements_p4.ts
source_lang = en
type = QT
[o:valentina:p:valentina-project:r:measurements_p50ts]
file_filter = share/translations/measurements_p50_<lang>.ts
source_file = share/translations/measurements_p50.ts
source_lang = en
type = QT
[valentina-project.measurements_p51ts]
[o:valentina:p:valentina-project:r:measurements_p51ts]
file_filter = share/translations/measurements_p51_<lang>.ts
source_file = share/translations/measurements_p51.ts
source_lang = en
type = QT
[valentina-project.measurements_p52ts]
[o:valentina:p:valentina-project:r:measurements_p52ts]
file_filter = share/translations/measurements_p52_<lang>.ts
source_file = share/translations/measurements_p52.ts
source_lang = en
type = QT
[valentina-project.measurements_p53ts]
[o:valentina:p:valentina-project:r:measurements_p53ts]
file_filter = share/translations/measurements_p53_<lang>.ts
source_file = share/translations/measurements_p53.ts
source_lang = en
type = QT
[valentina-project.measurements_p54ts]
[o:valentina:p:valentina-project:r:measurements_p54ts]
file_filter = share/translations/measurements_p54_<lang>.ts
source_file = share/translations/measurements_p54.ts
source_lang = en
type = QT
[valentina-project.measurements_p998ts]
[o:valentina:p:valentina-project:r:measurements_p5ts]
file_filter = share/translations/measurements_p5_<lang>.ts
source_file = share/translations/measurements_p5.ts
source_lang = en
type = QT
[o:valentina:p:valentina-project:r:measurements_p6ts]
file_filter = share/translations/measurements_p6_<lang>.ts
source_file = share/translations/measurements_p6.ts
source_lang = en
type = QT
[o:valentina:p:valentina-project:r:measurements_p7ts]
file_filter = share/translations/measurements_p7_<lang>.ts
source_file = share/translations/measurements_p7.ts
source_lang = en
type = QT
[o:valentina:p:valentina-project:r:measurements_p8ts]
file_filter = share/translations/measurements_p8_<lang>.ts
source_file = share/translations/measurements_p8.ts
source_lang = en
type = QT
[o:valentina:p:valentina-project:r:measurements_p998ts]
file_filter = share/translations/measurements_p998_<lang>.ts
source_file = share/translations/measurements_p998.ts
source_lang = en
type = QT
[o:valentina:p:valentina-project:r:measurements_p9ts]
file_filter = share/translations/measurements_p9_<lang>.ts
source_file = share/translations/measurements_p9.ts
source_lang = en
type = QT
[o:valentina:p:valentina-project:r:valentina_ts]
file_filter = share/translations/valentina_<lang>.ts
source_file = share/translations/valentina.ts
source_lang = en
type = QT
minimum_perc = 20

View File

@ -18,23 +18,23 @@ NUMBER=${#NUMBER[@]}
# 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=developer -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" &
tx pull -r valentina-project.measurements_p${i}${MEASUREMENTS_BRANCH}ts --mode=sourceastranslation -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 1
done
tx pull -r valentina-project.valentina_${VALENTINA_BRANCH}ts --mode=developer -f --skip &
tx pull -r valentina-project.valentina_${VALENTINA_BRANCH}ts --mode=sourceastranslation -f --skip &
sleep 1
tx pull -r valentina-project.measurements_p998${MEASUREMENTS_BRANCH}ts --mode=developer -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" &
tx pull -r valentina-project.measurements_p998${MEASUREMENTS_BRANCH}ts --mode=sourceastranslation -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
# Resolve any changes to config
qbs resolve -d ../../build_translations modules.i18n.update:true
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
qbs -d ../../build_translations -f ../valentina.qbs -p 'Translations' modules.i18n.update:true
qbs -d ../../build_translations -f ../valentina.qbs -p 'MTranslations' modules.i18n.update:true
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)
runtime=$(python -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))")
echo $runtime