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".