protected void setLocale ( String strLocale ) { if ( strLocale == null ) { this . locale = Locale . US ; } else { try { this . locale = Caster . toLocale ( strLocale ) ; if ( this . locale == null ) this . locale = Locale . US ; } catch ( ExpressionException e ) { this . locale = Locale . US ; } } }
sets the locale