commit c091da731ecf747f93a28f232ffc6c8c11495f8f parent 699c27607522195cff8af2892bde75673ae8811e Author: tg(x) <*@tg-x.net> Date: Tue, 1 Mar 2016 15:39:16 +0100 wallet-wx-i18n Diffstat:
| M | dev-wallet-wx.rst | | | 8 | ++++++-- |
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git 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