Changing language of tab bar elements
<p>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?</p>

<p>Thanks,</p>

<p>Antonio</p>

<p>==== Edit 1 ====</p>

<p>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).</p>

<pre><code>for (int i = 0; i &lt; [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];
</code></pre>

<p>==== Solved ====</p>

<p>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 <a href="http://www.iphonesdkarticles.com/2008/11/localizing-iphone-apps.html" rel="nofollow">Localizing iPhone Apps - Internationalization</a>), but all other strings generated by the OS (the More, Edit and Done buttons in the tabBar, video controls, etc.) will be automatically translated.</p>
