0

Internationalization properties for custom component

asked 2015-08-25 13:40:44 +0800

ziobleed gravatar image ziobleed
1 1

updated 2015-08-25 13:45:02 +0800

hi all

I'm creating a simple custom component and i want define inside this component a labels.properties for i18n. I don't know how achieve this.

I want to write in the zul page of my component, ie mycomponent.zul something like

<label value="${c:l('some.text.here')}" sclass=""/>

How can i do this?

My language-addon is

  <?xml version="1.0" encoding="UTF-8"?>
    <language-addon>
        <!-- addon name, required, it's better to be unique -->
        <addon-name>datiDelSinistro</addon-name>
        <language-name>xul/html</language-name>
        <component>
            <component-name>datiDelSinistro</component-name>
            <component-class>com.assimoco.sinistri.componenti.datidelsinistro.zk.DatiDelSinistro</component-class> 
             <extends>div</extends>        
        </component>
    </language-addon>
delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-01-23 15:55:21 +0800

ziobleed gravatar image ziobleed
1 1

im also interested in this. Regards

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2015-08-25 13:40:44 +0800

Seen: 31 times

Last updated: Jan 23 '17

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More