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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to