Button button = new Button(); button.setCaption(getMessage("button.caption")); UI.getCurrent().setLocale(Locale.CHINESE);