Our app contains two Localizable files in en.lproj
and in nl.lproj
. The files are copied to the product. (Check the IPA.) When requesting the localized string with NSLocalizedString(@"input_dialog_title", nil)
we get the key as a result. The Localizable file is visible in the XCode project tree and has the two localized versions.
Update: There is no old Localizable.strings file in the root of the IPA. I cleaned and rebuild the project. I even tried restarting XCode.
Update2: The locale is en_US. I tested both nl
and en
through the -AppleLanguages (xx) parameter.
Any ideas as to why this happens?
The contents of the string files are as follows. For the English version:
/*
Localizable.strings
BINK Glaser
Created by Alessandro Vermeulen on 31-07-13.
Copyright (c) 2013 Alessandro Vermeulen. All rights reserved.
*/
"input_dialog_title" = "New Value";
And for the Dutch version:
/*
Localizable.strings
BINK Glaser
Created by Alessandro Vermeulen on 31-07-13.
Copyright (c) 2013 Alessandro Vermeulen. All rights reserved.
*/
"input_dialog_title" = "Nieuwe waarde";