Re: parameterized translation strings; what is the solution?



On Wed, 2007-06-06 at 14:55 +0200, Toralf Lund wrote:
> Paul Elliott wrote:
> > How are parameterized translation strings commonly handled? [ ... ]
> >
> >
> >
> > What is the solution that is used everyday in the real world?
> >   
> It seems to me that the simple answer to your questions is "printf". 

g_strdup_printf() is particularly useful.

> Despite the limitations you mention. I don't think it is entirely true 
> that it isn't typesafe, by the way. I mean, there aren't (can't be) 
> proper type checks, of course, but e.g. newer versions gcc/g++ will in 
> fact issue a warning if there is a mismatch between the format and the 
> arguments.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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