internationalization - Liferay - How to i18n model-resources? -


how can translate custom model-resources? given following default.xml:

<model-resource>     <model-name>de.foo.db.model.foobar</model-name>     <portlet-ref>         <portlet-name>myportlet</portlet-name>     </portlet-ref>     <permissions>         <supports>             <action-key>decline_owner</action-key>             <action-key>decline_department</action-key>         </supports>         <site-member-defaults/>         <guest-defaults/>         <guest-unsupported>             <action-key>decline_owner</action-key>             <action-key>decline_department</action-key>         </guest-unsupported>         <owner-defaults/>     </permissions> </model-resource> 

when want define these permissions role control-panel-> roles-> myrole-> define permissions listed as:

  • model.resource.de.foo.db.model.foobar:action.decline_owner
  • model.resource.de.foo.db.model.foobar:action.decline_department

but i'd them show as:

  • foobar: decline own element
  • foobar: decline element own department

i'm running liferay 6.2 ee.

you can add below language properties actions in language properties file.

action.decline_owner=foobar: decline own element action.decline_department= foobar: decline element own department 

Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -