提交 243a8d60 编写于 作者: tony001's avatar tony001

调整代码表和实体级元素国际化内容

上级 82325ed5
<#ibiztemplate> <#ibiztemplate>
TARGET=PSSYSAPP TARGET=PSSYSAPP
</#ibiztemplate> </#ibiztemplate>
import commonLogic from '@/locale/logic/common/common-logic';
<#ibizinclude>../../@MACRO/FUNC.ts</#ibizinclude> <#ibizinclude>../../@MACRO/FUNC.ts</#ibizinclude>
<#assign langrestype = 'EN'/> <#assign langrestype = 'EN'/>
export default { export default {
...@@ -10,14 +11,14 @@ export default { ...@@ -10,14 +11,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}": commonLogic.appcommonhandle("<@getTextLanguage codeitem langrestype />",null),
</#list> </#list>
</#if> </#if>
"empty": "<@getEmptyTextLanguage codelist langrestype '' />" "empty": commonLogic.appcommonhandle("<@getEmptyTextLanguage codelist langrestype '' />",null)
}, },
<#elseif codelist.getCodeListType() == "DYNAMIC"> <#elseif codelist.getCodeListType() == "DYNAMIC">
${codelist.codeName}: { ${codelist.codeName}: {
"empty": "<@getEmptyTextLanguage codelist langrestype '' />", "empty": commonLogic.appcommonhandle("<@getEmptyTextLanguage codelist langrestype '' />",null),
}, },
</#if> </#if>
</#list> </#list>
......
<#ibiztemplate> <#ibiztemplate>
TARGET=PSSYSAPP TARGET=PSSYSAPP
</#ibiztemplate> </#ibiztemplate>
import commonLogic from '@/locale/logic/common/common-logic';
<#ibizinclude>../../@MACRO/FUNC.ts</#ibizinclude> <#ibizinclude>../../@MACRO/FUNC.ts</#ibizinclude>
<#assign langrestype = 'ZH_CN'/> <#assign langrestype = 'ZH_CN'/>
export default { export default {
...@@ -10,14 +11,14 @@ export default { ...@@ -10,14 +11,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}": commonLogic.appcommonhandle("<@getTextLanguage codeitem langrestype />",null),
</#list> </#list>
</#if> </#if>
"empty": "<@getEmptyTextLanguage codelist langrestype '' />", "empty": commonLogic.appcommonhandle("<@getEmptyTextLanguage codelist langrestype '' />",null),
}, },
<#elseif codelist.getCodeListType() == "DYNAMIC"> <#elseif codelist.getCodeListType() == "DYNAMIC">
${codelist.codeName}: { ${codelist.codeName}: {
"empty": "<@getEmptyTextLanguage codelist langrestype '' />", "empty": commonLogic.appcommonhandle("<@getEmptyTextLanguage codelist langrestype '' />",null),
}, },
</#if> </#if>
</#list> </#list>
......
<#ibiztemplate> <#ibiztemplate>
TARGET=PSAPPDATAENTITY TARGET=PSAPPDATAENTITY
</#ibiztemplate> </#ibiztemplate>
import commonLogic from '@/locale/logic/common/common-logic';
<#ibizinclude>../../../@MACRO/FUNC.ts</#ibizinclude> <#ibizinclude>../../../@MACRO/FUNC.ts</#ibizinclude>
<#assign langrestype = 'EN'/> <#assign langrestype = 'EN'/>
<#assign emptyText = 'No data.'> <#assign emptyText = 'No data.'>
...@@ -10,7 +11,7 @@ export default { ...@@ -10,7 +11,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}: commonLogic.appcommonhandle("<@getLogicNameLanguage field.getPSDEField() langrestype />",null),
</#list> </#list>
}, },
</#if> </#if>
...@@ -19,8 +20,8 @@ export default { ...@@ -19,8 +20,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: commonLogic.appcommonhandle("<@getTitleLanguage obj langrestype />",null),
}, },
</#list> </#list>
}, },
...@@ -36,27 +37,27 @@ export default { ...@@ -36,27 +37,27 @@ 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>
<#if ctrl.getControlType() == 'LIST' || ctrl.getControlType() == 'DATAVIEW' || ctrl.getControlType() == 'CHART'|| ctrl.getControlType() == 'KANBAN'|| ctrl.getControlType() == 'GANTT' || ctrl.getControlType() == 'TREEGRIDEX' || ctrl.getControlType() == 'CALENDAR' || ctrl.getControlType() == 'TREEVIEW'> <#if ctrl.getControlType() == 'LIST' || ctrl.getControlType() == 'DATAVIEW' || ctrl.getControlType() == 'CHART'|| ctrl.getControlType() == 'KANBAN'|| ctrl.getControlType() == 'GANTT' || ctrl.getControlType() == 'TREEGRIDEX' || ctrl.getControlType() == 'CALENDAR' || ctrl.getControlType() == 'TREEVIEW'>
nodata:"<@getEmptyTextLanguage ctrl langrestype emptyText/>", nodata:commonLogic.appcommonhandle("<@getEmptyTextLanguage ctrl langrestype emptyText/>",null),
</#if> </#if>
<#if ctrl.getControlType() == 'GRID'> <#if ctrl.getControlType() == 'GRID'>
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>
}, },
nodata:"<@getEmptyTextLanguage ctrl langrestype emptyText/>", nodata:commonLogic.appcommonhandle("<@getEmptyTextLanguage ctrl langrestype emptyText/>",null),
<#if ctrl.getPSDEDataExport?? && ctrl.getPSDEDataExport()?? > <#if ctrl.getPSDEDataExport?? && ctrl.getPSDEDataExport()?? >
exportColumns: { exportColumns: {
<#if ctrl.getPSDEDataExport().getPSDEDataExportItems()??> <#if ctrl.getPSDEDataExport().getPSDEDataExportItems()??>
<#list ctrl.getPSDEDataExport().getPSDEDataExportItems() as obj> <#list ctrl.getPSDEDataExport().getPSDEDataExportItems() as obj>
${obj.getName()?lower_case}: "<#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>", ${obj.getName()?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
</#list> </#list>
</#if> </#if>
}, },
...@@ -67,7 +68,7 @@ export default { ...@@ -67,7 +68,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}: commonLogic.appcommonhandle("<@getNameLanguage obj langrestype />",null),
</#if> </#if>
</#list> </#list>
</#if> </#if>
...@@ -77,8 +78,8 @@ export default { ...@@ -77,8 +78,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: commonLogic.appcommonhandle("<#ibizinclude>../../../@MACRO/TIPLANG.ts</#ibizinclude>",null),
}, },
</#list> </#list>
</#if> </#if>
...@@ -87,7 +88,7 @@ export default { ...@@ -87,7 +88,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>
<#if obj.getPSAppDataEntity?? && obj.getPSAppDataEntity()??>${obj.getPSAppDataEntity().getCodeName()?lower_case}_</#if>${obj.getUIActionTag()?lower_case}: "<#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>", <#if obj.getPSAppDataEntity?? && obj.getPSAppDataEntity()??>${obj.getPSAppDataEntity().getCodeName()?lower_case}_</#if>${obj.getUIActionTag()?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
</#list> </#list>
}, },
</#if> </#if>
......
<#ibiztemplate> <#ibiztemplate>
TARGET=PSAPPDATAENTITY TARGET=PSAPPDATAENTITY
</#ibiztemplate> </#ibiztemplate>
import commonLogic from '@/locale/logic/common/common-logic';
<#ibizinclude>../../../@MACRO/FUNC.ts</#ibizinclude> <#ibizinclude>../../../@MACRO/FUNC.ts</#ibizinclude>
<#assign langrestype = 'ZH_CN'/> <#assign langrestype = 'ZH_CN'/>
<#assign emptyText = '暂无数据'> <#assign emptyText = '暂无数据'>
...@@ -9,7 +10,7 @@ export default { ...@@ -9,7 +10,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}: commonLogic.appcommonhandle("<@getLogicNameLanguage field.getPSDEField() langrestype />",null),
</#list> </#list>
}, },
</#if> </#if>
...@@ -18,8 +19,8 @@ export default { ...@@ -18,8 +19,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: commonLogic.appcommonhandle("<@getTitleLanguage obj langrestype />",null),
}, },
</#list> </#list>
}, },
...@@ -35,27 +36,27 @@ export default { ...@@ -35,27 +36,27 @@ 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>
<#if ctrl.getControlType() == 'LIST' || ctrl.getControlType() == 'DATAVIEW' || ctrl.getControlType() == 'CHART' || ctrl.getControlType() == 'KANBAN'|| ctrl.getControlType() == 'GANTT' || ctrl.getControlType() == 'TREEGRIDEX' || ctrl.getControlType() == 'CALENDAR' || ctrl.getControlType() == 'TREEVIEW'> <#if ctrl.getControlType() == 'LIST' || ctrl.getControlType() == 'DATAVIEW' || ctrl.getControlType() == 'CHART' || ctrl.getControlType() == 'KANBAN'|| ctrl.getControlType() == 'GANTT' || ctrl.getControlType() == 'TREEGRIDEX' || ctrl.getControlType() == 'CALENDAR' || ctrl.getControlType() == 'TREEVIEW'>
nodata:"<@getEmptyTextLanguage ctrl langrestype emptyText/>", nodata:commonLogic.appcommonhandle("<@getEmptyTextLanguage ctrl langrestype emptyText/>",null),
</#if> </#if>
<#if ctrl.getControlType() == 'GRID'> <#if ctrl.getControlType() == 'GRID'>
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>
}, },
nodata:"<@getEmptyTextLanguage ctrl langrestype emptyText/>", nodata:commonLogic.appcommonhandle("<@getEmptyTextLanguage ctrl langrestype emptyText/>",null),
<#if ctrl.getPSDEDataExport?? && ctrl.getPSDEDataExport()?? > <#if ctrl.getPSDEDataExport?? && ctrl.getPSDEDataExport()?? >
exportColumns: { exportColumns: {
<#if ctrl.getPSDEDataExport().getPSDEDataExportItems()??> <#if ctrl.getPSDEDataExport().getPSDEDataExportItems()??>
<#list ctrl.getPSDEDataExport().getPSDEDataExportItems() as obj> <#list ctrl.getPSDEDataExport().getPSDEDataExportItems() as obj>
${obj.getName()?lower_case}: "<#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>", ${obj.getName()?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
</#list> </#list>
</#if> </#if>
}, },
...@@ -66,7 +67,7 @@ export default { ...@@ -66,7 +67,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}: commonLogic.appcommonhandle("<@getNameLanguage obj langrestype />",null),
</#if> </#if>
</#list> </#list>
</#if> </#if>
...@@ -76,8 +77,8 @@ export default { ...@@ -76,8 +77,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: commonLogic.appcommonhandle("<#ibizinclude>../../../@MACRO/TIPLANG.ts</#ibizinclude>",null),
}, },
</#list> </#list>
</#if> </#if>
...@@ -86,7 +87,7 @@ export default { ...@@ -86,7 +87,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>
<#if obj.getPSAppDataEntity?? && obj.getPSAppDataEntity()??>${obj.getPSAppDataEntity().getCodeName()?lower_case}_</#if>${obj.getUIActionTag()?lower_case}: "<#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>", <#if obj.getPSAppDataEntity?? && obj.getPSAppDataEntity()??>${obj.getPSAppDataEntity().getCodeName()?lower_case}_</#if>${obj.getUIActionTag()?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
</#list> </#list>
}, },
</#if> </#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册