Fix some localization issues with Vue frontend components.

This commit is contained in:
Buster "Silver Eagle" Neece 2019-12-29 08:42:30 -06:00
parent cb3a31b69c
commit 34681798f2
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
5 changed files with 1416 additions and 1945 deletions

View File

@ -9,21 +9,6 @@ msgstr ""
msgid "# Songs"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:97
msgid ""
"<translate>\n"
" Control how this playlist is handled by the AutoDJ software.\n"
" </translate>\n"
" <br>\n"
" <b>\n"
" <translate>Warning</translate>\n"
" :</b>\n"
" <translate>\n"
" These functions are internal to Liquidsoap and will affect how your AutoDJ works.\n"
" </translate>\n"
" </br>"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormSource.vue:13
msgid "A playlist containing media files hosted on this server."
msgstr ""
@ -290,6 +275,7 @@ msgstr ""
msgid "Friday"
msgstr ""
#: ./vue/InlinePlayer.vue:20
#: ./vue/RadioPlayer.vue:336
msgid "Full Volume"
msgstr ""
@ -440,6 +426,7 @@ msgstr ""
msgid "MP3"
msgstr ""
#: ./vue/InlinePlayer.vue:10
#: ./vue/RadioPlayer.vue:330
msgid "Mute"
msgstr ""
@ -523,7 +510,7 @@ msgstr ""
msgid "Password"
msgstr ""
#: ./vue/InlinePlayer.vue:9
#: ./vue/InlinePlayer.vue:4
#: ./vue/RadioPlayer.vue:327
msgid "Pause"
msgstr ""
@ -929,7 +916,7 @@ msgstr ""
msgid "View tracks in playlist"
msgstr ""
#: ./vue/InlinePlayer.vue:72
#: ./vue/InlinePlayer.vue:81
#: ./vue/RadioPlayer.vue:333
msgid "Volume"
msgstr ""

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@
"scripts": {
"build": "gulp",
"generate-locales": "gettext-extract --attribute v-translate --keywords '$gettext' --output ../../resources/locale/frontend.pot $(find ./vue -type f -name '*.vue')",
"import-locales": "gettext-compile --output ../../resources/locale/translations.json $(find ../../resources/locale/*.UTF-8 -type f -name '*.po')"
"import-locales": "gettext-compile --output ../../resources/locale/translations.json $(find ../../resources/locale/*.UTF-8 -type f -name 'frontend.po')"
},
"dependencies": {
"@fancyapps/fancybox": "^3.5.7",
@ -15,6 +15,7 @@
"@fullcalendar/moment-timezone": "^4.3.0",
"@fullcalendar/timegrid": "^4.3.0",
"@fullcalendar/vue": "^4.3.1",
"acorn": "^6.1.0",
"autosize": "^4.0.2",
"axios": "^0.18.1",
"bootstrap": "^4.4.1",
@ -25,9 +26,9 @@
"chartjs-plugin-colorschemes": "^0.3.0",
"chosen-js": "^1.8.7",
"clipboard": "^2.0.4",
"codemirror": "^5.49.2",
"codemirror": "^5.50.0",
"dirrty": "^1.0.0",
"easygettext": "^2.8.0",
"easygettext": "^2.9.0",
"fullcalendar": "^3.10.1",
"jquery": "^3.4",
"leaflet": "^1.6.0",
@ -38,20 +39,19 @@
"nchan": "^1.0.10",
"popper.js": "^1.16.0",
"roboto-fontface": "^0.10.0",
"sortablejs": "^1.10.1",
"sortablejs": "^1.10.2",
"store": "^1.3.20",
"sweetalert": "^2.1.2",
"vue": "^2.6.10",
"vue": "^2.6.11",
"vue-gettext": "^2.1.6",
"vue-i18n": "^8.15.1",
"vuedraggable": "^2.23.2",
"vuelidate": "^0.7.4",
"webpack": "^4.41.2",
"webpack": "^4.41.5",
"zxcvbn": "^4.4.2"
},
"devDependencies": {
"@babel/core": "^7.7.5",
"@babel/preset-env": "^7.7.6",
"@babel/core": "^7.7.7",
"@babel/preset-env": "^7.7.7",
"css-loader": "^2.1.1",
"del": "^3.0.0",
"gulp": "^4.0.2",
@ -67,7 +67,7 @@
"prettier": "1.12.1",
"sass-loader": "^7.3.1",
"vue-loader": "14.2.2",
"vue-template-compiler": "^2.6.10",
"vue-template-compiler": "^2.6.11",
"webpack-stream": "^5.1.1"
}
}

View File

@ -95,7 +95,7 @@
<template v-slot:label v-translate>
AutoDJ Scheduling Options
</template>
<template v-slot:description v-translate>
<template v-slot:description>
<translate>
Control how this playlist is handled by the AutoDJ software.
</translate>
@ -220,31 +220,31 @@
</template>
<script>
export default {
name: 'PlaylistEditBasicInfo',
props: {
form: Object
},
data () {
let weightOptions = [
{ value: 1, text: '1 - ' + this.$gettext('Low') },
{ value: 2, text: '2' },
{ value: 3, text: '3 - ' + this.$gettext('Default') },
{ value: 4, text: '4' },
{ value: 5, text: '5 - ' + this.$gettext('High') }
]
for (var i = 6; i <= 25; i++) {
weightOptions.push({ value: i, text: i })
}
export default {
name: 'PlaylistEditBasicInfo',
props: {
form: Object
},
data () {
let weightOptions = [
{ value: 1, text: '1 - ' + this.$gettext('Low') },
{ value: 2, text: '2' },
{ value: 3, text: '3 - ' + this.$gettext('Default') },
{ value: 4, text: '4' },
{ value: 5, text: '5 - ' + this.$gettext('High') }
]
for (var i = 6; i <= 25; i++) {
weightOptions.push({ value: i, text: i })
}
return {
weightOptions: weightOptions
}
},
computed: {
langTabTitle () {
return this.$gettext('Basic Info')
}
return {
weightOptions: weightOptions
}
},
computed: {
langTabTitle () {
return this.$gettext('Basic Info')
}
}
}
}
</script>