[vdr] Re: Re: i18n done with gettext
udo_richter at gmx.de
Thu Nov 17 15:47:20 CET 2005
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.
More information about the vdr