i18n/Makefile
author Dino Kosic <44305363+kraskrom@users.noreply.github.com>
Mon, 02 Dec 2024 11:33:19 +0100
changeset 4056 4b2de1a0fbf9
parent 2348 3a755d690398
permissions -rw-r--r--
Extend HMI:JsonTable, create Edit CSV POU, create example, add some doc (#41)

* Extend Jsontable widget, create Edit CSV POU, create example for both

* Add doc for HMI:Image and HMI:JsonTable

* Expand example to include HMI:Image
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

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