提交 90f6c179 编写于 作者: KK's avatar KK

门户多语言

上级 74160e9c
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<#if ctrl.isShowTitleBar()> <#if ctrl.isShowTitleBar()>
<ion-list-header v-if="editTitle" class='app-mob-portlet__header'> <ion-list-header v-if="editTitle" class='app-mob-portlet__header'>
<ion-input v-if="isEditTitle" :value="editTitle" @ionChange="titleChange"></ion-input> <ion-input v-if="isEditTitle" :value="editTitle" @ionChange="titleChange"></ion-input>
<span v-if="!isEditTitle"><span v-if="customizeTitle">{{customizeTitle}}</span><span v-else>{{$t('app.portlets.${ctrl.getCodeName()?lower_case}.caption')}}</span></span> <span v-if="!isEditTitle"><span v-if="customizeTitle">{{customizeTitle}}</span><span v-else>{{$t('app.views.<#noparse>${this.viewName.toLowerCase()}</#noparse>.${ctrl.getCodeName()?lower_case}_portlet')}}</span></span>
<div v-if="actionBarModelData && actionBarModelData.length> 0" class="portlet__header_right"> <div v-if="actionBarModelData && actionBarModelData.length> 0" class="portlet__header_right">
<app-mob-icon v-if="!isEditTitle" name="ellipsis-horizontal-outline" @onClick="open"></app-mob-icon> <app-mob-icon v-if="!isEditTitle" name="ellipsis-horizontal-outline" @onClick="open"></app-mob-icon>
</div> </div>
......
...@@ -269,7 +269,7 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap ...@@ -269,7 +269,7 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap
if(this.customizeTitle){ if(this.customizeTitle){
return this.customizeTitle return this.customizeTitle
} }
return (this.$t('app.portlets.${ctrl.getCodeName()?lower_case}.caption') as string) return (this.$t('app.views.<#noparse>${this.viewName.toLowerCase()}</#noparse>.${ctrl.getCodeName()?lower_case}_portlet') as string)
} }
/** /**
......
...@@ -52,6 +52,15 @@ export default { ...@@ -52,6 +52,15 @@ export default {
<#if !obj.isPSDEView()> <#if !obj.isPSDEView()>
${obj.getCodeName()?lower_case}: { ${obj.getCodeName()?lower_case}: {
caption: <#ibizinclude>../@MACRO/CAPTIONLANG.tsx</#ibizinclude>, caption: <#ibizinclude>../@MACRO/CAPTIONLANG.tsx</#ibizinclude>,
<#if obj.getViewType() == 'APPPORTALVIEW'>
<#if obj.getAllPSControls?? && obj.getAllPSControls()??>
<#list obj.getAllPSControls() as obj>
<#if obj.getControlType() == 'PORTLET'>
${obj.getCodeName()?lower_case}_portlet:<#ibizinclude>../@MACRO/CAPTIONLANG.tsx</#ibizinclude>,
</#if>
</#list>
</#if>
</#if>
}, },
</#if> </#if>
</#list> </#list>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册