Mistři v programování na #hovnokod

Java #934

private static ResourceBundle messageBundleEnglish = ResourceBundle.getBundle("message_en_US");
private static ResourceBundle messageBundleGermany = ResourceBundle.getBundle("message_cs_CZ");

public static String getLocalizedMessageFromBundle(Integer locale, String str) { 	
    if (locale == Constants.INDEX_TWO) {
            return messageBundleCzechia.getString(str);
    } else {
         return messageBundleEnglish.getString(str);
    }
}

binary_runner,