Skip to content

Commit

Permalink
Update translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Feb 4, 2022
1 parent a9729b1 commit cad8ca1
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 14 deletions.
8 changes: 4 additions & 4 deletions app/settings/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -353,23 +353,23 @@ <h4 data-loc>You can view the logs for debugging. You can view all the logs in t

<!-- codes -->
<div id="codes" class="tabcontent part hidden">
<h3>Sort codes</h3>
<h4>You can choose how to sort the codes. By default codes are sorted by importing order.</h4>
<h3 data-loc>Sort codes</h3>
<h4 data-loc>You can choose how to sort the codes. By default codes are sorted by importing order.</h4>

<div class="relative inline-block">
<button id="sortButton" class="buttoni" onclick="sortDropdown()">
<svg xmlns="http://www.w3.org/2000/svg" class="relative top-1 h-6 w-6 pointer-events-none" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 9l4-4 4 4m0 6l-4 4-4-4" />
</svg>
Default
<span class="sortDefault">Default</span>
</button>

<div id="sortContent" class="animation hidden absolute right-0 z-20 w-72 mt-2 bg-white rounded-2xl overflow-hidden border-white border-2">
<a href="#" onclick="sortDropdownChoose(0)" class="block no-underline text-xl px-2 py-2 transform duration-200 ease-in text-black hover:bg-gray-600 hover:text-white">
<svg xmlns="http://www.w3.org/2000/svg" class="relative top-1 h-6 w-6 pointer-events-none" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 9l4-4 4 4m0 6l-4 4-4-4" />
</svg>
Default
<span class="sortContentDefault">Default</span>
</a>
<a href="#" onclick="sortDropdownChoose(1)" class="block no-underline text-xl px-2 py-2 transform duration-200 ease-in text-black hover:bg-gray-600 hover:text-white">
<svg xmlns="http://www.w3.org/2000/svg" class="relative top-1 h-6 w-6 pointer-events-none" fill="none" viewBox="0 0 24 24" stroke="currentColor">
Expand Down
5 changes: 4 additions & 1 deletion app/settings/src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,9 @@ const hardwareAcceleration = () => {
*/
let sort_shown = false

document.querySelector(".sortDefault").textContent = lang.text.default
document.querySelector(".sortContentDefault").textContent = lang.text.default

// show dropdown
const sortDropdown = () => {
const sort_content = document.querySelector("#sortContent")
Expand Down Expand Up @@ -596,7 +599,7 @@ const sortDropdownChoose = (id) => {
case 0:
sort_button.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" class="relative top-1 h-6 w-6 pointer-events-none" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 9l4-4 4 4m0 6l-4 4-4-4" />
</svg> Default`
</svg> ${lang.text.default}`

settings.settings.sort = null
break
Expand Down
9 changes: 6 additions & 3 deletions languages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {
"settings": "Settings",
"exit": "Exit",
"view": "View",
"reset": "Reset",
"reset": "Reset Zoom",
"zoom_in": "Zoom In",
"zoom_out": "Zoom Out",
"tools": "Tools",
Expand All @@ -29,9 +29,9 @@ module.exports = {
"help": "Help",
"documentation": "Documentation",
"release_notes": "Release Notes",
"support_development": "Support Development",
"support_development": "Support",
"about": "About",
"show_licenses": "Show Licenses",
"show_licenses": "Licenses",
"update": "Update",
"info": "Version",
},
Expand Down Expand Up @@ -67,6 +67,7 @@ module.exports = {
"time": "Time",
"latest_save": "Latest save",
"display": "Display",
"default": "Default",
},

"landing": [
Expand Down Expand Up @@ -177,6 +178,8 @@ module.exports = {
"You can view the logs for debugging. You can view all the logs in the settings folder.",
"Latest log",
"Logs folder",
"Sort codes",
"You can choose how to sort the codes. By default codes are sorted by importing order.",
"Codes description",
"The saved codes description will be visible. You can copy it after clicking it.",
"Blur codes",
Expand Down
15 changes: 9 additions & 6 deletions languages/hu.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ module.exports = {
"show_app": "Authme Megjelenítése",
"hide_app": "Authme Elrejtése",
"settings": "Beállítások",
"exit": "Bezárás",
"exit": "Kilépés",
"view": "Nézet",
"reset": "Visszaállítás",
"zoom_in": "Kezelőfelület Nagyítása",
"zoom_out": "Kezelőfelület Kicsinyítése",
"zoom_in": "Nagyítás",
"zoom_out": "Kicsinyítés",
"tools": "Eszközök",
"edit_codes": "Kódok szerkesztése",
"import": "Import",
"export": "Export",
"help": "Segítség",
"documentation": "Dokumentáció",
"release_notes": "Frissítési Jegyzetek",
"support_development": "Authme Támogatása",
"release_notes": "Újdonságok",
"support_development": "Támogatás",
"about": "Névjegy",
"show_licenses": "Licenszek Megjelenítése",
"show_licenses": "Licenszek",
"update": "Frissítés",
"info": "Verzió",
},
Expand Down Expand Up @@ -67,6 +67,7 @@ module.exports = {
"time": "Idő",
"latest_save": "Legfrisebb mentés",
"display": "Monitor",
"default": "Alapértelmezett",
},

"landing": [
Expand Down Expand Up @@ -177,6 +178,8 @@ module.exports = {
"Megnézheted a logokat ha hibákat tapasztalsz. Az összes logot a beállítások mappába találod.",
"Legújabb log",
"Log mappa",
"Kódok rendezése",
"Itt tudod kiválasztani milyen sorrendben jelennek meg a kódok. Alapértelmezetten a kódok az importálás sorrendjében vannak.",
"Kódok leírása",
"A mentett kódok leírása látható lesz. Kattintás után másolhatod a leírást.",
"Kódok elhomályosítása",
Expand Down

0 comments on commit cad8ca1

Please sign in to comment.