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();
}
# 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());
No comments:
Post a Comment