aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-02-08 17:52:35 -0500
committerGitHub <noreply@github.com>2021-02-08 17:52:35 -0500
commit008809e0e73665249b7b3dd7c14a1761aa06bd39 (patch)
tree72005a96e1f5597dc09d39dd3ae891374955a0e6 /ext/bg
parentc6315cdb8c4ebc5a2cde57481af612a6e67a0d28 (diff)
Enforce language (#1344)
* Assign text content and a language * Remove _appendMultilineText * Assign lang for createTextNode content * Add language attributes to HTML pages
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/pitch-accents-preview.html2
-rw-r--r--ext/bg/popup-preview.html2
-rw-r--r--ext/bg/search.html2
-rw-r--r--ext/bg/settings2.html26
4 files changed, 16 insertions, 16 deletions
diff --git a/ext/bg/pitch-accents-preview.html b/ext/bg/pitch-accents-preview.html
index b449222b..e22122c2 100644
--- a/ext/bg/pitch-accents-preview.html
+++ b/ext/bg/pitch-accents-preview.html
@@ -21,7 +21,7 @@
<ul>
<li>
<strong>Downstep notation</strong> -
- <span class="format-preview">
+ <span class="format-preview" lang="ja">
<span class="term-pitch-accent-characters"><span class="term-pitch-accent-character" data-position="0" data-pitch="high" data-pitch-next="low"><span class="term-pitch-accent-character-inner">よ</span></span><span class="term-pitch-accent-character" data-position="1" data-pitch="low" data-pitch-next="low"><span class="term-pitch-accent-character-inner">む</span></span></span>
</span>
</li>
diff --git a/ext/bg/popup-preview.html b/ext/bg/popup-preview.html
index d8855946..d0bf77d3 100644
--- a/ext/bg/popup-preview.html
+++ b/ext/bg/popup-preview.html
@@ -20,7 +20,7 @@
<div class="top-options">
<div class="top-options-left">
<div class="example-text-container">
- <input type="text" class="example-text example-text-input" id="example-text-input" value="読め" hidden>
+ <input type="text" class="example-text example-text-input" id="example-text-input" value="読め" lang="ja" hidden>
<span class="example-text" id="example-text">読め</span>
</div>
</div>
diff --git a/ext/bg/search.html b/ext/bg/search.html
index 4537fb85..40c1ef45 100644
--- a/ext/bg/search.html
+++ b/ext/bg/search.html
@@ -46,7 +46,7 @@
</div>
</div>
<div class="search-textbox-container">
- <textarea id="search-textbox" placeholder="Input a term, expression, sentence, or block of text" autocomplete="off" autofocus></textarea>
+ <textarea id="search-textbox" placeholder="Input a term, expression, sentence, or block of text" autocomplete="off" lang="ja" autofocus></textarea>
<button id="search-button"><span class="icon" data-icon="magnifying-glass"></span></button>
</div>
</div>
diff --git a/ext/bg/settings2.html b/ext/bg/settings2.html
index ba862b45..edaa90af 100644
--- a/ext/bg/settings2.html
+++ b/ext/bg/settings2.html
@@ -1179,7 +1179,7 @@
<div class="settings-item-description">Change what type of furigana is displayed for parsed text.</div>
</div>
<div class="settings-item-right">
- <select data-setting="parsing.readingMode">
+ <select data-setting="parsing.readingMode" lang="ja">
<option value="none">None</option>
<option value="hiragana">ひらがな</option>
<option value="katakana">カタカナ</option>
@@ -1281,7 +1281,7 @@
<div class="settings-item"><div class="settings-item-inner settings-item-inner-wrappable">
<div class="settings-item-left">
<div class="settings-item-label">Convert half width characters to full width</div>
- <div class="settings-item-description">ヨミチャン&#x3000;&rarr;&#x3000;ヨミチャン</div>
+ <div class="settings-item-description" lang="ja">ヨミチャン&#x3000;&rarr;&#x3000;ヨミチャン</div>
</div>
<div class="settings-item-right">
<select data-setting="translation.convertHalfWidthCharacters">
@@ -1294,7 +1294,7 @@
<div class="settings-item"><div class="settings-item-inner settings-item-inner-wrappable">
<div class="settings-item-left">
<div class="settings-item-label">Convert numeric characters to full width</div>
- <div class="settings-item-description">1234&#x3000;&rarr;&#x3000;1234</div>
+ <div class="settings-item-description" lang="ja">1234&#x3000;&rarr;&#x3000;1234</div>
</div>
<div class="settings-item-right">
<select data-setting="translation.convertNumericCharacters">
@@ -1307,7 +1307,7 @@
<div class="settings-item"><div class="settings-item-inner settings-item-inner-wrappable">
<div class="settings-item-left">
<div class="settings-item-label">Convert alphabetic characters to hiragana</div>
- <div class="settings-item-description">yomichan&#x3000;&rarr;&#x3000;よみちゃん</div>
+ <div class="settings-item-description" lang="ja">yomichan&#x3000;&rarr;&#x3000;よみちゃん</div>
</div>
<div class="settings-item-right">
<select data-setting="translation.convertAlphabeticCharacters">
@@ -1320,7 +1320,7 @@
<div class="settings-item"><div class="settings-item-inner settings-item-inner-wrappable">
<div class="settings-item-left">
<div class="settings-item-label">Convert hiragana to katakana</div>
- <div class="settings-item-description">よみちゃん&#x3000;&rarr;&#x3000;ヨミチャン</div>
+ <div class="settings-item-description" lang="ja">よみちゃん&#x3000;&rarr;&#x3000;ヨミチャン</div>
</div>
<div class="settings-item-right">
<select data-setting="translation.convertHiraganaToKatakana">
@@ -1333,7 +1333,7 @@
<div class="settings-item"><div class="settings-item-inner settings-item-inner-wrappable">
<div class="settings-item-left">
<div class="settings-item-label">Convert katakana to hiragana</div>
- <div class="settings-item-description">ヨミチャン&#x3000;&rarr;&#x3000;よみちゃん</div>
+ <div class="settings-item-description" lang="ja">ヨミチャン&#x3000;&rarr;&#x3000;よみちゃん</div>
</div>
<div class="settings-item-right">
<select data-setting="translation.convertKatakanaToHiragana">
@@ -1346,7 +1346,7 @@
<div class="settings-item"><div class="settings-item-inner settings-item-inner-wrappable">
<div class="settings-item-left">
<div class="settings-item-label">Collapse emphatic character sequences</div>
- <div class="settings-item-description">すっっごーーい&#x3000;&rarr;&#x3000;すっごーい / すごい</div>
+ <div class="settings-item-description" lang="ja">すっっごーーい&#x3000;&rarr;&#x3000;すっごーい / すごい</div>
</div>
<div class="settings-item-right">
<select data-setting="translation.collapseEmphaticSequences">
@@ -2228,7 +2228,7 @@
Change which voice is used for text-to-speech audio playback.
</p>
<div class="horizontal-flex">
- <input type="text" value="よみちゃん" id="text-to-speech-voice-test-text" autocomplete="off">
+ <input type="text" value="よみちゃん" id="text-to-speech-voice-test-text" autocomplete="off" lang="ja">
<button id="text-to-speech-voice-test">Test</button>
<a class="more-toggle" data-parent-distance="3">Hide&hellip;</a>
</div>
@@ -2770,7 +2770,7 @@
<div class="anki-card-templates-test-table-header">Scanned text</div>
<div class="anki-card-templates-test-table-header">Card field</div>
<div></div>
- <input type="text" id="anki-card-templates-test-text-input" class="form-control" value="読め" placeholder="Preview text" autocomplete="off">
+ <input type="text" id="anki-card-templates-test-text-input" class="form-control" value="読め" placeholder="Preview text" autocomplete="off" lang="ja">
<div class="anki-card-templates-test-input-container">
<input type="text" class="input-with-suffix-button" id="anki-card-templates-test-field-input" value="{expression}" placeholder="{marker}" autocomplete="off" spellcheck="false">
<button class="input-suffix-button input-suffix-icon-button" id="anki-card-templates-test-field-menu-button" data-menu="anki-card-all-field-menu" data-menu-position="below left"><span class="icon icon-button-icon-light" data-icon="material-down-arrow"></span></button>
@@ -2926,9 +2926,9 @@
<div class="translation-text-replacement-test-label translation-text-replacement-test-node">Test Input:</div>
<div class="translation-text-replacement-test-container translation-text-replacement-test-node">
- <input type="text" class="translation-text-replacement-test-input">
+ <input type="text" class="translation-text-replacement-test-input" lang="ja">
<div class="translation-text-replacement-test-label-inner">Output:</div>
- <input type="text" class="translation-text-replacement-test-output" readonly>
+ <input type="text" class="translation-text-replacement-test-output" lang="ja" readonly>
</div>
</div></template>
@@ -2991,10 +2991,10 @@
</select>
</td>
<td>
- <input type="text" class="sentence-termination-character-input1" maxlength="1">
+ <input type="text" class="sentence-termination-character-input1" maxlength="1" lang="ja">
</td>
<td>
- <input type="text" class="sentence-termination-character-input2" maxlength="1">
+ <input type="text" class="sentence-termination-character-input2" maxlength="1" lang="ja">
<div class="sentence-termination-character-input2-alt">&mdash;</div>
</td>
<td>