|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Dynamic translation of a plug-in » » » » Post: Re: Dynamic translation of a plug-in |
Print at Dec 16, 2025, 9:39:30 AM |
| Posted by Daniels118 at Jan 17, 2024, 9:45:34 AM |
|
Re: Dynamic translation of a plug-in It would be nice if the plugin wouldn't need to deal with the translation of the main menu entry, at least if one means to put it in one of the default menus. For example, for some plugins I put entries in the Help menu, so I have to code tenths of lines such these: Help.MENU=Help Help.MENU=Aide etc... It would be nice if the program could check if the menu name matches one of the predefined menu names in English language, and, if so, put the new entry in the proper main menu regardless of the current language. If there is no match, it must behave like now. This behavior would be backward compatible with existing plugins, and plugin programmers shouldn't worry about finding the exact translation of the main menus in SH3D's properties files. The program could also define additional main menu entries for common cases that would be added on demand, such as "Tools". Right now, if a user installs 2 plugins, one of which has just the English entry "Tools", and the other has both English "Tools" and French "Outils", as long the user uses SH3D in English there is no problem, but if he uses French, then the 2 plugins would generate 2 different main menus, which is very ugly. Having optional entries for common cases would solve this problem too. Moreover, being default entries, they would be translated instantly when the user changes the language, which solves the problem raised by EncoNyito, at least for common cases. |
|
|
Current timezone is GMT Dec 16, 2025, 9:39:30 AM |