Apache OpenOffice (AOO) Bugzilla – Issue 97990
Duplicate entries in language selection box (Mac only)
Last modified: 2013-01-29 21:49:11 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.
Created attachment 59329 [details] Multiple Language entries in Writing Aids edit dialog
pb -> tl: please take over. This language box was filled by the methods of SvxLinguData_Impl.
Not time left to fix this one in OO0 3.1 because of other issues.
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.
.
I just found the spec link and added it.
@tl : does someone take other this issue ?
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.
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.
@michael : FYI
@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 :-)
Note: For Mac the 'path' to the dialog starts with "StarOffice/Preferences - ..."
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.
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.
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.