From: Thad Hughes Date: Wed, 4 Jan 2012 04:42:20 +0000 (-0800) Subject: Add Slovak, increment version, show what's new. X-Git-Url: http://gitweb.fperrin.net/?p=Dictionary.git;a=commitdiff_plain;h=6507667d0e0af60c201ae6c732c15e2fd07886ae Add Slovak, increment version, show what's new. --- diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 49411b9..871f3b5 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -4,8 +4,8 @@ package="com.hughes.android.dictionary" - android:versionCode="14" - android:versionName="3.0.0" + android:versionCode="15" + android:versionName="3.0.1" android:installLocation="preferExternal"> diff --git a/res/values/strings.xml b/res/values/strings.xml index 7fd1139..ba26101 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -20,10 +20,14 @@ - Thanks for updating QuickDic. + Thanks for updating to QuickDic 3.0.1.

New features:

    -
  • Many more dictionaries based on enwiktionary.com data. +
  • QuickDic is open-source! +
  • Adjustable font size. +
  • Changeable click behavior. +
  • Several new dictionaries: Polish, Esperanto, Latin, Indonesian, many others... (based on enwiktionary.com data). +
  • All dictionaries updated (mostly with better formatting), and can be redownloaded at your leisure.
@@ -48,17 +52,17 @@ Search Text - Download dictionary... + Download dictionary… Switch to %s - Preferences... - About QuickDic... + Preferences… + About QuickDic… Add to word list: %s Failure adding to word list: %s - Unzipping dictionary... - Failed to unzip dictionary... + Unzipping dictionary… + Failed to unzip dictionary… - QuickDic 3.0 + QuickDic 3.0.1 Thad Hughes If you\'re using QuickDic, I\'d love to hear from you. Unfortunately, I cannot take responsibility for dictionary content (other than formatting), as it is generated from other sources. Please send comments, suggestions, bug reports, or just a quick hello to: thad.hughes@gmail.com @@ -69,7 +73,7 @@ http://www.apache.org/licenses/LICENSE-2.0 - Opening connection... + Opening connection… Downloading: %1$,d of %2$,d bytes. Unzipping: %1$,d of %2$,d bytes. Finished: %,d bytes. diff --git a/src/com/hughes/android/dictionary/DictionaryListActivity.java b/src/com/hughes/android/dictionary/DictionaryListActivity.java index 923a918..123e0b5 100644 --- a/src/com/hughes/android/dictionary/DictionaryListActivity.java +++ b/src/com/hughes/android/dictionary/DictionaryListActivity.java @@ -71,7 +71,7 @@ public class DictionaryListActivity extends ListActivity { registerForContextMenu(getListView()); final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); - final int introMessageId = -1; + final int introMessageId = 100; if (prefs.getInt(C.INTRO_MESSAGE_SHOWN, 0) < introMessageId) { final AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setCancelable(false); @@ -115,13 +115,14 @@ public class DictionaryListActivity extends ListActivity { Log.d(LOG, "Dictionary list is old, updating it."); // Replace <-> with - - if (quickDicConfig.currentVersion == 3) { + if (quickDicConfig.currentVersion < 5) { for (final DictionaryConfig config : quickDicConfig.dictionaryConfigs) { config.name = config.name.replace("<->", "-"); } } quickDicConfig.addDefaultDictionaries(); quickDicConfig.currentVersion = QuickDicConfig.LATEST_VERSION; + PersistentObjectCache.init(this).write(C.DICTIONARY_CONFIGS, quickDicConfig); } setListAdapter(new Adapter()); diff --git a/src/com/hughes/android/dictionary/QuickDicConfig.java b/src/com/hughes/android/dictionary/QuickDicConfig.java index c465c79..4de278f 100644 --- a/src/com/hughes/android/dictionary/QuickDicConfig.java +++ b/src/com/hughes/android/dictionary/QuickDicConfig.java @@ -25,7 +25,7 @@ public final class QuickDicConfig implements Serializable { private static final long serialVersionUID = 6711617368780900979L; // Just increment this to have them all update... - static final int LATEST_VERSION = 4; + static final int LATEST_VERSION = 5; final List dictionaryConfigs = new ArrayList(); int currentVersion = LATEST_VERSION; @@ -51,7 +51,7 @@ public final class QuickDicConfig implements Serializable { } final DictionaryConfig config = new DictionaryConfig(); config.name = String.format("English-%s", Language.isoCodeToWikiName.get(iso)); - config.downloadUrl = String.format("%sEN-%s_enwiktionary.quickdic.zip", BASE_URL, iso); + config.downloadUrl = String.format("%sEN-%s_enwiktionary.v002.quickdic.zip", BASE_URL, iso); config.localFile = String.format("/sdcard/quickDic/EN-%s_enwiktionary.quickdic", iso); addOrReplace(config); } diff --git a/src/com/hughes/android/dictionary/engine/Language.java b/src/com/hughes/android/dictionary/engine/Language.java index b19f450..84a625a 100644 --- a/src/com/hughes/android/dictionary/engine/Language.java +++ b/src/com/hughes/android/dictionary/engine/Language.java @@ -72,6 +72,7 @@ public class Language { isoCodeToWikiName.put("RU", "Russian"); isoCodeToWikiName.put("SA", "Sanskrit"); isoCodeToWikiName.put("SR", "Serbian"); + isoCodeToWikiName.put("SK", "Slovak"); isoCodeToWikiName.put("SO", "Somali"); isoCodeToWikiName.put("ES", "Spanish"); isoCodeToWikiName.put("SW", "Swahili");