Bladeren bron

有关分页的消息修改

zlSun 1 jaar geleden
bovenliggende
commit
1fdf7fc7a6

+ 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, {

+ 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/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, {