-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
Description
As I understand it, the error message code is not optimized to create localization. There is no great need for this, but it would be nice to add this feature too.
Just add "_ ()":
print(_("Triggered LinuxCNC E-Stop"))
Also need to be added at the beginning:
import locale
import gettext
and something like this:
locale.setlocale( locale.LC_ALL, '' )
locale.bindtextdomain( "awlsim", LOCALEDIR )
gettext.install( "awlsim", localedir = LOCALEDIR, unicode = True )
gettext.bindtextdomain( "awlsim", LOCALEDIR )