Source of the above codeĀ snippet | |
{CVS()}img/flags/flagnames.php{CVS} Note: this one requires an exception (hardwiring) in get_strings.php since img dir is excluded from scanning of strings by default
Chealer9 comments : That looks like a good solution...could you mention a default file to do that. docekal: My suggestion to this temporary solution is to do it like sylvie suggested. Put the strings in
Example: /*get_strings: flagname1 */ just near the place you have the flagname1 constant. Prototype architecture for get_strings.php plugins
The generation of such files should be initiated by get_strings through a defined interface (e.g. support could be provided to actually generate the files only the data structures / variable names should be defined. Also, the plugins needs to be registered. My suggestion is that this is done in an directory called get_strings_modules which contains files which include the corresponding .php-file and calls the correct functionality in that file. |