Re: [Setup-tool-hackers] Can It cause errors?



On 22 May 2001 16:22:48 -0500, Chema Celorio wrote:
> Carlos Perelló Marín wrote:
> > Will you have any problem?
> 
> no,  sounds like a good idea.
> Hoever a better solution would be to have :
> 
> const XstBootType boot_type[2][] = {
>    {"WindowsNT", _("Windows NT)},
>    {"dos",       _("dos")},
>    ...
>    {"unknown",   _("Unknown)},
> };

arghhhhhhh.

this is *not* C.  this is GNU "C".

you have to use N_() when initializing static strings.

and you don't need the two things here - you can use the untranslated
version internally and the translated one to the user.

jacob
--
In the afterlife, a cute .signature will only get you so far.


_______________________________________________
setup-tool-hackers maillist  -  setup-tool-hackers@ximian.com
http://lists.ximian.com/mailman/listinfo/setup-tool-hackers



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