https://bz.apache.org/ooo/show_bug.cgi?id=128386
Czesław Wolański <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest|--- |4.1.13 Confirmation in| | --- Comment #3 from Czesław Wolański <[email protected]> --- (In reply to Matthias Seidel from comment #2) > I don't know how we can get it into Pootle... Neither do I. The question remains: why OpenOffice displays "unknown Language" at all? The letter templates for this item come from the "es" folder in share\template\wizard\letter All internal meta.xml files contain the entry: <dc:language>es-ES</dc:language>. Documents created from these templates are in Spanish. Looking at the source code in /main/wizards/com/sun/star/wizards/letter/ (mainly file LetterWizardDialogImpl.java ---> LocaleCodes.java): Perhaps the problem is related to different values assigned to "Spanish (Spain)"? --------------------------------- file: LocaleCodes.java 36 public LocaleCodes(XMultiServiceFactory xmsf) 37 { 38 super(xmsf, UNIT_NAME, MODULE_NAME); 39 allLanguageStrings = getStringList(16638); // STR_ARR_SVT_LANGUAGE_TABLE from svtools/source/misc/langtab.src 40 } --------------------------------- file: langtab.src 28 #include <i18npool/lang.h> 163 < "Spanish (Spain)" ; LANGUAGE_SPANISH ; > ; --------------------------------- file: lang.h 321 #define LANGUAGE_SPANISH_DATED 0x040A /* old collation, not supported, see #i94435# */ 334 #define LANGUAGE_SPANISH_MODERN 0x0C0A 343 #define LANGUAGE_SPANISH LANGUAGE_SPANISH_MODERN /* modern collation, see #i94435# */ Issue 94435 mentioned in comments ("Spanish "Modern", not possible to provide a spell-checker for it...") dealt with LANGUAGE_SPANISH (0x040A = 1034) and LANGUAGE_SPANISH_MODERN (0x0C0A = 3082) both mapped to/from the locale of es_ES. Back to the file LocaleCodes.java 42 public String getLanguageString(String MSID) 43 { 44 String LS = "unknown Language"; 45 for (int i = 0; i < allLanguageStrings.length; i++) 46 { 47 if (allLanguageStrings[i].Value.toString().equalsIgnoreCase(MSID)) 48 { 49 LS = allLanguageStrings[i].Name; 50 } 51 } 52 return LS; 53 } The value "1034" on one side, "3082" on the other. -- You are receiving this mail because: You are the assignee for the issue.
