From: Rene Engelhard Date: Sat, 9 Aug 2025 17:05:15 +0000 (+0200) Subject: [PATCH] add EUR for Bulgaria/Lew X-Git-Tag: archive/raspbian/4%25.2.3-2+rpi1+deb13u2^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4a02a4bad156825d97f435ec7e39d0bc5eec7dac;p=libreoffice.git [PATCH] add EUR for Bulgaria/Lew Bulgaria will join Eurozone 2026-01-01 at which time around the default needs to be switched see https://www.ecb.europa.eu/press/pr/date/2025/html/ecb.pr250708~b9676a9fa8.de.html for the conversion rate This is the < 26.2 version including the euro wizard (cf. b1a2f727ca99ecd3402d4b051b99cbfd24266e59) Change-Id: I840ddda4308549703c53f998812848888dd830f6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189279 Reviewed-by: Eike Rathke Tested-by: Jenkins Gbp-Pq: Name add-EUR-for-Bulgaria-Lew.diff --- diff --git a/i18npool/source/localedata/data/bg_BG.xml b/i18npool/source/localedata/data/bg_BG.xml index 55c63049089..ae295a38c7b 100644 --- a/i18npool/source/localedata/data/bg_BG.xml +++ b/i18npool/source/localedata/data/bg_BG.xml @@ -366,6 +366,14 @@ BGL 2 + + + EUR + € + EUR + евро + 2 + diff --git a/officecfg/registry/data/org/openoffice/Office/Calc.xcu b/officecfg/registry/data/org/openoffice/Office/Calc.xcu index eda60fe6c43..2b1e0e2bf5a 100644 --- a/officecfg/registry/data/org/openoffice/Office/Calc.xcu +++ b/officecfg/registry/data/org/openoffice/Office/Calc.xcu @@ -239,6 +239,17 @@ 7.53450 + + + EUR + + + BLN + + + 1.95583 + + diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx index 81013d3ed09..19f54be5679 100644 --- a/sc/source/core/tool/interpr2.cxx +++ b/sc/source/core/tool/interpr2.cxx @@ -3312,7 +3312,8 @@ static bool lclConvertMoney( std::u16string_view aSearchUnit, double& rfRate, in { "EEK", 15.6466, 2 }, { "LVL", 0.702804, 2 }, { "LTL", 3.45280, 2 }, - { "HRK", 7.53450, 2 } + { "HRK", 7.53450, 2 }, + { "BLN", 1.95583, 2 } }; for (const auto & i : aConvertTable) diff --git a/wizards/source/euro/Init.xba b/wizards/source/euro/Init.xba index 9f56c503a34..69a5d91ed02 100644 --- a/wizards/source/euro/Init.xba +++ b/wizards/source/euro/Init.xba @@ -90,6 +90,7 @@ Public sCurrESTONIAN as String Public sCurrLATVIAN as String Public sCurrLITHUANIAN as String Public sCurrCROATIAN as String +Public sCurrBULGARIAN as String Public sPrgsRETRIEVAL as String Public sPrgsCONVERTING as String @@ -216,6 +217,7 @@ Dim LocWorkPath as String sCurrLATVIAN = GetResText("CURRENCIES_17") sCurrLITHUANIAN = GetResText("CURRENCIES_18") sCurrCROATIAN = GetResText("CURRENCIES_19") + sCurrBULGARIAN = GetResText("CURRENCIES_20") .cmdCancel.Label = sCANCEL .cmdHelp.Label = sHELP .cmdBack.Label = GetResText("STEP_ZERO_2") @@ -400,6 +402,11 @@ Sub InitializeLanguages() LangIDValue(19,0,1) = "HR" LangIDValue(19,0,2) = "-41A" +' CURRENCIES_BULGARIAN + LangIDValue(20,0,0) = "bg" + LangIDValue(20,0,1) = "BG" + LangIDValue(20,0,2) = "-402" + End Sub @@ -588,6 +595,15 @@ Dim i as Integer CurrValue(19,4) = "kn" CurrValue(19,5) = "HRK" + CurrValue(20,0) = sCurrBULGARIAN + ' real conversion rate + CurrValue(20,1) = 1.95583 + ' rounded conversion rate + CurrValue(20,2) = 2 + CurrValue(20,3) = "лв." + CurrValue(20,4) = "лв." + CurrValue(20,5) = "BLN" + i = -1 CurrSymbolList(0) = "" CurrSymbolList(1) = "" diff --git a/wizards/source/resources/resources_en_US.properties b/wizards/source/resources/resources_en_US.properties index d75cb03bdf0..5ae6382ccaf 100644 --- a/wizards/source/resources/resources_en_US.properties +++ b/wizards/source/resources/resources_en_US.properties @@ -449,6 +449,7 @@ CURRENCIES_16=Estonian Kroon CURRENCIES_17=Latvian Lats CURRENCIES_18=Lithuanian Litas CURRENCIES_19=Croatian Kuna +CURRENCIES_20=Bulgarian Lew STEP_LASTPAGE_0=Progress STEP_LASTPAGE_1=Retrieving the relevant documents... STEP_LASTPAGE_2=Converting the documents...