entry types.
<!-- About. -->
<string name="titleWithVersion">QuickDic 3.0</string>
<string name="thadHughes">Thad Hughes</string>
- <string name="contactMe">If you\'re using QuickDic, I\'d love to hear from you. Unfortunately, I cannot take responsibility for dictionary content, as it is generated from other sources. Please send comments, suggestions, bug reports, or just a quick hello to:</string>
+ <string name="contactMe">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:</string>
<string name="myEmail" formatted="false">thad.hughes@gmail.com</string>
<string name="webPage">For more information, see:</string>
- <string name="webPageUrl">http://sites.google.com/site/quickdic/home</string>
+ <string name="webPageUrl">http://code.google.com/p/quickdic-dictionary/</string>
<string name="license">QuickDic contains code copyrighted by Google and released under the Apache 2.0 license.</string>
<string name="licenseUrl">http://www.apache.org/licenses/LICENSE-2.0</string>
<string name="saveOnlyFirstSubentryTitle">Save only first sub-entry</string>
<string name="saveOnlyFirstSubentrySummary">For entries with multiple sub-entries, only write the first to the word list.</string>
+ <string name="clickOpensContextMenuKey">clickOpensContextMenu</string>
+ <string name="clickOpensContextMenuTitle">Click opens context menu</string>
+ <string name="clickOpensContextMenuSummary">Open context menu for clicks on entries (long-click will always open-context menu).</string>
+
<string name="showClearSearchTextButtonKey">showClearSearchTextButton</string>
<string name="showClearSearchTextButtonTitle">Show \'clear search text\' button</string>
<string name="showClearSearchTextButtonSummary">Show the button to clear the search text. You can also just move focus away from search text and start typing.</string>
android:persistent="true"\r
/>\r
\r
+ <CheckBoxPreference \r
+ android:key="@string/clickOpensContextMenuKey"\r
+ android:title="@string/clickOpensContextMenuTitle"\r
+ android:summary="@string/clickOpensContextMenuSummary"\r
+ android:defaultValue="false"\r
+ android:persistent="true"\r
+ />\r
+\r
<CheckBoxPreference \r
android:key="@string/showClearSearchTextButtonKey"\r
android:title="@string/showClearSearchTextButtonTitle"\r
// Never null.\r
private File wordList = null;\r
private boolean saveOnlyFirstSubentry = false;\r
+ private boolean clickOpensContextMenu = false;\r
\r
// Visible for testing.\r
ListAdapter indexAdapter = null;\r
wordList = new File(prefs.getString(getString(R.string.wordListFileKey),\r
getString(R.string.wordListFileDefault)));\r
saveOnlyFirstSubentry = prefs.getBoolean(getString(R.string.saveOnlyFirstSubentryKey), false);\r
+ clickOpensContextMenu = prefs.getBoolean(getString(R.string.clickOpensContextMenuKey), false);\r
//if (prefs.getBoolean(getString(R.string.vibrateOnFailedSearchKey), true)) {\r
// vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);\r
//}\r
\r
@Override\r
protected void onListItemClick(ListView l, View v, int row, long id) {\r
- openContextMenu(v);\r
+ if (clickOpensContextMenu) {\r
+ openContextMenu(v);\r
+ }\r
}\r
\r
void onAppendToWordList(final RowBase row) {\r
protected void onResume() {
super.onResume();
-
+
updateDictInfo();
+
+ // Focus the download button so the keyboard doesn't pop up.
+ final Button downloadButton = (Button) findViewById(R.id.downloadButton);
+ downloadButton.requestFocus();
}
@Override
}
view.setText(name);
- view.setTextSize(20);
+ view.setTextSize(22);
tableLayout.addView(view);
return tableLayout;
\r
setDownloadStatus(String.format(getString(R.string.downloadFinished),\r
bytesProcessed));\r
+ \r
+ // If all went well, we can exit this activity.\r
+ uiHandler.post(new Runnable() {\r
+ @Override\r
+ public void run() {\r
+ finish();\r
+ }\r
+ });\r
+ \r
} catch (IOException e) {\r
Log.e("THAD", "Error downloading file", e);\r
setDownloadStatus(String.format(getString(R.string.errorDownloadingFile), e.getLocalizedMessage()));\r
// WIKTIONARY_TRANSLATION_ONE_WORD(0),
WIKTIONARY_TITLE_SINGLE(0, true),
- WIKTIONARY_FORM_SINGLE(0, true),
+ WIKTIONARY_INFLECTD_FORM_SINGLE(0, true),
NOUN(0),
VERB(0),
MULTIROW_TAIL_ONE_WORD(0, true),
WIKTIONARY_TITLE_MULTI(0, true),
- WIKTIONARY_FORM_MULTI(0, true),
+ WIKTIONARY_INFLECTED_FORM_MULTI(0, true),
WIKTIONARY_TRANSLATION_SENSE(0),
WIKTIONARY_ENGLISH_DEF_WIKI_LINK(0),
WIKTIONARY_ENGLISH_DEF_OTHER_LANG(0),
MULTIROW_HEAD_MANY_WORDS(0),
MULTIROW_TAIL_MANY_WORDS(0),
WIKTIONARY_EXAMPLE(0),
+ WIKTIONARY_BASE_FORM_SINGLE(0), // These two should be eligible for removal....
+ WIKTIONARY_BASE_FORM_MULTI(0),
PART_OF_HYPHENATED(0),
BRACKETED(0),
PARENTHESIZED(0),
isoCodeToWikiName.put("MN", "Mongolian");\r
isoCodeToWikiName.put("NO", "Norwegian");\r
isoCodeToWikiName.put("FA", "Persian");\r
+ isoCodeToWikiName.put("PL", "Polish");\r
isoCodeToWikiName.put("PT", "Portuguese");\r
isoCodeToWikiName.put("RO", "Romanian");\r
isoCodeToWikiName.put("RU", "Russian");\r