Mailing Lists: Apple Mailing Lists

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

Localizing applescript source code



Hi all,

I'm trying to localize my app to French, so far I know how to deal
with the NIB files, but would appreciate pointers as far as localizing
strings generated by the script itself (dialogs, title, text
fields...). I've read a bit about the NSLocalizedString() and .strings
file method on Apple's Dev site but don't quite understand how to
implement it in an AppleScript application (if at all possible).

In my script, if I have:

set title of cell "cell_" of matrix "matrix_" of window "window_" to
"Use this new title"

and I thought I could just replace it to:

set title of cell "cell_" of matrix "matrix_" of window "window_" to
NSLocalizedString("this string")

and it would read from the .strings file:

/* this entry for cell title of matrix */
"this string" = "Use this new title";

But that doesn't work, as the NSLocalizedString() turns into a
variable (green when compiled).
So I'm obviously missing the point somewhere.

Any help much appreciated!

Guy
--
autoMAC-it
mailto:email@hidden
visit: http://www.dizzypenguin.com/automac-it/
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.



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.