Add Locale management.

This commit is contained in:
Christian P. MOMON 2013-09-14 16:53:05 +02:00
parent 6d78ebb0e6
commit 4061a55e2d

View file

@ -269,6 +269,31 @@ public class TranslatorPresenter implements Presenter
return false;
}
/**
*
*/
public String toString(final Locale locale) throws Exception
{
String result;
//
String language;
if (locale == null)
{
language = null;
}
else
{
language = locale.getLanguage();
}
//
result = toString(language);
//
return result;
}
/**
*
*/