0

Customize texts in msgzk.js and msgzul.js

asked 2014-04-14 12:33:57 +0800

rfrosig gravatar image rfrosig
0

We are trying to upgrade from ZK 6.5.1 to 7.0.1, but we have run into an issue with some customized danish texts in msgzk.js and msgzul.js. Before the upgrade it worked, but now we only get the default texts. We have done as described in ZK Developer's Reference (Internationalization - Warning and Error Messages).

We can see that our custom JS file is included in the HTML after zk.wpd, but it seems that ZK overrides the 2 objects with the default values after our file has been parsed.

zk.xml:

<zk>
    ...
    <library-property>
        <name>org.zkoss.web.preferred.locale</name>
        <value>da_DK</value>
    </library-property>
    <language-config>
        <addon-uri>/WEB-INF/lang-addon.xml</addon-uri>
    </language-config>
    ...
</zk>

lang-addon.xml:

<?xml version="1.0" encoding="UTF-8"?>
<language-addon>
    <addon-name>translation</addon-name>
    <language-name>xul/html</language-name>
    <javascript src="/js/translation*.js"/>
</language-addon>

Is this done differently in ZK7 or are we missing something else?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-08-28 16:11:04 +0800

negima gravatar image negima
1

Hello, have you a responce ? because I'm on the same, but not realy me on zk6.5.4 but this tricks not work for me...

link publish delete flag offensive edit

Comments

Do you have this outsourced to a separate jar?

chillworld ( 2017-08-29 05:05:14 +0800 )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: 2014-04-14 12:33:57 +0800

Seen: 14 times

Last updated: Aug 28

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