src/main/java/de/blau/android/osm/Wiki.java
/**
     * Try to map locales to language strings mediawiki expects
     * 
     * @param locale the Locale
     * @return a language string
     */
Try to map locales to language strings mediawiki expects

@param locale the Locale
@return a language string
Try to map locales to language strings mediawiki expects @param locale the Locale @return a language string
private static String mapLocale(@NonNull Locale locale) {
        String l = locale.toString();
        int hash = l.indexOf("_#");
        if (hash >= 0) {
            l = l.substring(0, hash);
        }
        l = l.replace('_', '-');
        return l.toUpperCase(Locale.US);
    }
private static String mapLocale ( @ NonNull Locale locale ) { String l = locale . toString ( ) ; int hash = l . indexOf ( "_#" ) ; if ( hash >= 0 ) { l = l . substring ( 0 , hash ) ; } l = l . replace ( '_' , '-' ) ; return l . toUpperCase ( Locale . US ) ; }
Try to map locales to language strings mediawiki expects
Try to map locales to language strings mediawiki expects