Files
PhpSpreadsheet/tests/data/Reader/Ods/DefaultLanguage.ods
Dmytro Kulyk b88a7eb3c3 Xlsx and Ods Reader and Writer : Document language
Properties gains a language (a BCP 47 tag), written as dc:language to
Xlsx core.xml and Ods meta.xml and read back from both. Screen readers
and spell checkers use it to pick the voice and the dictionary.

LibreOffice ignores dc:language for the text and keeps a spreadsheet's
language on the default cell style, so the Ods writer puts it there as
LibreOffice does: in the Western, Asian or complex slot by script, with
style:rfc-language-tag for a tag that fo:language and fo:country cannot
hold. The Ods reader falls back to that style when meta.xml has no
dc:language, as in the files LibreOffice saves.
2026-10-11 17:34:46 +03:00

8.2 KiB