Merge pull request #2254 from okias/master

support diacritics symbols also with czech language
This commit is contained in:
vshcherb 2016-02-20 15:02:36 +02:00
commit b676a27268

View file

@ -7,6 +7,7 @@ public class OsmAndCollator {
public static net.osmand.Collator primaryCollator() {
// romanian locale encounters diacritics as different symbols
final java.text.Collator instance = Locale.getDefault().getLanguage().equals("ro") ||
Locale.getDefault().getLanguage().equals("cs") ||
Locale.getDefault().getLanguage().equals("sk")? java.text.Collator.getInstance(Locale.US)
: java.text.Collator.getInstance();
instance.setStrength(java.text.Collator.PRIMARY);