提交 828798b2 编写于 作者: U unknown

人员选择和服务管理JS文件语言包整理

上级 ce41e058
......@@ -32,7 +32,7 @@ MWF.xApplication.Selector.FormStyle = new Class({
}
}.bind(this));
var category = this._newItemCategory({
name : "系统样式",
name : MWF.SelectorLP.systemStyle,
id : "stystem",
subItemList : subItemList
}, this, this.itemAreaNode);
......@@ -69,7 +69,7 @@ MWF.xApplication.Selector.FormStyle = new Class({
});
var category = this._newItemCategory({
name : "自定义样式(脚本)",
name : MWF.SelectorLP.customStyle,
id : "script",
applicationList : array
}, this, this.itemAreaNode);
......
......@@ -385,13 +385,13 @@ MWF.xApplication.Selector.MultipleSelector = new Class({
if( !this.okActionNode ) {
this.okActionNode = new Element("button", {
"styles": this.css.okActionNode,
"text": "确定"
"text": MWF.SelectorLP.ok
}).inject(this.actionNode);
}
if( !this.cancelActionNode ) {
this.cancelActionNode = new Element("button", {
"styles": this.css.cancelActionNode,
"text": "取消"
"text": MWF.SelectorLP.cancel
}).inject(this.actionNode);
}
this.okActionNode.addEvent("click", function(){
......
......@@ -2086,7 +2086,7 @@ MWF.xApplication.Selector.Person.Item = new Class({
if( checkValid )this.selector.fireEvent("valid", [this.selector, this]);
if(callback)callback();
}else{
MWF.xDesktop.notice("error", {x: "right", y:"top"}, "最多可选择"+count+"个选项", this.node);
MWF.xDesktop.notice("error", {x: "right", y:"top"}, MWF.SelectorLP.selectItemMaxText.replace("{count}", count) , this.node);
}
},
unSelected: function( checkValid, callback ){
......@@ -2360,7 +2360,7 @@ MWF.xApplication.Selector.Person.ItemCategory = new Class({
}).inject(this.children);
this.selectAllNode = new Element("div", {
"styles": this.selector.css.flatCategory_selectAll,
"text" : "全选"
"text" : MWF.SelectorLP.selectAll
}).inject(selectAllWrap);
this.selectAllNode.addEvent( "click", function(ev){
if( this.isSelectedAll ){
......@@ -2452,7 +2452,7 @@ MWF.xApplication.Selector.Person.ItemCategory = new Class({
if( this.selector.options.selectAllEnable && this.selector.options.count.toInt()!==1 ){
this.selectAllNode = new Element("div", {
"styles": this.selector.css.selectorItemCategoryActionNode_selectAll,
"title" : "全选下级"
"title" : MWF.SelectorLP.selectChildren
}).inject(this.node);
this.selectAllNode.addEvent( "click", function(ev){
if( this.isSelectedAll ){
......@@ -2662,7 +2662,7 @@ MWF.xApplication.Selector.Person.ItemCategory = new Class({
}
}else{
MWF.xDesktop.notice("error", {x: "right", y:"top"}, "最多可选择"+count+"个选项", this.node);
MWF.xDesktop.notice("error", {x: "right", y:"top"}, MWF.SelectorLP.selectItemMaxText.replace("{count}", count), this.node);
}
},
checkSelectAll : function(){
......
......@@ -40,8 +40,8 @@ MWF.xApplication.Selector.PlatApp = new Class({
break;
case "service":
data.appList = [
{ "id": "invoke", "name": "服务" },
{ "id": "agent", "name": "代理" }
{ "id": "invoke", "name": MWF.SelectorLP.service1 },
{ "id": "agent", "name": MWF.SelectorLP.agent }
];
break;
default:
......
......@@ -346,7 +346,7 @@ MWF.xApplication.Selector.Unit.Item = new Class({
( this.selector.options.style!=="blue_flat" && this.selector.options.style!=="blue_flat_mobile")){
this.selectAllNode = new Element("div", {
"styles": this.selector.css.selectorItemCategoryActionNode_selectAll,
"title" : "全选下级"
"title" : MWF.SelectorLP.selectChildren
}).inject(this.textNode, "before");
this.selectAllNode.addEvent( "click", function(ev){
if( this.isSelectedAll ){
......@@ -490,7 +490,7 @@ MWF.xApplication.Selector.Unit.Item = new Class({
}
}else{
MWF.xDesktop.notice("error", {x: "right", y:"top"}, "最多可选择"+count+"个选项", this.node);
MWF.xDesktop.notice("error", {x: "right", y:"top"}, MWF.SelectorLP.selectItemMaxText.replace("{count}", count), this.node);
}
},
checkSelectAll : function(){
......@@ -620,7 +620,7 @@ MWF.xApplication.Selector.Unit.Item = new Class({
}).inject(this.children);
this.selectAllNode = new Element("div", {
"styles": this.selector.css.flatCategory_selectAll,
"text" : "全选"
"text" : MWF.SelectorLP.selectAll
}).inject(selectAllWrap);
this.selectAllNode.addEvent( "click", function(ev){
if( this.isSelectedAll ){
......
......@@ -180,7 +180,7 @@ MWF.xApplication.Selector.UnitWithType.Item = new Class({
if( !this.selectAllNode && !this.selector.isFlatCategory ){
this.selectAllNode = new Element("div", {
"styles": this.selector.css.selectorItemCategoryActionNode_selectAll,
"title" : "全选下级"
"title" : MWF.SelectorLP.selectChildren
}).inject(this.textNode, "before");
//this.selectAllNode.addEvent( "click", function(ev){
// this.selectAll(ev);
......
......@@ -58,5 +58,13 @@ MWF.xApplication.Selector.LP = MWF.SelectorLP = {
"portal": "门户管理",
"query": "数据中心",
"service": "服务管理",
"systemStyle" : "系统样式",
"customStyle" : "自定义样式(脚本)",
"selectAll" : "全选",
"selectChildren" : "全选下级",
"selectItemMaxText" : "最多可选择{count}个选项",
"service1" : "服务",
"agent" : "代理"
};
MWF.xApplication.Selector["lp."+o2.language] = MWF.xApplication.Selector.LP;
......@@ -107,13 +107,13 @@ MWF.xApplication.service.AgentDesigner.Agent = new Class({
// defaultText += "resources.getOrganization(); //组织访问\n";
// defaultText += "resources.getWebservicesClient();//webSerivces客户端\n";
// defaultText += "********************/\n";
var lp = this.designer.lp.comment;
var defaultText = "/********************\n";
defaultText += "this.entityManager; //实体管理器\n";
defaultText += "this.applications; //访问系统内服务\n";
defaultText += "this.organization; //组织访问\n";
defaultText += "this.org; //组织快速访问方法\n";
defaultText += "this.service; ///webSerivces客户端\n";
defaultText += "this.entityManager; //"+lp.entityManager+"\n";
defaultText += "this.applications; //"+lp.applications+"\n";
defaultText += "this.organization; //"+lp.organization+"\n";
defaultText += "this.org; //"+lp.org+"\n";
defaultText += "this.service; ///"+lp.service+"\n";
defaultText += "********************/\n";
this.editor.editor.setValue(defaultText);
}
......
MWF.xApplication.service.AgentDesigner.LP = {
"title": "代理编辑",
"newAgent": "新建代理",
"agentLibrary": "代理库",
"property": "属性",
"include": "引用",
"id": "标识",
"name": "名称",
"alias": "别名",
"description": "描述",
"validated" : "代码格式是否正确",
"isEnable" : "是否启用",
"cron" : "定时任务cron表达式",
"lastStartTime" : "最近开始时间",
"lastEndTime" : "最近结束时间",
"appointmentTime" : "预计下次执行时间",
"true" : "",
"false" : "",
"enable" : "点击启用",
"disable" : "点击禁用",
"notice": {
"save_success": "代理保存成功!",
"deleteDataTitle": "删除数据确认",
"deleteData": "是否确定删除当前数据,及其子数据吗?",
"changeTypeTitle": "改变数据类型确认",
"changeTypeDeleteChildren": "改变数据类型将删除所有子数据,是否确定要执行?",
"changeType": "改变数据类型将改变数据的值,是否确定要执行?",
"inputTypeError": "您输入的数据类型有误,请重新输入",
"sameKey": "您输入的项目名称在对象中已存在,请重新输入",
"emptyKey": "项目名称不能为空,请重新输入",
"numberKey": "项目名称不能为数字,请重新输入",
"inputName": "请输入代理名称",
"inputCron" : "定时任务corn表达式不能为空"
}
"title": "代理编辑",
"newAgent": "新建代理",
"agentLibrary": "代理库",
"property": "属性",
"include": "引用",
"id": "标识",
"name": "名称",
"alias": "别名",
"description": "描述",
"validated" : "代码格式是否正确",
"isEnable" : "是否启用",
"cron" : "定时任务cron表达式",
"lastStartTime" : "最近开始时间",
"lastEndTime" : "最近结束时间",
"appointmentTime" : "预计下次执行时间",
"true" : "",
"false" : "",
"enable" : "点击启用",
"disable" : "点击禁用",
"notice": {
"save_success": "代理保存成功!",
"deleteDataTitle": "删除数据确认",
"deleteData": "是否确定删除当前数据,及其子数据吗?",
"changeTypeTitle": "改变数据类型确认",
"changeTypeDeleteChildren": "改变数据类型将删除所有子数据,是否确定要执行?",
"changeType": "改变数据类型将改变数据的值,是否确定要执行?",
"inputTypeError": "您输入的数据类型有误,请重新输入",
"sameKey": "您输入的项目名称在对象中已存在,请重新输入",
"emptyKey": "项目名称不能为空,请重新输入",
"numberKey": "项目名称不能为数字,请重新输入",
"inputName": "请输入代理名称",
"inputCron" : "定时任务corn表达式不能为空"
},
"comment" : {
"entityManager": "实体管理器",
"applications" : "访问系统内服务",
"organization" : "组织访问",
"org" : "组织快速访问方法",
"service" : "webSerivces客户端"
}
};
\ No newline at end of file
......@@ -110,17 +110,18 @@ MWF.xApplication.service.InvokeDesigner.Invoke = new Class({
// defaultText += "effectivePerson//当前用户\n";
// defaultText += "********************/\n";
var lp = this.designer.lp.comment;
var defaultText = "/********************\n";
defaultText += "this.entityManager; //实体管理器\n";
defaultText += "this.applications; //访问系统内服务\n";
defaultText += "this.requestText//请求正文\n";
defaultText += "this.request//请求\n";
defaultText += "this.currentPerson//当前用户\n";
defaultText += "this.response//响应对象。通过this.response.setBody(data)设置响应内容\n";
defaultText += "this.organization; //组织访问\n";
defaultText += "this.org; //组织快速访问方法\n";
defaultText += "this.service; ///webSerivces客户端\n";
defaultText += "this.entityManager; //"+lp.entityManager+"\n";
defaultText += "this.applications; //"+lp.applications+"\n";
defaultText += "this.requestText//"+lp.requestText+"\n";
defaultText += "this.request//"+lp.request+"\n";
defaultText += "this.currentPerson//"+lp.currentPerson+"\n";
defaultText += "this.response//"+lp.response+"\n";
defaultText += "this.organization; //"+lp.organization+"\n";
defaultText += "this.org; //"+lp.org+"\n";
defaultText += "this.service; //"+lp.service+"\n";
defaultText += "********************/\n";
this.editor.editor.setValue(defaultText);
}
......
MWF.xApplication.service.InvokeDesigner.LP = {
"title": "接口编辑",
"newInvoke": "新建接口",
"invokeLibrary": "接口库",
"property": "属性",
"include": "引用",
"title": "接口编辑",
"newInvoke": "新建接口",
"invokeLibrary": "接口库",
"property": "属性",
"include": "引用",
"id": "标识",
"name": "名称",
"alias": "别名",
"description": "描述",
"validated" : "代码格式是否正确",
"isEnable" : "是否启用",
"remoteAddrRegex" : "允许访问的地址表达式",
"lastStartTime" : "最近开始时间",
"lastEndTime" : "最近结束时间",
"true" : "",
"false" : "",
"enable" : "点击启用",
"disable" : "点击禁用",
"invokeUri" : "调用地址",
"invokeMethod" : "调用方法",
"enableToken": "启用鉴权",
"enableTokenInfo": "启用鉴权后,您必须使用鉴权客户端名称和加密后的token来调用服务",
"id": "标识",
"name": "名称",
"alias": "别名",
"description": "描述",
"validated" : "代码格式是否正确",
"isEnable" : "是否启用",
"remoteAddrRegex" : "允许访问的地址表达式",
"lastStartTime" : "最近开始时间",
"lastEndTime" : "最近结束时间",
"true" : "",
"false" : "",
"enable" : "点击启用",
"disable" : "点击禁用",
"invokeUri" : "调用地址",
"invokeMethod" : "调用方法",
"enableToken": "启用鉴权",
"enableTokenInfo": "启用鉴权后,您必须使用鉴权客户端名称和加密后的token来调用服务",
"notice": {
"save_success": "接口保存成功!",
"deleteDataTitle": "删除数据确认",
"deleteData": "是否确定删除当前数据,及其子数据吗?",
"notice": {
"save_success": "接口保存成功!",
"changeTypeTitle": "改变数据类型确认",
"changeTypeDeleteChildren": "改变数据类型将删除所有子数据,是否确定要执行?",
"changeType": "改变数据类型将改变数据的值,是否确定要执行?",
"deleteDataTitle": "删除数据确认",
"deleteData": "是否确定删除当前数据,及其子数据吗?",
"inputTypeError": "您输入的数据类型有误,请重新输入",
"sameKey": "您输入的项目名称在对象中已存在,请重新输入",
"emptyKey": "项目名称不能为空,请重新输入",
"numberKey": "项目名称不能为数字,请重新输入",
"changeTypeTitle": "改变数据类型确认",
"changeTypeDeleteChildren": "改变数据类型将删除所有子数据,是否确定要执行?",
"changeType": "改变数据类型将改变数据的值,是否确定要执行?",
"inputName": "请输入接口名称",
"inputCron" : "定时任务corn表达式不能为空"
}
"inputTypeError": "您输入的数据类型有误,请重新输入",
"sameKey": "您输入的项目名称在对象中已存在,请重新输入",
"emptyKey": "项目名称不能为空,请重新输入",
"numberKey": "项目名称不能为数字,请重新输入",
"inputName": "请输入接口名称",
"inputCron" : "定时任务corn表达式不能为空"
},
"comment" : {
"entityManager": "实体管理器",
"applications" : "访问系统内服务",
"requestText" : "请求正文",
"request" : "请求",
"currentPerson": "当前用户",
"response": "响应对象。通过this.response.setBody(data)设置响应内容",
"organization" : "组织访问",
"org" : "组织快速访问方法",
"service" : "webSerivces客户端"
}
};
......@@ -34,7 +34,7 @@ MWF.xApplication.service.ServiceManager.AgentExplorer = new Class({
createTitleElementNode: function() {
this.titleElementNode = new Element("div", {
"styles": this.css.titleElementNode,
"text": "代理配置"
"text": MWF.xApplication.service.ServiceManager.LP.agentConfig
}).inject(this.toolbarNode);
},
_createElement: function(e){
......@@ -247,7 +247,7 @@ MWF.xApplication.service.ServiceManager.AgentExplorer.Agent= new Class({
createTextNodes: function(){
var titleNode = new Element("div", {
"styles": this.css.itemTextTitleNode,
"text": ( this.data.enable ? "" : "(禁用)" ) + this.data.name ,
"text": ( this.data.enable ? "" : "("+MWF.xApplication.service.ServiceManager.LP.disable+")" ) + this.data.name ,
"title": this.data.name,
"events": {
"click": function(e){this._open(e);}.bind(this)
......
......@@ -34,7 +34,7 @@ MWF.xApplication.service.ServiceManager.InvokeExplorer = new Class({
createTitleElementNode: function() {
this.titleElementNode = new Element("div", {
"styles": this.css.titleElementNode,
"text": "接口配置"
"text": MWF.xApplication.service.ServiceManager.LP.interfaceConfig
}).inject(this.toolbarNode);
},
_createElement: function(e){
......@@ -247,7 +247,7 @@ MWF.xApplication.service.ServiceManager.InvokeExplorer.Invoke= new Class({
createTextNodes: function(){
var titleNode = new Element("div", {
"styles": this.css.itemTextTitleNode,
"text": ( this.data.enable ? "" : "(禁用)" ) + this.data.name ,
"text": ( this.data.enable ? "" : "("+MWF.xApplication.service.ServiceManager.LP.disable+")" ) + this.data.name ,
"title": this.data.name,
"events": {
"click": function(e){this._open(e);}.bind(this)
......
......@@ -75,5 +75,9 @@ MWF.xApplication.service.ServiceManager.LP = {
},
"createSelectTemplate": "新建:选择模板",
"templateCategory": "模板分类:",
"all": "全部"
"all": "全部",
"agentConfig" : "代理配置",
"interfaceConfig" : "接口配置",
"disable" : "禁用"
};
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册