Update collator
This commit is contained in:
parent
b0442193ca
commit
3fe967d797
1 changed files with 2 additions and 1 deletions
|
@ -30,7 +30,8 @@ public class PlatformUtil {
|
||||||
|
|
||||||
public static net.osmand.Collator primaryCollator() {
|
public static net.osmand.Collator primaryCollator() {
|
||||||
// romanian locale encounters diacritics as differnet symbols
|
// romanian locale encounters diacritics as differnet symbols
|
||||||
final java.text.Collator instance = Locale.getDefault().getLanguage().equals("ro") ? java.text.Collator.getInstance(Locale.US)
|
final java.text.Collator instance = Locale.getDefault().getLanguage().equals("ro") ||
|
||||||
|
Locale.getDefault().getLanguage().equals("sk")? java.text.Collator.getInstance(Locale.US)
|
||||||
: java.text.Collator.getInstance();
|
: java.text.Collator.getInstance();
|
||||||
instance.setStrength(java.text.Collator.PRIMARY);
|
instance.setStrength(java.text.Collator.PRIMARY);
|
||||||
return wrapCollator(instance);
|
return wrapCollator(instance);
|
||||||
|
|
Loading…
Reference in a new issue