提交 9c119cc6 编写于 作者: tony001's avatar tony001

多语言‘变成“

上级 384bee6f
...@@ -14,44 +14,44 @@ export default { ...@@ -14,44 +14,44 @@ export default {
<#-- local langue english --> <#-- local langue english -->
app: { app: {
commonWords:{ commonWords:{
error: 'Error', error: "Error",
success: 'Success', success: "Success",
ok: 'OK', ok: "OK",
cancel: 'Cancel', cancel: "Cancel",
}, },
local:{ local:{
new: 'New' new: "New"
}, },
gridpage: { gridpage: {
choicecolumns: 'Choice columns', choicecolumns: "Choice columns",
refresh: 'refresh', refresh: "refresh",
show: 'Show', show: "Show",
records: 'records', records: "records",
totle: 'totle', totle: "totle",
}, },
tabpage: { tabpage: {
sureclosetip: { sureclosetip: {
title: 'Close warning', title: "Close warning",
content: 'Form data Changed, are sure close?', content: "Form data Changed, are sure close?",
}, },
closeall: 'Close all', closeall: "Close all",
closeother: 'Close other', closeother: "Close other",
}, },
fileUpload: { fileUpload: {
caption: 'Upload', caption: "Upload",
}, },
searchButton: { searchButton: {
search: 'Search', search: "Search",
reset: 'Reset', reset: "Reset",
}, },
calendar:{ calendar:{
today: 'today', today: "today",
month: 'month', month: "month",
week: 'week', week: "week",
day: 'day', day: "day",
list: 'list', list: "list",
dateSelectModalTitle: 'select the time you wanted', dateSelectModalTitle: "select the time you wanted",
gotoDate: 'goto', gotoDate: "goto",
}, },
// 非实体视图 // 非实体视图
views: { views: {
...@@ -60,8 +60,8 @@ export default { ...@@ -60,8 +60,8 @@ export default {
<#list allAppViews as obj> <#list allAppViews as obj>
<#if !obj.isPSDEView()> <#if !obj.isPSDEView()>
${obj.getCodeName()?lower_case}: { ${obj.getCodeName()?lower_case}: {
caption: '<#ibizinclude>../@MACRO/CAPTIONLANG.ts</#ibizinclude>', caption: "<#ibizinclude>../@MACRO/CAPTIONLANG.ts</#ibizinclude>",
title: '<@getTitleLanguage obj langrestype />', title: "<@getTitleLanguage obj langrestype />",
}, },
</#if> </#if>
</#list> </#list>
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
<#list app.getAllPSAppMenuModels() as menu> <#list app.getAllPSAppMenuModels() as menu>
${menu.getCodeName()?lower_case}: { ${menu.getCodeName()?lower_case}: {
<#list menu.getAllPSAppMenuItems() as obj> <#list menu.getAllPSAppMenuItems() as obj>
${obj.getName()?lower_case}: '<#ibizinclude>../@MACRO/CAPTIONLANG.ts</#ibizinclude>', ${obj.getName()?lower_case}: "<#ibizinclude>../@MACRO/CAPTIONLANG.ts</#ibizinclude>",
</#list> </#list>
}, },
</#list> </#list>
......
...@@ -14,44 +14,44 @@ export default { ...@@ -14,44 +14,44 @@ export default {
<#-- 本地化语言资源 中文 --> <#-- 本地化语言资源 中文 -->
app: { app: {
commonWords:{ commonWords:{
error: '失败', error: "失败",
success: '成功', success: "成功",
ok: '确认', ok: "确认",
cancel: '取消', cancel: "取消",
}, },
local:{ local:{
new: '新建' new: "新建"
}, },
gridpage: { gridpage: {
choicecolumns: '选择列', choicecolumns: "选择列",
refresh: '刷新', refresh: "刷新",
show: '显示', show: "显示",
records: '条', records: "条",
totle: '共', totle: "共",
}, },
tabpage: { tabpage: {
sureclosetip: { sureclosetip: {
title: '关闭提醒', title: "关闭提醒",
content: '表单数据已经修改,确定要关闭?', content: "表单数据已经修改,确定要关闭?",
}, },
closeall: '关闭所有', closeall: "关闭所有",
closeother: '关闭其他', closeother: "关闭其他",
}, },
fileUpload: { fileUpload: {
caption: '上传', caption: "上传",
}, },
searchButton: { searchButton: {
search: '搜索', search: "搜索",
reset: '重置', reset: "重置",
}, },
calendar:{ calendar:{
today: '今天', today: "今天",
month: '月', month: "月",
week: '周', week: "周",
day: '天', day: "天",
list: '列', list: "列",
dateSelectModalTitle: '选择要跳转的时间', dateSelectModalTitle: "选择要跳转的时间",
gotoDate: '跳转', gotoDate: "跳转",
}, },
// 非实体视图 // 非实体视图
views: { views: {
...@@ -60,8 +60,8 @@ export default { ...@@ -60,8 +60,8 @@ export default {
<#list allAppViews as obj> <#list allAppViews as obj>
<#if !obj.isPSDEView()> <#if !obj.isPSDEView()>
${obj.getCodeName()?lower_case}: { ${obj.getCodeName()?lower_case}: {
caption: '<#ibizinclude>../@MACRO/CAPTIONLANG.ts</#ibizinclude>', caption: "<#ibizinclude>../@MACRO/CAPTIONLANG.ts</#ibizinclude>",
title: '<@getTitleLanguage obj langrestype />', title: "<@getTitleLanguage obj langrestype />",
}, },
</#if> </#if>
</#list> </#list>
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
<#list app.getAllPSAppMenuModels() as menu> <#list app.getAllPSAppMenuModels() as menu>
${menu.getCodeName()?lower_case}: { ${menu.getCodeName()?lower_case}: {
<#list menu.getAllPSAppMenuItems() as obj> <#list menu.getAllPSAppMenuItems() as obj>
${obj.getName()?lower_case}: '<#ibizinclude>../@MACRO/CAPTIONLANG.ts</#ibizinclude>', ${obj.getName()?lower_case}: "<#ibizinclude>../@MACRO/CAPTIONLANG.ts</#ibizinclude>",
</#list> </#list>
}, },
</#list> </#list>
......
...@@ -10,14 +10,14 @@ export default { ...@@ -10,14 +10,14 @@ export default {
${codelist.codeName}: { ${codelist.codeName}: {
<#if codelist.getAllPSCodeItems?? && codelist.getAllPSCodeItems()??> <#if codelist.getAllPSCodeItems?? && codelist.getAllPSCodeItems()??>
<#list codelist.getAllPSCodeItems() as codeitem> <#list codelist.getAllPSCodeItems() as codeitem>
'${codeitem.getValue()?j_string}': '<@getTextLanguage codeitem langrestype />', "${codeitem.getValue()?j_string}": "<@getTextLanguage codeitem langrestype />",
</#list> </#list>
</#if> </#if>
empty: '<@getEmptyTextLanguage codelist langrestype '' />', "empty": "<@getEmptyTextLanguage codelist langrestype '' />"
}, },
<#elseif codelist.getCodeListType() == "DYNAMIC"> <#elseif codelist.getCodeListType() == "DYNAMIC">
${codelist.codeName}: { ${codelist.codeName}: {
empty: '<@getEmptyTextLanguage codelist langrestype '' />', "empty": "<@getEmptyTextLanguage codelist langrestype '' />",
}, },
</#if> </#if>
</#list> </#list>
......
...@@ -10,14 +10,14 @@ export default { ...@@ -10,14 +10,14 @@ export default {
${codelist.codeName}: { ${codelist.codeName}: {
<#if codelist.getAllPSCodeItems?? && codelist.getAllPSCodeItems()??> <#if codelist.getAllPSCodeItems?? && codelist.getAllPSCodeItems()??>
<#list codelist.getAllPSCodeItems() as codeitem> <#list codelist.getAllPSCodeItems() as codeitem>
'${codeitem.getValue()?j_string}': '<@getTextLanguage codeitem langrestype />', "${codeitem.getValue()?j_string}": "<@getTextLanguage codeitem langrestype />",
</#list> </#list>
</#if> </#if>
empty: '<@getEmptyTextLanguage codelist langrestype '' />', "empty": "<@getEmptyTextLanguage codelist langrestype '' />",
}, },
<#elseif codelist.getCodeListType() == "DYNAMIC"> <#elseif codelist.getCodeListType() == "DYNAMIC">
${codelist.codeName}: { ${codelist.codeName}: {
empty: '<@getEmptyTextLanguage codelist langrestype '' />', "empty": "<@getEmptyTextLanguage codelist langrestype '' />",
}, },
</#if> </#if>
</#list> </#list>
......
...@@ -9,7 +9,7 @@ export default { ...@@ -9,7 +9,7 @@ export default {
<#if item.getAllPSAppDEFields()??> <#if item.getAllPSAppDEFields()??>
fields: { fields: {
<#list item.getAllPSAppDEFields() as field> <#list item.getAllPSAppDEFields() as field>
${field.getPSDEField().getCodeName()?lower_case}: '<@getLogicNameLanguage field.getPSDEField() langrestype />', ${field.getPSDEField().getCodeName()?lower_case}: "<@getLogicNameLanguage field.getPSDEField() langrestype />",
</#list> </#list>
}, },
</#if> </#if>
...@@ -19,7 +19,7 @@ export default { ...@@ -19,7 +19,7 @@ export default {
<#list item.getAllPSAppViews() as obj> <#list item.getAllPSAppViews() as obj>
${obj.getPSDEViewCodeName()?lower_case}: { ${obj.getPSDEViewCodeName()?lower_case}: {
caption: "<#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>", caption: "<#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>",
title: '<@getTitleLanguage obj langrestype />', title: "<@getTitleLanguage obj langrestype />",
}, },
</#list> </#list>
}, },
...@@ -62,7 +62,7 @@ export default { ...@@ -62,7 +62,7 @@ export default {
<#if ctrl.getPSDETreeNodes()??> <#if ctrl.getPSDETreeNodes()??>
<#list ctrl.getPSDETreeNodes() as obj> <#list ctrl.getPSDETreeNodes() as obj>
<#if obj.getTreeNodeType() == 'STATIC'> <#if obj.getTreeNodeType() == 'STATIC'>
${obj.getNodeType()?lower_case}: '<@getNameLanguage obj langrestype />', ${obj.getNodeType()?lower_case}: "<@getNameLanguage obj langrestype />",
</#if> </#if>
</#list> </#list>
</#if> </#if>
......
...@@ -8,7 +8,7 @@ export default { ...@@ -8,7 +8,7 @@ export default {
<#if item.getAllPSAppDEFields()??> <#if item.getAllPSAppDEFields()??>
fields: { fields: {
<#list item.getAllPSAppDEFields() as field> <#list item.getAllPSAppDEFields() as field>
${field.getPSDEField().getCodeName()?lower_case}: '<@getLogicNameLanguage field.getPSDEField() langrestype />', ${field.getPSDEField().getCodeName()?lower_case}: "<@getLogicNameLanguage field.getPSDEField() langrestype />",
</#list> </#list>
}, },
</#if> </#if>
...@@ -17,8 +17,8 @@ export default { ...@@ -17,8 +17,8 @@ export default {
views: { views: {
<#list item.getAllPSAppViews() as obj> <#list item.getAllPSAppViews() as obj>
${obj.getPSDEViewCodeName()?lower_case}: { ${obj.getPSDEViewCodeName()?lower_case}: {
caption: '<#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>', caption: "<#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>",
title: '<@getTitleLanguage obj langrestype />', title: "<@getTitleLanguage obj langrestype />",
}, },
</#list> </#list>
}, },
...@@ -34,7 +34,7 @@ export default { ...@@ -34,7 +34,7 @@ export default {
<#if ctrl.getControlType() == 'FORM' || ctrl.getControlType() == 'SEARCHFORM'> <#if ctrl.getControlType() == 'FORM' || ctrl.getControlType() == 'SEARCHFORM'>
details: { details: {
<#list ctrl.getAllPSDEFormDetails() as obj> <#list ctrl.getAllPSDEFormDetails() as obj>
${obj.name?lower_case}: '<#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>', ${obj.name?lower_case}: "<#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>",
</#list> </#list>
}, },
</#if> </#if>
...@@ -42,7 +42,7 @@ export default { ...@@ -42,7 +42,7 @@ export default {
columns: { columns: {
<#if ctrl.getAllPSDEGridColumns()??> <#if ctrl.getAllPSDEGridColumns()??>
<#list ctrl.getAllPSDEGridColumns() as obj> <#list ctrl.getAllPSDEGridColumns() as obj>
${obj.getName()?lower_case}: '<#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>', ${obj.getName()?lower_case}: "<#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>",
</#list> </#list>
</#if> </#if>
}, },
...@@ -61,7 +61,7 @@ export default { ...@@ -61,7 +61,7 @@ export default {
<#if ctrl.getPSDETreeNodes()??> <#if ctrl.getPSDETreeNodes()??>
<#list ctrl.getPSDETreeNodes() as obj> <#list ctrl.getPSDETreeNodes() as obj>
<#if obj.getTreeNodeType() == 'STATIC'> <#if obj.getTreeNodeType() == 'STATIC'>
${obj.getNodeType()?lower_case}: '<@getNameLanguage obj langrestype />', ${obj.getNodeType()?lower_case}: "<@getNameLanguage obj langrestype />",
</#if> </#if>
</#list> </#list>
</#if> </#if>
...@@ -71,8 +71,8 @@ export default { ...@@ -71,8 +71,8 @@ export default {
<#if ctrl.getAllPSDEToolbarItems()??> <#if ctrl.getAllPSDEToolbarItems()??>
<#list ctrl.getAllPSDEToolbarItems() as obj> <#list ctrl.getAllPSDEToolbarItems() as obj>
${obj.getName()?lower_case}: { ${obj.getName()?lower_case}: {
caption: '<#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>', caption: "<#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>",
tip: '<#ibizinclude>../../../@MACRO/TIPLANG.ts</#ibizinclude>', tip: "<#ibizinclude>../../../@MACRO/TIPLANG.ts</#ibizinclude>",
}, },
</#list> </#list>
</#if> </#if>
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
<#if ctrl.getPSUIActions?? && ctrl.getPSUIActions()??> <#if ctrl.getPSUIActions?? && ctrl.getPSUIActions()??>
uiactions: { uiactions: {
<#list ctrl.getPSUIActions() as obj> <#list ctrl.getPSUIActions() as obj>
${obj.getUIActionTag()?lower_case}: '<#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>', ${obj.getUIActionTag()?lower_case}: "<#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>",
</#list> </#list>
}, },
</#if> </#if>
......
...@@ -14,16 +14,16 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { ...@@ -14,16 +14,16 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
<#list app.getAllPSAppCodeLists() as codelist> <#list app.getAllPSAppCodeLists() as codelist>
{ {
<#if codelist.getCodeListType() == "STATIC" && codelist.getAllPSCodeItems()??> <#if codelist.getCodeListType() == "STATIC" && codelist.getAllPSCodeItems()??>
srfkey: '${codelist.codeName}', srfkey: "${codelist.codeName}",
emptytext: '${codelist.getEmptyText()}', emptytext: "${codelist.getEmptyText()}",
"codelisttype":"static", "codelisttype":"static",
items: [ items: [
<#if codelist.getAllPSCodeItems()??> <#if codelist.getAllPSCodeItems()??>
<#list codelist.getAllPSCodeItems() as codeitem> <#list codelist.getAllPSCodeItems() as codeitem>
{ {
id: '${codeitem.getValue()?j_string}', id: "${codeitem.getValue()?j_string}",
label: '${codeitem.getText()?j_string}', label: "${codeitem.getText()?j_string}",
text: '${codeitem.getText()?j_string}', text: "${codeitem.getText()?j_string}",
<#if codeitem.getPSSysImage()??> <#if codeitem.getPSSysImage()??>
<#assign sysimage = codeitem.getPSSysImage()/> <#assign sysimage = codeitem.getPSSysImage()/>
<#if sysimage.getImagePath() == ""> <#if sysimage.getImagePath() == "">
...@@ -44,7 +44,7 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { ...@@ -44,7 +44,7 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
value: ${codeitem.getValue()?j_string}, value: ${codeitem.getValue()?j_string},
<#if codeitem.getParentCodeItem()??><#assign parentCodeItem = codeitem.getParentCodeItem() />"pvalue": ${parentCodeItem.getValue()?j_string},</#if> <#if codeitem.getParentCodeItem()??><#assign parentCodeItem = codeitem.getParentCodeItem() />"pvalue": ${parentCodeItem.getValue()?j_string},</#if>
<#else> <#else>
value: '${codeitem.getValue()?j_string}', value: "${codeitem.getValue()?j_string}",
<#if codeitem.getParentCodeItem()??><#assign parentCodeItem = codeitem.getParentCodeItem() />"pvalue": "${parentCodeItem.getValue()?j_string}",</#if> <#if codeitem.getParentCodeItem()??><#assign parentCodeItem = codeitem.getParentCodeItem() />"pvalue": "${parentCodeItem.getValue()?j_string}",</#if>
</#if> </#if>
disabled: <#if codeitem.isDisableSelect()>true<#else>false</#if>, disabled: <#if codeitem.isDisableSelect()>true<#else>false</#if>,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册