Re: genstrings not working
Re: genstrings not working
- Subject: Re: genstrings not working
- From: "Louis C. Sacha" <email@hidden>
- Date: Sun, 28 Dec 2003 13:52:09 -0800
Hello...
I'm not familiar with using localized strings from java, but is it
possible that the genstrings tool requires that there be a comment?
The objective-c forms of the localized string calls are actually
macros with arguments (string,comment) and (string,table,comment),
and the comment is discarded when the macro is processed and only
exists to be read by genstrings. Maybe if you add a comment string
to your NSBundle.localizedString() calls, it will work ?
For example:
c.headerCell().setStringValue(NSBundle.localizedString("Filename","filename
comment"));
Hope that helps,
Louis
I am trying to update my localized strings with 'genstrings' but
just get errors. Could anyone give an explanation what's going wrong
here?
dkocher$ genstrings -j -o ./English.lproj
source/ch/cyberduck/ui/cocoa/CDBrowserController.java
Bad entry in file
source/ch/cyberduck/ui/cocoa/CDBrowserController.java (line = 100):
Argument is not a literal string.
Bad entry in file
source/ch/cyberduck/ui/cocoa/CDBrowserController.java (line = 113):
Argument is not a literal string.
Bad entry in file
source/ch/cyberduck/ui/cocoa/CDBrowserController.java (line = 125):
Argument is not a literal string.
...
Line 100 for example looks like this in the source
c.headerCell().setStringValue(NSBundle.localizedString("Filename"));
Thanks for any hints :)
- -David
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.