Browse Source

修改建表时的中文翻译

zlSun 1 year ago
parent
commit
5fc450ae4c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      atlas/js/views/entity/CreateEntityLayoutView.js

+ 2 - 2
atlas/js/views/entity/CreateEntityLayoutView.js

@@ -255,12 +255,12 @@ define([ "require", "backbone", "hbs!tmpl/entity/CreateEntityLayoutView_tmpl", "
             });
         },
         getContainer: function(object) {
-            var value = object.value, entityLabel = this.capitalize(_.escape(value.name));
+            var value = object.value, entityLabel = Utils.toChinese(_.escape(value.name)) ;
             return '<div class=" row ' + value.isOptional + '"><span class="col-sm-3"><label><span class="' + (value.isOptional ? "true" : "false required") + '">' + entityLabel + '</span><span class="center-block ellipsis-with-margin text-gray" title="类型: ' + value.typeName + '">(' + _.escape(value.typeName) + ')</span></label></span><span class="col-sm-9">' + this.getElement(object) + "</input></span></div>";
         },
         getFieldElementContainer: function(object) {
             var htmlField = object.htmlField, relationshipType = (!!object.attributeType && object.attributeType,
-            !!object.relationshipType && object.relationshipType), alloptional = object.alloptional, typeOfDefination = relationshipType ? "Relationships" : "Attributes";
+            !!object.relationshipType && object.relationshipType), alloptional = object.alloptional, typeOfDefination = relationshipType ? "关联" : "属性";
             return '<div class="attribute-dash-box ' + (alloptional ? "alloptional" : "") + ' "><span class="attribute-type-label">' + typeOfDefination + "</span>" + htmlField + "</div>";
         },
         getSelect: function(object) {