mirror of
https://github.com/seiichiro0185/sailotp.git
synced 2024-12-22 11:42:30 +00:00
Added translations for QR-Reader
This commit is contained in:
parent
965c7a382e
commit
f31998f6e2
3 changed files with 176 additions and 105 deletions
130
i18n/de.ts
130
i18n/de.ts
|
@ -34,57 +34,57 @@ Lizenz: BSD (3-Klausel)</translation>
|
|||
<context>
|
||||
<name>AddOTP</name>
|
||||
<message>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="57"/>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="58"/>
|
||||
<source>Save</source>
|
||||
<translation>Speichern</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="57"/>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="58"/>
|
||||
<source>Add</source>
|
||||
<translation>Hinzufügen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="62"/>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="63"/>
|
||||
<source>Type</source>
|
||||
<translation>Typ</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="64"/>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="65"/>
|
||||
<source>Time-based (TOTP)</source>
|
||||
<translation>Zeitbasiert (TOTP)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="65"/>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="66"/>
|
||||
<source>Counter-based (HOTP)</source>
|
||||
<translation>Zählerbasiert (HOTP)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="71"/>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="72"/>
|
||||
<source>Title</source>
|
||||
<translation>Titel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="72"/>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="73"/>
|
||||
<source>Title for the OTP</source>
|
||||
<translation>Titel für das Token</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="80"/>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="85"/>
|
||||
<source>Secret (at least 16 characters)</source>
|
||||
<translation>Schlüssel (mindestens 16 Zeichen)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="82"/>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="87"/>
|
||||
<source>Secret OTP Key</source>
|
||||
<translation>Geheimer Schlüssel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="90"/>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="99"/>
|
||||
<source>Next Counter Value</source>
|
||||
<translation>Nächster Zählerwert</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="92"/>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="101"/>
|
||||
<source>Next Value of the Counter</source>
|
||||
<translation>Nächster Wert für den Zähler</translation>
|
||||
</message>
|
||||
|
@ -102,102 +102,104 @@ Lizenz: BSD (3-Klausel)</translation>
|
|||
<translation>Gewählte Datei existiert nicht!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="92"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="89"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="105"/>
|
||||
<source>Export</source>
|
||||
<translation>Export</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="92"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="89"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="105"/>
|
||||
<source>Import</source>
|
||||
<translation>Import</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="99"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="112"/>
|
||||
<source>Filename</source>
|
||||
<translation>Dateiname</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="100"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="113"/>
|
||||
<source>File to import</source>
|
||||
<translation>Aus Datei importieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="100"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="113"/>
|
||||
<source>File to export</source>
|
||||
<translation>In Datei exportieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="109"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="126"/>
|
||||
<source>Overwrite existing</source>
|
||||
<translation>Existierende überschreiben</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="115"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="132"/>
|
||||
<source>Password</source>
|
||||
<translation>Passwort</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="116"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="133"/>
|
||||
<source>Password for the file</source>
|
||||
<translation>Passwort für die Datei</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="125"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="146"/>
|
||||
<source>Passwords don't match!</source>
|
||||
<translation>Passwörter nicht identisch!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="125"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="146"/>
|
||||
<source>Passwords match!</source>
|
||||
<translation>Passwörter identisch!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="126"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="147"/>
|
||||
<source>Repeated Password for the file</source>
|
||||
<translation>Passwort wiederholen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="146"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="171"/>
|
||||
<source>Here you can Import Tokens from a file. Put in the file location and the password you used on export. Pull left to start the import.</source>
|
||||
<translation>Hier können Tokens aus einer Datei importiert werden. Gib die Datei und das beim Export gewählte Passwort ein. Nach links ziehen um zu starten.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="162"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="187"/>
|
||||
<source>Here you can export Tokens to a file. The exported file will be encrypted with AES-256-CBC and Base64 encoded. Choose a strong password, the file will contain the secrets used to generate the Tokens for your accounts. Pull left to start the export.</source>
|
||||
<translation>Hier können Tokens in eine Datei exportiert werden. Die Datei wird mit AES-256-CBC verschlüsselt und Base64-kodiert. Wähle ein starkes Passwort, die Datei enthält die geheimen Schlüssel zur Erzeugung der Tokens für deine Accounts. Nach links ziehen um zu starten.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="184"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="209"/>
|
||||
<source>Error writing to file </source>
|
||||
<translation>Fehler beim Schreiben der Datei</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="186"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="211"/>
|
||||
<source>Token Database exported to </source>
|
||||
<translation>Datenbank exportiert nach </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="189"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="214"/>
|
||||
<source>Could not encrypt tokens. Error: </source>
|
||||
<translation>Fehler beim Verschlüsseln. Fehler: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="192"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="217"/>
|
||||
<source>Could not read tokens from Database</source>
|
||||
<translation>Datenbank konnte nicht gelesen werden</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="203"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="228"/>
|
||||
<source>Tokens imported from </source>
|
||||
<translation>Tokens importiert aus </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="208"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="233"/>
|
||||
<source>Unable to decrypt file, did you use the right password?</source>
|
||||
<translation>Fehler beim entschlüsseln, falsches Passwort?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="211"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="236"/>
|
||||
<source>Could not read from file </source>
|
||||
<translation>Datei konnte nicht gelesen werden</translation>
|
||||
</message>
|
||||
|
@ -205,59 +207,99 @@ Lizenz: BSD (3-Klausel)</translation>
|
|||
<context>
|
||||
<name>MainView</name>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainView.qml" line="111"/>
|
||||
<location filename="../qml/pages/MainView.qml" line="102"/>
|
||||
<source>About</source>
|
||||
<translation>Über</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainView.qml" line="115"/>
|
||||
<source>Export Token-DB</source>
|
||||
<translation>Datenbank exportieren</translation>
|
||||
<translation type="vanished">Datenbank exportieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainView.qml" line="119"/>
|
||||
<source>Import Token-DB</source>
|
||||
<translation>Datenbank importieren</translation>
|
||||
<translation type="vanished">Datenbank importieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainView.qml" line="123"/>
|
||||
<location filename="../qml/pages/MainView.qml" line="106"/>
|
||||
<source>Export / Import</source>
|
||||
<translation>Export / Import</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainView.qml" line="110"/>
|
||||
<source>Add Token</source>
|
||||
<translation>Token hinzufügen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainView.qml" line="149"/>
|
||||
<location filename="../qml/pages/MainView.qml" line="136"/>
|
||||
<source>Nothing here</source>
|
||||
<translation>Hier ist nichts</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainView.qml" line="150"/>
|
||||
<location filename="../qml/pages/MainView.qml" line="137"/>
|
||||
<source>Pull down to add a OTP</source>
|
||||
<translation>Nach unten ziehen zum hinzufügen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainView.qml" line="161"/>
|
||||
<location filename="../qml/pages/MainView.qml" line="148"/>
|
||||
<source>Deleting</source>
|
||||
<translation>Lösche</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainView.qml" line="166"/>
|
||||
<location filename="../qml/pages/MainView.qml" line="153"/>
|
||||
<source>Token for </source>
|
||||
<translation>Token für </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainView.qml" line="166"/>
|
||||
<location filename="../qml/pages/MainView.qml" line="153"/>
|
||||
<source> copied to clipboard</source>
|
||||
<translation> kopiert</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainView.qml" line="234"/>
|
||||
<location filename="../qml/pages/MainView.qml" line="221"/>
|
||||
<source>Edit</source>
|
||||
<translation>Bearbeiten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainView.qml" line="240"/>
|
||||
<location filename="../qml/pages/MainView.qml" line="227"/>
|
||||
<source>Delete</source>
|
||||
<translation>Löschen</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ScanOTP</name>
|
||||
<message>
|
||||
<location filename="../qml/pages/ScanOTP.qml" line="53"/>
|
||||
<source>Can't access temporary directory</source>
|
||||
<translation>Kein Zugriff auf temporäres Verzeichnis.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ScanOTP.qml" line="63"/>
|
||||
<source>Add manually</source>
|
||||
<translation>Manuell hinzufügen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ScanOTP.qml" line="70"/>
|
||||
<source>Scan Code</source>
|
||||
<translation>Code scannen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ScanOTP.qml" line="70"/>
|
||||
<source>Scanning...</source>
|
||||
<translation>scanne...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ScanOTP.qml" line="108"/>
|
||||
<source>No valid Token data found.</source>
|
||||
<translation>Kein gültiges Token gefunden.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ScanOTP.qml" line="149"/>
|
||||
<source>Tap the picture to start / stop scanning. Pull down to add Token manually.</source>
|
||||
<translation>Vorschau antippen um den Scan zu starten / zu stoppen. Nach unten ziehen um manuell hinzu zu fügen.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Tap the picture to start scanning. Pull down to add Token manually.</source>
|
||||
<translation type="vanished">Vorschau antippen um den Scan zu starten. Nach unten ziehen um manuell hinzu zu fügen.</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
|
124
i18n/en.ts
124
i18n/en.ts
|
@ -24,57 +24,57 @@ License: BSD (3-clause)</source>
|
|||
<context>
|
||||
<name>AddOTP</name>
|
||||
<message>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="57"/>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="58"/>
|
||||
<source>Save</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="57"/>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="58"/>
|
||||
<source>Add</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="62"/>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="63"/>
|
||||
<source>Type</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="64"/>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="65"/>
|
||||
<source>Time-based (TOTP)</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="65"/>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="66"/>
|
||||
<source>Counter-based (HOTP)</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="71"/>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="72"/>
|
||||
<source>Title</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="72"/>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="73"/>
|
||||
<source>Title for the OTP</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="80"/>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="85"/>
|
||||
<source>Secret (at least 16 characters)</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="82"/>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="87"/>
|
||||
<source>Secret OTP Key</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="90"/>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="99"/>
|
||||
<source>Next Counter Value</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="92"/>
|
||||
<location filename="../qml/pages/AddOTP.qml" line="101"/>
|
||||
<source>Next Value of the Counter</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
|
@ -92,102 +92,104 @@ License: BSD (3-clause)</source>
|
|||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="92"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="89"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="105"/>
|
||||
<source>Export</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="92"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="89"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="105"/>
|
||||
<source>Import</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="99"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="112"/>
|
||||
<source>Filename</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="100"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="113"/>
|
||||
<source>File to import</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="100"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="113"/>
|
||||
<source>File to export</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="109"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="126"/>
|
||||
<source>Overwrite existing</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="115"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="132"/>
|
||||
<source>Password</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="116"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="133"/>
|
||||
<source>Password for the file</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="125"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="146"/>
|
||||
<source>Passwords don't match!</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="125"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="146"/>
|
||||
<source>Passwords match!</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="126"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="147"/>
|
||||
<source>Repeated Password for the file</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="146"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="171"/>
|
||||
<source>Here you can Import Tokens from a file. Put in the file location and the password you used on export. Pull left to start the import.</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="162"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="187"/>
|
||||
<source>Here you can export Tokens to a file. The exported file will be encrypted with AES-256-CBC and Base64 encoded. Choose a strong password, the file will contain the secrets used to generate the Tokens for your accounts. Pull left to start the export.</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="184"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="209"/>
|
||||
<source>Error writing to file </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="186"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="211"/>
|
||||
<source>Token Database exported to </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="189"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="214"/>
|
||||
<source>Could not encrypt tokens. Error: </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="192"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="217"/>
|
||||
<source>Could not read tokens from Database</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="203"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="228"/>
|
||||
<source>Tokens imported from </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="208"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="233"/>
|
||||
<source>Unable to decrypt file, did you use the right password?</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="211"/>
|
||||
<location filename="../qml/pages/ExportPage.qml" line="236"/>
|
||||
<source>Could not read from file </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
|
@ -195,59 +197,87 @@ License: BSD (3-clause)</source>
|
|||
<context>
|
||||
<name>MainView</name>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainView.qml" line="111"/>
|
||||
<location filename="../qml/pages/MainView.qml" line="102"/>
|
||||
<source>About</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainView.qml" line="115"/>
|
||||
<source>Export Token-DB</source>
|
||||
<location filename="../qml/pages/MainView.qml" line="106"/>
|
||||
<source>Export / Import</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainView.qml" line="119"/>
|
||||
<source>Import Token-DB</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainView.qml" line="123"/>
|
||||
<location filename="../qml/pages/MainView.qml" line="110"/>
|
||||
<source>Add Token</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainView.qml" line="149"/>
|
||||
<location filename="../qml/pages/MainView.qml" line="136"/>
|
||||
<source>Nothing here</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainView.qml" line="150"/>
|
||||
<location filename="../qml/pages/MainView.qml" line="137"/>
|
||||
<source>Pull down to add a OTP</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainView.qml" line="161"/>
|
||||
<location filename="../qml/pages/MainView.qml" line="148"/>
|
||||
<source>Deleting</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainView.qml" line="166"/>
|
||||
<location filename="../qml/pages/MainView.qml" line="153"/>
|
||||
<source>Token for </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainView.qml" line="166"/>
|
||||
<location filename="../qml/pages/MainView.qml" line="153"/>
|
||||
<source> copied to clipboard</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainView.qml" line="234"/>
|
||||
<location filename="../qml/pages/MainView.qml" line="221"/>
|
||||
<source>Edit</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainView.qml" line="240"/>
|
||||
<location filename="../qml/pages/MainView.qml" line="227"/>
|
||||
<source>Delete</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ScanOTP</name>
|
||||
<message>
|
||||
<location filename="../qml/pages/ScanOTP.qml" line="53"/>
|
||||
<source>Can't access temporary directory</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ScanOTP.qml" line="63"/>
|
||||
<source>Add manually</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ScanOTP.qml" line="70"/>
|
||||
<source>Scan Code</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ScanOTP.qml" line="70"/>
|
||||
<source>Scanning...</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ScanOTP.qml" line="108"/>
|
||||
<source>No valid Token data found.</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/ScanOTP.qml" line="149"/>
|
||||
<source>Tap the picture to start / stop scanning. Pull down to add Token manually.</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
|
|
@ -39,6 +39,7 @@ Page {
|
|||
id: scanPage
|
||||
|
||||
property QtObject parentPage: null
|
||||
property bool scanning: false
|
||||
|
||||
Timer {
|
||||
id: scanTimer
|
||||
|
@ -47,7 +48,6 @@ Page {
|
|||
repeat: false
|
||||
onTriggered: {
|
||||
if (fileIO.mkpath(XDG_CACHE_DIR)) {
|
||||
busy.running = true
|
||||
cam.imageCapture.captureToLocation(XDG_CACHE_DIR + "/qrscan.jpg");
|
||||
} else {
|
||||
notify.show(qsTr("Can't access temporary directory"), 3000);
|
||||
|
@ -67,15 +67,7 @@ Page {
|
|||
|
||||
PageHeader {
|
||||
id: header
|
||||
title: "Scan Code"
|
||||
}
|
||||
|
||||
BusyIndicator {
|
||||
id: busy
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: 16
|
||||
running: false
|
||||
title: scanning ? qsTr("Scanning...") : qsTr("Scan Code")
|
||||
}
|
||||
|
||||
Camera {
|
||||
|
@ -101,7 +93,7 @@ Page {
|
|||
onTagFound: {
|
||||
console.log("Barcode data: " + tag)
|
||||
var ret = URL.decode(tag);
|
||||
busy.running = false
|
||||
scanning = false
|
||||
if (ret && ret.type != "" && ret.title != "" && ret.secret != "" && (ret.counter != "" || ret.type == "TOTP")) {
|
||||
pageStack.replace(Qt.resolvedUrl("AddOTP.qml"), {parentPage: parentPage, paramLabel: ret.title, paramKey: ret.secret, paramType: ret.type, paramCounter: ret.counter, paramNew: true})
|
||||
} else {
|
||||
|
@ -109,7 +101,7 @@ Page {
|
|||
}
|
||||
}
|
||||
|
||||
onDecodingFinished: if (succeeded==false) scanTimer.start();
|
||||
onDecodingFinished: if (succeeded==false && scanning) scanTimer.start();
|
||||
}
|
||||
|
||||
FileIO {
|
||||
|
@ -123,7 +115,14 @@ Page {
|
|||
source: cam
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: scanTimer.start();
|
||||
onClicked: {
|
||||
if (scanning) {
|
||||
scanning = false;
|
||||
} else {
|
||||
scanning = true;
|
||||
scanTimer.start();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -139,7 +138,7 @@ Page {
|
|||
maximumLineCount: 4
|
||||
font.pixelSize: Theme.fontSizeSmall
|
||||
color: Theme.primaryColor
|
||||
text: qsTr("Tap the picture to start scanning. Pull down to add Token manually.")
|
||||
text: qsTr("Tap the picture to start / stop scanning. Pull down to add Token manually.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue