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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user