Skip to content

Commit

Permalink
Fix full langauge support
Browse files Browse the repository at this point in the history
  • Loading branch information
DjCrqss committed Jan 17, 2025
1 parent 674410a commit 306f3d4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,15 @@ <h2 data-i18n="menus.language.title">Language</h2>
class="infoField" data-i18n="menus.language.title">Language</span></i>
</div>

<span id="selectionhint" data-i18n="edit.selectionhint">[Shift click] to select multiple leys.&emsp;&emsp;|&emsp;&emsp;[CTRL + A] to select all keys.</span>
<span id="selectionhint" data-i18n="edit.selectionhint">[Shift click] to select multiple keys.&emsp;&emsp;|&emsp;&emsp;[CTRL + A] to select all keys.</span>

<!-- Key option dialog -->
<div id="keyOptionDialog">
<span data-i18n="edit.rename">Rename:
<div><span data-i18n="edit.rename">Rename:</span>
<input type="text" id="keyLabel" placeholder="New name" style="width: 100%"
onkeydown="if(event.keyCode === 13) updateKeyLabel(this)">
</span>
<span data-i18n="edit.filldir">Fill dir.
</div>
<div><span data-i18n="edit.filldir">Fill dir.</span>
<table class="directions">
<tr>
<td id="topLeft" onclick=updateKeySettings(this.id)>🡦</td>
Expand All @@ -170,7 +170,7 @@ <h2 data-i18n="menus.language.title">Language</h2>
<td id="horizontal" onclick=updateKeySettings(this.id)></td>
</tr>
</table>
</span>
</div>

<span class="deleteButton" onclick=removeKey() data-i18n="edit.remove">Remove</span>
</div>
Expand Down
30 changes: 16 additions & 14 deletions pages/globaldefault/data/languages.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,18 @@ var english = {
initialhint: "Start typing!",
acitvekeys: "Active Keys",
},
// edit right click
edit: {
rename: "Rename",
filldir: "Fill dir.",
remove: "Remove",
},
// language
language: {
title: "Language",
}
}
},
// edit right click
edit: {
rename: "Rename",
filldir: "Fill dir.",
remove: "Remove",
selectionhint: "[Shift click] to select multiple keys.&emsp;&emsp;|&emsp;&emsp;[CTRL + A] to select all keys."
},

}

Expand Down Expand Up @@ -93,17 +94,18 @@ var chinese = {
initialhint: "开始打字!",
acitvekeys: "活动键",
},
// edit right click
edit: {
rename: "重命名",
filldir: "填充方向",
remove: "消除",
},
// language
language: {
title: "改变语言",
}
}
},
// edit right click
edit: {
rename: "重命名",
filldir: "填充方向",
remove: "消除",
selectionhint: "[Shift 单击] 选择多个键。&emsp;&emsp;|&emsp;&emsp;[CTRL + A] 选择所有键。"
},
}

var translator = new Translator({
Expand Down
2 changes: 1 addition & 1 deletion pages/keysme/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h2 data-i18n="menus.language.title">Language</h2>
class="infoField" data-i18n="menus.language.title">Language</span></i>
</div>

<span id="selectionhint" data-i18n="edit.selectionhint">[Shift click] to select multiple leys.&emsp;&emsp;|&emsp;&emsp;[CTRL + A] to select all keys.</span>
<span id="selectionhint" data-i18n="edit.selectionhint">[Shift click] to select multiple keys.&emsp;&emsp;|&emsp;&emsp;[CTRL + A] to select all keys.</span>


<!-- Key option dialog -->
Expand Down

0 comments on commit 306f3d4

Please sign in to comment.