From 5c281bb6f82df80434b872f7db696d3cf307899a Mon Sep 17 00:00:00 2001 From: Klaus Date: Wed, 9 Sep 2020 11:36:58 +0200 Subject: [PATCH] Add example of n function --- developer_manual/app/view/l10n.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/developer_manual/app/view/l10n.rst b/developer_manual/app/view/l10n.rst index 6ec4f9a0d..d1a929626 100644 --- a/developer_manual/app/view/l10n.rst +++ b/developer_manual/app/view/l10n.rst @@ -120,6 +120,7 @@ There are global functions **t()** and **n()** available for translating strings t('myapp', 'Hello World!'); t('myapp', '{name} is available. Get {linkstart}more information{linkend}}', {name: 'Nextcloud 16', linkstart: '', linkend: ''}); + n('myapp', 'Import %n calendar into {collection}', 'Import %n calendars into {collection}', selectionLength, {collection: 'Nextcloud'});