Add commands to pull translation from transifex
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Thu, 27 Sep 2018 19:07:57 +0300
changeset 2348 3a755d690398
parent 2347 6dca42cd2b2b
child 2349 645eb1bce0a5
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
i18n/.tx/config
i18n/Makefile
--- /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_<lang>.po
+minimum_perc = 0
+source_file = messages.pot
+source_lang = en
+type = PO
+
--- 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