Re: [vdr] [ANNOUNCE] po2i18n - converter for plugin backwards compatibility

2007-08-19 Thread Udo Richter
Dieter Hametner wrote:
> 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.

Hmmm, ok, I don't have multi-line strings that need translation, but 
this is probably worth a fix.
But I don't really want to depend on Locale::PO, as it is not very 
likely to be installed on systems out there.

> 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.

Since all po files get updated too all the time, reading the pot file is 
not really necessary.


Cheers,

Udo


___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] [ANNOUNCE] po2i18n - converter for plugin backwards compatibility

2007-08-19 Thread Dieter Hametner
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 Hametnermailto: [EMAIL PROTECTED]
live plugin developer  http://live.vdr-developer.org


pot2i18n.pl.bz2
Description: BZip2 compressed data
___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] [ANNOUNCE] po2i18n - converter for plugin backwards compatibility

2007-08-18 Thread Udo Richter
Michael Brueckner wrote:
>> Get it here: 
>> http://www.udo-richter.de/vdr/scripts.html#po2i18n
>> http://www.udo-richter.de/vdr/scripts.en.html#po2i18n
> 
> The download-links don't work. I think you must link to 'po2i18n-0.1.tgz' 
> instead of 'po2i18n.tgz' :)

Oooops! That happens if you don't check every link twice. ;)

Fixed. Thanks.


Cheers,

Udo

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] [ANNOUNCE] po2i18n - converter for plugin backwards compatibility

2007-08-18 Thread Michael Brueckner
Hi Udo!

Am Samstag 18 August 2007 schrieb Udo Richter:
> 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.

[...]

> Get it here: 
> http://www.udo-richter.de/vdr/scripts.html#po2i18n
> http://www.udo-richter.de/vdr/scripts.en.html#po2i18n

The download-links don't work. I think you must link to 'po2i18n-0.1.tgz' 
instead of 'po2i18n.tgz' :)

Regards
Michi

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr