Re: Localization of System Preferences Pane
Re: Localization of System Preferences Pane
- Subject: Re: Localization of System Preferences Pane
- From: MacProjects <email@hidden>
- Date: Wed, 11 Nov 2009 03:03:07 +0200
Ah, a small note - copying English.lproj (or any other lproj available there) as lv.lproj (or any other unsupported language) in System Preferences.app
sudo cp -r /Applications/System\ Preferences.app/Contents/Resources/English.lproj /Applications/System\ Preferences.app/Contents/Resources/lv.lproj
enables opening Latvian localization correctly. Of course, this is a hack, that cannot be used for "deployment", but still can be used to debug and test system preference pane bundle written in X language while hoping that in the future Apple will enable support for all languages available in
System Preferences : Language & Text : Language: Edit list...
for System Preference.app
Reinis
On 11.11.2009., at 02:35, MacProjects wrote:
> Filed report:
>
> Enable localization for prefpane bundle used with the System Preferences app
> Product: Mac OS X
> Version/Build Number: 10C540
> Classification: Feature (New)
> Is It Reproducible?: Always
>
> Summary:
>
> When creating a preference pane bundle for System Preferences.app with localizations for languages other than Mac OSX built in localization languages (http://www.apple.com/macosx/specs.html), but which are in
> System Preferences : Language & Text : Language: Edit list...
> the correct language is not loaded, although it is in the first position in System Preferences : Language & Text : Language : Drag languages into order you prefer field.
>
> Steps to Reproduce:
> 1) Open System Preferences : Language & Text : Language
> 2) Set languages in "Drag languages into order you prefer" field as follows: Latvian, English, German.
> 3) Create a new system preference project Foo in Xcode
> 4) English localization is set automatically
> 5) Add "Latvian" or "lv" localization for InfoPlist.strings
> 6) Add "German" or "de" localization for InfoPlist.strings
> 7) Add "Latvian" or "lv" localization for FooPref.xib
> 8) Add "German" or "de" localization for FooPref.xib
> 9) Open FooPref.xib in Interface Builder
> 10) For each localization in PrefPane Window add a NSTextField (i.e. Text Field).
> 11) In each localization set title for NSTextField, i.e., for English "This is text in English", for Latvian "This is text in Latvian", for German "This is text in German".
> 12) Save xib and build the project.
> 13) Install preference pane
> 14) The English localization opens text field shows "This is text in English").
> 15) In
> System Preferences : Language & Text : Language: Drag languages into order you prefer
> field drag German to second place (Latvian, German, English)
> 16) Quit and reopen System Preferences.app and open Foo preference pane
> 17) The German localization opens (text field shows "This is text in German").
> 18) Although in all situations Latvian was the first language, the next language that is Mac OSX localization language opens.
>
> Expected Results:
> Any X language that is available through
> System Preferences : Language & Text : Language: Edit list...
> should be loaded in system preference pane, if the preference pane is localized for it and X language is in the first position in
> System Preferences : Language & Text : Language: Drag languages into order you prefer
> field.
>
> Actual Results:
> See together with "Steps to Reproduce"
> For X language that is available through
> System Preferences : Language & Text : Language: Edit list...
> a localization for a preference pane bundle is made. The language is in the first position of
> System Preferences : Language & Text : Language: Drag languages into order you prefer
> field.
> The localization of the language isn't loaded when opening preference pane in System Preferences.app
>
> Regression:
> Tested on multiple macs (including intel core duo, intel core 2 duo, macbook, macbookpro, imac) running OSX 10.6.2. both after clean install and upgrade install from 10.5.
>
> Notes:
> There is no problem localizing "standalone" Cocoa based applications in Latvian language using methods used above.
> Adding source code for Foo preference pane. Xcode 3.2.1, Interface Builder 3.2.1
>
> 'Foo.zip' was successfully uploaded
>
> Reinis_______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden