Bug 147390 - Change Aranese {oc-ES} locale's language tag to {oc-ES-aranes}, Languedocien {oc-FR} to {oc-FR-lengadoc}
Summary: Change Aranese {oc-ES} locale's language tag to {oc-ES-aranes}, Languedocien ...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Localization (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Eike Rathke
URL:
Whiteboard: target:7.4.0 target:7.3.5
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-12 14:24 UTC by Eike Rathke
Modified: 2022-06-07 22:01 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eike Rathke 2022-02-12 14:24:02 UTC
Meanwhile (since 2018-04-22) Aranese got a language variant subtag registered with IANA, 'aranes'. All current use of oc-ES should be changed to oc-aranes-ES, mapping oc-ES for forward compatibility.
See
https://www.iana.org/assignments/lang-subtags-templates/aranes.txt
https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
Comment 1 Eike Rathke 2022-02-12 14:38:28 UTC
@Javier: this means you want to add oc-aranes-ES to your spell checker dictionary's dictionaries.xcu Locales property if not already done.
Comment 2 jmontane 2022-02-12 14:48:43 UTC
Just a question, what's the point to change oc-ES  language code to oc-aranes-ES?

AFAIK, Araneses is the only variant of Occitan language spoken in Spain, so oc-ES is a good identifier for it.
Comment 3 Eike Rathke 2022-02-12 17:35:58 UTC
Because oc-aranes is the *correct* language tag for the Aranese Occitan dialect.

We should recognize it anyway, but we can only write one language tag and that should be the most correctly identifying one, which will also be the internal assignment. This way other software that also started to use oc-aranes (and does not use the old oc-ES kludge) will be able to handle things correctly.
Comment 4 Eike Rathke 2022-06-06 15:19:01 UTC
Similar for Languedocien {oc-FR} that has the 'lengadoc' subtag since 2018-04-22, change to {oc-lengadoc-FR}.
Comment 5 Eike Rathke 2022-06-06 15:23:02 UTC
Oops, the correct tags are of course oc-ES-aranes and oc-FR-lengadoc.
Comment 6 Eike Rathke 2022-06-06 15:38:11 UTC
With language-variant (without region) fallbacks to oc-aranes and oc-lengadoc.
Comment 7 Commit Notification 2022-06-06 18:36:15 UTC
Eike Rathke committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/196f2b6f8e61cd8e78f6f8dfda6b55c4fbaec0c8

Resolves: tdf#147390 tag oc-FR to oc-FR-lengadoc, oc-ES to oc-ES-aranes

It will be available in 7.4.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 8 Commit Notification 2022-06-06 18:37:23 UTC
Eike Rathke committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/dictionaries/commit/15c340d66842e3f99729e20686ffec28d36c2784

Related: tdf#147390 Add oc-FR-lengadoc to oc_FR/dictionaries.xcu
Comment 9 Commit Notification 2022-06-07 15:52:26 UTC
Eike Rathke committed a patch related to this issue.
It has been pushed to "libreoffice-7-3":

https://git.libreoffice.org/core/commit/b545b6b2bf7e56047211ea4ec974054a522cc2e9

Related: tdf#147390 Accept oc-FR-lengadoc and oc-ES-aranes for oc-FR and oc-ES

It will be available in 7.3.5.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 10 Adolfo Jayme Barrientos 2022-06-07 15:54:23 UTC Comment hidden (off-topic)
Comment 11 Javier 2022-06-07 16:10:51 UTC
For my part, there is no problem in using oc-aranes-ES instead of oc-ES as long as it appears in the libreoffice language options, although as jmontane comments, it is the only Occitan variant in Spain.

Thanks.
Comment 12 Eike Rathke 2022-06-07 22:01:22 UTC
(In reply to Javier from comment #11)
> For my part, there is no problem in using oc-aranes-ES
That would be *wrong*.

 langtag       = language
                 ["-" script]
                 ["-" region]
                 *("-" variant)
                 ...

https://datatracker.ietf.org/doc/html/rfc5646#section-2.1