[Libreoffice] [PATCH] fix Kabyle_Algeria [kab_DZ] absent currency symbol

Eike Rathke ooo at erack.de
Fri Jul 29 11:12:50 PDT 2011


* In locale data replaceTo must not be empty if replaceFrom isn't.
+ Also added check to locale data compiler to prevent this in future.
* Fixed a currency format's group separator.
* Marked LANGUAGE_USER_KABYLE (0x0659) obsolete as LANGUAGE_TAMAZIGHT_LATIN
  (0x085F) is used instead, actually commit
  909c9aa4550a068513300bc3e899c0466d9287b4 crossed
  b51eaf4c5083ec35366d18c522a7dd50f9c9b3c0
- Removed the corresponding duplicated entry from langtab.src

Stumbled upon this when in an --enable-dbgutil build initializing the number
formats when opening a new spreadsheet gave

LocaleDataWrapper::getCurrFormatsImpl: CurrPositiveFormat?
kab_DZ requested
kab_DZ loaded

LocaleDataWrapper::getCurrFormatsImpl: CurrNegativeFormat?
kab_DZ requested
kab_DZ loaded

and choosing Kabyle Latin in the number formatter dialog gave a few

SvNumberFormatter::ImpInsertFormat: no [$...] on currency format code, index 12:
#.##0;-#.##0
kab_DZ requested
kab_DZ loaded

and so on.

The result were generated formats in the form
#.##0,00[$DA-85F];[RED]-#.##0,00[$DA-85F]
instead of
[$DA-85F]#.##0,00;[RED]-[$DA-85F]#,##0,00
---
 i18npool/inc/i18npool/lang.h               |    3 ++-
 i18npool/source/isolang/isolang.cxx        |    2 +-
 i18npool/source/isolang/mslangid.cxx       |    3 +++
 i18npool/source/localedata/LocaleNode.cxx  |    5 ++++-
 i18npool/source/localedata/data/kab_DZ.xml |    4 ++--
 svtools/source/misc/langtab.src            |    1 -
 6 files changed, 12 insertions(+), 6 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fix-Kabyle_Algeria-kab_DZ-absent-currency-symbol.patch
Type: text/x-patch
Size: 5875 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110729/3307bc82/attachment-0001.bin>


More information about the LibreOffice mailing list