From 66a3453cd6c29260c7ac6d1b2c2e964e6e3dd948 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Tue, 22 Feb 2022 18:32:39 +0530 Subject: [PATCH] refactor: i18n changes for different dialog windows Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- packages/nc-gui/components/createOrEditProject.vue | 12 ++++++++---- .../project/spreadsheet/dialog/createViewDialog.vue | 9 +++++---- .../nc-gui/components/utils/dlgLabelSubmitCancel.vue | 4 ++-- packages/nc-gui/components/utils/dlgOk.vue | 2 +- packages/nc-gui/components/utils/dlgOkNew.vue | 4 ++-- packages/nc-gui/components/utils/dlgTableCreate.vue | 7 ++++--- .../nc-gui/components/utils/dlgTextSubmitCancel.vue | 4 ++-- .../nc-gui/components/utils/dlgUnexpectedError.vue | 2 +- packages/nc-gui/components/utils/dlgViewCreate.vue | 4 ++-- 9 files changed, 27 insertions(+), 21 deletions(-) diff --git a/packages/nc-gui/components/createOrEditProject.vue b/packages/nc-gui/components/createOrEditProject.vue index 48104735a5..aa3a972f1f 100644 --- a/packages/nc-gui/components/createOrEditProject.vue +++ b/packages/nc-gui/components/createOrEditProject.vue @@ -941,10 +941,12 @@ :type="dialog.type" /> + +

- Create {{ show_as }} View + {{ $t('general.create') }} {{ show_as }} {{ $t('objects.view') }}

+ @@ -19,7 +20,7 @@ - Cancel + {{ $t('general.cancel') }} - Submit + {{ $t('general.submit') }} diff --git a/packages/nc-gui/components/utils/dlgLabelSubmitCancel.vue b/packages/nc-gui/components/utils/dlgLabelSubmitCancel.vue index 219f859127..6286814a9e 100644 --- a/packages/nc-gui/components/utils/dlgLabelSubmitCancel.vue +++ b/packages/nc-gui/components/utils/dlgLabelSubmitCancel.vue @@ -23,14 +23,14 @@ - Cancel + {{ $t('general.cancel') }} - Submit + {{ $t('general.submit') }} diff --git a/packages/nc-gui/components/utils/dlgOk.vue b/packages/nc-gui/components/utils/dlgOk.vue index 3b4218ddba..42083dd51e 100644 --- a/packages/nc-gui/components/utils/dlgOk.vue +++ b/packages/nc-gui/components/utils/dlgOk.vue @@ -28,7 +28,7 @@ :class="type" @click="mtdOk()" > - Ok + {{ $t('general.ok') }} diff --git a/packages/nc-gui/components/utils/dlgOkNew.vue b/packages/nc-gui/components/utils/dlgOkNew.vue index 1d7beccdf8..7f8980bebb 100644 --- a/packages/nc-gui/components/utils/dlgOkNew.vue +++ b/packages/nc-gui/components/utils/dlgOkNew.vue @@ -22,13 +22,13 @@ - {{ cancelLabel || 'Cancel' }} + {{ cancelLabel || $t('general.cancel') }} - {{ okLabel || 'Ok' }} + {{ okLabel || $t('general.ok') }} diff --git a/packages/nc-gui/components/utils/dlgTableCreate.vue b/packages/nc-gui/components/utils/dlgTableCreate.vue index a7a2ebf5b5..e6ce52fafc 100644 --- a/packages/nc-gui/components/utils/dlgTableCreate.vue +++ b/packages/nc-gui/components/utils/dlgTableCreate.vue @@ -6,10 +6,11 @@ @keydown.esc="dialogShow = false" @keydown.enter="$emit('create', table)" > + - Create A New Table + {{ $t('activity.createTable') }} @@ -103,7 +104,7 @@ - Cancel + {{ $t('general.cancel') }} - Submit + {{ $t('general.submit') }} diff --git a/packages/nc-gui/components/utils/dlgTextSubmitCancel.vue b/packages/nc-gui/components/utils/dlgTextSubmitCancel.vue index cba71821fb..fd3d98c00e 100644 --- a/packages/nc-gui/components/utils/dlgTextSubmitCancel.vue +++ b/packages/nc-gui/components/utils/dlgTextSubmitCancel.vue @@ -35,14 +35,14 @@ - Cancel + {{ $t('general.cancel') }} - {{ submitText || 'Submit' }} + {{ submitText || $t('general.submit') }} diff --git a/packages/nc-gui/components/utils/dlgUnexpectedError.vue b/packages/nc-gui/components/utils/dlgUnexpectedError.vue index a44bb6281a..494b2dacf0 100644 --- a/packages/nc-gui/components/utils/dlgUnexpectedError.vue +++ b/packages/nc-gui/components/utils/dlgUnexpectedError.vue @@ -21,7 +21,7 @@ - Cancel + {{ $t('general.cancel') }} - Cancel + {{ $t('general.cancel') }} - Submit + {{ $t('general.submit') }}