瀏覽代碼

将Advanced Search改为高级查询

zlSun 1 年之前
父節點
當前提交
04a3b83e36

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

@@ -84,7 +84,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
             this.asyncFetchCounter = 0, this.offset = 0, this.bindEvents(), this.multiSelectEntity = [], 
             this.searchType = "基础查询", this.columnOrder = null, this.defaultColumns = [ "selected", "name", "description", "typeName", "owner", "tag", "term" ],
             this.value) {
-                if (this.value.searchType && "dsl" == this.value.searchType && (this.searchType = "Advanced Search"), 
+                if (this.value.searchType && "dsl" == this.value.searchType && (this.searchType = "高级查询"),
                 this.value.pageLimit) {
                     var pageLimit = parseInt(this.value.pageLimit, 10);
                     _.isNaN(pageLimit) || 0 == pageLimit || pageLimit <= -1 ? (this.value.pageLimit = this.limit, 
@@ -153,7 +153,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                         saveState: !1
                     },
                     visibilityControlOpts: {
-                        buttonTemplate: _.template("<button class='btn btn-action btn-sm pull-right'>Columns&nbsp<i class='fa fa-caret-down'></i></button>")
+                        buttonTemplate: _.template("<button class='btn btn-action btn-sm pull-right'>选择字段&nbsp<i class='fa fa-caret-down'></i></button>")
                     },
                     el: this.ui.colManager
                 },
@@ -272,7 +272,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                             that.updateMultiSelect(), dataLength > 0 && that.$(".searchTable").removeClass("noData"), 
                             Utils.getUrlState.isSearchTab() && value && !that.profileDBView) {
                                 var searchString = 'Results for: <span class="filterQuery">' + CommonViewFunction.generateQueryOfFilter(that.value) + "</span>";
-                                Globals.entityCreate && Globals.entityTypeConfList && Utils.getUrlState.isSearchTab() && (searchString += '<p>If you do not find the entity in search result below then you can<a href="javascript:void(0)" data-id="createEntity"> create new entity</a></p>'), 
+                                Globals.entityCreate && Globals.entityTypeConfList && Utils.getUrlState.isSearchTab() && (searchString += '<p>如果你没有在搜索结果中找到目标实体,那么你可以<a href="javascript:void(0)" data-id="createEntity">创建新实体</a></p>'),
                                 that.$(".searchResult").html(searchString);
                             }
                         }
@@ -624,7 +624,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
         getTagCol: function(options) {
             var columnToShow = options.columnToShow, col = options.col;
             col && (col.tag = {
-                label: "Classifications",
+                label: "分类",
                 cell: "Html",
                 editable: !1,
                 sortable: !1,
@@ -643,7 +643,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
         getTermCol: function(options) {
             var columnToShow = options.columnToShow, col = options.col;
             col && (col.term = {
-                label: "Term",
+                label: "术语",
                 cell: "Html",
                 editable: !1,
                 sortable: !1,

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

@@ -85,7 +85,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
             this.asyncFetchCounter = 0, this.offset = 0, this.bindEvents(), this.multiSelectEntity = [], 
             this.searchType = "基础查询", this.columnOrder = null, this.defaultColumns = [ "selected", "name", "description", "typeName", "owner", "tag", "term" ],
             this.value) {
-                if (this.value.searchType && "dsl" == this.value.searchType && (this.searchType = "Advanced Search"), 
+                if (this.value.searchType && "dsl" == this.value.searchType && (this.searchType = "高级查询"),
                 this.value.pageLimit) {
                     var pageLimit = parseInt(this.value.pageLimit, 10);
                     _.isNaN(pageLimit) || 0 == pageLimit || pageLimit <= -1 ? (this.value.pageLimit = this.limit, 

+ 2 - 2
atlas/n/js/views/search/tree/CustomFilterTreeLayoutView.js

@@ -194,8 +194,8 @@ define([ "require", "hbs!tmpl/search/tree/CustomFilterTreeLayoutView_tmpl", "uti
                 gType: "customFilter",
                 type: "customFilterFolder",
                 children: customFilterAdvanceList,
-                text: "Advanced Search",
-                name: "Advanced Search",
+                text: "高级查询",
+                name: "高级查询",
                 state: {
                     opened: !0
                 }