Last Comment Bug 100346 - system dialogs always in English on OS X
: system dialogs always in English on OS X
Status: NEW
: l12y
Product: Core
Classification: Components
Component: Internationalization (show other bugs)
: Trunk
: PowerPC Mac OS X
-- normal with 3 votes (vote)
: ---
Assigned To: Simon Montagu :smontagu
: Makoto Kato [:m_kato]
Depends on: 62174 44070
Blocks: 103669
  Show dependency treegraph
Reported: 2001-09-18 11:14 PDT by Ying-Lin Xia
Modified: 2010-02-02 20:16 PST (History)
7 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Description User image Ying-Lin Xia 2001-09-18 11:14:59 PDT
Switch OS X to another language, say Japanese, all system dialogs like 
Open/Save/Print/... are not in Japanese. Bug 95478 may related. But it's more 
serious here, cause we can not localize the current build to other languages.
Comment 1 User image Frank Tang 2001-09-18 13:40:25 PDT
how about other application? Do other applications show these Dialog in 
Comment 2 User image Frank Tang 2001-09-18 13:41:47 PDT
reassign to ftang
Comment 3 User image Ying-Lin Xia 2001-09-18 14:12:28 PDT
Other app like Apple software, IE 5.1, ... switch to the current system 
language properly.
Comment 4 User image Jaime Rodriguez, Jr. 2001-09-19 16:01:17 PDT
This needs to be fixed.
Comment 5 User image Michele Carlson 2001-09-19 16:55:56 PDT
adding nsbranch+
Comment 6 User image Ying-Lin Xia 2001-09-19 18:11:39 PDT
Comparing with other app on OS X, Apple app and IE, our current build can not 
support OS X multi-language feature like others do. Our problems are:

1) As this bug originally reported, all system dialogs like Open/Save/Print/... 
are always in English, no matter to switch to what language. This makes us 
localization impossible.

2) Another thing is, all other app including IE, once you switch the system 
language, their UI will be in that language automatically, ie, all 
menu/dialog/message will be in Japanese, French, ... whatever system language 
you choose. All our UI (not the system dialog mentioned above) are always in 
one language. Should we file another bug for this issue?
Comment 7 User image tao 2001-09-19 18:22:38 PDT
The problems are:

1. Mozilla's locale should defautl to the system's locale. ->, 
    "Match browser's default locale/region to OS's default"
2. Mozilla does not listen to the system notification of locale (language) change
3. Mozilla can not switch (locale) chrome providers on the fly yet ->
   ( "Dynamic locale switching")

Comment 8 User image Michele Carlson 2001-09-20 13:26:07 PDT
Frank/Tao - is it going to be possible to provide a fix for this in the emojo
timeframe? If not, we really have to ask ourselves if we want to ship Mac OS X
localized products or not. 

Comment 9 User image Frank Tang 2001-09-20 14:56:51 PDT
ok, I work with yxia and find out a solution. The solution only to got involved 
in the localization process. 
we need to change the language id inside the 'vers' resource (there are two ID 
of them, we need both) of "Netscape 6" from USA to Japan (or other language). 
The System dialog is display depend on that value. If the vaule is English, it 
will display as English, if the value is Japan, it will display as Japanese. 
reassign this bug back to yxia. 

We don't need C++/C code change. We do need manual tweak in the localization 
process thought. 
Comment 10 User image Ying-Lin Xia 2001-09-20 15:07:20 PDT
This means we have to touch the binary for localization. We can live with it 
for the current release, but please consider possible fix for it.

For Mac OS 8/9, we didn't touch the binary for localization.
Comment 11 User image Ying-Lin Xia 2001-09-20 15:29:49 PDT
Another case is, if user is using US build and then installed Japanese language 
pack, the user still can not see those dialogs in Japanese. Should I reassign 
it back to you for future fix, Frank?
Comment 12 User image Ying-Lin Xia 2001-09-21 17:56:58 PDT
removing nsbranch+
Comment 13 User image Michele Carlson 2001-09-24 10:42:53 PDT
Ying will fix this in the JA localized build this time. Danielmc - make sure
this is fixed in your euro builds too. Next time, we'd like it fixed in the core
Comment 14 User image danielmc 2001-09-25 05:58:28 PDT
What did you guys use to Edit the resource in the Binary? OSX Resourcer?
Comment 15 User image Ying-Lin Xia 2001-09-25 10:13:10 PDT
Use ResEdit or Resourcer on OS 9, to edit the OS X app's rsrc ;-)
Comment 16 User image Ying-Lin Xia 2001-10-04 18:57:16 PDT
Frank, I can change the language id for Japanese release, I have same bugs in 
bugscape, but I can not do anything for this bug now. Reassign this to you for 
a future possible core fix. Again, for now, if user use US build on JA OS X, 
they still see English dialogs. This is nothing about localization.
Comment 17 User image Frank Tang 2001-10-05 18:05:29 PDT
>This means we have to touch the binary for localization. We can live with it 
>for the current release, but please consider possible fix for it.
resource fork in the Mac is not consider "binary" by Apple's standard
All other mac app localize by changing resource fork. This is not defined by
Netscape, but by Apple. Unless Apple change that story, we can do nothing. 

>For Mac OS 8/9, we didn't touch the binary for localization.
You should, other wise, copy and paste won't work. Many other feature will be
broken. Setting 'vers' resource correctly is an Apple Macintosh standard, all
our system integration is depend on that value. Language pack and Script system
heavily depend on that value. Again, this is a system integration issue, it is
not defiend by Netscape, but defined by Apple. 

>Another case is, if user is using US build and then installed Japanese language 
>pack, the user still can not see those dialogs in Japanese. Should I reassign 
>it back to you for future fix, Frank?
then user have to register it by using the language registration application
came with LAnguage Kit

>Use ResEdit or Resourcer on OS 9, to edit the OS X app's rsrc ;-)

Any tool which can change resource should be fine. How about MPW ?

Comment 18 User image Frank Tang 2001-10-05 18:12:59 PDT
* Region code. This identifies the script system for which this version of the
software is intended. See the chapter "Script Manager" in Inside Macintosh: Text
for information about the values represented by the various region codes that
can be specified here.
Comment 19 User image Steve Dagley 2001-10-05 18:28:47 PDT
Actually a more up to date reference for doing this under OS X can be found in 
the Mac OS X System Overview <
Essentials/SystemOverview/index.html>.  The specific sections of interest are 
Application Packaging <
SystemOverview/AppPackaging/index.html> and Internationalizing Your App <http://
Comment 20 User image Frank Tang 2001-10-08 14:39:07 PDT
maybe this will be solved by providing multiple language bundle on MacOS. 
nhotta, can you take a look at this one ?
Comment 21 User image nhottanscp 2001-10-15 16:08:22 PDT
It looks to me that system dialogs should be handled by the system. Not sure why
applications have to localize system dialogs.
Comment 22 User image Frank Tang 2001-10-16 12:40:09 PDT
The problem is we need to sync the sys dialog with our language pack (or sync
our language pack with the user prefere language)
CFBundleGetDevelopmentRegion . This api may help us to find out what region the
system want the app to run. (assume we provide some bundle)
Comment 23 User image tao 2001-10-16 12:46:25 PDT
My taking is to use the system locale as a reference to default settings of the
client's UI language and regional content. Users can choose not to follow the 
system's default. We need to investigate how this change would affect the
application's locale, though.
Comment 24 User image nhottanscp 2001-10-16 13:04:26 PDT
Two cases,
1) At mozilla locale switch, notify the change to system.
2) Mozilla to switch locale according to the system locale preference.
Also need to investigate if we want to do runtime or requiring the app restart.
Comment 25 User image nhottanscp 2001-10-26 16:02:41 PDT
Edit Info.plist and adding CFBundleDevelopmentRegion, then the system dialog 
uses that language instead of the global language set by the control panel.
Comment 26 User image danielmc 2001-11-20 09:40:53 PST
Use this format:


The language code follows ISO 639-1 Alpha-2 2letter identifier codes.

Be sure not to place these strings in the middle of another key sequence....
Comment 27 User image nhottanscp 2001-12-07 13:19:57 PST
Ying mentioned that this is possible by adding some virtual properties.
Ying what is the bug number? This can be a dup of that.
Comment 29 User image Steve Dagley 2002-03-18 08:51:08 PST
Considering bug's current status removing as a blocker for 102998
Comment 30 User image Greg K. 2002-06-20 21:50:18 PDT
Should this be moved to the Localization component instead of Browser-General?

Note You need to log in before you can comment on or make changes to this bug.