From: Eric O. <er...@ob...> - 2006-06-24 14:00:28
|
On 24 Jun 2006, at 14:16, Achim Weber wrote: snip... > As for the generation of the message files, we already have a small > perl script which checks for translations: > http://ipcop.cvs.sourceforge.net/ipcop/ipcop/tools/check_strings.pl? > revision=1.3&view=markup > I have modified this script for my BOT addon where it generates the > BOT language files. So we can go the OO-way with gettext and use this > script to generate the ascii-gettext files (IIRC these are the .po > files?). The check_strings.pl script is used to see if there are any untranslated, or unused, phrases in the cgi codebase. I'm not sure if the current script will work on v1.5, as it was designed for v1.4. The current v 1.4 version also fails to find translation strings in the 'makegraphs' script, and the logs.cgi sub-directory IIRC, so it has to be used bearing this points in mind. I have found it a very useful tool over the years. The script that downloads the language files from the IPCop Language Database is called fetchlangs.pl http://ipcop.cvs.sourceforge.net/ipcop/ipcop/tools/fetchlangs.pl? view=log Alan modified it to work for v1.5 I think we could look at adding your new phrases to the Language Database after v1.4.11 is released, unless we want to modify the whole system? Eric |