From 5cc989b87f671702912e28c0bce3747b6b79b87b Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Wed, 10 Aug 2016 08:44:52 -0700 Subject: Rename references of "vocab" to "term" --- README.md | 2 +- ext/bg/js/options-form.js | 12 ++++++------ ext/bg/js/options.js | 6 +++--- ext/bg/js/templates.js | 6 +++--- ext/bg/js/yomichan.js | 10 +++++----- ext/bg/options.html | 12 ++++++------ ext/fg/img/add_term_kana.png | Bin 0 -> 286 bytes ext/fg/img/add_term_kanji.png | Bin 0 -> 733 bytes ext/fg/img/add_vocab_kana.png | Bin 286 -> 0 bytes ext/fg/img/add_vocab_kanji.png | Bin 733 -> 0 bytes ext/fg/js/client.js | 2 +- ext/manifest.json | 4 ++-- tmpl/term.html | 4 ++-- 13 files changed, 29 insertions(+), 29 deletions(-) create mode 100644 ext/fg/img/add_term_kana.png create mode 100644 ext/fg/img/add_term_kanji.png delete mode 100644 ext/fg/img/add_vocab_kana.png delete mode 100644 ext/fg/img/add_vocab_kanji.png diff --git a/README.md b/README.md index 5d0b838c..02bd2aed 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Store](https://chrome.google.com/webstore/detail/yomichan/ogmnaimimemjmbakcfefmn ## Screenshots ## -[![Vocabulary definitions](https://foosoft.net/projects/yomichan-chrome/img/vocab-thumb.png)](https://foosoft.net/projects/yomichan-chrome/img/vocab.png) +[![Term definitions](https://foosoft.net/projects/yomichan-chrome/img/term-thumb.png)](https://foosoft.net/projects/yomichan-chrome/img/term.png) [![Kanji information](https://foosoft.net/projects/yomichan-chrome/img/kanji-thumb.png)](https://foosoft.net/projects/yomichan-chrome/img/kanji.png) [![Options page](https://foosoft.net/projects/yomichan-chrome/img/options-thumb.png)](https://foosoft.net/projects/yomichan-chrome/img/options.png) diff --git a/ext/bg/js/options-form.js b/ext/bg/js/options-form.js index a3250ab3..99d01db4 100644 --- a/ext/bg/js/options-form.js +++ b/ext/bg/js/options-form.js @@ -31,7 +31,7 @@ function fieldsToDict(selection) { } function modelIdToFieldOptKey(id) { - return {'anki-vocab-model': 'ankiVocabFields', 'anki-kanji-model': 'ankiKanjiFields'}[id]; + return {'anki-term-model': 'ankiTermFields', 'anki-kanji-model': 'ankiKanjiFields'}[id]; } function formToOptions(section, callback) { @@ -50,9 +50,9 @@ function formToOptions(section, callback) { case 'anki': optsNew.ankiCardTags = $('#anki-card-tags').val().split(/[,; ]+/); optsNew.sentenceExtent = parseInt($('#sentence-extent').val(), 10); - optsNew.ankiVocabDeck = $('#anki-vocab-deck').val(); - optsNew.ankiVocabModel = $('#anki-vocab-model').val(); - optsNew.ankiVocabFields = fieldsToDict($('#vocab .anki-field-value')); + optsNew.ankiTermDeck = $('#anki-term-deck').val(); + optsNew.ankiTermModel = $('#anki-term-model').val(); + optsNew.ankiTermFields = fieldsToDict($('#term .anki-field-value')); optsNew.ankiKanjiDeck = $('#anki-kanji-deck').val(); optsNew.ankiKanjiModel = $('#anki-kanji-model').val(); optsNew.ankiKanjiFields = fieldsToDict($('#kanji .anki-field-value')); @@ -73,7 +73,7 @@ function populateAnkiDeckAndModel(opts) { names.forEach((name) => ankiDeck.append($('