(Locale locale)
| 89 | } |
| 90 | |
| 91 | private static PropertyResourceBundle getBundle(Locale locale) { |
| 92 | FileInputStream stream = null; |
| 93 | try { |
| 94 | stream = new FileInputStream(new File(The5zigMod.getModDirectory(), serialize(locale))); |
| 95 | return new PropertyResourceBundle(stream); |
| 96 | } catch (IOException e) { |
| 97 | The5zigMod.logger.error("Could not Load Property Resource Bundle!", e); |
| 98 | } finally { |
| 99 | IOUtils.closeQuietly(stream); |
| 100 | } |
| 101 | return null; |
| 102 | } |
| 103 | |
| 104 | public static void setLanguage(Locale locale) { |
| 105 | String code = locale.toString(); |
no test coverage detected