Răsfoiți Sursa

update cn i18n

Signed-off-by: ruiyi.jiang <ruiyi.jiang@zilliz.com>
ruiyi.jiang 2 ani în urmă
părinte
comite
455cfb0030

+ 18 - 11
client/src/i18n/cn/collection.ts

@@ -4,7 +4,7 @@ const collectionTrans = {
 
   rowCount: 'Approx Entity Count',
 
-  create: 'Create Collection',
+  create: 'Collection',
   delete: 'delete',
   deleteTooltip: 'Please select at least one item to delete.',
   rename: 'rename',
@@ -13,7 +13,8 @@ const collectionTrans = {
   alias: 'Alias',
   aliasTooltip: 'Please select one collection to create alias',
   download: 'Download',
-  downloadTooltip: 'Download all query results',
+  downloadTooltip: 'Export all query results to CSV file',
+  downloadDisabledTooltip: 'Please query data before exporting',
 
   collection: 'Collection',
   entites: 'entites',
@@ -40,14 +41,16 @@ const collectionTrans = {
   consistency: 'Consistency Level',
   consistencyLevel: 'Consistency Level',
   description: 'Description',
-  fieldType: 'Field Type',
+  fieldType: 'Type',
   vectorFieldType: 'Vector Field Type',
-  fieldName: 'Field Name',
-  idFieldName: 'ID Name',
-  vectorFieldName: 'Vector Name',
+  fieldName: 'Field',
+  idFieldName: 'Primary Key Field',
+  vectorFieldName: 'Vector Field',
   autoId: 'Auto ID',
-  vectorType: 'Vector Type',
-  idType: 'ID Type',
+  autoIdToggleTip:
+    'Whether the primary key is automatically generated by Milvus, only suppport INT64.',
+  vectorType: 'Type',
+  idType: 'Type',
   dimension: 'Dimension',
   dimensionTooltip: 'Only vector type has dimension',
   dimensionMutipleWarning: 'Dimension should be 8 multiple',
@@ -57,6 +60,9 @@ const collectionTrans = {
   nameContentWarning: 'Only numbers, letters, and underscores are allowed.',
   nameFirstLetterWarning:
     'Name first character must be underscore or character(a~z, A~Z)',
+  partitionKey: 'Partition Key',
+  partitionKeyTooltip:
+    ' Milvus will store entities in a partition according to the values in the partition key field. Only one Int64 or VarChar field is suppported.',
 
   // load dialog
   loadTitle: 'Load Collection',
@@ -84,15 +90,16 @@ const collectionTrans = {
   queryTab: 'Data Query',
   previewTab: 'Data Preview',
   startTip: 'Start your data query',
-  exprPlaceHolder: 'Please enter your query by using advanced filter ->',
+  dataQuerylimits:
+    ' Please note that the maximum number of results for your data query is 16384.',
+  exprPlaceHolder: 'Please enter your data query, for example id > 0',
 
   // alias dialog
   aliasCreatePlaceholder: 'Alias name',
 
   // rename dialog
   newColNamePlaceholder: 'New Collection Name',
-  newNameInfo:
-    'Only numbers, letters, and underscores are allowed.',
+  newNameInfo: 'Only numbers, letters, and underscores are allowed.',
 };
 
 export default collectionTrans;

+ 1 - 0
client/src/i18n/cn/common.ts

@@ -22,6 +22,7 @@ const commonTrans = {
     action: 'action',
     noData: 'No Data',
     rows: 'Rows',
+    results: 'results',
     of: 'of',
     nextLabel: 'next page',
     prevLabel: 'prev page',

+ 2 - 1
client/src/i18n/cn/database.ts

@@ -1,6 +1,7 @@
 const databaseTrans = {
-  createTitle: 'Create database',
+  createTitle: 'Create Database',
   databases: 'Databases',
+  database: 'Database',
   deleteWarning:
     'You are trying to drop a database. This action cannot be undone.',
   databaseName: 'Database Name',

+ 1 - 1
client/src/i18n/cn/index.ts

@@ -2,7 +2,7 @@ const indexTrans = {
   type: 'Index Type',
   param: 'Index Parameters',
 
-  create: 'Create Index',
+  create: 'Index',
   index: 'Index',
   desc: 'Description',
 

+ 1 - 1
client/src/i18n/cn/partition.ts

@@ -1,5 +1,5 @@
 const partitionTrans = {
-  create: 'Create Partition',
+  create: 'Partition',
   delete: 'Delete partition',
 
   partition: 'Partition',

+ 24 - 2
client/src/i18n/cn/user.ts

@@ -1,7 +1,9 @@
 const userTrans = {
   createTitle: 'Create User',
-  updateTitle: 'Update User',
+  updateTitle: 'Update Milvus User',
+  updateRoleTitle: 'Update User Roles',
   user: 'User',
+  users: 'Users',
   deleteWarning: 'You are trying to drop user. This action cannot be undone.',
   oldPassword: 'Current Password',
   newPassword: 'New Password',
@@ -9,7 +11,27 @@ const userTrans = {
   update: 'Update password',
   isNotSame: 'Not same as new password',
   deleteTip:
-    'Please select at least one item to drop and root can not be dropped.',
+    'Please select at least one item to drop and the root user can not be dropped.',
+
+  // role
+  deleteEditRoleTip: 'root role is not editable.',
+  disableEditRolePrivilegeTip: 'admin and public role are not editable.',
+
+  role: 'Role',
+  editRole: 'Edit Role',
+  roles: 'Roles',
+  createRoleTitle: 'Create Role',
+  updateRolePrivilegeTitle: 'Update Role',
+  updateRoleSuccess: 'User Role',
+  type: 'Type',
+
+  // Privileges
+  privileges: 'Privileges',
+  objectCollection: 'Collection',
+  objectGlobal: 'Global',
+  objectUser: 'User',
+
+  forceDelLabel: 'Force delete, revoke all privileges.',
 };
 
 export default userTrans;

+ 18 - 11
client/src/i18n/en/collection.ts

@@ -4,7 +4,7 @@ const collectionTrans = {
 
   rowCount: 'Approx Entity Count',
 
-  create: 'Create Collection',
+  create: 'Collection',
   delete: 'delete',
   deleteTooltip: 'Please select at least one item to delete.',
   rename: 'rename',
@@ -13,7 +13,8 @@ const collectionTrans = {
   alias: 'Alias',
   aliasTooltip: 'Please select one collection to create alias',
   download: 'Download',
-  downloadTooltip: 'Download all query results',
+  downloadTooltip: 'Export all query results to CSV file',
+  downloadDisabledTooltip: 'Please query data before exporting',
 
   collection: 'Collection',
   entites: 'entites',
@@ -40,14 +41,16 @@ const collectionTrans = {
   consistency: 'Consistency Level',
   consistencyLevel: 'Consistency Level',
   description: 'Description',
-  fieldType: 'Field Type',
+  fieldType: 'Type',
   vectorFieldType: 'Vector Field Type',
-  fieldName: 'Field Name',
-  idFieldName: 'ID Name',
-  vectorFieldName: 'Vector Name',
+  fieldName: 'Field',
+  idFieldName: 'Primary Key Field',
+  vectorFieldName: 'Vector Field',
   autoId: 'Auto ID',
-  vectorType: 'Vector Type',
-  idType: 'ID Type',
+  autoIdToggleTip:
+    'Whether the primary key is automatically generated by Milvus, only suppport INT64.',
+  vectorType: 'Type',
+  idType: 'Type',
   dimension: 'Dimension',
   dimensionTooltip: 'Only vector type has dimension',
   dimensionMutipleWarning: 'Dimension should be 8 multiple',
@@ -57,6 +60,9 @@ const collectionTrans = {
   nameContentWarning: 'Only numbers, letters, and underscores are allowed.',
   nameFirstLetterWarning:
     'Name first character must be underscore or character(a~z, A~Z)',
+  partitionKey: 'Partition Key',
+  partitionKeyTooltip:
+    ' Milvus will store entities in a partition according to the values in the partition key field. Only one Int64 or VarChar field is suppported.',
 
   // load dialog
   loadTitle: 'Load Collection',
@@ -84,15 +90,16 @@ const collectionTrans = {
   queryTab: 'Data Query',
   previewTab: 'Data Preview',
   startTip: 'Start your data query',
-  exprPlaceHolder: 'Please enter your query by using advanced filter ->',
+  dataQuerylimits:
+    ' Please note that the maximum number of results for your data query is 16384.',
+  exprPlaceHolder: 'Please enter your data query, for example id > 0',
 
   // alias dialog
   aliasCreatePlaceholder: 'Alias name',
 
   // rename dialog
   newColNamePlaceholder: 'New Collection Name',
-  newNameInfo:
-    'Only numbers, letters, and underscores are allowed.',
+  newNameInfo: 'Only numbers, letters, and underscores are allowed.',
 };
 
 export default collectionTrans;

+ 1 - 0
client/src/i18n/en/common.ts

@@ -22,6 +22,7 @@ const commonTrans = {
     action: 'action',
     noData: 'No Data',
     rows: 'Rows',
+    results: 'results',
     of: 'of',
     nextLabel: 'next page',
     prevLabel: 'prev page',

+ 2 - 1
client/src/i18n/en/database.ts

@@ -1,6 +1,7 @@
 const databaseTrans = {
-  createTitle: 'Create database',
+  createTitle: 'Create Database',
   databases: 'Databases',
+  database: 'Database',
   deleteWarning:
     'You are trying to drop a database. This action cannot be undone.',
   databaseName: 'Database Name',

+ 1 - 1
client/src/i18n/en/index.ts

@@ -2,7 +2,7 @@ const indexTrans = {
   type: 'Index Type',
   param: 'Index Parameters',
 
-  create: 'Create Index',
+  create: 'Index',
   index: 'Index',
   desc: 'Description',
 

+ 1 - 1
client/src/i18n/en/partition.ts

@@ -1,5 +1,5 @@
 const partitionTrans = {
-  create: 'Create Partition',
+  create: 'Partition',
   delete: 'Delete partition',
 
   partition: 'Partition',

+ 24 - 2
client/src/i18n/en/user.ts

@@ -1,7 +1,9 @@
 const userTrans = {
   createTitle: 'Create User',
-  updateTitle: 'Update User',
+  updateTitle: 'Update Milvus User',
+  updateRoleTitle: 'Update User Roles',
   user: 'User',
+  users: 'Users',
   deleteWarning: 'You are trying to drop user. This action cannot be undone.',
   oldPassword: 'Current Password',
   newPassword: 'New Password',
@@ -9,7 +11,27 @@ const userTrans = {
   update: 'Update password',
   isNotSame: 'Not same as new password',
   deleteTip:
-    'Please select at least one item to drop and root can not be dropped.',
+    'Please select at least one item to drop and the root user can not be dropped.',
+
+  // role
+  deleteEditRoleTip: 'root role is not editable.',
+  disableEditRolePrivilegeTip: 'admin and public role are not editable.',
+
+  role: 'Role',
+  editRole: 'Edit Role',
+  roles: 'Roles',
+  createRoleTitle: 'Create Role',
+  updateRolePrivilegeTitle: 'Update Role',
+  updateRoleSuccess: 'User Role',
+  type: 'Type',
+
+  // Privileges
+  privileges: 'Privileges',
+  objectCollection: 'Collection',
+  objectGlobal: 'Global',
+  objectUser: 'User',
+
+  forceDelLabel: 'Force delete, revoke all privileges.',
 };
 
 export default userTrans;