From 65ca339f34d8a9391670f71a56a02a36a8a2d454 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/basics/front-end/l10n.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/developer_manual/basics/front-end/l10n.rst b/developer_manual/basics/front-end/l10n.rst index 6ec4f9a0d..d1a929626 100644 --- a/developer_manual/basics/front-end/l10n.rst +++ b/developer_manual/basics/front-end/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'});