From: Reimar Döffinger Date: Wed, 16 Dec 2015 21:51:03 +0000 (+0100) Subject: Fix splitting of Greek/Ancient Greek. X-Git-Url: http://gitweb.fperrin.net/?p=DictionaryPC.git;a=commitdiff_plain;h=6b4c09992be075e7b3d0136b207b3f87ec7a6f48 Fix splitting of Greek/Ancient Greek. --- diff --git a/src/com/hughes/android/dictionary/engine/WiktionarySplitter.java b/src/com/hughes/android/dictionary/engine/WiktionarySplitter.java index 42f7a72..a5dfebc 100644 --- a/src/com/hughes/android/dictionary/engine/WiktionarySplitter.java +++ b/src/com/hughes/android/dictionary/engine/WiktionarySplitter.java @@ -218,6 +218,7 @@ public class WiktionarySplitter extends org.xml.sax.helpers.DefaultHandler { } text = text.substring(end); + break; } } } diff --git a/src/com/hughes/android/dictionary/parser/wiktionary/WiktionaryLangs.java b/src/com/hughes/android/dictionary/parser/wiktionary/WiktionaryLangs.java index 68269ec..5c039e8 100644 --- a/src/com/hughes/android/dictionary/parser/wiktionary/WiktionaryLangs.java +++ b/src/com/hughes/android/dictionary/parser/wiktionary/WiktionaryLangs.java @@ -48,8 +48,8 @@ public class WiktionaryLangs { isoCodeToEnWikiName.put("FI", "Finnish"); isoCodeToEnWikiName.put("FR", "French"); isoCodeToEnWikiName.put("DE", "German"); - isoCodeToEnWikiName.put("EL", "Greek"); isoCodeToEnWikiName.put("grc", "Ancient Greek"); + isoCodeToEnWikiName.put("EL", "Greek"); isoCodeToEnWikiName.put("haw", "Hawaiian"); isoCodeToEnWikiName.put("HE", "Hebrew"); isoCodeToEnWikiName.put("HI", "Hindi"); @@ -67,8 +67,8 @@ public class WiktionaryLangs { isoCodeToEnWikiName.put("KO", "Korean"); isoCodeToEnWikiName.put("KU", "Kurdish"); isoCodeToEnWikiName.put("LO", "Lao"); - isoCodeToEnWikiName.put("MS", "Malay$"); isoCodeToEnWikiName.put("ML", "Malayalam"); + isoCodeToEnWikiName.put("MS", "Malay"); isoCodeToEnWikiName.put("MI", "Maori"); isoCodeToEnWikiName.put("MN", "Mongolian"); isoCodeToEnWikiName.put("NE", "Nepali");