2 Komitmen b458aca7a8 ... 1fdf7fc7a6

Pembuat SHA1 Pesan Tanggal
  zlSun 1fdf7fc7a6 有关分页的消息修改 1 tahun lalu
  zlSun e62047d315 查询“select ”并修改对应提示 1 tahun lalu

+ 6 - 6
atlas/js/utils/Messages.js

@@ -16,13 +16,13 @@ define([ "require" ], function(require) {
             deleteMessage: "Are you sure you want to delete "
         },
         search: {
-            noRecordForPage: "No record found at ",
-            onSamePage: "You are on the same page!",
-            notExists: "Invalid Expression or Classification/Type has been deleted.",
+            noRecordForPage: "没有找到对应数据于第",
+            onSamePage: "你已在同一页了!",
+            notExists: "无效的表达式或者原有的分类/类型被删除了",
             favoriteSearch: {
-                save: "Do you want to overwrite ",
-                notSelectedFavoriteElement: "Please select any one favorite search",
-                notSelectedSearchFilter: "Please select at least one filter"
+                save: "你希望覆盖原有条件吗 ",
+                notSelectedFavoriteElement: "请选择任意一个收藏的搜索条件",
+                notSelectedSearchFilter: "请至少选择一个条件"
             }
         },
         tag: {

+ 2 - 2
atlas/js/utils/TableLayout.js

@@ -203,7 +203,7 @@ define([ "require", "backbone", "hbs!tmpl/common/TableLayout_tmpl", "utils/Messa
                     content: Messages.search.noRecordForPage + "<b>" + Utils.getNumberSuffix({
                         number: pageNumber,
                         sup: !0
-                    }) + "</b> page"
+                    }) + "</b> "
                 });
             }
         },
@@ -320,7 +320,7 @@ define([ "require", "backbone", "hbs!tmpl/common/TableLayout_tmpl", "utils/Messa
         gotoPagebtn: function(e) {
             var that = this, goToPage = parseInt(this.ui.gotoPage.val());
             if (!_.isNaN(goToPage) && (0 == goToPage || this.collection.state.totalPages < goToPage)) return Utils.notifyInfo({
-                content: Messages.search.noRecordForPage + "page " + goToPage
+                content: Messages.search.noRecordForPage + " " + goToPage
             }), this.ui.gotoPage.val(""), void that.ui.gotoPagebtn.attr("disabled", !0);
             if (!(_.isNaN(goToPage) || goToPage <= -1)) {
                 if ("client" == this.collection.mode) return this.collection.getPage(goToPage - 1, {

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

@@ -114,7 +114,7 @@ define([ "require", "backbone", "hbs!tmpl/entity/CreateEntityLayoutView_tmpl", "
                     }
                 }), 0 === this.asyncReferEntityCounter && this.onEntityChange(null, this.entityData);
             } else {
-                var str = '<option disabled="disabled" selected>--Select entity-type--</option>';
+                var str = '<option disabled="disabled" selected>--请选择实体类型--</option>';
                 this.entityDefCollection.fullCollection.each(function(val) {
                     var name = Utils.getName(val.toJSON());
                     Globals.entityTypeConfList && 0 !== name.indexOf("__") && (_.isEmptyArray(Globals.entityTypeConfList) ? str += "<option>" + name + "</option>" : _.contains(Globals.entityTypeConfList, val.get("name")) && (str += "<option>" + name + "</option>"));
@@ -161,7 +161,7 @@ define([ "require", "backbone", "hbs!tmpl/entity/CreateEntityLayoutView_tmpl", "
                 if (value.isOptional === !1 && (isAllRelationshipAttributeOptinal = !1), null === visitedAttr[value.name]) {
                     var duplicateRelationship = _.where(relationshipAttributeDefsList, {
                         name: value.name
-                    }), str = '<option value="">--Select a Relationship Type--</option>';
+                    }), str = '<option value="">--请选择一个关联类型--</option>';
                     _.each(duplicateRelationship, function(val, index, list) {
                         str += "<option>" + _.escape(val.relationshipTypeName) + "</option>";
                     });
@@ -265,7 +265,7 @@ define([ "require", "backbone", "hbs!tmpl/entity/CreateEntityLayoutView_tmpl", "
         },
         getSelect: function(object) {
             var value = object.value, name = _.escape(value.name), entityValue = _.escape(object.entityValue), isAttribute = object.isAttribute, isRelation = object.isRelation;
-            if ("boolean" === value.typeName) return '<select class="form-control row-margin-bottom ' + (value.isOptional === !0 ? "false" : "true") + '" data-type="' + value.typeName + '" data-attribute="' + isAttribute + '" data-relation="' + isRelation + '" data-key="' + name + '" data-id="entityInput"><option value="">--Select true or false--</option><option value="true">true</option><option value="false">false</option></select>';
+            if ("boolean" === value.typeName) return '<select class="form-control row-margin-bottom ' + (value.isOptional === !0 ? "false" : "true") + '" data-type="' + value.typeName + '" data-attribute="' + isAttribute + '" data-relation="' + isRelation + '" data-key="' + name + '" data-id="entityInput"><option value="">--选择是或否--</option><option value="true">是</option><option value="false">否</option></select>';
             var splitTypeName = value.typeName.split("<");
             return splitTypeName = splitTypeName.length > 1 ? splitTypeName[1].split(">")[0] : value.typeName, 
             '<select class="form-control row-margin-bottom entityInputBox ' + (value.isOptional === !0 ? "false" : "true") + '" data-type="' + value.typeName + '" data-attribute="' + isAttribute + '" data-relation="' + isRelation + '" data-key="' + name + '" data-id="entitySelectData" data-queryData="' + splitTypeName + '">' + (this.guid ? entityValue : "") + "</select>";
@@ -429,7 +429,7 @@ define([ "require", "backbone", "hbs!tmpl/entity/CreateEntityLayoutView_tmpl", "
             var that = this;
             this.$('select[data-id="entitySelectData"]').each(function(value, key) {
                 var $this = $(this), keyData = $(this).data("key"), typeData = $(this).data("type"), queryData = $(this).data("querydata"), placeholderName = ($(this).data("skip"), 
-                "Select a " + typeData + " from the dropdown list");
+                "请从以下列表中选择一个" + typeData);
                 if ($this.attr("multiple", $this.data("type").indexOf("array") !== -1), that.guid) {
                     var dataValue = that.entityData.get("entity").attributes[keyData], relationshipType = (that.entityData.get("entity").attributes, 
                     that.entityData.get("entity").relationshipAttributes ? that.entityData.get("entity").relationshipAttributes[keyData] : null), referredEntities = that.entityData.get("referredEntities"), selectedValue = [], select2Options = [];

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

@@ -33,7 +33,7 @@ define([ "require", "backbone", "utils/Utils", "hbs!tmpl/entity/EntityBusinessMe
         },
         onRender: function() {
             this.ui.keyEl.val(""), this.ui.keyEl.select2({
-                placeholder: "Select Attribute"
+                placeholder: "请选择属性"
             }), this.editMode && !this.model.has("isNew") && this.getEditBusinessMetadataEl(), 
             this.initializeElement(), this.bindEvent();
         },
@@ -48,7 +48,7 @@ define([ "require", "backbone", "utils/Utils", "hbs!tmpl/entity/EntityBusinessMe
                     $select2el.find('option[value="' + value + '"]').remove();
                     $select2el.select2("val");
                     $select2el.select2({
-                        placeholder: "Select Attribute"
+                        placeholder: "请选择属性"
                     }), this.model.keys().length <= 2 && $select2el.val("").trigger("change", !0);
                 }
             }), this.$el.off("change", ".custom-col-1[data-id='value']>[data-key]").on("change", ".custom-col-1[data-id='value']>[data-key]", function(e) {

+ 1 - 1
atlas/js/views/entity/EntityLabelDefineView.js

@@ -65,7 +65,7 @@ define([ "require", "backbone", "hbs!tmpl/entity/EntityLabelDefineView_tmpl", "m
                 return findValue ? [ findValue ] : [];
             };
             this.ui.addLabelOptions.select2({
-                placeholder: "Select Label",
+                placeholder: "请选择标签",
                 allowClear: !1,
                 tags: !0,
                 multiple: !0,

+ 1 - 1
atlas/js/views/glossary/AssignTermLayoutView.js

@@ -69,7 +69,7 @@ define([ "require", "backbone", "hbs!tmpl/glossary/AssignTermLayoutView_tmpl", "
                 onStepChanging: function(event, currentIndex, newIndex) {
                     var isMatch = "GlossaryTerm" == that.glossary.selectedItem.type;
                     return isMatch || Utils.notifyWarn({
-                        content: "Please select Term for association"
+                        content: "请选择关联的术语"
                     }), isMatch;
                 },
                 onFinished: function(event, currentIndex) {

+ 1 - 1
atlas/js/views/graph/LineageLayoutView.js

@@ -264,7 +264,7 @@ define([ "require", "backbone", "hbs!tmpl/graph/LineageLayoutView_tmpl", "collec
             var that = this;
             this.ui.lineageTypeSearch.select2({
                 closeOnSelect: !0,
-                placeholder: "Select Node"
+                placeholder: "请选择节点"
             }).on("change.select2", function(e) {
                 if (e.stopPropagation(), e.stopImmediatePropagation(), that.ui.lineageTypeSearch.data("refresh")) that.ui.lineageTypeSearch.data("refresh", !1); else {
                     var selectedNode = $('[data-id="typeSearch"]').val();

+ 2 - 2
atlas/js/views/graph/PropagationPropertyModal.js

@@ -189,11 +189,11 @@ define([ "require", "hbs!tmpl/graph/PropagationPropertyModalView_tmpl", "models/
         },
         showEditPropagation: function() {
             this.$(".editPropagation").show(), this.$(".propagatedClassificationTable").hide(), 
-            this.modal.$el.find(".modal-title").text("Enable/Disable Propagation");
+            this.modal.$el.find(".modal-title").text("启用/禁用 传播");
         },
         showPropagatedClassificationTable: function() {
             this.$(".editPropagation").hide(), this.$(".propagatedClassificationTable").show(), 
-            this.modal.$el.find(".modal-title").text("Select Classifications to Block Propagation");
+            this.modal.$el.find(".modal-title").text("请选择阻止传播的分类");
         }
     });
     return PropogationPropertyModal;

+ 1 - 1
atlas/js/views/graph/TypeSystemTreeView.js

@@ -313,7 +313,7 @@ define([ "require", "backbone", "hbs!tmpl/graph/TypeSystemTreeView_tmpl", "colle
                 }
             }), this.ui.filterServiceType.data("select2") || this.ui.filterServiceType.select2({
                 closeOnSelect: !0,
-                placeholder: "Select ServiceType"
+                placeholder: "请选择服务类型"
             }).on("change.select2", function(e) {
                 if (e.stopPropagation(), e.stopImmediatePropagation(), that.ui.filterServiceType.data("refresh")) that.ui.filterServiceType.data("refresh", !1); else {
                     var selectedNode = $('[data-id="filterServiceType"]').val();

+ 2 - 2
atlas/js/views/search/QueryBuilderView.js

@@ -75,7 +75,7 @@ define([ "require", "backbone", "hbs!tmpl/search/QueryBuilder_tmpl", "hbs!tmpl/s
                 obj;
                 if (isSystemAttr && "__classificationNames" === attrObj.name || "__propagatedClassificationNames" === attrObj.name) return obj.plugin = "select2", 
                 obj.input = "select", obj.plugin_config = {
-                    placeholder: "Select classfication",
+                    placeholder: "请选择分类",
                     tags: !0,
                     multiple: !1,
                     data: this.classificationDefCollection.fullCollection.models.map(function(o) {
@@ -203,7 +203,7 @@ define([ "require", "backbone", "hbs!tmpl/search/QueryBuilder_tmpl", "hbs!tmpl/s
             }
         },
         onRender: function() {
-            var that = this, filters = [], isGroupView = !0, placeHolder = "--Select Attribute--", rules_widgets = null;
+            var that = this, filters = [], isGroupView = !0, placeHolder = "--请选择属性--", rules_widgets = null;
             if (this.adminAttrFilters) {
                 var entityDef = this.entityDefCollection.fullCollection.find({
                     name: "__AtlasAuditEntry"

+ 1 - 1
atlas/js/views/search/SearchLayoutView.js

@@ -357,7 +357,7 @@ define([ "require", "backbone", "hbs!tmpl/search/SearchLayoutView_tmpl", "utils/
             _.isUndefined(isTypeOnly) && (that.value && _.each(Enums.addOnClassification, function(classificationName) {
                 classificationName !== that.value.tag && (tagStr += '<option  value="' + classificationName + '" data-name="' + classificationName + '">' + classificationName + "</option>");
             }), that.ui.tagLov.html(tagStr), this.ui.tagLov.select2({
-                placeholder: "Select Classification",
+                placeholder: "请选择分类",
                 allowClear: !0,
                 tags: !0,
                 createTag: function(tag) {

+ 2 - 2
atlas/js/views/search/SearchResultLayoutView.js

@@ -252,7 +252,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                                     content: Messages.search.noRecordForPage + "<b>" + Utils.getNumberSuffix({
                                         number: pageNumber,
                                         sup: !0
-                                    }) + "</b> page"
+                                    }) + "</b> "
                                 });
                             }
                             if (isPostMethod && (Utils.findAndMergeRefEntity({
@@ -824,7 +824,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                     content: Messages.search.noRecordForPage + "<b>" + Utils.getNumberSuffix({
                         number: goToPage,
                         sup: !0
-                    }) + "</b> page"
+                    }) + "</b> "
                 });
                 this.offset = (goToPage - 1) * this.limit, this.offset <= -1 && (this.offset = 0),
                 _.extend(this.searchCollection.queryParams, {

+ 2 - 2
atlas/js/views/tag/AddTagModalView.js

@@ -169,7 +169,7 @@ define([ "require", "hbs!tmpl/tag/AddTagModalView_tmpl", "views/tag/AddTimezoneI
                 var name = Utils.getName(obj.toJSON(), "name");
                 _.indexOf(that.tagList, obj.get("name")) === -1 && (str += "<option " + (that.tagModel && that.tagModel.typeName === name ? "selected" : "") + ">" + name + "</option>");
             }), this.ui.addTagOptions.html(str), this.ui.addTagOptions.select2({
-                placeholder: "Select Tag",
+                placeholder: "请选择标签",
                 allowClear: !1
             });
         },
@@ -215,7 +215,7 @@ define([ "require", "hbs!tmpl/tag/AddTagModalView_tmpl", "views/tag/AddTimezoneI
                     name: typeName
                 });
                 if (typeNameValue) {
-                    var str = '<option value=""' + (that.tagModel ? "" : "selected") + ">-- Select " + typeName + " --</option>", enumValue = typeNameValue.get("elementDefs");
+                    var str = '<option value=""' + (that.tagModel ? "" : "selected") + ">-- 请选择 " + typeName + " --</option>", enumValue = typeNameValue.get("elementDefs");
                     _.each(enumValue, function(key, value) {
                         str += "<option " + (that.tagModel && key.value === that.tagModel.attributes[name] ? "selected" : "") + ">" + _.escape(key.value) + "</option>";
                     }), that.ui.tagAttribute.append('<div class="form-group"><label>' + name + "</label> (" + typeName + ')<select class="form-control attributeInputVal attrName" data-key="' + name + '">' + str + "</select></div>");

+ 1 - 1
atlas/n/js/templates/glossary/AssignTermLayoutView_tmpl.html

@@ -16,7 +16,7 @@
 -->
 {{#if isAttributeRelationView}}
 <div data-id="wizard">
-    <h3>Select Term</h3>
+    <h3>选择术语</h3>
     <section>
         <div id="r_glossaryTree"></div>
     </section>

+ 1 - 1
atlas/n/js/templates/graph/PropagationPropertyModalView_tmpl.html

@@ -23,7 +23,7 @@
                     <input type="checkbox" class="switch-input" name="editPropagationType" value="text">
                     <span class="switch-slider"></span>
                 </label>
-                <span class="pull-left">Select Classifications to Block Propagation</span>
+                <span class="pull-left">选择阻止传播的分类</span>
             </div>
         </div>
         <hr style="margin-top: 0px;">

+ 2 - 2
atlas/n/js/utils/TableLayout.js

@@ -203,7 +203,7 @@ define([ "require", "backbone", "hbs!tmpl/common/TableLayout_tmpl", "utils/Messa
                     content: Messages.search.noRecordForPage + "<b>" + Utils.getNumberSuffix({
                         number: pageNumber,
                         sup: !0
-                    }) + "</b> page"
+                    }) + "</b> "
                 });
             }
         },
@@ -320,7 +320,7 @@ define([ "require", "backbone", "hbs!tmpl/common/TableLayout_tmpl", "utils/Messa
         gotoPagebtn: function(e) {
             var that = this, goToPage = parseInt(this.ui.gotoPage.val());
             if (!_.isNaN(goToPage) && (0 == goToPage || this.collection.state.totalPages < goToPage)) return Utils.notifyInfo({
-                content: Messages.search.noRecordForPage + "page " + goToPage
+                content: Messages.search.noRecordForPage + " " + goToPage
             }), this.ui.gotoPage.val(""), void that.ui.gotoPagebtn.attr("disabled", !0);
             if (!(_.isNaN(goToPage) || goToPage <= -1)) {
                 if ("client" == this.collection.mode) return this.collection.getPage(goToPage - 1, {

+ 2 - 2
atlas/n/js/views/search/SearchResultLayoutView.js

@@ -258,7 +258,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                                     content: Messages.search.noRecordForPage + "<b>" + Utils.getNumberSuffix({
                                         number: pageNumber,
                                         sup: !0
-                                    }) + "</b> page"
+                                    }) + "</b> "
                                 });
                             }
                             if (isPostMethod && (Utils.findAndMergeRefEntity({
@@ -836,7 +836,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                     content: Messages.search.noRecordForPage + "<b>" + Utils.getNumberSuffix({
                         number: goToPage,
                         sup: !0
-                    }) + "</b> page"
+                    }) + "</b> "
                 });
                 this.offset = (goToPage - 1) * this.limit, this.offset <= -1 && (this.offset = 0), 
                 _.extend(this.searchCollection.queryParams, {