From: David G. <c0...@cs...> - 2007-12-18 07:57:12
|
Jacek Sieka skrev: > - I don't know of any other reasonable formatting solutions (steven suggested printf which on most > unices supports positional arguments by using %m$ but that's not supported on unix and still > requires manual memory managment...) > Did you mean that win32 doesn't have positional parameters? I'm not a win32 developer, but what about printf_p? Doesn't seem that standard though... printf_p: http://msdn2.microsoft.com/en-us/library/bt7tawza(VS.80).aspx > - One possible solution would be to use our own string replacement routines ("%[xxx]")...this is > slightly ugly since we have to create a map each time and convert the arguments to strings manually > (Util::toString), and we lose some of the tooling support that gettext offers for standard format > strings. > Why just not use the syntax of printf's positional parameters? Since gettext recognizes them. Also, translators are more likely to recognize something that is commonly used. > * dcpp/ and win32/ would have separate translation files - but since the strings for both the win32 > and linux gui are similar, it would be nice to have a way to synchronize those strings every now and > then. I'm not sure if there are some tools to merge all equal strings from two po's and leave the > rest alone, but if there aren't a script would be nice here too... > The gnutext manual is geared towards the use case where two packages are merged. I would need to read further, but I think it's possible to "sync" translations between win32/linux using msgcomm and msgcat intelligently. I'm glad to hear this talk about i18n... :) David (individ) |