• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Developing an app interface in a language other than English
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Developing an app interface in a language other than English


  • Subject: Re: Developing an app interface in a language other than English
  • From: Flavio Donadio <email@hidden>
  • Date: Sat, 6 Mar 2010 13:43:38 -0300

Quincey,


Thanks a lot for the help. I really don't want to spend time on an English version that nobody will use.

On 06/03/2010, at 04:14, Quincey Morris wrote:

> Your 'info.plist' file has a key, CFBundleDevelopmentRegion, which is normally set to English. I'd imagine that resources for that language are always required, so that's why you're seeing Xcode complain. Changing this key to your native language should allow that language to be your one and only localization.
>
> See:
>
> 	http://developer.apple.com/mac/library/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-130430

After a lot of struggle, I understand my error.

I assumed that Mac OS X would "automagically" translate the menus for my app, if only I specified its development region or had a single localization in the app bundle. I thought this should be obvious, since the system already has built-in translations for most menu items (i.e.: File, Edit, Copy, Paste, etc.). It seems it's not true.

What I did:

1. Created a new project;

2. Changed the CFBundleDevelopmentRegion key in the app's plist file to "pt_BR", just to let the system know I'm not using English;

3. Removed all resource's localizations, since I assume my app is not localizable or "multi-lingual";

4. Opened MainMenu.xib in Interface Builder and selected Tools -> Strings in the menu;

5. Manually translated all the strings. I based myself on the already existing translations, looking in Mail, TextEdit and other apps.

Now my app is shown in Portuguese, no matter what language preference is specified on System Preferences' Language & Text pane.

I have ask: if Mac OS X already has built-in translations for all standard menu items, why are they "hardcoded" in the XIB file? Is there an easier way, like "capturing" those strings from a system file?


Cheers,
Flavio

P.S.: Suggestion for the list admins: please set the Reply-To header to the lists' address, so we can just click "Reply"...


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Developing an app interface in a language other than English
      • From: David Dunham <email@hidden>
References: 
 >Developing an app interface in a language other than English (From: Flavio Donadio <email@hidden>)
 >Re: Developing an app interface in a language other than English (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Developing an app interface in a language other than English
  • Next by Date: Re: Developing an app interface in a language other than English
  • Previous by thread: Re: Developing an app interface in a language other than English
  • Next by thread: Re: Developing an app interface in a language other than English
  • Index(es):
    • Date
    • Thread