1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-13 18:14:38 +02:00

Overload _( ) method to prevent creation of empty array.

This commit is contained in:
snowleo
2013-04-06 13:45:31 +02:00
parent fd8ec9da7c
commit 5826366dd2

View File

@@ -68,6 +68,15 @@ public class I18n implements II18n
}
}
public static String _(final String string)
{
if (instance == null)
{
return "";
}
return instance.translate(string);
}
public static String _(final String string, final Object... objects)
{
if (instance == null)