From 023b9843c20e5f972552dd153125d28a3d382b85 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Thu, 24 Feb 2022 22:01:20 +0530 Subject: [PATCH 1/2] refactor: i18n translations Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- packages/nc-gui/components/auth/roles.vue | 4 +- .../nc-gui/components/project/appStore.vue | 2 +- .../nc-gui/components/project/cronJobs.vue | 6 +- .../sync/disableOrEnableFunctions.vue | 2 +- .../sync/disableOrEnableProcedures.vue | 2 +- .../sync/disableOrEnableRelations.vue | 2 +- .../sync/disableOrEnableTables.vue | 15 +++-- .../sync/disableOrEnableViews.vue | 2 +- .../uiAcl/toggleFunctionUIAcl.vue | 2 +- .../uiAcl/toggleProcedureUIAcl.vue | 2 +- .../uiAcl/toggleRelationsUIAcl.vue | 2 +- .../uiAcl/toggleTableUIAcl.vue | 2 +- .../projectMetadata/uiAcl/toggleViewUIAcl.vue | 2 +- .../spreadsheet/components/headerCell.vue | 15 ++++- .../components/sharedViewsList.vue | 20 ++++-- .../virtualCell/components/listItems.vue | 3 +- .../project/spreadsheet/rowsXcDataTable.vue | 5 +- .../project/spreadsheet/views/formView.vue | 65 ++++++++++++++----- .../components/project/tableTabs/columns.vue | 8 +-- .../project/tableTabs/columnsMock.vue | 8 +-- .../components/project/tableTabs/indexes.vue | 2 +- .../components/project/tableTabs/rows.vue | 4 +- .../project/tableTabs/validation.vue | 4 +- packages/nc-gui/lang/en.json | 2 +- packages/nc-gui/pages/user/admin/index.vue | 4 +- .../nc-gui/pages/user/admin/user/_userId.vue | 4 +- 26 files changed, 120 insertions(+), 69 deletions(-) diff --git a/packages/nc-gui/components/auth/roles.vue b/packages/nc-gui/components/auth/roles.vue index c2c7ed2394..06d4f7f377 100644 --- a/packages/nc-gui/components/auth/roles.vue +++ b/packages/nc-gui/components/auth/roles.vue @@ -105,7 +105,7 @@ v-model="role.title" v-ge="['roles','title']" :disabled="role.type === 'SYSTEM'" - label="Edit" + :label="$t('general.edit')" single-line @input="edited = true" /> @@ -122,7 +122,7 @@ v-model="role.description" v-ge="['roles','title']" :disabled="role.type === 'SYSTEM'" - label="Edit" + :label="$t('general.edit')" single-line @input="edited = true" /> diff --git a/packages/nc-gui/components/project/appStore.vue b/packages/nc-gui/components/project/appStore.vue index ed9e70492e..a862b6f42e 100644 --- a/packages/nc-gui/components/project/appStore.vue +++ b/packages/nc-gui/components/project/appStore.vue @@ -56,7 +56,7 @@ mdi-pencil - Edit + {{ $t('general.edit') }} - - {{ $t('general.reload') }} + + {{ $t('general.reload') }} + {{ $t('labels.models') }} - Sync state + + {{ $t('labels.syncState') }} @@ -118,7 +120,8 @@ v-else class="caption grey--text" > - {{ 'No change identified' }} + + {{ $t('msg.info.metaNoChange') }} diff --git a/packages/nc-gui/components/project/projectMetadata/sync/disableOrEnableViews.vue b/packages/nc-gui/components/project/projectMetadata/sync/disableOrEnableViews.vue index 5c69c1d9d3..313fb8e381 100644 --- a/packages/nc-gui/components/project/projectMetadata/sync/disableOrEnableViews.vue +++ b/packages/nc-gui/components/project/projectMetadata/sync/disableOrEnableViews.vue @@ -23,7 +23,7 @@ mdi-pencil - Edit + + + {{ $t('general.edit') }} + @@ -71,7 +74,10 @@ Primary value will be shown in place of primary key @@ -80,7 +86,10 @@ mdi-delete-outline - Delete + + + {{ $t('general.delete') }} + diff --git a/packages/nc-gui/components/project/spreadsheet/components/sharedViewsList.vue b/packages/nc-gui/components/project/spreadsheet/components/sharedViewsList.vue index c590bf338c..0c19facc49 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/sharedViewsList.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/sharedViewsList.vue @@ -7,16 +7,20 @@ - View name + + {{ $t('labels.viewName') }} - View Link + + {{ $t('labels.viewLink') }} - Password + + {{ $t('labels.password') }} - Actions + + {{ $t('labels.actions') }} @@ -54,7 +58,8 @@ - Current view is not shared! + + {{ $t('msg.info.viewNotShared') }}
- No items found + + {{ $t('placeholder.noItemsFound') }}
diff --git a/packages/nc-gui/components/project/spreadsheet/rowsXcDataTable.vue b/packages/nc-gui/components/project/spreadsheet/rowsXcDataTable.vue index 3106c373e5..0233fd07b3 100644 --- a/packages/nc-gui/components/project/spreadsheet/rowsXcDataTable.vue +++ b/packages/nc-gui/components/project/spreadsheet/rowsXcDataTable.vue @@ -141,7 +141,7 @@ --> +
- Fields + + + {{ $t('objects.fields') }} + add all + > + + {{ $t('general.addAll') }} + remove all + > + + {{ $t('general.removeAll') }} +
- Drag and drop fields here to hide + + {{ $t('msg.info.dragDropHide') }}
@@ -94,7 +104,8 @@ mdi-plus - Add new field to this table + + {{ $t('activity.addField') }} {{ localParams.name }} - + {{ localParams.description }} @@ -193,7 +204,10 @@ + > + + {{ $t('general.required') }} + + + @@ -336,7 +352,8 @@
- Submit + + {{ $t('general.submit') }}
@@ -353,9 +370,13 @@
-->
- After form is submitted: + + {{ $t('msg.info.afterFormSubmitted') }}
- + diff --git a/packages/nc-gui/components/project/tableTabs/columns.vue b/packages/nc-gui/components/project/tableTabs/columns.vue index 6d553c56de..19e51697ef 100644 --- a/packages/nc-gui/components/project/tableTabs/columns.vue +++ b/packages/nc-gui/components/project/tableTabs/columns.vue @@ -368,7 +368,7 @@ v-model="props.item.cn" :disabled="props.item.rcn || !sqlUi.columnEditable(props.item)" :rules="form.validation.required" - label="Edit" + :label="$t('general.edit')" single-line /> @@ -419,7 +419,7 @@ v-ge="['columns','precision']" :disabled="sqlUi.getDefaultLengthIsDisabled(props.item.dt) || !sqlUi.columnEditable(props.item)" :rules="[max25chars]" - label="Edit" + :label="$t('general.edit')" single-line /> @@ -441,7 +441,7 @@ v-ge="['columns','scale']" :disabled="!sqlUi.columnEditable(props.item)" :rules="[max25chars]" - label="Edit" + :label="$t('general.edit')" single-line /> @@ -641,7 +641,7 @@ v-model="props.item.cdf" v-ge="['columns','default']" :disabled="!sqlUi.columnEditable(props.item)" - label="Edit" + :label="$t('general.edit')" counter class="caption" :placeholder="`${sqlUi.getDefaultValueForDatatype(props.item.dt)}`" diff --git a/packages/nc-gui/components/project/tableTabs/columnsMock.vue b/packages/nc-gui/components/project/tableTabs/columnsMock.vue index 4e95f83dc8..bf2605c2e3 100644 --- a/packages/nc-gui/components/project/tableTabs/columnsMock.vue +++ b/packages/nc-gui/components/project/tableTabs/columnsMock.vue @@ -122,7 +122,7 @@ v-model="props.item.cn" :disabled="props.item.rcn" :rules="[max25chars]" - label="Edit" + :label="$t('general.edit')" single-line /> @@ -180,7 +180,7 @@ @@ -201,7 +201,7 @@ @@ -304,7 +304,7 @@