From 7e3fbbe0a994c8c730684ffae0d1133e727e5f94 Mon Sep 17 00:00:00 2001 From: Jo Vuit <jo.vuitton@gmail.com> Date: Sat, 9 Feb 2019 16:52:47 +0100 Subject: [PATCH] Added translation strings for admin/Settings.vue Added the component type Menu in the doc, to match with secondary menu items --- CONTRIBUTING.rst | 1 + front/src/views/admin/Settings.vue | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index e43adc0782..9422692e0f 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -470,6 +470,7 @@ This hierarchical structure is made of several parts: - ``Label`` - ``Link`` - ``List item`` + - ``Menu`` - ``Message`` - ``Paragraph`` - ``Placeholder`` diff --git a/front/src/views/admin/Settings.vue b/front/src/views/admin/Settings.vue index 779bb7459b..051d09d337 100644 --- a/front/src/views/admin/Settings.vue +++ b/front/src/views/admin/Settings.vue @@ -13,7 +13,7 @@ </div> <div class="four wide column"> <div class="ui sticky vertical secondary menu"> - <div class="header item"><translate>Sections</translate></div> + <div class="header item"><translate :translate-context="'Content/Admin/Menu.Title'">Sections</translate></div> <a :class="['menu', {active: group.id === current}, 'item']" @click.prevent="scrollTo(group.id)" :href="'#' + group.id" @@ -72,19 +72,19 @@ export default { computed: { labels() { return { - settings: this.$gettext("Instance settings") + settings: this.$pgettext('Head/Admin/Title', 'Instance settings') } }, groups() { // somehow, extraction fails if in the return block directly - let instanceLabel = this.$gettext("Instance information") - let usersLabel = this.$gettext("Users") - let musicLabel = this.$gettext("Music") - let playlistsLabel = this.$gettext("Playlists") - let federationLabel = this.$gettext("Federation") - let subsonicLabel = this.$gettext("Subsonic") - let statisticsLabel = this.$gettext("Statistics") - let errorLabel = this.$gettext("Error reporting") + let instanceLabel = this.$pgettext('Content/Admin/Menu','Instance information') + let usersLabel = this.$pgettext('Content/Admin/Menu', 'Users') + let musicLabel = this.$pgettext('Content/Admin/Menu', 'Music') + let playlistsLabel = this.$pgettext('Content/Admin/Menu', 'Playlists') + let federationLabel = this.$pgettext('Content/Admin/Menu', 'Federation') + let subsonicLabel = this.$pgettext('Content/Admin/Menu', 'Subsonic') + let statisticsLabel = this.$pgettext('Content/Admin/Menu', 'Statistics') + let errorLabel = this.$pgettext('Content/Admin/Menu', 'Error reporting') return [ { label: instanceLabel, -- GitLab