--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/i18n/Makefile Tue Oct 03 16:07:02 2017 +0300
@@ -0,0 +1,19 @@
+all:
+ @echo "Please specify target 'source_list', 'template' or 'locales'"
+
+template:
+ @echo To generate translation template message.pot file:
+ python mki18n.py -p --domain=Beremiz
+
+locales:
+ @echo "Generate .mo files for all languages:"
+ python mki18n.py -m --moTarget=../locale --domain=Beremiz
+
+
+source_list:
+ echo @To "Generate list with source files: app.fil:"
+ find .. -name "*.py" -exec grep -q '_(' {} ';' -print -o -name "*XSD*" -print -o -name "*.csv" -print | grep -v '/build/' | grep -v '/pyjs/' > app.fil
+ echo "../plcopen/Additional_Function_Blocks.xml" >> app.fil
+ echo "../plcopen/Standard_Function_Blocks.xml" >> app.fil
+
+.PHONY: all, app.fil, locales, messages.pot
--- a/i18n/README Mon Oct 02 13:19:06 2017 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-To generate message.pot file:
-
- python mki18n.py -p --domain=Beremiz
-
-To generate .mo files for all languages:
-
- python mki18n.py -m --moTarget=../locale --domain=Beremiz
-
-
-To generate app.fil:
-
- find .. -name "*.py" -exec grep -q '_(' {} ';' -print -o -name "*XSD*" -print -o -name "*.csv" -print | grep -v '/build/' | grep -v '/pyjs/' > app.fil
- echo "../plcopen/Additional_Function_Blocks.xml" >> app.fil
- echo "../plcopen/Standard_Function_Blocks.xml" >> app.fil
\ No newline at end of file