I'm trying to setup some basic localization via XCode.
I have done the following:
- Added a new Localize.strings file.
- Added French to my applications localization settings.
The one localized file is the Localize.strings file.
- I have added an 'Open File' localized string to my Localize.strings file.
- I have created an outlet, linked it to a button and added the following code:
Code (could not figure out how to get this inline with the bullet):
- (void) awakeFromNib
{
// Add any code here that needs to be executed once the windowController has loaded the document's window.
[openButton setTitle: NSLocalizedString(@"Open File", nil)];
}
My openButton
is NOT null.
I have moved French (Francais) to be the prefered language in the language and text system preference. I launch the application and the title is localized, but my button is not!
Am I missing something stupid? Did I do something wrong here? From the tutorials I have read, this should do the trick, but it does not seem to be. Any suggestions?