2. Create a "i18nConstants.properties" file in the client package (com.xyz.zyx.client)package com.ucc.csd.client;
import com.google.gwt.i18n.client.Constants;
public interface I18nConstants extends Constants
{
String imageViewPath();
}
3. Create a class variable for the i18n Interface:# PROD
#imageViewPath = http://communitysportsdesk.com/csd_images/
# UAT
#imageViewPath = http://64.191.235.56/csd_images/
# Uki
imageViewPath = http://localhost:8282/csd_images/
# Zainab, Trevor, Phil
#imageViewPath = http://localhost:8080/csd_images/
4. Generate GWT implementation for it, in the class constructor:private I18nConstants i18n;
i18n = (I18nConstants) GWT.create(I18nConstants.class);5. Call it as needed:
setImageViewPath(i18n.imageViewPath());