Localized some strings

This commit is contained in:
Eliot Berriot 2018-07-01 21:50:50 +02:00
parent d9a89de29c
commit 265c3cded6
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
65 changed files with 603 additions and 140 deletions

View file

@ -1,5 +1,5 @@
<template>
<div v-title="'Radios'">
<div v-title="labels.title">
<div class="ui vertical stripe segment">
<h2 class="ui header">
<translate>Browsing radios</translate>
@ -12,7 +12,7 @@
<div class="fields">
<div class="field">
<label><translate>Search</translate></label>
<input type="text" v-model="query" placeholder="Enter a radio name..."/>
<input type="text" v-model="query" :placeholder="labels.searchPlaceholder"/>
</div>
<div class="field">
<label><translate>Ordering</translate></label>
@ -119,6 +119,16 @@ export default {
mounted () {
$('.ui.dropdown').dropdown()
},
computed: {
labels () {
let searchPlaceholder = this.$gettext('Enter a radio name...')
let title = this.$gettext('Radios')
return {
searchPlaceholder,
title
}
}
},
methods: {
updateQueryString: _.debounce(function () {
this.$router.replace({