0

zk i18n

asked 2008-10-10 03:32:41 +0800

A gravatar image A
117 2

Portuguese language support? How to do?

delete flag offensive retag edit

2 Replies

Sort by » oldest newest

answered 2008-10-10 09:23:08 +0800

sousa1981 gravatar image sousa1981
573 4

1. Inside WEB-INF create file i3-label_pt.properties

2. If using Eclipse remember that ".properties" file must have encoding to "UTF-8", so:
Windows > Preferences > General > Content Types > Java Properties File
Select "*.properties(locked)" in "File associations"
Change the "Default encoding" to "UTF-8" then press "Update"

3. If using Firefox > Tools > Options > Tab Content > In Languages Choose > Portuguese

4. If iexplore > Tools > Internet Options > Languages > Choose Portuguese

5. Using Labels in zul file:
EL: ${c:l('configuracao.lista')}
MVEL (remember add MVEL.jar):
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c" ?>
<?evaluator name="mvel"?>
${Labels.getLabel('configuracao.lista')}

6. Using Labels in java file (in doesn't depends of MVEL or EL)
import org.zkoss.util.resource.Labels;
Labels.getLabel("username");

7. Labels with Portuguese Character:

# Label for configuracao.zul
configuracao.lista=Lista de Configurações
configuracao.registar=Alterar Configuração
configuracao.edited=A Configuração {0} foi alterada com sucesso.

link publish delete flag offensive edit

answered 2009-09-22 13:25:20 +0800

redvax gravatar image redvax
15 1

Buen trabajo, gracias por el post.
Dios te bendiga.

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2008-10-10 03:32:41 +0800

Seen: 292 times

Last updated: Sep 22 '09

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