Issue 97990 - Duplicate entries in language selection box (Mac only)
Summary: Duplicate entries in language selection box (Mac only)
Status: CONFIRMED
Alias: None
Product: porting
Classification: Code
Component: MacOSX (show other issues)
Version: OOO300m9
Hardware: Mac Mac OS X, all
: P3 Trivial (vote)
Target Milestone: 4.x
Assignee: AOO issues mailing list
QA Contact:
URL: http://specs.openoffice.org/appwide/l...
Keywords: aqua
Depends on:
Blocks:
 
Reported: 2009-01-12 14:58 UTC by stefan.baltzer
Modified: 2013-01-29 21:49 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Multiple Language entries in Writing Aids edit dialog (57.93 KB, image/png)
2009-01-12 15:02 UTC, stefan.baltzer
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description stefan.baltzer 2009-01-12 14:58:31 UTC
Tools - Options - Language settings - Writing aids
In the "Available languages" area, click button <Edit>
-> see summary and screenshot

Note: Only Mac is affected and occurs in German and EN UI.
Other language lists (i.e. Format-Character-Tab "Font") are OK.
Comment 1 stefan.baltzer 2009-01-12 15:02:11 UTC
Created attachment 59329 [details]
Multiple Language entries in Writing Aids edit dialog
Comment 2 pb 2009-01-19 07:49:42 UTC
pb -> tl: please take over. 
This language box was filled by the methods of SvxLinguData_Impl.
Comment 3 thomas.lange 2009-01-19 14:40:04 UTC
Not time left to fix  this one in OO0 3.1 because of other issues.
Comment 4 thomas.lange 2009-01-30 15:00:46 UTC
The reason for this is the Mac OSX Spellchecker namely the function
MacSpellChecker::getLocales. The list of (68! locales) returned by that funciton
looks like this:

da      da-DK

de      de-AT   de-BE   de-CH   de-DE   de-LU

en      en-AU   en-BE   en-BW   en-CA   en-GB
en-HK   en-IE   en-IN   en-MT   en-NZ   en-PH
en-PK   en-SG   en-US   en-VI   en-ZA   en-ZW

es      es-AR   es-BO   es-CL   es-CO   es-CR
es-DO   es-EC   es-ES   es-GT   es-HN   es-MX
es-NI   es-PA   es-PE   es-PR   es-PY   es-SV
es-US   es-UY   es-VE

fr      fr-BE   fr-CA   fr-CH   fr-FR   fr-LU

it      it-CH   it-IT

nl      nl-BE   nl-NL

pt      pt-BR   pt-PT

ru      ru-RU   ru-UA

sv      sv-FL   sv-SE

Some duplicate entries are obvious since Locales within the OOo linguistic
always use the language AND country part of the Locale those locales above that
consists only of the language part will surely be a problem. Those should get
removed from the list.

However that is not all. Some other locales may get mapped to languages that are
already covered by other locales and a third group of locales is not known by
OOo and will result in "unkown" entries.

The locales returned by that function needs to be fixed to get rid of all the
duplicate and unknown entries in that listbox.

Comment 5 thomas.lange 2009-01-30 15:07:01 UTC
.
Comment 6 thomas.lange 2009-01-30 15:07:54 UTC
.
Comment 7 thomas.lange 2009-01-30 15:08:33 UTC
I just found the spec link and added it.
Comment 8 eric.bachard 2009-01-30 15:11:06 UTC
@tl : does someone take other this issue ?
Comment 9 thomas.lange 2009-01-30 15:14:21 UTC
For a rough idea about the locales that can/should be used have a look into 
  i18npool/source/isolang/isolang.cxx
in the definition of 
  static MsLangId::IsoLangEntry const aImplIsoLangEntries[] =
  ...
If you avoid the locales that only use the language part you should be fine if
you use only Locales build from those two strings.
Comment 10 thomas.lange 2009-01-30 15:31:36 UTC
tl->ericb: I think you need to find someone who can change the Objective C code
of the implementation. Probably a small exception list of locales that should
not be added/returned will do.
Comment 11 eric.bachard 2009-01-30 15:51:35 UTC
@michael : FYI
Comment 12 eric.bachard 2009-01-30 16:01:47 UTC
@tl : ok, thanks for the explanations ; I think I have understood, and I'll have
a deeper look. 
If I cannot solve it myself, or if ever Michael is interested to take the issue
over (he did the Spellchecker part on Mac), I'll forward the baby. 

@msicotte: sorry, I just see you are in macport list.  Removing duclicated
entry, thus you'll stop receiving mails twice :-)
Comment 13 thomas.lange 2009-02-13 11:55:55 UTC
Note: For Mac the 'path' to the dialog starts with "StarOffice/Preferences - ..."
Comment 14 thorsten.ziehm 2009-11-06 11:03:18 UTC
OOo 3.2 is in show-stopper mode. Only critical issues will be accepted until the
release. This issue will be re-targeted to the next release. Please try to fix
it until then. If the issue is urgent please set the target back to OOo 3.2 and
promote it as stopper issue.
Comment 15 thorsten.ziehm 2010-09-23 13:29:23 UTC
OOo 3.3 is in showstopper-mode. This issue is too old to be a stopper for the
current release. I change the target to OOo 3.x. Please change the target
accordingly when a fix is near to be integrated into a code line. 
Comment 16 thomas.lange 2010-09-24 07:46:21 UTC
tl->er: this is the issue I did not find the other day when I wrote you the one
about integrating the Mac locales. Fixing either one of the two issues should
solve the problem.