[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtkmm
Subject:    Re: parameterized translation strings; what is the solution?
From:       Marko Anastasov <marko () marko ! anastasov ! name>
Date:       2007-05-29 22:54:25
Message-ID: 1180479265.3078.32.camel () localhost ! localdomain
[Download RAW message or body]

У нед, 27. 05 2007. у 17:21 -0500, Paul Elliott пише:

[snip]
> What is the solution that is used everyday in the real world?

In my world :), I use this function:

Glib::ustring
i18n_printf(const Glib::ustring& format, ...)
{
	va_list args;
	va_start(args, format);
	gchar* cstr = g_strdup_vprintf(format.c_str(), args);
	Glib::ustring str(cstr);
	g_free(cstr);
 
	return str;
}

    Marko

_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic