|
From: David G. <c0...@cs...> - 2008-01-02 22:02:18
|
Well, yes, but...
After spending a day trying to build 0.17 with no success, I eventually
just used a precompiled gettext-0.16. I cheated and removed the
package-name flag from the SConstruct pot builder. Only to find out
there is something wrong with how gettext is run by scons, and I get no
dcpp/po/dcpp.pot file and a very small win32/po/dcpp-win32.pot file.
Confusion. Running the same command by hand gets the job done however.
Someday I'll just use a Linux box instead of this Windows deal.
I'm curious, why is both _ and _T extracted? Isn't _T the unicode string
marker for win32 unicode/ansi builds? What I expected was that _ was
used for translatable (unicode/ansi) strings, while _T is for hardcode
(unicode/ansi) strings. But perhaps that's just a wxWidgets thing. We
need to make a difference between the two anyhow.
On number 3:
Yes, reading the pot-files and the translated dc++-xml file would be
needed. But how are the strings going to be represented in the pot-file?
Like the actual literal string I hope? ("Add To Favorites" instead of
ADD_TO_FAVORITES or AddToFavorites)
Using the literals, StringDefs.h would have to be input to the
conversion too, in order to translate from the enum value (which is read
from the xml) to the untranslated string (which can be looked up in the
pot). We'd have to modify the makedefs script to output gettext_noop()
around the literals in StringDefs.cpp too.
Also, xgettext is instructed to read the source files as UTF-8, but
makedefs.py seems to think StringDefs.h is in CP1252. What encoding are
the source files supposed to have?
I'll just end this mail here while it's not a book. Sorry for this
gigantic post :)
David
Jacek Sieka skrev:
> Well, if you want to, there are lots of parameter-less strings that one could start with already...3
> can also be done now; as I see it, it should read the pot file and dc++-xml-file and write a po-file
> with all the exact matches translated, and the rest empty...unless you have a better idea...
>
> /J
>
> David Grundberg wrote:
>> When you have decided what formatting function to use, I will help out
>> with 2, 3 and 4.
>>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> dcplusplus-devel mailing list
> dcp...@li...
> https://lists.sourceforge.net/lists/listinfo/dcplusplus-devel
|