4.7. Localization and Internationalization¶
When building obfuscated scripts
pyarmor gen foo.py
messages.cfg exists, then read this file and save customized message to runtime key
If this file is not encoded by
utf-8, set the right encoding
XXX by this command:
$ pyarmor cfg messages=messages.cfg:XXX
When launching obfuscated scripts
When something is wrong, the obfuscated script need report error which has an error code:
First decide default language by checking the following items in turn
Then search error message table in the runtime key, if there is an error message both of language code and error code are matched, then return it.
Otherwise return default error message.