private static String generateName ( Locale locale ) { StringBuilder str = new StringBuilder ( ) ; str . append ( "models_" ) . append ( locale . getLanguage ( ) ) ; if ( locale . getCountry ( ) != null && ! locale . getCountry ( ) . isEmpty ( ) ) str . append ( "_" ) . append ( locale . getCountry ( ) ) ; str . append ( ".xml" ) ; return str . toString ( ) ; }
Generates the name of the file to be used according to the language chosen .