TT#52575 Replace hardcoded english terms

Change-Id: I74e5d8b67fb1f748050dae7563593c258b3764cb
changes/62/27162/3
raxelsen 7 years ago
parent 99e7725f1a
commit a240993330

@ -96,39 +96,3 @@ export function setReminderRecurrence(reminderId, reccurence) {
value: reccurence value: reccurence
}); });
} }
// export function enableReminder(id) {
// return patchReminder(id, '/active', true);
// }
//
// export function disableReminder(id) {
// return patchReminder(id, '/active', false);
// }
//
// export function setTime(id, time) {
// return patchReminder(id, '/time', time);
// }
//
// export function setRecurrence(id, recurrence) {
// return patchReminder(id, '/recur', recurrence);
// }
//
// function patchReminder(id, field, value) {
// return new Promise((resolve, reject) => {
// var data = [{
// "op": "replace",
// "path": field,
// "value": value
// }];
// var patchHeaders = {
// headers: {
// 'Content-Type': 'application/json-patch+json'
// }
// };
// Vue.http.patch('api/reminders/' + id, data, patchHeaders).then(() => {
// resolve();
// }).catch((err) => {
// reject(err);
// });
// });
// }

@ -16,7 +16,9 @@
color="negative" color="negative"
flat flat
@click="remove" @click="remove"
>Remove</q-btn> >
{{ $t('buttons.remove') }}
</q-btn>
</csc-dialog> </csc-dialog>
</template> </template>

@ -1,9 +1,11 @@
<template> <template>
<q-layout> <q-layout>
<div id="csc-login" class="row"> <div id="csc-login" class="row">
<div class="column col-lg-4 col-xl-4 col-md-3 gt-sm"></div> <div class="column col-lg-4 col-xl-4 col-md-3 gt-sm"/>
<div class="column col-12 col-md-6 col-lg-4 col-xl-4">404 NotFound</div> <div class="column col-12 col-md-6 col-lg-4 col-xl-4">
<div class="column col-lg-4 col-xl-4 col-md-3 gt-sm"></div> {{ $t('notFound') }}
</div>
<div class="column col-lg-4 col-xl-4 col-md-3 gt-sm"/>
</div> </div>
</q-layout> </q-layout>
</template> </template>

@ -43,7 +43,7 @@
:before="beforeIconTimeout" :before="beforeIconTimeout"
:float-label="$t('pages.callForward.timeout')" :float-label="$t('pages.callForward.timeout')"
v-model="destinationForm.timeout" v-model="destinationForm.timeout"
suffix="seconds" :suffix="$t('pages.callForward.seconds')"
clearable clearable
@input="$v.destinationForm.timeout.$touch" @input="$v.destinationForm.timeout.$touch"
@blur="$v.destinationForm.timeout.$touch" @blur="$v.destinationForm.timeout.$touch"

@ -51,13 +51,11 @@
QField, QField,
QInput, QInput,
QDatetime, QDatetime,
// Dialog,
QBtn, QBtn,
QItem, QItem,
QItemMain, QItemMain,
QItemTile, QItemTile,
QItemSide, QItemSide,
// Alert,
date date
} from 'quasar-framework' } from 'quasar-framework'
@ -103,55 +101,14 @@
}, },
methods: { methods: {
deleteTime(index) { deleteTime(index) {
// let self = this;
// let store = this.$store;
if (this.timesLength <= 1) { if (this.timesLength <= 1) {
this.$emit('delete-last-time', index); this.$emit('delete-last-time', index);
// Alert.create({
// enter: 'bounceInRight',
// leave: 'bounceOutRight',
// position: 'top-center',
// html: self.$t('pages.callForward.times.removeLastDialogText'),
// icon: 'warning',
// actions: [
// {
// label: self.$t('buttons.cancel')
// },
// {
// label: self.$t('buttons.remove'),
// handler () {
// store.dispatch('callForward/deleteTimesetById')
// }
// }
// ]
// });
} }
else { else {
this.$emit('delete-time', { this.$emit('delete-time', {
index: index, index: index,
removedDay: this.weekday removedDay: this.weekday
}); });
// Dialog.create({
// title: self.$t('pages.callForward.times.removeDialogTitle'),
// message: self.$t('pages.callForward.times.removeDialogText', {
// day: self.weekday
// }),
// buttons: [
// self.$t('buttons.cancel'),
// {
// label: self.$t('buttons.remove'),
// color: 'negative',
// handler () {
// store.dispatch('callForward/deleteTimeFromTimeset', {
// index: index,
// removedDay: self.weekday
// })
// }
// }
// ]
// });
} }
} }
} }

@ -13,7 +13,7 @@
highlight highlight
inset-separator inset-separator
v-if="showOwnPhone && group.length > 0" v-if="showOwnPhone && group.length > 0"
:class="{ ['csc-own-phone']: !isMobile }" :class="itemClasses"
> >
<q-item-side v-if="!isMobile"> <q-item-side v-if="!isMobile">
<q-field <q-field
@ -111,9 +111,9 @@
v-if="isMobile" v-if="isMobile"
@click="toggle();$refs.popover.close()" @click="toggle();$refs.popover.close()"
> >
<q-item-main :label="$t('pages.callForward.toggleTimeout', { <q-item-main
mode: this.ownPhone ? 'Disable' : 'Enable' :label="toggleTimeoutLabel"
})" /> />
<q-item-side <q-item-side
:icon="toggleIcon" :icon="toggleIcon"
color="secondary" color="secondary"
@ -168,7 +168,7 @@
dark dark
v-if="ownPhone" v-if="ownPhone"
v-model="editTimeout" v-model="editTimeout"
suffix="seconds" :suffix="$t('pages.callForward.seconds')"
:before="[{ icon: 'schedule' }]" :before="[{ icon: 'schedule' }]"
:float-label="$t('pages.callForward.timeout')" :float-label="$t('pages.callForward.timeout')"
@input="$v.editTimeout.$touch" @input="$v.editTimeout.$touch"
@ -337,6 +337,21 @@
destinationset.priority = destinationset.lowestPriority || 1; destinationset.priority = destinationset.lowestPriority || 1;
destinationset.timeset = this.timeset; destinationset.timeset = this.timeset;
return destinationset; return destinationset;
},
itemClasses() {
let classes = ['csc-destination'];
if (!this.isMobile) {
classes.push('csc-own-phone');
}
return classes;
},
toggleTimeoutLabel() {
let mode = this.ownPhone
? this.$t('pages.callForward.disable')
: this.$t('pages.callForward.enable');
return this.$t('pages.callForward.toggleTimeout', {
mode: mode
});
} }
}, },
methods: { methods: {

@ -17,7 +17,7 @@
/> />
<q-tab <q-tab
slot="title" slot="title"
label="Add new" :label="$t('buttons.addNew')"
name="addnew" name="addnew"
icon="add" icon="add"
/> />
@ -184,11 +184,11 @@
mode: 'whitelist', mode: 'whitelist',
modes: [ modes: [
{ {
label: 'Whitelist', label: this.$t('pages.callForward.whitelist'),
value: 'whitelist' value: 'whitelist'
}, },
{ {
label: 'Blacklist', label: this.$t('pages.callForward.blacklist'),
value: 'blacklist' value: 'blacklist'
} }
], ],

@ -147,14 +147,14 @@
let self = this; let self = this;
return [ return [
{ {
label: 'Install', label: this.$t('buttons.install'),
handler () { handler () {
self.$store.commit('call/desktopSharingInstallReset'); self.$store.commit('call/desktopSharingInstallReset');
window.open(getChromeExtensionUrl()); window.open(getChromeExtensionUrl());
} }
}, },
{ {
label: 'Cancel', label: this.$t('buttons.cancel'),
handler () { handler () {
self.$store.commit('call/desktopSharingInstallReset'); self.$store.commit('call/desktopSharingInstallReset');
} }

@ -67,7 +67,7 @@
> >
<q-input <q-input
dark dark
suffix="callers" :suffix="$t('pbxConfig.callers')"
v-model="changes.max_queue_length" v-model="changes.max_queue_length"
:after="queueLengthButtons" :after="queueLengthButtons"
@keyup.enter="saveQueueLength" @keyup.enter="saveQueueLength"
@ -84,7 +84,7 @@
dark dark
v-model="changes.queue_wrap_up_time" v-model="changes.queue_wrap_up_time"
:after="wrapUpTimeButtons" :after="wrapUpTimeButtons"
suffix="seconds" :suffix="$t('pbxConfig.seconds')"
@keyup.enter="saveWrapUpTime" @keyup.enter="saveWrapUpTime"
@input="$v.changes.queue_wrap_up_time.$touch" @input="$v.changes.queue_wrap_up_time.$touch"
@blur="$v.changes.queue_wrap_up_time.$touch" @blur="$v.changes.queue_wrap_up_time.$touch"

@ -25,7 +25,7 @@
autofocus autofocus
:float-label="$t('pbxConfig.queueLength')" :float-label="$t('pbxConfig.queueLength')"
clearable clearable
suffix="callers" :suffix="$t('pbxConfig.callers')"
/> />
</q-field> </q-field>
<q-field :error-label="wrapUpTimeErrorMessage"> <q-field :error-label="wrapUpTimeErrorMessage">
@ -39,7 +39,7 @@
v-model="data.queue_wrap_up_time" v-model="data.queue_wrap_up_time"
:float-label="$t('pbxConfig.wrapUpTime')" :float-label="$t('pbxConfig.wrapUpTime')"
clearable clearable
suffix="seconds" :suffix="$t('pbxConfig.seconds')"
/> />
</q-field> </q-field>
<div class="csc-form-actions row justify-center"> <div class="csc-form-actions row justify-center">

@ -89,7 +89,7 @@
dark dark
v-model="changes.huntTimeout" v-model="changes.huntTimeout"
type="number" type="number"
suffix="seconds" :suffix="$t('pbxConfig.seconds')"
:after="huntTimeoutButtons" :after="huntTimeoutButtons"
:min="0" :min="0"
@keyup.enter="saveHuntTimeout" @keyup.enter="saveHuntTimeout"

@ -48,7 +48,7 @@
v-model="data.huntTimeout" v-model="data.huntTimeout"
clearable clearable
:float-label="$t('pbxConfig.huntTimeout')" :float-label="$t('pbxConfig.huntTimeout')"
suffix="seconds" :suffix="$t('pbxConfig.seconds')"
:min="1" :min="1"
:max="3600" :max="3600"
/> />

@ -165,7 +165,7 @@
Dialog.create({ Dialog.create({
title: self.$t('voicebox.deleteCustomDialogTitle'), title: self.$t('voicebox.deleteCustomDialogTitle'),
message: self.$t('voicebox.deleteCustomDialogText', { message: self.$t('voicebox.deleteCustomDialogText', {
type: 'busy' type: self.$t('voicebox.busy')
}), }),
buttons: [ buttons: [
{ {
@ -191,7 +191,7 @@
Dialog.create({ Dialog.create({
title: self.$t('voicebox.deleteCustomDialogTitle'), title: self.$t('voicebox.deleteCustomDialogTitle'),
message: self.$t('voicebox.deleteCustomDialogText', { message: self.$t('voicebox.deleteCustomDialogText', {
type: 'unavailable' type: self.$t('voicebox.unavailable')
}), }),
buttons: [ buttons: [
{ {

@ -8,6 +8,7 @@
"sendSms": "Send SMS", "sendSms": "Send SMS",
"sendFax": "Send Fax", "sendFax": "Send Fax",
"loggedInAs": "Logged in as", "loggedInAs": "Logged in as",
"notFound" : "404 Not Found",
"buttons": { "buttons": {
"cancel": "Cancel", "cancel": "Cancel",
"save": "Save", "save": "Save",
@ -22,7 +23,9 @@
"upload": "Upload", "upload": "Upload",
"abort": "Abort", "abort": "Abort",
"selectNew": "Select new", "selectNew": "Select new",
"resetDefaults": "Reset to defaults" "resetDefaults": "Reset to defaults",
"install": "Install",
"addNew": "Add new"
}, },
"form": { "form": {
"destinationLabel": "Destination" "destinationLabel": "Destination"
@ -213,6 +216,13 @@
"updateOwnPhoneTimeoutSuccessMessage": "Own phone timeout set to {timeout}", "updateOwnPhoneTimeoutSuccessMessage": "Own phone timeout set to {timeout}",
"updateOwnPhoneTimeoutErrorMessage": "An error occured while trying to update own phone timeout. Please try again", "updateOwnPhoneTimeoutErrorMessage": "An error occured while trying to update own phone timeout. Please try again",
"ownPhone": "own phone", "ownPhone": "own phone",
"disable": "Disable",
"enable": "Enable",
"whitelist": "Whitelist",
"blacklist": "Blacklist",
"enabled": "enabled",
"disabled": "disabled",
"seconds": "seconds",
"times": { "times": {
"removeDialogTitle": "Remove call forward time", "removeDialogTitle": "Remove call forward time",
"removeDialogText": "You are about to remove the time entry for {day}", "removeDialogText": "You are about to remove the time entry for {day}",
@ -398,7 +408,9 @@
"callQueue": "Call Queue", "callQueue": "Call Queue",
"createConfig": "Create Call Queue", "createConfig": "Create Call Queue",
"removeConfigTitle": "Remove call queue", "removeConfigTitle": "Remove call queue",
"removeConfigText": "You are about to remove call queue for {subscriber}" "removeConfigText": "You are about to remove call queue for {subscriber}",
"seconds": "seconds",
"callers": "callers"
}, },
"callBlocking": { "callBlocking": {
"privacyEnabledToast": "Your number is hidden to the callee", "privacyEnabledToast": "Your number is hidden to the callee",
@ -473,6 +485,7 @@
"deleteGreetingSuccessMessage": "Deleted greeting sound successfully", "deleteGreetingSuccessMessage": "Deleted greeting sound successfully",
"deleteGreetingErrorMessage": "An error occured while trying to delete the greeting sound. Please try again", "deleteGreetingErrorMessage": "An error occured while trying to delete the greeting sound. Please try again",
"deleteCustomDialogTitle": "Reset busy greeting sound", "deleteCustomDialogTitle": "Reset busy greeting sound",
"deleteCustomDialogText": "You are about to reset the custom {type} greeting sound to defaults" "deleteCustomDialogText": "You are about to reset the custom {type} greeting sound to defaults",
"unavailable": "unavailable"
} }
} }

@ -480,7 +480,9 @@ export default {
state.updateOwnPhoneToggleError = null state.updateOwnPhoneToggleError = null
}, },
updateOwnPhoneSucceeded(state, type) { updateOwnPhoneSucceeded(state, type) {
let toggle = type === 'cft' ? 'enabled' : 'disabled'; let toggle = type === 'cft'
? i18n.t('pages.callForward.enabled')
: i18n.t('pages.callForward.disabled');
state.lastOwnPhoneToggle = toggle; state.lastOwnPhoneToggle = toggle;
state.updateOwnPhoneToggleState = RequestState.succeeded; state.updateOwnPhoneToggleState = RequestState.succeeded;
state.updateOwnPhoneToggleError = null state.updateOwnPhoneToggleError = null

Loading…
Cancel
Save