Merge pull request #9991 from nextcloud/i10n/noid/use-translation-placeholder

Use a placeholder instead of magic string concatenation
This commit is contained in:
Roeland Jago Douma 2018-06-26 08:59:14 +02:00 committed by GitHub
commit dfbc21d806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -131,8 +131,9 @@ export default {
return `https://apps.nextcloud.com/apps/${this.app.id}`;
},
licence() {
if (this.app.licence)
return ('' + this.app.licence).toUpperCase() + t('settings', '-licensed');
if (this.app.licence) {
return t('settings', '{license}-licensed', { license: ('' + this.app.licence).toUpperCase() } );
}
return null;
},
hasRating() {