Use variable for proper translations

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2018-03-05 13:05:14 +01:00
parent bcdbbb56b0
commit f4bcf2db60
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 8 additions and 1 deletions

View File

@ -286,7 +286,14 @@ OCA = OCA || {};
} else if(objectsFound > 1000) {
message = t('user_ldap', 'More than 1,000 directory entries available.');
} else {
message = t('user_ldap', objectsFound + 'Entries available within the provided Base DN');
message = n(
'user_ldap',
'{objectsFound} entry available within the provided Base DN',
'{objectsFound} entries available within the provided Base DN',
objectsFound,
{
objectsFound: objectsFound
});
}
} else {
message = view.overrideErrorMessage(payload.data.message);