-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Portuguese language support? How to do?
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.
Asked: 2008-10-10 03:32:41 +0800
Seen: 292 times
Last updated: Sep 22 '09