Free, simple, and intuitive online database diagram editor and SQL generator.
JavaScript databasedatabase-designdatabase-diagramdatabase-schemadbmldiagram-editoreditorer-diagramerderdiagramindexeddbmariadbmcporacle-databaseoracle-dbpostgresqlschema-designsqlsql-serversqlite
Change wording from field to column (#1137)
1ilitd2c46ddd9b14
diff --git a/src/components/EditorCanvas/Table.jsx b/src/components/EditorCanvas/Table.jsxindex 7c825602..cd1ecf6f 100644--- a/src/components/EditorCanvas/Table.jsx+++ b/src/components/EditorCanvas/Table.jsx@@ -309,13 +309,13 @@ export default function Table({disabled={layout.readOnly}aria-label={tableData.collapsed- ? "Expand unlinked fields"- : "Collapse unlinked fields"+ ? "Expand unlinked columns"+ : "Collapse unlinked columns"}title={tableData.collapsed- ? "Expand unlinked fields"- : "Collapse unlinked fields"+ ? "Expand unlinked columns"+ : "Collapse unlinked columns"}onClick={toggleTableCollapse}onPointerDown={(e) => e.stopPropagation()}diff --git a/src/i18n/locales/en.js b/src/i18n/locales/en.jsindex 78a05833..e047c62e 100644--- a/src/i18n/locales/en.js+++ b/src/i18n/locales/en.js@@ -53,7 +53,7 @@ const en = {issues: "Problems",presentation_mode: "Presentation mode",strict_mode: "Strict mode",- field_details: "Field details",+ field_details: "Column details",reset_view: "Reset view",show_grid: "Show grid",snap_to_grid: "Snap to grid",@@ -106,7 +106,7 @@ const en = {no_tables: "No tables",no_tables_text: "Start building your diagram!",no_relationships: "No relationships",- no_relationships_text: "Drag to connect fields and form relationships!",+ no_relationships_text: "Drag to connect columns and form relationships!",no_subject_areas: "No subject areas",no_subject_areas_text: "Add subject areas to group tables!",no_notes: "No notes",@@ -130,9 +130,9 @@ const en = {comment: "Comment",add: "Add",add_comment: "Add comment",- add_field: "Add field",+ add_field: "Add column",composite_key: "Composite key",- composite_key_hint: "Add fields to make a composite key.",+ composite_key_hint: "Add columns to make a composite key.",values: "Values",size: "Size",precision: "Precision",@@ -142,7 +142,7 @@ const en = {add_index: "Add index",unique_constraints: "Unique constraints",add_unique_constraint: "Add unique constraint",- select_fields: "Select fields",+ select_fields: "Select columns",title: "Title",not_set: "Not set",foreign: "Foreign",@@ -156,7 +156,7 @@ const en = {many_to_one: "Many to one",content: "Content",types_info:- "This feature is meant for object-relational DBMSs like PostgreSQL.\nIf used for MySQL or MariaDB a JSON type will be generated with the corresponding json validation check.\nIf used for SQLite it will be translated to a BLOB.\nIf used for MSSQL a type alias to the first field will be generated.",+ "This feature is meant for object-relational DBMSs like PostgreSQL.\nIf used for MySQL or MariaDB a JSON type will be generated with the corresponding json validation check.\nIf used for SQLite it will be translated to a BLOB.\nIf used for MSSQL a type alias to the first column will be generated.",table_deleted: "Table deleted",area_deleted: "Area deleted",note_deleted: "Note deleted",@@ -183,29 +183,29 @@ const en = {filename: "Filename",table_w_no_name: "Declared a table with no name",duplicate_table_by_name: "Duplicate table by the name '{{tableName}}'",- empty_field_name: "Empty field `name` in table '{{tableName}}'",- empty_field_type: "Empty field `type` in table '{{tableName}}'",+ empty_field_name: "Empty column `name` in table '{{tableName}}'",+ empty_field_type: "Empty column `type` in table '{{tableName}}'",no_values_for_field:- "'{{fieldName}}' field of table '{{tableName}}' is of type `{{type}}` but no values have been specified",+ "'{{fieldName}}' column of table '{{tableName}}' is of type `{{type}}` but no values have been specified",default_doesnt_match_type:- "Default value for field '{{fieldName}}' in table '{{tableName}}' does not match its type",+ "Default value for column '{{fieldName}}' in table '{{tableName}}' does not match its type",not_null_is_null:- "'{{fieldName}}' field of table '{{tableName}}' is NOT NULL but has default NULL",+ "'{{fieldName}}' column of table '{{tableName}}' is NOT NULL but has default NULL",duplicate_fields:- "Duplicate table fields by name '{{fieldName}}' in table '{{tableName}}'",+ "Duplicate table columns by name '{{fieldName}}' in table '{{tableName}}'",duplicate_index:"Duplicate index by name '{{indexName}}' in table '{{tableName}}'",empty_index: "Index in table '{{tableName}}' indexes no columns",no_primary_key: "Table '{{tableName}}' has no primary key",type_with_no_name: "Declared a type with no name",duplicate_types: "Duplicate types by the name '{{typeName}}'",- type_w_no_fields: "Declared an empty type '{{typeName}}' with no fields",- empty_type_field_name: "Empty field `name` in type '{{typeName}}'",- empty_type_field_type: "Empty field `type` in type '{{typeName}}'",+ type_w_no_fields: "Declared an empty type '{{typeName}}' with no columns",+ empty_type_field_name: "Empty column `name` in type '{{typeName}}'",+ empty_type_field_type: "Empty column `type` in type '{{typeName}}'",no_values_for_type_field:- "'{{fieldName}}' field of type '{{typeName}}' is of type `{{type}}` but no values have been specified",+ "'{{fieldName}}' column of type '{{typeName}}' is of type `{{type}}` but no values have been specified",duplicate_type_fields:- "Duplicate type fields by name '{{fieldName}}' in type '{{typeName}}'",+ "Duplicate type columns by name '{{fieldName}}' in type '{{typeName}}'",duplicate_reference: "Duplicate reference by the name '{{refName}}'",circular_dependency: "Circular dependency involving table '{{refName}}'",timeline: "Timeline",diff --git a/src/utils/exportAs/documentation.js b/src/utils/exportAs/documentation.jsindex 16ba2853..28cb3a60 100644--- a/src/utils/exportAs/documentation.js+++ b/src/utils/exportAs/documentation.js@@ -75,7 +75,7 @@ export function jsonToDocumentation(obj) {]);indexesSection ="\n#### Indexes\n" +- formatMarkdownTable(["Name", "Unique", "Fields"], indexRows);+ formatMarkdownTable(["Name", "Unique", "Columns"], indexRows);}let uniqueConstraintsSection = "";@@ -86,7 +86,7 @@ export function jsonToDocumentation(obj) {]);uniqueConstraintsSection ="\n#### Unique constraints\n" +- formatMarkdownTable(["Name", "Fields"], ucRows);+ formatMarkdownTable(["Name", "Columns"], ucRows);}return (@@ -125,7 +125,7 @@ export function jsonToDocumentation(obj) {? obj.types.map((type) => {const rows = [[type.name, type.fields.map((f) => f.name).join(", "), type.comment ?? ""]];- return formatMarkdownTable(["Name", "Fields", "Note"], rows);+ return formatMarkdownTable(["Name", "Columns", "Note"], rows);}).join("\n"): "";