From: Xavi de P. <xav...@vh...> - 2011-08-22 09:29:13
|
Hi Rodrigo and thanks for your work on i18n I haven't trid yet, but I foresee some issue if non-used strings are removed. Some of those "apparently" unused strings belong to the localization of mods, and they are indeed used when the mod is installed. Or for custom menus, etc. How is this going to be handled with this new approach of get_strings2.php? Xavi On 19/08/11 19:07, Rodrigo Primo wrote: > Hi, > > I have created a new get_strings.php script. For now it is called > get_strings2.php and if everything is working good it will replace the > old script. > > Please help testing the new script and report bugs and suggestions. > See the header of the file for a list of accepted parameters. Let me > know if you miss any option available in the old script that I didn't > implemented in the new one. > > There are only two differences visible to the translators: > > 1) The new get_strings.php doesn't keep in language.php files unused > strings as the old one does. > 2) language.php files are not divided anymore in translated, > untranslated and unused sections. The strings are ordered as they > appear in the source files independently if they have been translated > or not. > > The main motivation to rewrote the script was to make it easier to > maintain and extend the code in the future. > > In the process I fixed some old bugs. Like > https://dev.tiki.org/tiki-view_tracker_item.php?itemId=3881 and > https://dev.tiki.org/tiki-view_tracker_item.php?itemId=3975 (the bugs > were fixed both in the old and new get_strings.php). > > If there are no objections or bugs I'm planning to replace the old > get_strings.php with the new script by the end of the next week. > > Cheers, Rodrigo. > > -- > http://rodrigo.utopia.org.br > > |