| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hi Guy,--
As of AppleScript Studio 1.1 there is built in support for handling localized strings. Look at the "localized string" command in the AppleScript Studio Reference for information and examples of how to use it.
Tim Bumgarner
AppleScript Engineering
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!
| References: | |
| >Re: Localizing applescript source code (From: Tim Bumgarner <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.