https://bugs.documentfoundation.org/show_bug.cgi?id=100849

--- Comment #23 from Eike Rathke <er...@redhat.com> ---
(In reply to V Stuart Foote from comment #20)
> Think we'd be looking at what ICU provides to parse the font symbols against
> the ISO 4217:2015 currency codes and currency number--either getName() or
> getSymbol() by locale

It wouldn't even need ICU for that because for all locales we support we
already have each ISO currency code or rather the currency symbol in our locale
data which matches the currency format that is applied when clicking the
button. See the <Currency> elements in i18npool/source/localedata/data/*.xml
which can be obtained through UNO API or the LocaleDataWrapper class.

However, pre-generating 250 currency icons or generating an icon on the fly
whenever you change the office locale I'd also name a bit overkill.. anyway, if
someone wants to work on it and can solve the problem how to generate a proper
icon suiting the theme and somehow store it in the user configuration so that
it gets used by the UI, or load a pre-generated icon matching the current work
locale, then why not..

I'm not sure if "localizing" the button for the UI locale helps anything,
because what you get when clicking the button is not the currency format of the
UI locale but the work locale instead. But matching the UI locale might be
better than nothing for people who complain about this as they likely work in
the same locale as their UI locale.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to