Re: i8n problems



On Thu, 18 Nov 1999, Miguel de Icaza wrote:

> > Also, I have some strings that are in arrays:
> > 
> > gchar *message_list_titles[] = {
> > 	  N_("Status"), 
> > 	  N_("From"),
> > 	  N_("Subject"),
> > 	  N_("Received"),
> > 	  N_("mId")
> > };
> 
> Just make sure that you use _() when acceswsing them:
> 
>      puts (_(message_list_titles [0]));

That's might not work as intended - you'll be asking the translators to
translate the string "message_list_titles [0]". I think doing

	puts(gettext(message_list_titles[0]));

Is proper here.
-- Elliot
Do not meddle in the affairs of dragons,
for you are crunchy and good with ketchup. 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]