Fix locale object getter, closes #1113

This commit is contained in:
md_5 2014-07-16 17:13:56 +10:00
parent be13a00386
commit 87a64c3f3e

View File

@ -443,6 +443,6 @@ public final class UserConnection implements ProxiedPlayer
@Override
public Locale getLocale()
{
return ( locale == null && settings != null ) ? locale = Locale.forLanguageTag( settings.getLocale() ) : locale;
return ( locale == null && settings != null ) ? locale = Locale.forLanguageTag( settings.getLocale().replaceAll( "_", "-" ) ) : locale;
}
}