[vdr] improving i18n-to-gettext.pl

Klaus Schmidinger Klaus.Schmidinger at cadsoft.de
Fri Aug 17 14:37:15 CEST 2007

On 08/15/07 15:07, Matthias Schwarzott wrote:
> On Mittwoch, 15. August 2007, Klaus Schmidinger wrote:
>> On 08/15/07 14:02, Matthias Schwarzott wrote:
>>> On Mittwoch, 15. August 2007, Matthias Fechner wrote:
>>>> Hi Matthias,
>>>> because German is spoken in more then one country: de_DE, de_AT and I
>>>> think de_CH and more. I havn't not list with all locales here now.
>>> Yeah, german is spoken in other countries. Is there then a reason to
>>> restrict the translation to germany?
>>> some example:
>>> wget installs the file /usr/share/locale/de/LC_MESSAGES/wget.mo
>>> this is to provide translations for "all" de* locales. Not just the
>>> german one, but also for austria and swiss.
>> I just tried renaming VDR's "de_DE" locale to "de" and did
>> LC_ALL=de_AT ./vdr
> This will work, but only if the locale de_AT you set does exist (being in 
> output of locale -a).
>> but it came up with the default English texts. Then I renamed
>> "de" to "de_AT" and did the same again, and I got the German texts.
>> I was hoping that gettext would be a little more intelligent and
>> look for
>> - an exact match ("de_AT")
>> - a default ("de")
>> - any suitable language ("de_DE")
> I think it does this but not doing "any suitable language".
> ...

Could you please try the attached patch and see whether this
works for you?

This should, e.g., select any "de*" locale in case there is no fully
matching one.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vdr-1.5.7-i18n-matchlocale.diff
Type: text/x-patch
Size: 1406 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/vdr/attachments/20070817/5196bc1e/attachment.bin 

More information about the vdr mailing list