Skip to content

Commit

Permalink
Update texts and translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Mar 27, 2022
1 parent b1e67ac commit 79e9369
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 30 deletions.
8 changes: 4 additions & 4 deletions app/application/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,13 @@ <h5 class="build-content m-0 mx-3 flex flex-row text-center font-bold">You are r
<h1 class="h1 mb-5">Authme</h1>
<div class="mx-auto hidden w-2/3 rounded-2xl bg-gray-800 pb-5" id="choose">
<h3 data-loc class="pt-3">Import your codes</h3>
<h4 data-loc>Create your import file from your 2FA codes, or if you have an import file choose it.</h4>
<h4 data-loc>Import your 2FA codes, or if you have an import file choose it.</h4>
<div class="flex flex-row flex-wrap items-center justify-center gap-3">
<button class="buttoni" onclick="createFile()">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z" />
</svg>
<span data-loc>Create import file</span>
<span data-loc>Import codes</span>
</button>
<button class="buttoni" id="input" onclick="loadFile()">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
Expand Down
6 changes: 3 additions & 3 deletions app/import/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h5 class="build-content m-0 mx-3 flex flex-row text-center font-bold">You are r
<div class="mx-auto mt-40 w-3/5 rounded-2xl bg-gray-700 text-center">
<img src="../../img/header.png" class="relative top-5 h-16 w-16" />
<h2>Import</h2>
<h4 data-loc>You can create your import file here, see supported QR codes for more information.</h4>
<h4 data-loc>You can import your 2FA codes here, see supported QR codes for more information.</h4>
<button class="buttoni mb-6" onclick="hide()">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z" />
Expand Down Expand Up @@ -67,8 +67,8 @@ <h5 data-loc class="m-0">Starts with: (otpauth-migration://).</h5>

<!-- create import file -->
<div class="mx-auto mb-10 w-2/3 rounded-2xl bg-gray-800">
<h3 class="pt-5" data-loc>Create import file</h3>
<h4 data-loc>Create your import file here. Choose the most convenient way for you.</h4>
<h3 class="pt-5" data-loc>Import codes</h3>
<h4 data-loc>You can import your 2FA codes many way Choose the most convenient way for you.</h4>
<div class="flex flex-col flex-wrap items-center justify-center gap-3">
<div class="chooseImages m-1">
<button class="buttoni" onclick="chooseImages()">
Expand Down
8 changes: 4 additions & 4 deletions app/settings/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -504,12 +504,12 @@ <h4>You can turn on Import screen capture. You can scan QR codes from your scree
></a>
<span id="tgt8" class="text-xl text-black">-</span>
</div>
<!-- <hr />
<hr />
<div>
<h3>Backup</h3>
<h4>You can create backup codes and backup files.</h4>
<div class="flex flex-row flex-wrap justify-center gap-3">
<button class="buttoni" onclick="backupFile()">
<button class="buttoni" onclick="createBackupFile()">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M14 3v4a1 1 0 0 0 1 1h4"></path>
Expand All @@ -518,7 +518,7 @@ <h4>You can create backup codes and backup files.</h4>
Create backup file
</button>

<button class="buttoni" onclick="backupFile()">
<button class="buttoni" onclick="loadBackupFile()">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M14 3v4a1 1 0 0 0 1 1h4"></path>
Expand All @@ -527,7 +527,7 @@ <h4>You can create backup codes and backup files.</h4>
Load backup file
</button>
</div>
</div> -->
</div>
</div>
</div>
</div>
Expand Down
18 changes: 9 additions & 9 deletions languages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ module.exports = {
"Star on GitHub",
"Provide feedback",
"Import your codes",
"Create your import file from your 2FA codes, or if you have an import file choose it.",
"Create import file",
"Import your 2FA codes, or if you have an import file choose it.",
"Import codes",
"Choose import file",
"Getting started",
"Importing files",
Expand All @@ -145,6 +145,7 @@ module.exports = {
"application_dialog": {
"choose_import_file" : "Import from Authme import file",
"authme_file": "Authme file",
"authme_backup_file": "Authme Backup file",
"old_file_0": "This file is an Authme",
"old_file_1": "file! \n\nYou need an Authme export or import file!",
"codes_saved": "Loaded 2FA codes saved! \n\nIf you want to add more codes or delete codes go to Edit codes under Tools!",
Expand Down Expand Up @@ -225,7 +226,7 @@ module.exports = {
},

"import": [
"You can create your import file here, see supported QR codes for more information.",
"You can import your 2FA codes here, see supported QR codes for more information.",
"Close window",
"Supported QR codes",
"List of the currently supported QR codes. You can import from more types at the same time.",
Expand All @@ -240,8 +241,8 @@ module.exports = {
"Example: (Google Authenticator).",
"Starts with: (otpauth-migration://).",
"Detailed steps",
"Create import file",
"Create your import file here. Choose the most convenient way for you.",
"Import codes",
"You can import your 2FA codes many way. Choose the most convenient way for you.",
"Choose images",
"Choose images that contain a 2FA QR code.",
"Use webcam",
Expand All @@ -261,13 +262,12 @@ module.exports = {
"webcam_used": "Webcam in use! \n\nPlease check if your webcam is not used by another application.",
"no_qrcode_found_0": "No QR code found on the picture:",
"no_qrcode_found_1": "\n\nTry to take a better picture and try again!",
"correct_qrcode_found_0": "QR codes imported, you have saved codes, so you can add your new codes under Edit codes.",
"correct_qrcode_found_1": "\n\nNow select where do you want to save the file!",
"correct_qrcode_found_2": "QR codes imported, go back to the main page to see codes!",
"correct_qrcode_found_3": "\n\nDo you want to save the file for a backup?",
"correct_qrcode_found_0": "QR codes imported, go back to the main page to see and save the codes.",
"correct_qrcode_found_1": "\n\nDo you want to save the file for a backup?",
"wrong_qrcode_found_0": "Wrong QR code found on the picture:",
"wrong_qrcode_found_1": "\n\nMake sure this is a correct QR code and try again!",
"capture_error": "Error starting capture!",
"no_qrcode_captured": "Not found any QR code on your screen! Make sure the QR code is visible or try to screenshot the QR code and import it as an image!",
},

"export": [
Expand Down
20 changes: 10 additions & 10 deletions languages/hu.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ module.exports = {
"Csillagozás a GitHub-on",
"Visszajelzés",
"Kódok importálása",
"Hozd létre az import fájlodat a 2FA kódjaidból, vagy ha már van import fájlod válaszd ki a azt.",
"Fájl létrehozása",
"Fájl választása",
"Importáld a 2FA kódjaidat, vagy ha már van import fájlod válaszd ki a azt.",
"Kódok importálása",
"Fájl kiválasztása",
"Első lépések",
"Fájlok importálása",
"Segítség",
Expand All @@ -145,6 +145,7 @@ module.exports = {
"application_dialog": {
"choose_import_file" : "Authme import fájl kiválasztása",
"authme_file": "Authme fájl",
"authme_backup_file": "Authme Backup fájl",
"old_file_0": "Ez a fájl egy Authme",
"old_file_1": "fájl! \n\nVálassz egy Authme export vagy import fájlt!",
"codes_saved": "A betöltött 2FA kódjaid mentve! \n\nHa akarsz még kódokat hozzáadni vagy törölni akkor kattints az Eszközökre és Kódok szerkesztése!",
Expand Down Expand Up @@ -225,7 +226,7 @@ module.exports = {
},

"import": [
"Itt tudod létrehozni az import fájlodat, több információért nézd meg a támogatott QR-kódokat.",
"Itt tudod importálni a 2FA kódjaidat, több információért nézd meg a támogatott QR-kódokat.",
"Ablak bezárása",
"Támogatott QR-kódok",
"A jelenleg támogatott QR-kódok listája. Több féle típusból is importálhatsz egyszerre.",
Expand All @@ -240,8 +241,8 @@ module.exports = {
"Például: (Google Authenticator).",
"Ezzel kezdődik: (otpauth-migration://).",
"Részletes leírás",
"Import fájl létrehozása",
"Itt tudod létrehozni az import fájlod. Válaszd ki a számodra legkényelmesebb módot.",
"Kódok importálása",
"Sokféleképpen tudod importálni a 2FA kódjaidat. Válaszd ki a számodra legkényelmesebb módot.",
"Képek kiválasztása",
"Válassz olyan képeket amik 2FA QR-kódokat tartalmaznak.",
"Webkamera",
Expand All @@ -261,13 +262,12 @@ module.exports = {
"webcam_used": "Webkamera használatban! \n\nEllenőrizd hogy a webkamerád megfelelően működik vagy nem használja más alkamazás.",
"no_qrcode_found_0": "Nem található QR kód a képen:",
"no_qrcode_found_1": "\n\nPróbálj készíteni egy jobb képet.",
"correct_qrcode_found_0": "QR-kódok importálva, mivel már vannak mentett kódjaid a Kódok szerkesztés-énél tudod hozzáadni az új kódjaidat!",
"correct_qrcode_found_1": "\n\nVálaszd ki hova akarod menteni a fájlt!",
"correct_qrcode_found_2": "QR-kódok importálva, menj vissza főoldalra hogy megtekintsd a kódjaidat!",
"correct_qrcode_found_3": "\n\nEl akarod menteni az import fájlt a biztonság kedvéért?",
"correct_qrcode_found_0": "QR-kódok importálva, menj vissza főoldalra hogy megtekintsd és elmentsd a kódjaidat!",
"correct_qrcode_found_1": "\n\nEl akarod menteni az import fájlt a biztonság kedvéért?",
"wrong_qrcode_found_0": "Nem megfelelő QR-kód van ezeken a képeken:",
"wrong_qrcode_found_1": "\n\nGyőződj meg róla hogy ez egy jó QR-kód!",
"capture_error": "Nem sikerült a képernyő rögzítése!",
"no_qrcode_captured": "Nem sikerült QR-kódot találni a képernyődön! Győződj meg róla hogy a QR-kód látható vagy próbálj meg egy képernyőképet készíteni a QR-kódról és importáld be képként!",
},

"export": [
Expand Down
11 changes: 11 additions & 0 deletions lib/typedef.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,14 @@
* @property {Date} date - Date when the file created
* @property {number} version - Indicates version (3)
*/

/**
* .authmebackup file structure
* @typedef {object} LibAuthmeBackupFile
* @property {string} codes - Base64 encoded string
* @property {string} hash - Hashed backup key
* @property {string|null} key - Encryption key
* @property {string|null} password - Used password
* @property {Date} date - Date when the file created
* @property {number} version - Indicates version (1)
*/

0 comments on commit 79e9369

Please sign in to comment.