Bug 148792 - Add currency from Mozambique - MZN
Summary: Add currency from Mozambique - MZN
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Localization (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Eike Rathke
URL:
Whiteboard: target:7.5.0 inReleaseNotes:7.5
Keywords:
Depends on:
Blocks: Number-Format
  Show dependency treegraph
 
Reported: 2022-04-26 07:43 UTC by _da
Modified: 2022-12-12 14:39 UTC (History)
3 users (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 _da 2022-04-26 07:43:49 UTC
Description:
Please add currency from Mozambique. The Simbol is MZN

Actual Results:
There is no MZN currency available

Expected Results:
Find MZN when searching for currency


Reproducible: Always


User Profile Reset: No



Additional Info:
There is no MZN on currencies
Comment 1 Julien Nabet 2022-04-26 18:20:22 UTC
I confirm there's no locale data concerning Mozambique in LO code, result of
"git grep -in mozam"
include/filter/msfilter/countryid.hxx:141:const CountryId COUNTRY_MOZAMBIQUE          = 258;
sfx2/emojiconfig/emoji.json:18554:        "name": "mozambique",
vcl/qa/cppunit/pdfexport/data/flowframe_null_ptr_deref.sample:400:<OPTION>Mozambique</OPTION>

If interested in contributing, this link may help:
https://wiki.documentfoundation.org/LibreOffice_Localization_Guide/How_To_Submit_New_Locale_Data
Comment 2 Roman Kuznetsov 2022-11-27 12:06:23 UTC
Eike may be you will interesting in this enhancement
Comment 3 Eike Rathke 2022-11-27 15:33:57 UTC
As "The only official language in Mozambique is Portuguese"
https://en.wikipedia.org/wiki/Mozambique
we could probably derive a pt_MZ locale from pt_PT.
Comment 4 Commit Notification 2022-11-28 16:30:50 UTC
Eike Rathke committed a patch related to this issue.
It has been pushed to "master":

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

Resolves: tdf#148792 Add Portuguese (Mozambique) {pt-MZ} locale and data

It will be available in 7.5.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 5 Stéphane Guillou (stragu) 2022-12-12 14:39:46 UTC
Fix verified in:

Version: 7.5.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: ad085990b8073a122ac5222e5220f8f1d6826dcf
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Thanks Eike!