Re: Re: i18n done with gettext

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Iwan Davies wrote:
> You could still get collisions within a single plugin, unless you use
> unique string IDs (assuming this is how gettext works?).

The current implementation of VDR - and the typical use of gettext - use
the English translation as a key, with the option to pass through this
text if no translation is found. (gettext: or no language file found)

There may be a way to 'tag' in gettext, so that in case of pass-through
at least the tag gets removed, don't know. VDR's i18n allows such tags
in form "tag$english text", where everything up to $ will always be
deleted on output.

> Sharing strings even within a plugin is /a bad idea/ - you never know where
> the string might be reused next time, and the translator may need to
> inflect, conjugate or decline the term differently in each context.

Plugins are usually maintained by one person, so this shouldn't be as
problematic as with all plugins in one context.

Cheers,

Udo


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux