question: returns the locale in respect to the given `` accept-language '' http header . concode_field_sep PlaceHolder placeHolder concode_field_sep placeholderType placeHolder
target: Locale function ( String arg0 ) { Locale loc0 = Locale . getDefault ( ) ; if ( arg0 != null ) { String [ ] loc1 = arg0 . loc1 ( "srini_string" ) ; if ( loc1 . length == 2 ) { loc0 = new Locale ( loc1 [ 0 ] , loc1 [ 1 ] ) ; } else { loc0 = new Locale ( loc1 [ 0 ] ) ; } } return loc0 ; }