Merge pull request #2254 from okias/master
support diacritics symbols also with czech language
This commit is contained in:
commit
b676a27268
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue