• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: genstrings not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Reading return values from NSTask
      • From: KLW <email@hidden>
References: 
 >genstrings not working (From: David Kocher <email@hidden>)

  • Prev by Date: reloading individual rows in tableview
  • Next by Date: Re: Making a delegate NSResponder
  • Previous by thread: genstrings not working
  • Next by thread: Reading return values from NSTask
  • Index(es):
    • Date
    • Thread