wt.clients.util
Class LocaleHelper

java.lang.Object
  extended bywt.clients.util.LocaleHelper

public class LocaleHelper
extends Object

This class was used to provide translation of an URL filename into a localized format. However, it did not support Locale backoff and default locales. Please see LocalizedResource for the replace methods to use.

JAD

See Also:
LocalizedResource, LocalizedResource.getLocalizedResourceName(Locale, String), LocalizedResource.getLocalizedResourceName(WTContext, String)

Constructor Summary
LocaleHelper()
          Deprecated.  
 
Method Summary
static String translateURLString(Locale locale, String url_string)
          Deprecated.  
static String translateURLString(WTContext context, String url_string)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocaleHelper

public LocaleHelper()
Deprecated. 
Method Detail

translateURLString

public static String translateURLString(Locale locale,
                                        String url_string)
Deprecated.  

Returns the given URL String updated so that it points to the HTML file for the given locale.

Replaced by wt/util/LocalizedResource.getLocalizedResourceName( locale, url_string)

Parameters:
locale - the Locale in which the HTML file will be displayed
url_string - the URL string to be changed to the correct locale
See Also:
LocalizedResource

translateURLString

public static String translateURLString(WTContext context,
                                        String url_string)
Deprecated.  

Returns the given URL String updated so that it points to the HTML file for the client locale. The locale is retrieved by getting the "wt.context.locale" parameter from the given WTContext.

Replaced by wt/util/LocalizedResource.getLocalizedResourceName( WTContext, String)

Parameters:
context - the WTContext for the client
url_string - the URL string to be changed to the correct locale
See Also:
LocalizedResource