summaryrefslogtreecommitdiffstats
path: root/i18npool/util
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-05-13 03:09:43 +0300
committerEike Rathke <erack@redhat.com>2018-06-11 22:59:12 +0200
commit90385c35cc6bea312eedeea2de33529e76cd6f2a (patch)
tree8770c7c27d5776c2c98bf96626d32130c9c27eaa /i18npool/util
parentAdd unit test for NatNum12 decimals spell-out (diff)
downloadcore-90385c35cc6bea312eedeea2de33529e76cd6f2a.tar.gz
core-90385c35cc6bea312eedeea2de33529e76cd6f2a.zip
tdf#115007: Use [NatNum12 params...] syntax
This allows using all the libnumbertext library functions. [NatNum12] gives cardinal number names (one, two, three, ...) [NatNum12 ordinal] gives ordinal number names (first, second, third, ...) [NatNum12 ordinal-number] gives ordinal indicators (1st, 2nd, 3rd, ...) [NatNum12 money USD][$-409] gives formal English (US) money text ... etc (see numbertext.org for syntax). Change-Id: I16dbb44d8d4bdb82a1b950de6d438c8311b554ff Reviewed-on: https://gerrit.libreoffice.org/54366 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: László Németh <nemeth@numbertext.org> (cherry picked from commit 90d233b0311a208967a3e264820e00395bf057fb) Reviewed-on: https://gerrit.libreoffice.org/55624 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'i18npool/util')
-rw-r--r--i18npool/util/i18npool.component1
1 files changed, 1 insertions, 0 deletions
diff --git a/i18npool/util/i18npool.component b/i18npool/util/i18npool.component
index 3598ffa8b781..d4e7ea7b0a35 100644
--- a/i18npool/util/i18npool.component
+++ b/i18npool/util/i18npool.component
@@ -133,6 +133,7 @@
<implementation name="com.sun.star.i18n.NativeNumberSupplier"
constructor="com_sun_star_i18n_NativeNumberSupplier_get_implementation">
<service name="com.sun.star.i18n.NativeNumberSupplier"/>
+ <service name="com.sun.star.i18n.NativeNumberSupplier2"/>
</implementation>
<implementation name="com.sun.star.i18n.NumberFormatCodeMapper"
constructor="com_sun_star_i18n_NumberFormatCodeMapper_get_implementation">