summaryrefslogtreecommitdiff
path: root/dev-wallet-wx.rst
diff options
context:
space:
mode:
authortg(x) <*@tg-x.net>2016-03-01 15:39:16 +0100
committertg(x) <*@tg-x.net>2016-03-01 15:39:16 +0100
commitc091da731ecf747f93a28f232ffc6c8c11495f8f (patch)
tree297ca2157125a269cb457c80066b9d155a2b5b16 /dev-wallet-wx.rst
parent699c27607522195cff8af2892bde75673ae8811e (diff)
downloaddocs-c091da731ecf747f93a28f232ffc6c8c11495f8f.tar.gz
docs-c091da731ecf747f93a28f232ffc6c8c11495f8f.tar.bz2
docs-c091da731ecf747f93a28f232ffc6c8c11495f8f.zip
wallet-wx-i18n
Diffstat (limited to 'dev-wallet-wx.rst')
-rw-r--r--dev-wallet-wx.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/dev-wallet-wx.rst b/dev-wallet-wx.rst
index 4516c01..d373863 100644
--- a/dev-wallet-wx.rst
+++ b/dev-wallet-wx.rst
@@ -160,12 +160,16 @@ Strings in the JavaScript code are internationalised using the following functio
i18n`You have ${n} coins.`
-- *i18n.parts*: Interpolate i18nized values with arbitrary objects. Useful for example to include HTML elements.
+- *i18n.parts*: Interpolate i18nized values with arbitrary objects.
+ Useful for example to include HTML elements.
.. code-block:: js
i18n.parts`Visit ${link} to get more coins.`
-- *i18n.pluralize*: translate with plural form
+- *i18n.pluralize*: translate with plural form.
+ The i18n.number() function returns a ``PluralNumber`` object
+ that specifies the argument that determines the plural form,
+ if not present the first numeric argument is used.
.. code-block:: js