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
});
}
// 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"
flat
@click="remove"
>Remove</q-btn>
>
{{ $t('buttons.remove') }}
</q-btn>
</csc-dialog>
</template>

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

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

@ -51,13 +51,11 @@
QField,
QInput,
QDatetime,
// Dialog,
QBtn,
QItem,
QItemMain,
QItemTile,
QItemSide,
// Alert,
date
} from 'quasar-framework'
@ -103,55 +101,14 @@
},
methods: {
deleteTime(index) {
// let self = this;
// let store = this.$store;
if (this.timesLength <= 1) {
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 {
this.$emit('delete-time', {
index: index,
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
inset-separator
v-if="showOwnPhone && group.length > 0"
:class="{ ['csc-own-phone']: !isMobile }"
:class="itemClasses"
>
<q-item-side v-if="!isMobile">
<q-field
@ -111,9 +111,9 @@
v-if="isMobile"
@click="toggle();$refs.popover.close()"
>
<q-item-main :label="$t('pages.callForward.toggleTimeout', {
mode: this.ownPhone ? 'Disable' : 'Enable'
})" />
<q-item-main
:label="toggleTimeoutLabel"
/>
<q-item-side
:icon="toggleIcon"
color="secondary"
@ -168,7 +168,7 @@
dark
v-if="ownPhone"
v-model="editTimeout"
suffix="seconds"
:suffix="$t('pages.callForward.seconds')"
:before="[{ icon: 'schedule' }]"
:float-label="$t('pages.callForward.timeout')"
@input="$v.editTimeout.$touch"
@ -337,6 +337,21 @@
destinationset.priority = destinationset.lowestPriority || 1;
destinationset.timeset = this.timeset;
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: {

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

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

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

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

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

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

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

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

Loading…
Cancel
Save