public String getString ( String string ) { String strReturn = null ; try { if ( m_resources == null ) this . setLanguage ( null ) ; // If the resource file is not here, add the default file. if ( m_resources != null ) if ( string != null ) strReturn = m_resources . getString ( string ) ; } catch ( MissingResourceException ex ) { strReturn = null ; } if ( ( strReturn != null ) && ( strReturn . length ( ) > 0 ) ) return strReturn ; else return string ; }
Look this key up in the current resource file and return the string in the local language . If no resource file is active return the string .