Hi Udo Am Samstag, 18. August 2007 wrote Udo Richter: > Hi list, > > I've uploaded a little perl script and instructions to convert from the > new gettext based po i18n files to the old i18n.c system of VDR 1.5.6 > and earlier. By using this script its easy to use the new po based i18n > system for translations, and still compile the plugins with full i18n > support all the way back to VDR 1.2.0. > > The script can either be used manually to generate the i18n.c file from > the po files and a template, or automatically as part of the build process. > > Get it here: > http://www.udo-richter.de/vdr/scripts.html#po2i18n > http://www.udo-richter.de/vdr/scripts.en.html#po2i18n > > I kind of enhanced your script to use the CPAN module Locale::PO for reading the .po/.pot files. Your implementation did not handle multi line msgids and msgstrs well. My change adds all strings in the plugins .pot file to the resulting i18n.c file, even when no translation exists for the string and it does not sort the msgids. I called it pot2i18n.pl to take into account that it reads the .pot file too. Usage is analogous to po2i18n.pl. You must specifiy the plugins .pot file as first argument. Feel free to use my changes for your next version if you like. Regards Dieter -- Dieter Hametner mailto: dh+vdr@xxxxxxxxxxxx live plugin developer http://live.vdr-developer.org
Attachment:
pot2i18n.pl.bz2
Description: BZip2 compressed data
_______________________________________________ vdr mailing list vdr@xxxxxxxxxxx http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr