[Gtk-sharp-list] New (stupid) application :)

Jonathan Pryor jonpryor@vt.edu
Fri, 14 Nov 2003 07:33:14 -0500


Inline...

On Fri, 2003-11-14 at 04:56, David Makovský (Yakeen) wrote:
<snip/>
> public void LocalizeGui(){
> 	process_def_dialog.Title = _("...");
> 	info_label.Text = MARKUP_PRE + _("...") + MARKUP_POST;
> 	info_label.UseMarkup = true;
> 	cavity_label.Text = MARKUP_PRE + _("...") + MARKUP_POST;
> 	cavity_label.UseMarkup = true;
> 			
> 	name_label.Text = _("...");
> 	inuse_checkbutton.Label = _("...");
> 			
> 	cavity1_button.Label = _("...");
> 	cavity2_button.Label = _("...");
> }

I don't like this solution at all, because it causes string duplication
between the .glade file and the application.

At worst, this is annoying, but I despise all forms of duplication.

I suppose that, for strings within glade, we could have multiple
different glade files, and then use the resource manager to determine
which file to use. :-)

Alas, this doesn't hook up with the .po file system, but at least when
you're editing the .glade file, you don't need to worry about
duplicating all the strings in the resource manager.  You just
copy/rename the .glade file for each language, and lookup the language
(file) to use at runtime.

 - Jon