org.openi.web.i18n
Class LocaleUtils
java.lang.Object
org.openi.web.i18n.LocaleUtils
public class LocaleUtils
- extends java.lang.Object
|
Method Summary |
static java.lang.String |
getXslContent(java.lang.String path,
java.lang.String xslFile,
java.lang.String language)
|
static java.lang.String |
getXslLocalizedFilename(java.lang.String path,
java.lang.String xslFile,
java.lang.String language)
|
static javax.xml.transform.Source |
getXslSource(java.lang.String path,
java.lang.String xslFile,
java.lang.String language)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocaleUtils
public LocaleUtils()
getXslContent
public static java.lang.String getXslContent(java.lang.String path,
java.lang.String xslFile,
java.lang.String language)
throws java.io.IOException
- Parameters:
path - xslFile - language -
- Returns:
-
- Throws:
java.io.IOException - This procedure returns the content of the xsl file of the parameter, but taking into account the locale
It looks 1st for file_xx.xsl, where xx it the language code and if it is not fount, the reads the file.xsl
getXslSource
public static javax.xml.transform.Source getXslSource(java.lang.String path,
java.lang.String xslFile,
java.lang.String language)
throws java.io.IOException
- Parameters:
path - xslFile - language -
- Returns:
-
- Throws:
java.io.IOException - This procedure returns the Source Object of the xsl file of the parameter, but taking into account the locale
It looks 1st for file_xx.xsl, where xx it the language code and if it is not fount, the reads the file.xsl
getXslLocalizedFilename
public static java.lang.String getXslLocalizedFilename(java.lang.String path,
java.lang.String xslFile,
java.lang.String language)
throws java.io.IOException
- Parameters:
path - xslFile - language -
- Returns:
-
- Throws:
java.io.IOException - This procedure returns the xsl File name for the current locale