Re: Plugin language strings / translation
Posted by xnakos on Jun 10, 2013; 10:30am
URL: https://forum.librecad.org/Plugin-language-strings-translation-tp5708273p5708292.html
Thanks for your effort and the info! I believe that the most correct way (in terms of consistency and scalability - keeping the core translation on its own and not having a file growing every time a new plugin is introduced (in case of having one translation file for all the plugins)) to deal with the plugin translations would be to have a 'ts' directory inside each plugin's directory. For instance,
plugins / sample / ts
keeping each plugin's translation separate. Provided that multiple qm files can be loaded for the current language (which is something that I did not look into - any info on that would be appreciated). This way, the translation for each plugin could be loaded at the time that the plugin is loaded itself.