O'Reilly logo

ZK Developer's Guide by Markus Stauble, Hans-Jurgen Schumacher, Jurgen Schumacher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Internationalization with the ZK Framework

Before we end the chapter, and the tutorial part of this book, we should look at how internationalization is done with ZK. For that we will use login.zul page from the previous chapter.

The ZK framework comes with a built-in functionality to separate the name of the labels in a property file. The name of the property file is i3-label_lang_CNTY.properties. lang is the language (for example: en) and CNTY is the country (for example US). The file must be located in the WEB-INF directory of the web application. If the file is not found, the file i3-label_lang.properties is loaded, and if that fails the framework tries to load i3-label.properties. To access the properties, you can use org.zkoss.util.resource.Labels ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required