提交 8d3311bb 编写于 作者: U unknown

语言包整理

上级 b8381998
......@@ -10,7 +10,7 @@ MWF.xApplication.AppMarketV2.ApplicationsContent = new Class({
this.viewPath = this.app.path+this.app.options.style+"/"+this.options.view;
debugger;
this.querydata = {};
this.currentcategory = {"name":"全部","count":0};
this.currentcategory = {"name": this.app.lp.all,"count":0};
this.load();
},
load: function(){
......@@ -116,7 +116,7 @@ MWF.xApplication.AppMarketV2.ApplicationsContent.Applications= new Class({
this.emptyLoadContent();
this.actions.MarketAction.listPaging(this.page, this.pageSize, this.content.querydata,function(json){
if (json.data && json.data.length){
this.content.currentcategory["name"] = this.content.querydata.category==""||!(this.content.querydata.category)?"全部":this.content.querydata.category;
this.content.currentcategory["name"] = this.content.querydata.category==""||!(this.content.querydata.category)? this.app.lp.all :this.content.querydata.category;
this.content.currentcategory["count"] = json.count;
this.showApplications(json.data);
}
......@@ -141,7 +141,7 @@ MWF.xApplication.AppMarketV2.ApplicationsContent.Applications= new Class({
showCategorys:function(data){
var categorysdiv = this.content.appCategory;
categorysdiv.empty();
this.loadCertainCategory(categorysdiv,"全部")
this.loadCertainCategory(categorysdiv, this.app.lp.all );
data.each(function(d,i){
this.loadCertainCategory(categorysdiv,d)
}.bind(this))
......@@ -153,7 +153,7 @@ MWF.xApplication.AppMarketV2.ApplicationsContent.Applications= new Class({
var categorydiv = new Element("span",{"text":d,"class":"o2_appmarket_appcategory"}).inject(categorysdiv);
categorydiv.store("data",d);
if (_self.content.querydata["category"]){
if ((_self.content.querydata["category"]=="" && d=="全部")||(_self.content.querydata["category"]==d)){
if ((_self.content.querydata["category"]=="" && d==_self.app.lp.all )||(_self.content.querydata["category"]==d)){
categorydiv.removeClass("o2_appmarket_appcategory").addClass("mainColor_color").addClass("o2_appmarket_appcategory_current");
}
}
......@@ -169,7 +169,7 @@ MWF.xApplication.AppMarketV2.ApplicationsContent.Applications= new Class({
this.getParent().getElements(".o2_appmarket_appcategory_current").removeClass("mainColor_color").removeClass("o2_appmarket_appcategory_current").addClass("o2_appmarket_appcategory");
this.removeClass("o2_appmarket_appcategory").addClass("mainColor_color").addClass("o2_appmarket_appcategory_current");
if (d){
if (d=="全部"){
if ( d== _self.app.lp.all ){
_self.content.querydata["category"]="";
}else{
_self.content.querydata["category"]=d;
......
......@@ -64,7 +64,7 @@ MWF.xApplication.AppMarketV2.Main = new Class({
}
}.bind(this));
}else{
o2.xDesktop.notice("error", {x: "right", y:"top"}, "应用市场需要管理员角色才能访问");
o2.xDesktop.notice("error", {x: "right", y:"top"}, this.lp.accessDenyNotice);
}
},
loadApp: function(callback){
......
......@@ -23,5 +23,9 @@ MWF.xApplication.AppMarketV2.LP = {
"confirmsetupTitle":"安装提示",
"confirmsetupContent":"您确认安装本应用么?",
"confirmupdateTitle":"更新提示",
"confirmupdateContent":"您确认更新本应用么?如果安装应用后改过本应用,本次更新后会被替换"
"confirmupdateContent":"您确认更新本应用么?如果安装应用后改过本应用,本次更新后会被替换",
"all" : "全部",
"searchHolder": "请输入搜索关键字",
"accessDenyNotice": "应用市场需要管理员角色才能访问"
};
\ No newline at end of file
......@@ -81,8 +81,9 @@ MWF.xApplication.Profile.Common.Pagination = new Class({
return new Element('div.page', {'text': '...'});
},
createText: function () {
var text = MWF.xApplication.Profile.LP.pageText.replace("{n}", (this.currentPage + 1) + '/' + (this.page) );
return new Element('span', {
'text': '' + (this.currentPage + 1) + '/' + (this.page) + '',
'text': text,
'style': "margin:0 3px;"
});
},
......@@ -230,7 +231,7 @@ MWF.xApplication.Profile.Common.Content = new Class({
this.searchOkButton = new Element("a", {
"class": "button is-link",
"style": "margin:5px;",
"text": "搜索"
"text": MWF.xApplication.Profile.LP.search
}).inject(this.searchItemNode).addEvent("click", function () {
this.options.page = 1;
......@@ -240,7 +241,7 @@ MWF.xApplication.Profile.Common.Content = new Class({
this.searchCancleButton = new Element("a", {
"class": "button",
"style": "margin:5px;",
"text": "取消"
"text": MWF.xApplication.Profile.LP.cancel1
}).inject(this.searchItemNode).addEvent("click", function () {
this.searchItemList.each(function (item) {
$$('[name=' + item.name + ']').set("value", "");
......
......@@ -317,7 +317,7 @@ MWF.xApplication.Profile.Main = new Class({
"startTime" : null,
"endTime" : null,
"isWholeday" : false,
"title" : "新建外出授权",
"title" : this.lp.createEmpower,
"defaultCalendarId" : ""
}, {
app: this,
......@@ -451,7 +451,7 @@ MWF.xApplication.Profile.Main = new Class({
if(!this[type+"NoDataDiv"]){
this[type+"NoDataDiv"] = new Element("div.o2_profile_emPower_noData").adopt(
new Element("img",{src:"../x_component_Profile/$Main/newVersion/icon_wuweituo.png"}),
new Element("div",{text:"无待办"})
new Element("div",{text: this.lp.noTask })
).inject(content.getElement(".profile_common_tableDiv"));
}
if(content.getElements("tr").length==1){
......@@ -512,7 +512,7 @@ MWF.xApplication.Profile.Main = new Class({
if(type=="myEmPower"){
th.adopt(new Element("th",{width:"25%"}).adopt(new Element("div",{text:"操作"})));
th.adopt(new Element("th",{width:"25%"}).adopt(new Element("div",{text: this.lp.action })));
}
this.emPowerTable.adopt(th);
data.forEach(function(item){
......@@ -636,7 +636,7 @@ MWF.xApplication.Profile.Main = new Class({
this[type+"NoDataDiv"] = new Element("div.o2_profile_emPower_noData").adopt(
new Element("img",{src:"../x_component_Profile/$Main/newVersion/icon_wuweituo.png"}),
new Element("div",{text:this.lp.empower.noData}),
type=="myEmPower"?new Element("div.o2_profile_emPower_Add.mainColor_color",{text:"新建委托"}).addEvent("click",function(){
type=="myEmPower"?new Element("div.o2_profile_emPower_Add.mainColor_color",{text: this.lp.createAuthorize }).addEvent("click",function(){
var popForm = new MWF.xApplication.Profile.emPowerPopupForm(null, {}, {
"style": "empower",
"width": "550",
......@@ -652,7 +652,7 @@ MWF.xApplication.Profile.Main = new Class({
"startTime" : null,
"endTime" : null,
"isWholeday" : false,
"title" : "新建外出授权",
"title" : this.lp.createEmpower,
"defaultCalendarId" : ""
}, {
app: this,
......
......@@ -102,5 +102,12 @@ MWF.xApplication.Profile.LP = {
"myEmPowerLog": "委托的待办",
"receiveEmPowerLog": "收到的待办",
"ok":"保存",
"cancel":"关闭"
"cancel":"关闭",
"pageText" : "第{n}页",
"search" : "搜索",
"cancel1" : "取消",
"createEmpower" : "新建外出授权",
"noTask" : "无待办",
"action" : "操作",
"createAuthorize" : "新建委托"
};
......@@ -36,7 +36,7 @@ MWF.xApplication.Setting.UIModuleDocument = new Class({
MWF.require("MWF.widget.Tab", function(){
this.tab = new MWF.widget.Tab(this.content, {"style": "processlayout"});
this.tab.load();
this.appPage = this.tab.addTab(this.appDeploymentContent, "已部署组件", false);
this.appPage = this.tab.addTab(this.appDeploymentContent, this.lp.moduleDeployed, false);
this.appPage.showIm();
this.setContentHeight();
......@@ -118,9 +118,9 @@ MWF.xApplication.Setting.UIModuleDocument = new Class({
var title = tileInput.get("value");
if (!name || !title){
this.app.notice("请输入应用名称和应用标题", "error", this.appContentNode);
this.app.notice( this.lp.inputAppNameNotice, "error", this.appContentNode);
}else if (!fileInput.files.length){
this.app.notice("请上传文件的ZIP包", "error", this.appContentNode);
this.app.notice( this.lp.uploadZipFileNotice, "error", this.appContentNode);
}else{
var formData = new FormData();
formData.append('file', fileInput.files[0]);
......@@ -138,7 +138,7 @@ MWF.xApplication.Setting.UIModuleDocument = new Class({
status = (status == 1223) ? 204 : status;
if ((status >= 200 && status < 300)) {
this.app.notice("部署成功", "success", this.appContentNode);
this.app.notice( this.lp.deploySuccess, "success", this.appContentNode);
this.appListNode.empty();
this.loadApps();
};
......
......@@ -309,7 +309,11 @@ MWF.xApplication.Setting.LP = {
"removeComponent": "您确定要卸载组件:{name} 吗?",
"removeComponentOk": "组件已卸载",
"modify": "修改组件信息"
"modify": "修改组件信息",
"moduleDeployed" : "已部署组件",
"inputAppNameNotice" : "请输入应用名称和应用标题",
"uploadZipFileNotice": "请上传文件的ZIP包"
},
......@@ -394,6 +398,6 @@ MWF.xApplication.Setting.LP = {
"registerSuccessTitle": "您的公司已经在O2中心注册成功",
"mobileServerSaveInfor": "数据已提交",
"mobileServerSaveErrorInfor": "数据已提交, 旦有以下错误:{error}"
"mobileServerSaveErrorInfor": "数据已提交, 旦有以下错误:{error}",
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册