Add title to languages button

This commit is contained in:
Chocobozzz 2019-11-13 15:45:25 +01:00
parent df592400dd
commit 2ec5e25010
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 14 additions and 8 deletions

View file

@ -2,12 +2,14 @@
<div id="i18n"> <div id="i18n">
<b-dropdown> <b-dropdown>
<template slot="button-content"> <template slot="button-content">
<img :src="buildImgUrl('language.png')" alt="Change languages logo"/> <div :title="getButtonTitle()">
<img :src="buildImgUrl('language.png')" alt=""/>
<div class="text"> <div class="text">
<translate>Languages</translate> <translate>Languages</translate>
<span class="caret"></span> <span class="caret"></span>
</div> </div>
</div>
</template> </template>
<b-dropdown-item v-for="(lang, locale) in $language.available" :key="locale" :href="buildLocaleLink(locale)"> <b-dropdown-item v-for="(lang, locale) in $language.available" :key="locale" :href="buildLocaleLink(locale)">
@ -67,6 +69,10 @@
methods: { methods: {
buildLocaleLink (locale) { buildLocaleLink (locale) {
return process.env.BASE_URL + `${locale}/` return process.env.BASE_URL + `${locale}/`
},
getButtonTitle () {
return this.$gettext('Change interface language')
} }
} }
} }

View file

@ -725,7 +725,7 @@ msgstr "KB"
msgid "Kids" msgid "Kids"
msgstr "Kids" msgstr "Kids"
#: src/components/I18n.vue:7 #: src/components/I18n.vue:8
msgid "Languages" msgid "Languages"
msgstr "Languages" msgstr "Languages"
@ -1282,7 +1282,7 @@ msgstr "This version also includes a notification system that allows users to be
msgid "Torrent import" msgid "Torrent import"
msgstr "Torrent import" msgstr "Torrent import"
#: src/components/I18n.vue:20 #: src/components/I18n.vue:22
msgid "Translate" msgid "Translate"
msgstr "Translate" msgstr "Translate"

View file

@ -1254,7 +1254,7 @@ msgstr "Ko"
msgid "Kids" msgid "Kids"
msgstr "Enfants" msgstr "Enfants"
#: src/components/I18n.vue:7 #: src/components/I18n.vue:8
msgid "Languages" msgid "Languages"
msgstr "Langues" msgstr "Langues"
@ -2379,7 +2379,7 @@ msgstr ""
msgid "Torrent import" msgid "Torrent import"
msgstr "Importation de Torrent" msgstr "Importation de Torrent"
#: src/components/I18n.vue:20 #: src/components/I18n.vue:22
msgid "Translate" msgid "Translate"
msgstr "Traduire" msgstr "Traduire"