discuss-gnustep
[Top][All Lists]
Advanced

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

Re: make_strings


From: Fred Kiefer
Subject: Re: make_strings
Date: Tue, 12 Mar 2013 09:12:18 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3

On 10.03.2013 22:56, Riccardo Mottola wrote:
I want to update the localized strings of GWorkspace.

I go into the resources directory and run, for example:

make_strings -L Spanish ../*.*

But I get as a result:
2013-03-10 21:56:11.248 make_strings[12862] No local time zone specified.
2013-03-10 21:56:11.249 make_strings[12862] Using time zone with
absolute offset 0.
2013-03-10 21:56:11.247 make_strings[12862] unable to parse call to
'NSLocalizedString' at ../GWFunctions.h:69

Here the localization happens inside of the macro MAKE_LOCALIZED_LABEL, you should pull the localization code out otherwise make_strings wont be able to extract the text.


2013-03-10 21:56:11.250 make_strings[12862] unable to parse call to
'NSLocalizedString' at ../GWFunctions.m:307

Again no chance for make_strings to extract the actual string. This will make it very hard to port your application to other languages. The localization belongs into the caller.


make_strings: Uncaught exception NSRangeException, reason: in
substringWithRange:, range { 0, 2147483647 } extends beyond size (69)

Just run make_strings in gdb and set a breakpoint on [NSException raise], that is the only way to tell.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]