[Gtk-sharp-list] Trying again.

Lee Mallabone gnome@fonicmonkey.net
23 Mar 2003 18:58:31 +0000

On Sun, 2003-03-23 at 19:03, Charles Iliya Krempeaux wrote:
> The only problem with this, is that I don't think "gettext" has a C#
> binding.

While I'm not a translator, I'd count that as a blessing rather than a
problem. :) It's always been a pain to setup & maintain in my (limited)
experience of it.

> So... as far as I know, you are left creating your own solution for
> l10n.  (.NET might have one built in... but if it does, I don't know
> about it.)

The .NET way of doing culture-specific things is with a ResourceManager.
>From what I remember reading, it's not tied to strings alone but has a GetString() method that takes a 'name' and a CultureInfo object to retrieve localized strings from a "resource".

I've been looking at this recently because the CultureInfo support in mono isn't complete yet, and I've been working locally on improving it.

In short, reading up on ResourceManager is a good idea - it looks like it provides a far nicer way of managing l10n than binding gettext would...