Browse Source

fix(nc-gui): Renamed columns to field

pull/6624/head
Muhammed Mustafa 1 year ago
parent
commit
672814504f
  1. 2
      packages/nc-gui/components/smartsheet/column/EditOrAdd.vue
  2. 2
      packages/nc-gui/components/smartsheet/column/LookupOptions.vue
  3. 89
      packages/nc-gui/lang/en.json

2
packages/nc-gui/components/smartsheet/column/EditOrAdd.vue

@ -48,7 +48,7 @@ const { getMeta } = useMetas()
const { t } = useI18n() const { t } = useI18n()
const columnLabel = computed(() => props.columnLabel || t('objects.column')) const columnLabel = computed(() => props.columnLabel || t('objects.field'))
const { $e } = useNuxtApp() const { $e } = useNuxtApp()

2
packages/nc-gui/components/smartsheet/column/LookupOptions.vue

@ -105,7 +105,7 @@ const cellIcon = (column: ColumnType) =>
</a-select> </a-select>
</a-form-item> </a-form-item>
<a-form-item class="flex w-1/2" :label="$t('labels.childColumn')" v-bind="validateInfos.fk_lookup_column_id"> <a-form-item class="flex w-1/2" :label="$t('labels.childField')" v-bind="validateInfos.fk_lookup_column_id">
<a-select <a-select
v-model:value="vModel.fk_lookup_column_id" v-model:value="vModel.fk_lookup_column_id"
name="fk_lookup_column_id" name="fk_lookup_column_id"

89
packages/nc-gui/lang/en.json

@ -185,8 +185,8 @@
"tables": "Tables", "tables": "Tables",
"field": "Field", "field": "Field",
"fields": "Fields", "fields": "Fields",
"column": "Column", "column": "Field",
"columns": "Columns", "columns": "Fields",
"page": "Page", "page": "Page",
"pages": "Pages", "pages": "Pages",
"record": "record", "record": "record",
@ -458,9 +458,9 @@
"createKanbanView": "Create Kanban View", "createKanbanView": "Create Kanban View",
"viewName": "View name", "viewName": "View name",
"viewLink": "View Link", "viewLink": "View Link",
"columnName": "Column Name", "columnName": "Field Name",
"columnToScanFor": "Column to scan", "columnToScanFor": "Field to scan",
"columnType": "Column Type", "columnType": "Field Type",
"roleName": "Role Name", "roleName": "Role Name",
"roleDescription": "Role Description", "roleDescription": "Role Description",
"databaseType": "Type in Database", "databaseType": "Type in Database",
@ -502,8 +502,8 @@
"sqlOutput": "SQL Output", "sqlOutput": "SQL Output",
"addOption": "Add option", "addOption": "Add option",
"interfaceColor": "Interface Color", "interfaceColor": "Interface Color",
"qrCodeValueColumn": "Column with QR code value", "qrCodeValueColumn": "Field with QR code value",
"barcodeValueColumn": "Column with Barcode value", "barcodeValueColumn": "Field with Barcode value",
"barcodeFormat": "Barcode format", "barcodeFormat": "Barcode format",
"qrCodeValueTooLong": "Too many characters for a QR code", "qrCodeValueTooLong": "Too many characters for a QR code",
"barcodeValueTooLong": "Too many characters for a barcode", "barcodeValueTooLong": "Too many characters for a barcode",
@ -519,7 +519,7 @@
"requriedIdentity": "Required-IDENTITY", "requriedIdentity": "Required-IDENTITY",
"inflection": { "inflection": {
"tableName": "Inflection - Table name", "tableName": "Inflection - Table name",
"columnName": "Inflection - Column name" "columnName": "Inflection - Field name"
}, },
"community": { "community": {
"starUs1": "Star", "starUs1": "Star",
@ -536,7 +536,8 @@
"docReference": "Document Reference", "docReference": "Document Reference",
"selectUserRole": "Select User Role", "selectUserRole": "Select User Role",
"childTable": "Child table", "childTable": "Child table",
"childColumn": "Child column", "childColumn": "Child field",
"childField": "Child field",
"linkToAnotherRecord": "Link to another record", "linkToAnotherRecord": "Link to another record",
"links": "Links", "links": "Links",
"onUpdate": "On Update", "onUpdate": "On Update",
@ -552,10 +553,10 @@
"sharedBase": "Shared Base", "sharedBase": "Shared Base",
"importData": "Import Data", "importData": "Import Data",
"importSecondaryViews": "Import Secondary Views", "importSecondaryViews": "Import Secondary Views",
"importRollupColumns": "Import Rollup Columns", "importRollupColumns": "Import Rollup Fields",
"importLookupColumns": "Import Lookup Columns", "importLookupColumns": "Import Lookup Fields",
"importAttachmentColumns": "Import Attachment Columns", "importAttachmentColumns": "Import Attachment Fields",
"importFormulaColumns": "Import Formula Columns", "importFormulaColumns": "Import Formula Fields",
"importUsers": "Import Users (by email)", "importUsers": "Import Users (by email)",
"noData": "No Data", "noData": "No Data",
"goToDashboard": "Go to Dashboard", "goToDashboard": "Go to Dashboard",
@ -588,7 +589,7 @@
"includeData": "Include Data", "includeData": "Include Data",
"includeView": "Include View", "includeView": "Include View",
"includeWebhook": "Include Webhook", "includeWebhook": "Include Webhook",
"zoomInToViewColumns": "Zoom in to view columns" "zoomInToViewColumns": "Zoom in to view fields"
}, },
"activity": { "activity": {
"onCondition": "On Condition", "onCondition": "On Condition",
@ -703,7 +704,7 @@
"duplicateRow": "Duplicate record", "duplicateRow": "Duplicate record",
"deleteRow": "Delete record", "deleteRow": "Delete record",
"deleteRows": "Delete records", "deleteRows": "Delete records",
"predictColumns": "Predict Columns", "predictColumns": "Predict Fields",
"predictFormulas": "Predict Formulas", "predictFormulas": "Predict Formulas",
"deleteSelectedRow": "Delete selected records", "deleteSelectedRow": "Delete selected records",
"importExcel": "Import Excel", "importExcel": "Import Excel",
@ -763,7 +764,7 @@
"expandRecord": "Expand Record", "expandRecord": "Expand Record",
"deleteRecord": "Delete Record", "deleteRecord": "Delete Record",
"erd": { "erd": {
"showColumns": "Show Columns", "showColumns": "Show Fields",
"showPkAndFk": "Show Primary and Foreign Keys", "showPkAndFk": "Show Primary and Foreign Keys",
"showSqlViews": "Show SQL Views", "showSqlViews": "Show SQL Views",
"showMMTables": "Show Many to Many tables", "showMMTables": "Show Many to Many tables",
@ -821,8 +822,8 @@
"selectDiscordChannels": "Select Discord channels", "selectDiscordChannels": "Select Discord channels",
"selectMattermostChannels": "Select Mattermost channels", "selectMattermostChannels": "Select Mattermost channels",
"webhookTitle": "Webhook Title", "webhookTitle": "Webhook Title",
"barcodeColumn": "Select a column for the Barcode value", "barcodeColumn": "Select a field for the Barcode value",
"notFoundContent": "No valid Column Type can be found.", "notFoundContent": "No valid field Type can be found.",
"selectBarcodeFormat": "Select a Barcode format", "selectBarcodeFormat": "Select a Barcode format",
"projName": "Enter Base Name", "projName": "Enter Base Name",
"selectGroupField": "Select a Grouping Field", "selectGroupField": "Select a Grouping Field",
@ -836,11 +837,11 @@
"save": "Save password", "save": "Save password",
"confirm": "Confirm new password" "confirm": "Confirm new password"
}, },
"selectAColumnForTheQRCodeValue": "Select a column for the QR code value", "selectAColumnForTheQRCodeValue": "Select a field for the QR code value",
"allowNegativeNumbers": "Allow negative numbers", "allowNegativeNumbers": "Allow negative numbers",
"searchProjectTree": "Search tables", "searchProjectTree": "Search tables",
"searchFields": "Search fields", "searchFields": "Search fields",
"searchColumn": "Search {search} column", "searchColumn": "Search {search} field",
"searchApps": "Search apps", "searchApps": "Search apps",
"searchModels": "Search models", "searchModels": "Search models",
"noItemsFound": "No items found", "noItemsFound": "No items found",
@ -871,7 +872,7 @@
"newFormWillBeLoaded": "New form will be loaded after {seconds} seconds", "newFormWillBeLoaded": "New form will be loaded after {seconds} seconds",
"optimizedQueryDisabled": "Optimized query is disabled", "optimizedQueryDisabled": "Optimized query is disabled",
"optimizedQueryEnabled": "Optimized query is enabled", "optimizedQueryEnabled": "Optimized query is enabled",
"lookupNonBtWarning": "Lookup column is not supported for non-Belongs to relation", "lookupNonBtWarning": "Lookup field is not supported for non-Belongs to relation",
"invalidTime": "Invalid Time", "invalidTime": "Invalid Time",
"linkColumnClearNotSupportedYet": "You don't have any supported links for Lookup", "linkColumnClearNotSupportedYet": "You don't have any supported links for Lookup",
"recordCouldNotBeFound": "Record could not be found", "recordCouldNotBeFound": "Record could not be found",
@ -882,14 +883,14 @@
"webhookBodyMsg2": "body", "webhookBodyMsg2": "body",
"webhookBodyMsg3": "to refer the record under consideration", "webhookBodyMsg3": "to refer the record under consideration",
"formula": { "formula": {
"hintStart": "Hint: Use {placeholder1} to reference columns, e.g: {placeholder2}. For more, please check out", "hintStart": "Hint: Use {placeholder1} to reference fields, e.g: {placeholder2}. For more, please check out",
"hintEnd": "Formulas.", "hintEnd": "Formulas.",
"noSuggestedFormulaFound": "No suggested formula found", "noSuggestedFormulaFound": "No suggested formula found",
"numericTypeIsExpected": "Numeric type is expected", "numericTypeIsExpected": "Numeric type is expected",
"stringTypeIsExpected": "String type is expected", "stringTypeIsExpected": "String type is expected",
"operationNotAvailable": "{operation} operation not available", "operationNotAvailable": "{operation} operation not available",
"cantSaveFieldFormulaInvalid": "Can’t save field because formula is invalid", "cantSaveFieldFormulaInvalid": "Can’t save field because formula is invalid",
"notSupportedToReferenceColumn": "Not supported to reference column {columnName}", "notSupportedToReferenceColumn": "Not supported to reference field {columnName}",
"typeIsExpectedButFound": "Type {type} is expected but found Type {found}", "typeIsExpectedButFound": "Type {type} is expected but found Type {found}",
"requiredArgumentsFormula": "{calleeName} requires {requiredArguments} arguments", "requiredArgumentsFormula": "{calleeName} requires {requiredArguments} arguments",
"minRequiredArgumentsFormula": "{calleeName} required minimum {minRequiredArguments} arguments", "minRequiredArgumentsFormula": "{calleeName} required minimum {minRequiredArguments} arguments",
@ -903,14 +904,14 @@
"firstParamDateDiffHaveDate": "The first parameter of DATEDIFF() should have date value", "firstParamDateDiffHaveDate": "The first parameter of DATEDIFF() should have date value",
"secondParamDateDiffHaveDate": "The second parameter of DATEDIFF() should have date value", "secondParamDateDiffHaveDate": "The second parameter of DATEDIFF() should have date value",
"thirdParamDateDiffHaveDate": "The third parameter of DATETIME_DIFF() should have value either \"milliseconds\", \"ms\", \"seconds\", \"s\", \"minutes\", \"m\", \"hours\", \"h\", \"days\", \"d\", \"weeks\", \"w\", \"months\", \"M\", \"quarters\", \"Q\", \"years\", or \"y\"", "thirdParamDateDiffHaveDate": "The third parameter of DATETIME_DIFF() should have value either \"milliseconds\", \"ms\", \"seconds\", \"s\", \"minutes\", \"m\", \"hours\", \"h\", \"days\", \"d\", \"weeks\", \"w\", \"months\", \"M\", \"quarters\", \"Q\", \"years\", or \"y\"",
"columnNotAvailable": "Column {columnName} is not available", "columnNotAvailable": "Field {columnName} is not available",
"cantSaveCircularReference": "Can’t save field because it causes a circular reference", "cantSaveCircularReference": "Can’t save field because it causes a circular reference",
"columnWithTypeFoundButExpected": "Column {columnName} with {columnType} type is found but {expectedType} type is expected", "columnWithTypeFoundButExpected": "Field {columnName} with {columnType} type is found but {expectedType} type is expected",
"columnNotMatchedWithType": "{columnName} is not matched with {columnType}" "columnNotMatchedWithType": "{columnName} is not matched with {columnType}"
}, },
"selectOption": { "selectOption": {
"cantBeNull": "Select options can't be null", "cantBeNull": "Select options can't be null",
"multiSelectCantHaveCommas": "MultiSelect columns can't have commas(',')", "multiSelectCantHaveCommas": "MultiSelect fields can't have commas(',')",
"cantHaveDuplicates": "Select options can't have duplicates", "cantHaveDuplicates": "Select options can't have duplicates",
"createNewOptionNamed": "Create new option named" "createNewOptionNamed": "Create new option named"
}, },
@ -919,7 +920,7 @@
"invalidLocale": "Invalid locale", "invalidLocale": "Invalid locale",
"invalidCurrencyCode": "Invalid Currency Code", "invalidCurrencyCode": "Invalid Currency Code",
"postgresHasItsOwnCurrencySettings": "PostgreSQL 'money' type has own currency settings", "postgresHasItsOwnCurrencySettings": "PostgreSQL 'money' type has own currency settings",
"validColumnsForBarCode": "The valid Column Types for a Barcode Column are: Number, Single Line Text, Long Text, Phone Number, URL, Email, Decimal. Please create one first.", "validColumnsForBarCode": "The valid Field Types for a Barcode Field are: Number, Single Line Text, Long Text, Phone Number, URL, Email, Decimal. Please create one first.",
"hm": { "hm": {
"title": "Has Many Relation", "title": "Has Many Relation",
"tooltip_desc": "A single record from table ", "tooltip_desc": "A single record from table ",
@ -951,7 +952,7 @@
"createWebhookMsg2": "Create web-hooks to power you automations,", "createWebhookMsg2": "Create web-hooks to power you automations,",
"createWebhookMsg3": "Get notified as soon as there are changes in your data", "createWebhookMsg3": "Get notified as soon as there are changes in your data",
"areYouSureUWantTo": "Are you sure you want to delete the following", "areYouSureUWantTo": "Are you sure you want to delete the following",
"idColumnRequired": "ID column is required, you can rename this later if required.", "idColumnRequired": "ID field is required, you can rename this later if required.",
"length59Required": "The length exceeds the max 59 characters", "length59Required": "The length exceeds the max 59 characters",
"warning": { "warning": {
"dbValid": "Please make sure database you are trying to connect is valid! This operation can cause schema loss!!", "dbValid": "Please make sure database you are trying to connect is valid! This operation can cause schema loss!!",
@ -974,9 +975,9 @@
}, },
"codeScanner": { "codeScanner": {
"loadingScanner": "Loading the scanner...", "loadingScanner": "Loading the scanner...",
"selectColumn": "Select a column (QR code or Barcode) that you want to use for finding a record by scanning.", "selectColumn": "Select a field (QR code or Barcode) that you want to use for finding a record by scanning.",
"moreThanOneRowFoundForCode": "More than one record found for this code. Currently only unique codes are supported.", "moreThanOneRowFoundForCode": "More than one record found for this code. Currently only unique codes are supported.",
"noRowFoundForCode": "No record found for this code for the selected column" "noRowFoundForCode": "No record found for this code for the selected field"
}, },
"map": { "map": {
"overLimit": "You're over the limit.", "overLimit": "You're over the limit.",
@ -1073,8 +1074,8 @@
"enterTableName": "Enter table name", "enterTableName": "Enter table name",
"enterLayoutName": "Enter Layout name", "enterLayoutName": "Enter Layout name",
"enterDashboardName": "Enter Dashboard name", "enterDashboardName": "Enter Dashboard name",
"defaultColumns": "Default columns", "defaultColumns": "Default fields",
"addDefaultColumns": "Add default columns", "addDefaultColumns": "Add default fields",
"tableNameInDb": "Table name as saved in database", "tableNameInDb": "Table name as saved in database",
"airtable": { "airtable": {
"credentials": "Where to find this?" "credentials": "Where to find this?"
@ -1094,7 +1095,7 @@
"cacheEmpty": "Cache is empty", "cacheEmpty": "Cache is empty",
"exportedCache": "Exported Cache Successfully", "exportedCache": "Exported Cache Successfully",
"valueAlreadyInList": "This value is already in the list", "valueAlreadyInList": "This value is already in the list",
"noColumnsToUpdate": "No columns to update", "noColumnsToUpdate": "No fields to update",
"tableDeleted": "Deleted table successfully", "tableDeleted": "Deleted table successfully",
"layoutDeleted": "Deleted layout successfully", "layoutDeleted": "Deleted layout successfully",
"generatePublicShareableReadonlyBase": "Generate publicly shareable readonly base", "generatePublicShareableReadonlyBase": "Generate publicly shareable readonly base",
@ -1149,11 +1150,11 @@
"internalError": "Some internal error occurred", "internalError": "Some internal error occurred",
"templateGeneratorNotFound": "Template Generator cannot be found!", "templateGeneratorNotFound": "Template Generator cannot be found!",
"fileUploadFailed": "Failed to upload file", "fileUploadFailed": "Failed to upload file",
"primaryColumnUpdateFailed": "Failed to update primary column", "primaryColumnUpdateFailed": "Failed to update primary field",
"formDescriptionTooLong": "Data too long for Form Description", "formDescriptionTooLong": "Data too long for Form Description",
"columnsRequired": "Following columns are required", "columnsRequired": "Following fields are required",
"selectAtleastOneColumn": "At least one column has to be selected", "selectAtleastOneColumn": "At least one field has to be selected",
"columnDescriptionNotFound": "Cannot find the destination column for", "columnDescriptionNotFound": "Cannot find the destination field for",
"duplicateMappingFound": "Duplicate mapping found, please remove one of the mapping", "duplicateMappingFound": "Duplicate mapping found, please remove one of the mapping",
"nullValueViolatesNotNull": "Null value violates not-null constraint", "nullValueViolatesNotNull": "Null value violates not-null constraint",
"sourceHasInvalidNumbers": "Source data contains some invalid numbers", "sourceHasInvalidNumbers": "Source data contains some invalid numbers",
@ -1172,10 +1173,10 @@
"tableNameRequired": "Table name is required", "tableNameRequired": "Table name is required",
"nameShouldStartWithAnAlphabetOr_": "Name should start with an alphabet or _", "nameShouldStartWithAnAlphabetOr_": "Name should start with an alphabet or _",
"followingCharactersAreNotAllowed": "Following characters are not allowed", "followingCharactersAreNotAllowed": "Following characters are not allowed",
"columnNameRequired": "Column name is required", "columnNameRequired": "Field name is required",
"duplicateColumnName": "Duplicate column name", "duplicateColumnName": "Duplicate field name",
"uiDataTypeRequired": "UI data type is required", "uiDataTypeRequired": "UI data type is required",
"columnNameExceedsCharacters": "The length of column name exceeds the max {value} characters", "columnNameExceedsCharacters": "The length of field name exceeds the max {value} characters",
"projectNameExceeds50Characters": "Base name exceeds 50 characters", "projectNameExceeds50Characters": "Base name exceeds 50 characters",
"projectNameCannotStartWithSpace": "Base name cannot start with space", "projectNameCannotStartWithSpace": "Base name cannot start with space",
"requiredField": "Required field", "requiredField": "Required field",
@ -1208,7 +1209,7 @@
}, },
"success": { "success": {
"licenseKeyUpdated": "License Key Updated", "licenseKeyUpdated": "License Key Updated",
"columnDuplicated": "Column duplicated successfully", "columnDuplicated": "Field duplicated successfully",
"rowDuplicatedWithoutSavedYet": "Record duplicated (not saved)", "rowDuplicatedWithoutSavedYet": "Record duplicated (not saved)",
"updatedUIACL": "Updated UI ACL for tables successfully", "updatedUIACL": "Updated UI ACL for tables successfully",
"pluginUninstalled": "Plugin uninstalled successfully", "pluginUninstalled": "Plugin uninstalled successfully",
@ -1217,7 +1218,7 @@
"tableRenamed": "Table renamed successfully", "tableRenamed": "Table renamed successfully",
"layoutRenamed": "Layout renamed successfully", "layoutRenamed": "Layout renamed successfully",
"viewDeleted": "View deleted successfully", "viewDeleted": "View deleted successfully",
"primaryColumnUpdated": "Successfully updated as primary column", "primaryColumnUpdated": "Successfully updated as primary field",
"tableDataExported": "Successfully exported all table data", "tableDataExported": "Successfully exported all table data",
"updated": "Successfully updated", "updated": "Successfully updated",
"sharedViewDeleted": "Deleted shared view successfully", "sharedViewDeleted": "Deleted shared view successfully",
@ -1239,8 +1240,8 @@
"webhookUpdated": "Webhook details updated successfully", "webhookUpdated": "Webhook details updated successfully",
"webhookDeleted": "Hook deleted successfully", "webhookDeleted": "Hook deleted successfully",
"webhookTested": "Webhook tested successfully", "webhookTested": "Webhook tested successfully",
"columnUpdated": "Column updated", "columnUpdated": "Field updated",
"columnCreated": "Column created", "columnCreated": "Field created",
"passwordChanged": "Password changed successfully. Please login again.", "passwordChanged": "Password changed successfully. Please login again.",
"settingsSaved": "Settings saved successfully", "settingsSaved": "Settings saved successfully",
"roleUpdated": "Role updated successfully" "roleUpdated": "Role updated successfully"

Loading…
Cancel
Save