plugin

plugin

Ban She -
Atsakymų skaičius: 2

Hello i am developing a new question type plugin and my question is the next :

- how can i make the translation of the language file automatically ? i mean i have my own lang/en/qtype_mytyp.php but when i install the plugin and change the language of moodle  it won't change the" get_strings()" that i used and stay in english !!

Thank you 

Atsakymas į Ban She

Re: plugin

David Mudrák -
Language pack maintainers paveikslėlis

There is no automatic translation. If you plan to contribute the plugin back to the Moodle community and publish it in the Moodle plugins directory, then your plugin will get registered here in AMOS at lang.moodle.org. The community translators will then be able to provide translations for it.

If you do not plan to share the plugin, then you will need to translate it yourself and have the other language pack shipped with your plugin.

https://docs.moodle.org/dev/String_API should have some more details.