Skip to content

Commit

Permalink
Update text
Browse files Browse the repository at this point in the history
  • Loading branch information
khaitruong922 committed Aug 7, 2024
1 parent 9066cab commit c83caec
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docs/anki-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Flashcard fields can be configured with the following steps:
| `{cloze-suffix}` | Fragment of the containing `{sentence}` starting at the end of `{cloze-body}` until the end of `{sentence}`. |
| `{conjugation}` | Conjugation path from the raw inflected term to the source term. |
| `{dictionary}` | Name of the dictionary from which the card is being created (unavailable in _grouped_ mode). |
| `{dictionary-alias}` | Alias of the dictionary from which the card is being created (unavailable in _grouped_ mode). |
| `{dictionary-alias}` | Display name of the dictionary from which the card is being created (unavailable in _grouped_ mode). |
| `{document-title}` | Title of the web page that the term appeared in. |
| `{expression}` | Term expressed as kanji (will be displayed in kana if kanji is not available). |
| `{frequencies}` | Frequency information for the term. |
Expand Down Expand Up @@ -81,7 +81,7 @@ Flashcard fields can be configured with the following steps:
| `{cloze-prefix}` | Fragment of the containing `{sentence}` starting at the beginning of `{sentence}` until the beginning of `{cloze-body}`. |
| `{cloze-suffix}` | Fragment of the containing `{sentence}` starting at the end of `{cloze-body}` until the end of `{sentence}`. |
| `{dictionary}` | Name of the dictionary from which the card is being created. |
| `{dictionary-alias}` | Alias of the dictionary from which the card is being created. |
| `{dictionary-alias}` | Display name of the dictionary from which the card is being created. |
| `{document-title}` | Title of the web page that the kanji appeared in. |
| `{frequencies}` | Frequency information for the kanji. |
| `{frequency-harmonic-rank}` | The harmonic mean of frequency data for the current kanji. Defaults to rank 9999999 when frequency data is not found, indicating extremely low rank-based kanji usage. |
Expand Down
6 changes: 3 additions & 3 deletions ext/js/pages/settings/dictionary-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ class DictionaryEntry {
case 'moveTo':
this._showMoveToModal();
break;
case 'setAlias':
this._showSetAliasModal();
case 'rename':
this._showRenameModal();
break;
}
}
Expand Down Expand Up @@ -357,7 +357,7 @@ class DictionaryEntry {
}

/** */
_showSetAliasModal() {
_showRenameModal() {
const {title} = this._dictionaryInfo;
const modal = this._dictionaryController.modalController.getModal('dictionary-set-alias');
if (modal === null) { return; }
Expand Down
6 changes: 3 additions & 3 deletions ext/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -2821,9 +2821,9 @@ <h5>or click here to upload</h5>
</div></div>

<div id="dictionary-set-alias-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small">
<div class="modal-header"><div class="modal-title">Set Alias</div></div>
<div class="modal-header"><div class="modal-title">Rename</div></div>
<div class="modal-body">
<p>Input the alias for <strong class="dictionary-title"></strong> dictionary:</p>
<p>Input the display name for <strong class="dictionary-title"></strong> dictionary:</p>
<div class="margin-above">
<input type="text" id="dictionary-alias-input">
</div>
Expand Down Expand Up @@ -3316,7 +3316,7 @@ <h5>or click here to upload</h5>
</tr>
<tr>
<td><code class="anki-field-marker">{dictionary-alias}</code></td>
<td>Alias of the dictionary from which the card is being created.</td>
<td>Display name of the dictionary from which the card is being created.</td>
</tr>
<tr>
<td><code class="anki-field-marker">{document-title}</code></td>
Expand Down
2 changes: 1 addition & 1 deletion ext/templates-settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
</template>
<template id="dictionary-menu-template"><div class="popup-menu-container" tabindex="-1" role="dialog"><div class="popup-menu"><div class="popup-menu-body">
<button type="button" class="popup-menu-item" data-menu-action="showDetails">Details&hellip;</button>
<button type="button" class="popup-menu-item" data-menu-action="setAlias">Set alias&hellip;</button>
<button type="button" class="popup-menu-item" data-menu-action="rename">Rename&hellip;</button>
<button type="button" class="popup-menu-item" data-menu-action="moveTo">Move to&hellip;</button>
<button type="button" class="popup-menu-item" data-menu-action="delete">Delete</button>
</div></div></div></template>
Expand Down
4 changes: 2 additions & 2 deletions ext/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,9 @@ <h5>or click here to upload</h5>
</div></div>

<div id="dictionary-set-alias-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small">
<div class="modal-header"><div class="modal-title">Set Alias</div></div>
<div class="modal-header"><div class="modal-title">Rename</div></div>
<div class="modal-body">
<p>Input the alias for <strong class="dictionary-title"></strong> dictionary:</p>
<p>Input the display name for <strong class="dictionary-title"></strong> dictionary:</p>
<div class="margin-above">
<input type="text" id="dictionary-alias-input">
</div>
Expand Down

0 comments on commit c83caec

Please sign in to comment.