Added translation context

Minor rewording
Added changelog fragment
This commit is contained in:
jovuit 2019-03-01 14:29:58 +01:00 committed by Eliot Berriot
parent 009d3d5f96
commit 3b9fd20d3b
15 changed files with 118 additions and 117 deletions

View file

@ -1,7 +1,7 @@
<template>
<modal @update:show="$emit('update:show', $event)" :show="show">
<header class="header">
<translate>Keyboard shortcuts</translate>
<translate :translate-context="'Popup/Keyboard shortcuts/Title'">Keyboard shortcuts</translate>
</header>
<section class="scrolling content">
<table
@ -18,7 +18,7 @@
</table>
</section>
<footer class="actions">
<div class="ui cancel button"><translate>Close</translate></div>
<div class="ui cancel button"><translate :translate-context="'Popup/Keyboard shortcuts/Button.Label/Verb'">Close</translate></div>
</footer>
</modal>
</template>
@ -35,11 +35,11 @@ export default {
sections () {
return [
{
title: this.$gettext('General shortcuts'),
title: this.$pgettext('Popup/Keyboard shortcuts/Title', 'General shortcuts'),
shortcuts: [
{
key: 'h',
summary: this.$gettext('Show available keyboard shortcuts')
summary: this.$pgettext('Popup/Keyboard shortcuts/Table.Label/Verb', 'Show available keyboard shortcuts')
}
]
},
@ -52,35 +52,35 @@ export default {
// s.prevent.exact="shuffle"
{
title: this.$gettext('Audio player shortcuts'),
title: this.$pgettext('Popup/Keyboard shortcuts/Title', 'Audio player shortcuts'),
shortcuts: [
{
key: 'space',
summary: this.$gettext('Pause/play the current track')
summary: this.$pgettext('Popup/Keyboard shortcuts/Table.Label/Verb', 'Pause/play the current track')
},
{
key: 'ctrl left',
summary: this.$gettext('Play previous track')
summary: this.$pgettext('Popup/Keyboard shortcuts/Table.Label/Verb', 'Play previous track')
},
{
key: 'ctrl right',
summary: this.$gettext('Play next track')
summary: this.$pgettext('Popup/Keyboard shortcuts/Table.Label/Verb', 'Play next track')
},
{
key: 'ctrl up',
summary: this.$gettext('Increase volume')
summary: this.$pgettext('Popup/Keyboard shortcuts/Table.Label/Verb', 'Increase volume')
},
{
key: 'ctrl down',
summary: this.$gettext('Decrease volume')
summary: this.$pgettext('Popup/Keyboard shortcuts/Table.Label/Verb', 'Decrease volume')
},
{
key: 'l',
summary: this.$gettext('Toggle queue looping')
summary: this.$pgettext('Popup/Keyboard shortcuts/Table.Label/Verb', 'Toggle queue looping')
},
{
key: 's',
summary: this.$gettext('Shuffle queue')
summary: this.$pgettext('Popup/Keyboard shortcuts/Table.Label/Verb', 'Shuffle queue')
},
]
}