Re: cocoa-dev digest, Vol 2 #3404 - 14 msgs
Re: cocoa-dev digest, Vol 2 #3404 - 14 msgs
- Subject: Re: cocoa-dev digest, Vol 2 #3404 - 14 msgs
- From: David Kocher <email@hidden>
- Date: Mon, 29 Dec 2003 02:44:40 +0100
Louis,
You are right. When adding a comment it works. Very odd that the
genstrings utility only knows to handle this variant properly.
Thanks
--David
On Dec 28, 2003, at 10:53 PM, email@hidden wrote:
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","file
name
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.