From 04d8e09f2aabedc35ddc5baa7dd075210c0331b2 Mon Sep 17 00:00:00 2001 From: David Heidelberg Date: Fri, 19 Feb 2016 13:38:02 +0100 Subject: [PATCH] support diacritics symbols also with czech language Search without diacritics will work properly in Czech Republic, Slovakia or Romania only when phone UI is set to these languages. This is temporary solution.This should be handled better. --- OsmAnd-java/src/net/osmand/OsmAndCollator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/OsmAnd-java/src/net/osmand/OsmAndCollator.java b/OsmAnd-java/src/net/osmand/OsmAndCollator.java index 1ba11f3d60..f7b8c7054a 100644 --- a/OsmAnd-java/src/net/osmand/OsmAndCollator.java +++ b/OsmAnd-java/src/net/osmand/OsmAndCollator.java @@ -7,6 +7,7 @@ public class OsmAndCollator { public static net.osmand.Collator primaryCollator() { // romanian locale encounters diacritics as differnet 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);