Localizing iPad apps
I am creating an iPad app and I have a file Localizable.strings
that is in English and Dutch:
English.lproj / Localizable.strings
"failed to copy file" = "Failed to copy file";
"failed to copy defaultFeeds.plist" = "Failed to copy defaultFeeds.plist form the application bundle to the device documents directory for this app. Please make sure the device has space available on the flash memory. Please push the home button, connect your device to iTunes and check how much space there is available. Remove things you don't need and try again. If the problem presists, please contact us. You can find our support page in the App Store in iTunes.";
Dutch.lproj / Localizable.strings
"failed to copy file" = "Bestand kopieëren mislukt";
"failed to copy defaultFeeds.plist" = "Het kopieëren van defaultFeeds.plist van de applicatiebundel naar de documenten map van het apperaat is mislukt. Ga alstublieft na of het apparaat ruimte heeft op het flash geheugen. Druk op de Home-knop, verbind het apparaat met iTunes en controleer hoeveel ruimte er beschikbaar is. Verwijder dingen die je niet nodig hebt en probeer het opnieuw. Als de problemen voortzetten, kunt u contact met ons opnemen. U kunt onze support-page vinden in de App Store in iTunes.";
When I comment out the error checking, so I'm sure I'm getting the error, I get the English version, even though the language of the iPhone Simulator is set to Dutch:
// Copy defaultFeeds if run for the first time
//if(![[NSFileManager defaultManager] fileExistsAtPath:FEEDS_PLIST_IN_CURRENT_APP_DIRECTORY_PATH]) {
// if(!) is for handling errors
//if(![[NSFileManager defaultManager] copyItemAtPath:[[NSBundle mainBundle] pathForResource:@"defaultFeeds" ofType:@"plist"] toPath:FEEDS_PLIST_IN_CURRENT_APP_DIRECTORY_PATH error:nil]) {
UIAlertView *copyFailedAlertView = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"failed to copy file", @"failed to copy file") message:NSLocalizedString(@"failed to copy defaultFeeds.plist", @"failed to copy defaultFeeds.plist") delegate:nil cancelButtonTitle:nil otherButtonTitles:nil];
[copyFailedAlertView show];
[copyFailedAlertView release];
//}
//}
Also, the debugger says:
There is no HW layout for this input mode, defaulting to US
Can anyone help me? Thanks.
+2
user142019
source
to share
1 answer
Did you create Localizable.strings file via Xcode4 frontend?
Old-style naming conventions (English.lproj, Dutch.lproj) have been replaced with the standard format (en.lproj, nl.lproj). Select the "Localizable.strings" file and the user interface on the right side:

See if it changed something for you.
0
source to share