Fix locale object getter, closes #1113
This commit is contained in:
parent
be13a00386
commit
87a64c3f3e
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user