*/
public static String getText(String inKey)
{
- String value = null;
// look in external props file if available
if (ExternalPropsFile != null)
{
- value = ExternalPropsFile.getProperty(inKey);
- if (value != null && !value.equals(""))
- return value;
+ String extText = ExternalPropsFile.getProperty(inKey);
+ if (extText != null) return extText;
}
// look in extra texts if available
if (LocalTexts != null)
{
try
{
- value = LocalTexts.getString(inKey);
- if (value != null && !value.equals(""))
- return value;
+ String localText = LocalTexts.getString(inKey);
+ if (localText != null) return localText;
}
catch (MissingResourceException mre) {}
}
{
try
{
- value = EnglishTexts.getString(inKey);
- if (value != null && !value.equals(""))
- return value;
+ String engText = EnglishTexts.getString(inKey);
+ if (engText != null) return engText;
}
catch (MissingResourceException mre) {}
}