[Gtk-sharp-list] Set german lamguage

Christian Hoff christian_hoff at gmx.net
Thu Jun 11 12:40:27 EDT 2009


badeoel wrote:
> I have a program, written in C# using GTK#, that is localized for english. I
> want to translate it to german and changed all texts inside the sourcecode.
> But I have a problem: All dialogs (Color-Dialog, Yes/Now-Dialogs) use
> english words and I don't know, how to translate them. I'm pretty sure, that
> I can switch the language of the gtk-part to german, but I have no Idea, how
> to do that. 
>   
The language of the Gtk+ strings should match the language of your 
operating system. If you want to allow the user to specify a different 
language in the application itself, the only way that I'm aware of is to 
set the "LANG" environment variable(not sure whether that works on 
non-unix operating systems, too) via g_setenv. See bug 
https://bugzilla.novell.com/show_bug.cgi?id=477396 for details.

Christian


More information about the Gtk-sharp-list mailing list