Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

localized string returns input string




I'm trying to use the command 'localized string' in Applescript Studio 1.4, Xcode 2.3.


I've added a strings file to my bundle as "Contents/Resources/ English.lproj/Localizable.strings" saved in UTF-16 and formatted as:

/* Gadgets */
"Yes" = "foo";
"No" = "bar";

If I ask for the localized string "Yes" with 'display alert (get localized string "Yes")' then "Yes" is returned. If I ask for a localized string "Maybe" that isn't in the strings file the command returns "Maybe" regardless. If I ask the command to search a strings file that doesn't exist with 'display alert (get localized string "Yes" from table "foobar")' it returns "Yes" with no errors. Now this is the icing on the cake, if I ask 'display alert (get localized string (1+1))' it returns "2".

What am I doing wrong?

Regards,
Daniel Pimley

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.