Thanks for the explanation Tobias, I wasn't suggesting you don't know how
to use gettext at all :-).  I just wasn't clear on what the limitation was,
and that is now perfectly explained as always, thanks.


On Tue, Oct 29, 2013 at 3:25 PM, Tobias Ellinghaus <[email protected]> wrote:

> Am Dienstag, 29. Oktober 2013, 14:10:56 schrieb Dimitrios Psychogios:
> > According to https://developer.gnome.org/glib/2.30/glib-I18N.html there
> is
> > a way to handle strings in enums and lists (use the N_() macro to define
> > them and then use gettext explicitly to display them in the UI, has
> anyone
> > tried this?
>
> That is not the problem at hand. I know how to use gettext. The problem is
> that the string selected there gets stored in the configuration file, and
> putting localized entries into a configuration is always a bad idea.
>
> One could think about storing the index of the selected entry instead, but
> that will break once new entries get added anywhere but the end of the
> list.
>
> So the real fix that no one felt the need to implement is to put the
> translated
> string into the list, and after confirming the dialog the code has to
> iterate
> over the possible options and compare the selected string with the
> translation
> of the current iterator position. Ugly.
> An alternative would be to not use normal drop down boxes but something
> that
> internally stores a second column with the untranslated string so that can
> be
> written out. Les ugly but takes more work to implement.
>
> If anyone feels the need to write that code please approach me (houz) in
> IRC
> and discuss it. But who knows, maybe I will feel bored myself and do it.
>
> Tobias
>
> [Full quote due to top posting]
>
> ------------------------------------------------------------------------------
> Android is increasing in popularity, but the open development platform that
> developers love is also attractive to malware creators. Download this white
> paper to learn more about secure code signing practices that can help keep
> Android apps secure.
> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
> _______________________________________________
> darktable-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/darktable-devel
>
>


-- 
Psychogios Dimitrios,
IT Systems Specialist
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
darktable-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-devel

Reply via email to