-
Notifications
You must be signed in to change notification settings - Fork 7
Add custom translations #11
Comments
You can add custom sources that will parse templates and scripts, but that is not what you want. I think you'll want to inject an array with strings right? |
I need auto generate source messages ready for translating. |
I would like something like this in my plugin: public function registerCustomTranslations() { |
Inserting a variable like that won't work. I'll work on something so you can inject the country list into the plugin for translatin. |
I get it with this in my plugin! public function registerTranslateSources() { |
Ah cool! |
Sorry but, my code replace translations updated before... And occurrences aren't showed because they aren't into code... I think the solution is create a new hook which merge file occurrences with custom in TranslateService::get: registerCustomOcurrences |
Ok, i've added this to the develop branch:
It takes one parameter Could you test the develop branch? |
You are great! |
Only a comment. If I add an occurrence and after this occurrence is also into a file, this occurrence appears twice. |
Mmm I found some more bugs too, will work some more on it. |
Hi.
I need add custom translations through a hook. These text are coming from a webservice and I need translate some keys.
How can I add this keys for translate?
Thanks in advance
The text was updated successfully, but these errors were encountered: