Issue 67497 - character / font setting language to "None" gets lost when saving
Summary: character / font setting language to "None" gets lost when saving
Status: CLOSED FIXED
Alias: None
Product: Internationalization
Classification: Code
Component: i18npool (show other issues)
Version: OOo 2.0.3
Hardware: All All
: P3 Trivial with 5 votes (vote)
Target Milestone: ---
Assignee: frank
QA Contact: issues@l10n
URL:
Keywords: oooqa
: 68629 69630 69983 70110 70455 71946 (view as issue list)
Depends on:
Blocks:
 
Reported: 2006-07-18 12:37 UTC by leguff
Modified: 2013-08-07 15:02 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description leguff 2006-07-18 12:37:21 UTC
try the following:
- activate automatic spell checking
- open an new, empty spreadsheet document
- enter "XXX" to an arbitrary cell and leave the cell
  => XXX will be underlined with red, because it may be wrong spelled
- change language of cell style "Default" to "None"
  => underline of XXX disapears (which is correct)
- save the spreadsheet document and close it
- open the recently saved document
  => XXX is underlined and the cell style "Default" has a language again
Comment 1 frank 2006-08-31 12:58:06 UTC
Hi Eike,

your's ?

Frank
Comment 2 ooo 2006-08-31 17:50:17 UTC
Actually this happens in all applications, language [None] is not stored,
instead the fallback is stored. The cause seems to be a missing mapping from
LangID to RFC3066, so mapping LANGUAGE_NONE to 'x-none' and vice versa should do.
Comment 3 ooo 2006-08-31 18:40:18 UTC
As the ODF specification for the fo:language and fo:country attributes refers
the Extendible Stylesheet Language (XSL) fields (see
http://www.w3.org/TR/2001/REC-xsl-20011015/slice7.html#country), a value of
'x-none' would not have the correct meaning, as 'none' is a predefined value for
country with the meaning "Indicates the country is unknown or is not significant
to the proper formatting of this object." This is not the case here, as we
consider it significant that the language/country pair designates _no_ language
assigned.

Therefor the language tag should be 'x-nolang'. Any better suggestions?
Comment 4 andreschnabel 2006-09-18 18:42:57 UTC
changed subject to make it more general
Comment 5 andreschnabel 2006-09-18 18:44:54 UTC
*** Issue 69630 has been marked as a duplicate of this issue. ***
Comment 6 niklas.nebel 2006-09-22 15:53:51 UTC
The language code "zxx" ("no linguistic content", note: "Used to declare the
absence of linguistic information") was recently added to ISO 639, and seems to
match the meaning of "[None]" in OOo quite well.

Reference: http://www.loc.gov/standards/iso639-2/codechanges.html
Comment 7 ooo 2006-09-25 16:59:50 UTC
Thanks for the hint. Yes, 'zxx' looks promising.
Comment 8 lohmaier 2006-09-29 19:38:23 UTC
*** Issue 69983 has been marked as a duplicate of this issue. ***
Comment 9 andreschnabel 2006-10-06 16:03:14 UTC
*** Issue 68629 has been marked as a duplicate of this issue. ***
Comment 10 andreschnabel 2006-10-06 16:04:38 UTC
*** Issue 70110 has been marked as a duplicate of this issue. ***
Comment 11 frank 2006-10-16 13:14:47 UTC
*** Issue 70455 has been marked as a duplicate of this issue. ***
Comment 12 ooo 2006-10-16 16:55:59 UTC
In CWS calc40:

i18npool/source/isolang/isolang.cxx  1.8.6.1
i18npool/source/isolang/mslangid.cxx  1.6.6.1
svx/source/items/textitem.cxx  1.65.48.1

Language [None] is stored as ISO 639-2 'zxx'.
Comment 13 ooo 2006-10-17 17:27:55 UTC
Reassigning to QA.
Comment 14 frank 2006-10-19 10:59:03 UTC
Found fixed on cws calc40 using Solaris, Windows and Linux build.
Comment 15 frank 2006-11-06 13:35:21 UTC
found fixed on master using Solaris, Windows and Linux build
Comment 16 lohmaier 2006-12-06 14:12:21 UTC
*** Issue 71946 has been marked as a duplicate of this issue. ***