public ResourceBundle getResourceBundle ( ) { if ( bundle == null ) { String lang = "" ; String country = "" ; final String _locale = getPm ( ) . getCfg ( ) . getProperty ( "locale" , "" ) ; if ( _locale != null && ! "" . equals ( _locale . trim ( ) ) ) { final String [ ] __locale = _locale . split ( "[_]" ) ; lang = __locale [ 0 ] ; if ( __locale . length > 1 ) { country = __locale [ 1 ] ; } } final Locale locale = new Locale ( lang , country ) ; bundle = ResourceBundle . getBundle ( "ApplicationResource" , locale ) ; } return bundle ; }
Returns local resource bundle for internationalization