Merge pull request #4442 from nextcloud/backport/4438/stable18

[stable18] Add example of n function
This commit is contained in:
Morris Jobke 2020-09-09 17:03:18 +02:00 committed by GitHub
commit 7686b82bf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: '<a href="...">', linkend: '</a>'});
n('myapp', 'Import %n calendar into {collection}', 'Import %n calendars into {collection}', selectionLength, {collection: 'Nextcloud'});