Hi:
we're developing an iphone application to be distributed in Spain. It contains a Tab bar, but we're not quite sure how to change More and Edit into Spanish. I'm sure there's a simple solution... anybody know a way to do it?
Thanks,
Antonio
==== Edit 1 ====
This is how we add the tabbar. As you see, we create a tabBarItem for each button, but the More button comes automatically when there are more than 5 (as should be expected).
for (int i = 0; i < [buttonNames count]; i++) {
switch (i) {
case 1:
viewController = [[fotos alloc] init];
break;
case 2:
viewController =[[videos alloc] init];
break;
case 3:
viewController =[[deportes alloc] init];
break;
default:
viewController = [[MyAppViewController alloc] initWithCategory:i strCategory:[tempNames objectAtIndex:i]];
break;
}
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:viewController];
UITabBarItem *tabBarItem = [[UITabBarItem alloc] initWithTitle:[buttonNames objectAtIndex:i] image:[UIImage imageNamed:[imgNames objectAtIndex:i]] tag:i];
nav.tabBarItem = tabBarItem;
[controllers addObject:nav];
[viewController release];
[nav release];
[tabBarItem release];
}
// Create the toolbar and add the view controllers
tabBarController = [[UITabBarController alloc] init];
[tabBarController setViewControllers:controllers animated:YES];
tabBarController.customizableViewControllers = controllers;
tabBarController.delegate = self;
// Set up the window
[window addSubview:tabBarController.view];
[window makeKeyAndVisible];
==== Solved ====
All I needed was a es.lproj directory in my project. I create a new file in XCode (File > New File... > Mac OS X / Other > Strings File), I name it Localizable.strings and save it in es.lproj. Any strings that need to be localized need to be defined in this file (see Localizing iPhone Apps - Internationalization), but all other strings generated by the OS (the More, Edit and Done buttons in the tabBar, video controls, etc.) will be automatically translated.