Bug 116868 - Nigeria Locale not available
Summary: Nigeria Locale not available
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:6.3.0 target:6.2.0.1
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-07 20:47 UTC by leslieamadi
Modified: 2018-12-05 09:32 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Locale Generator File Nigeria (13.07 KB, text/xml)
2018-04-07 20:49 UTC, leslieamadi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description leslieamadi 2018-04-07 20:47:40 UTC
Description:
No option to select Nigeria as a locale and Naira as a currency

Steps to Reproduce:
1.Select libreoffice preferences
2.Language setting 
3.Locale option

Actual Results:  
No option for Nigeria as a locale as well as the Naira as currency

Expected Results:
Nigeria as a localisation option to be selected 


Reproducible: Always


User Profile Reset: No



Additional Info:


User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1 Safari/605.1.15
Comment 1 leslieamadi 2018-04-07 20:49:24 UTC
Created attachment 141198 [details]
Locale Generator File Nigeria
Comment 2 Xisco Faulí 2018-04-09 20:39:35 UTC
You can't confirm your own bugs. Moving it back to UNCONFIRMED until someone
else confirms it.
Comment 3 Xisco Faulí 2018-06-04 12:10:01 UTC
Would you mind creating a patch and submitting it to Gerrit? -> https://wiki.documentfoundation.org/Development/gerrit/SubmitPatch
Comment 4 Eike Rathke 2018-11-27 23:34:56 UTC
@leslieamadi:

Thank you for your locale data contribution!

Apparently we don't have your license statement on file, could you
please send us a blanket statement that you contribute all your past and
future patches under the MPLv2 and LGPLv3+ licenses? Best on the dev
mailing list libreoffice@lists.freedesktop.org so we can link to it from
https://wiki.documentfoundation.org/Development/Developers

Something like this does nicely:

All of my past & future contributions to LibreOffice may be
licensed under the MPLv2/LGPLv3+ dual license.

Best use Subject: <your full name> license statement

Sorry for the inconvenience and thank you for cooperating :-)
Comment 5 Eike Rathke 2018-11-28 17:07:17 UTC
Or actually, seeing the attached file was generated using the locale data generator at it46.se (which unfortunately doesn't exist anymore) they had a "grant contribution to other projects" (e.g. OOo and CLDR) coverage for these cases.

Also, the data uses English as language so could rather be derived from en-GB in large portions instead of duplicating data (I could do that). However, do we really want to add an English en-NG locale? I'd rather hope for proper Hausa or Yoruba data, maybe we should derive Hausa (in Latin script) ha-Latn-NG from the already existing ha-Latn-GH locale data instead? (which I could do as well); with the benefit that MS-Office also seems to support a ha-Latn-NG locale with LCID 0x0468.
The overall purpose here seems to be to get *some* Nigerian locale and the NGN currency available.
Comment 6 Eike Rathke 2018-12-03 13:58:54 UTC
So I'm deriving ha_Latn_NG.xml from ha_Latn_GH.xml, changing currency and calendar (i.e. Afi/Afirilu instead of Afr/Afrilu), date (DMY date order instead of MDY) and time formats according to what is given at the CLDR and can be seen with https://ssl.icu-project.org/icu-bin/locexp?d_=en&_=ha_NG
Comment 7 Commit Notification 2018-12-03 21:06:07 UTC
Eike Rathke committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/+/f26ecd353327b206225f85705c99b55b2baf8699%5E%21

Resolves: tdf#116868 add Hausa (Nigeria) [ha-Latn-NG] locale data

It will be available in 6.3.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 2018-12-04 10:56:18 UTC
Eike Rathke committed a patch related to this issue.
It has been pushed to "libreoffice-6-2":

https://git.libreoffice.org/core/+/4c0924541c72dac2b5cb86a3eee88c1080b977eb%5E%21

Resolves: tdf#116868 add Hausa (Nigeria) [ha-Latn-NG] locale data

It will be available in 6.2.0.1.

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 9 Commit Notification 2018-12-04 15:54:12 UTC
Eike Rathke committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/+/35dd9167ef2ee78d8611b02c48b7630e5eeca27c%5E%21

Some date format corrections, tdf#116868 follow-up

It will be available in 6.3.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 10 Commit Notification 2018-12-05 09:32:53 UTC
Eike Rathke committed a patch related to this issue.
It has been pushed to "libreoffice-6-2":

https://git.libreoffice.org/core/+/6e27e878be3996db84818504e70c2b79782a6d72%5E%21

Some date format corrections, tdf#116868 follow-up

It will be available in 6.2.0.1.

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.