# HG changeset patch # User Andrey Skvortsov # Date 1538064477 -10800 # Node ID 3a755d690398e6393740e64b15d1c63ddce99883 # Parent 6dca42cd2b2bfbf1617f32a5c6d3318080432e63 Add commands to pull translation from transifex tx - transifex cli client should be installed in the system. It's free software and is available in Debian archive. Run following commands: 1. Init your authorization token $ make transifex_init 2. Pull translations $ make transifex_pull diff -r 6dca42cd2b2b -r 3a755d690398 i18n/.tx/config --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/i18n/.tx/config Thu Sep 27 19:07:57 2018 +0300 @@ -0,0 +1,10 @@ +[main] +host = https://www.transifex.com + +[beremiz-ide.beremiz] +file_filter = Beremiz_.po +minimum_perc = 0 +source_file = messages.pot +source_lang = en +type = PO + diff -r 6dca42cd2b2b -r 3a755d690398 i18n/Makefile --- a/i18n/Makefile Wed Sep 26 18:08:57 2018 +0300 +++ b/i18n/Makefile Thu Sep 27 19:07:57 2018 +0300 @@ -16,4 +16,12 @@ echo "../plcopen/Additional_Function_Blocks.xml" >> app.fil echo "../plcopen/Standard_Function_Blocks.xml" >> app.fil +transifex_init: + tx init --skipsetup + +transifex_pull: + tx pull --all + find . -name '*.po' -exec sed -i 's/charset=CHARSET/charset=UTF-8/' {} \; + + .PHONY: all, template, locales, source_list