Fix translation of federation scope menu

* l10n in Nextcloud works by extracting the values only passed on their location and not based on the first parameter
* we need to change the translation pool from `core` to `settings` then
* fixes #7345

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2017-11-30 11:11:40 +01:00
parent 49ec86a81f
commit 3b390ef430
No known key found for this signature in database
GPG key ID: FE03C3A163FEDE68

View file

@ -46,22 +46,22 @@
this._scopes = [ this._scopes = [
{ {
name: 'private', name: 'private',
displayName: (this.field === 'avatar' || this.field === 'displayname') ? t('core', 'Local') : t('core', 'Private'), displayName: (this.field === 'avatar' || this.field === 'displayname') ? t('settings', 'Local') : t('settings', 'Private'),
tooltip: (this.field === 'avatar' || this.field === 'displayname') ? t('core', 'Only visible to local users') : t('core', 'Only visible to you'), tooltip: (this.field === 'avatar' || this.field === 'displayname') ? t('settings', 'Only visible to local users') : t('settings', 'Only visible to you'),
icon: OC.imagePath('core', 'actions/password'), icon: OC.imagePath('core', 'actions/password'),
active: false active: false
}, },
{ {
name: 'contacts', name: 'contacts',
displayName: t('core', 'Contacts'), displayName: t('settings', 'Contacts'),
tooltip: t('core', 'Visible to local users and to trusted servers'), tooltip: t('settings', 'Visible to local users and to trusted servers'),
icon: OC.imagePath('core', 'places/contacts-dark'), icon: OC.imagePath('core', 'places/contacts-dark'),
active: false active: false
}, },
{ {
name: 'public', name: 'public',
displayName: t('core', 'Public'), displayName: t('settings', 'Public'),
tooltip: t('core', 'Will be synced to a global and public address book'), tooltip: t('settings', 'Will be synced to a global and public address book'),
icon: OC.imagePath('core', 'places/link'), icon: OC.imagePath('core', 'places/link'),
active: false active: false
} }