Our custom modules in PyroCMS need to support multiple languages. How is this done? Particularly:
/addons/<module name>/language/
. Is this right?"greeting" = "Gibberish Hello"
. Must we also define "greeting"
in english, etc.?"cp_title" = "Control Panel"
must be translated into "cp_title" = "Gibberish Control Panel"
, etc.?Setting "?lang=zz" (where "zz" is the language we tried to add) gave us the following error:
A PHP Error was encountered
Severity: Notice
Message: Undefined index: en
Filename: core/MY_Controller.php
Line Number: 83
I answered this on or forums, but once again: here is the documentation:
http://docs.pyrocms.com/2.2/manual/developers/contributing/translating-language-files