i18n/README
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Fri, 13 Jan 2017 19:51:36 +0300
changeset 1631 940e20a8865b
parent 814 5743cbdff669
child 1714 64ea7c86a74c
permissions -rw-r--r--
fix issue with printing scheme (FBD, LD or SFC) with comment element on GNU/Linux

If you draw FBD scheme and place comment on it and then try to print
it, then no wires will be printed and comment box is empty (text is
missing). This happens only for wx.PrinterDC and not on wx.MemoryDC
that is used to draw print preview window in Beremiz IDE.
Looks like a bug in wxPython or wxWidgets.

There were found several workaround for this issue.
1) If some dc.DrawLines call is placed before dc.DrawPolygon, then the
problem is gone.

...
dc.DrawLines(polygon)
dc.DrawPolygon(polygon)
...

2) Reseting DC brush solves the problem as well (see this changeset).
361
331d698e1118 Adding support for internationalization
laurent
parents:
diff changeset
     1
To generate message.pot file:
331d698e1118 Adding support for internationalization
laurent
parents:
diff changeset
     2
331d698e1118 Adding support for internationalization
laurent
parents:
diff changeset
     3
	python mki18n.py -p --domain=Beremiz
331d698e1118 Adding support for internationalization
laurent
parents:
diff changeset
     4
	
331d698e1118 Adding support for internationalization
laurent
parents:
diff changeset
     5
To generate .mo files for all languages:
331d698e1118 Adding support for internationalization
laurent
parents:
diff changeset
     6
331d698e1118 Adding support for internationalization
laurent
parents:
diff changeset
     7
	python mki18n.py -m --moTarget=../locale --domain=Beremiz
734
5c42cafaee15 Moved LPC sources to a separate project
Edouard Tisserant
parents: 361
diff changeset
     8
5c42cafaee15 Moved LPC sources to a separate project
Edouard Tisserant
parents: 361
diff changeset
     9
5c42cafaee15 Moved LPC sources to a separate project
Edouard Tisserant
parents: 361
diff changeset
    10
To generate app.fil:
5c42cafaee15 Moved LPC sources to a separate project
Edouard Tisserant
parents: 361
diff changeset
    11
	
814
5743cbdff669 Integration of PLCOpenEditor into Beremiz
Laurent Bessard
parents: 734
diff changeset
    12
    find .. -name "*.py" -exec grep -q '_(' {} ';' -print -o -name "*XSD*" -print -o -name "*.csv" -print | grep -v '/build/' | grep -v '/pyjs/' > app.fil