1
0
Fork 0
mirror of https://github.com/seiichiro0185/sailotp.git synced 2024-11-24 08:19:41 +00:00

Translation, UI-Fixes, Get Digits from OTP-URL

This commit is contained in:
seiichiro 2016-07-17 19:06:09 +02:00
parent 4e83005525
commit 7caade42be
5 changed files with 139 additions and 90 deletions

View file

@ -49,72 +49,88 @@ Lizenz: BSD (3-Klausel)</translation>
<context> <context>
<name>AddOTP</name> <name>AddOTP</name>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="68"/> <location filename="../qml/pages/AddOTP.qml" line="70"/>
<source>Show QR-Code</source> <source>Show QR-Code</source>
<translation>QR-Code anzeigen</translation> <translation>QR-Code anzeigen</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="71"/> <location filename="../qml/pages/AddOTP.qml" line="73"/>
<source>Can&apos;t create QR-Code from incomplete settings!</source> <source>Can&apos;t create QR-Code from incomplete settings!</source>
<translation>Ein QR-Code kann nur mit vollständigen Einstellungen erzeugt werden!</translation> <translation>Ein QR-Code kann nur mit vollständigen Einstellungen erzeugt werden!</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="84"/> <location filename="../qml/pages/AddOTP.qml" line="86"/>
<source>Save</source> <source>Save</source>
<translation>Speichern</translation> <translation>Speichern</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="84"/> <location filename="../qml/pages/AddOTP.qml" line="86"/>
<source>Add</source> <source>Add</source>
<translation>Hinzufügen</translation> <translation>Hinzufügen</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="89"/> <location filename="../qml/pages/AddOTP.qml" line="91"/>
<source>Type</source> <source>Type</source>
<translation>Typ</translation> <translation>Typ</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="91"/> <location filename="../qml/pages/AddOTP.qml" line="93"/>
<source>Time-based (TOTP)</source> <source>Time-based (TOTP)</source>
<translation>Zeitbasiert (TOTP)</translation> <translation>Zeitbasiert (TOTP)</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="92"/> <location filename="../qml/pages/AddOTP.qml" line="94"/>
<source>Counter-based (HOTP)</source> <source>Counter-based (HOTP)</source>
<translation>Zählerbasiert (HOTP)</translation> <translation>Zählerbasiert (HOTP)</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="93"/> <location filename="../qml/pages/AddOTP.qml" line="95"/>
<source>Steam Guard</source> <source>Steam Guard</source>
<translation>Steam Guard</translation> <translation>Steam Guard</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="99"/> <location filename="../qml/pages/AddOTP.qml" line="101"/>
<source>Title</source> <source>Title</source>
<translation>Titel</translation> <translation>Titel</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="100"/> <location filename="../qml/pages/AddOTP.qml" line="102"/>
<source>Title for the OTP</source> <source>Title for the OTP</source>
<translation>Titel für das Token</translation> <translation>Titel für das Token</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="112"/> <location filename="../qml/pages/AddOTP.qml" line="114"/>
<source>Secret (at least 16 characters)</source> <source>Secret (at least 16 characters)</source>
<translation>Schlüssel (mindestens 16 Zeichen)</translation> <translation>Schlüssel (mindestens 16 Zeichen)</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="114"/> <location filename="../qml/pages/AddOTP.qml" line="116"/>
<source>Secret OTP Key</source> <source>Secret OTP Key</source>
<translation>Geheimer Schlüssel</translation> <translation>Geheimer Schlüssel</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="126"/> <location filename="../qml/pages/AddOTP.qml" line="127"/>
<source>Length</source>
<translation>Länge</translation>
</message>
<message>
<location filename="../qml/pages/AddOTP.qml" line="129"/>
<source>Length of the Token</source>
<translation>Länge des Tokens</translation>
</message>
<message>
<location filename="../qml/pages/AddOTP.qml" line="141"/>
<location filename="../qml/pages/AddOTP.qml" line="143"/>
<source>Time Derivation (Seconds)</source>
<translation>Zeitabweichung (Sekunden)</translation>
</message>
<message>
<location filename="../qml/pages/AddOTP.qml" line="155"/>
<source>Next Counter Value</source> <source>Next Counter Value</source>
<translation>Nächster Zählerwert</translation> <translation>Nächster Zählerwert</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="128"/> <location filename="../qml/pages/AddOTP.qml" line="157"/>
<source>Next Value of the Counter</source> <source>Next Value of the Counter</source>
<translation>Nächster Wert für den Zähler</translation> <translation>Nächster Wert für den Zähler</translation>
</message> </message>
@ -237,7 +253,7 @@ Lizenz: BSD (3-Klausel)</translation>
<context> <context>
<name>MainView</name> <name>MainView</name>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="106"/> <location filename="../qml/pages/MainView.qml" line="96"/>
<source>About</source> <source>About</source>
<translation>Über</translation> <translation>Über</translation>
</message> </message>
@ -250,57 +266,57 @@ Lizenz: BSD (3-Klausel)</translation>
<translation type="vanished">Datenbank importieren</translation> <translation type="vanished">Datenbank importieren</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="110"/> <location filename="../qml/pages/MainView.qml" line="100"/>
<source>Export / Import</source> <source>Export / Import</source>
<translation>Export / Import</translation> <translation>Export / Import</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="114"/> <location filename="../qml/pages/MainView.qml" line="104"/>
<source>Add Token</source> <source>Add Token</source>
<translation>Token hinzufügen</translation> <translation>Token hinzufügen</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="144"/> <location filename="../qml/pages/MainView.qml" line="134"/>
<source>Nothing here</source> <source>Nothing here</source>
<translation>Hier ist nichts</translation> <translation>Hier ist nichts</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="145"/> <location filename="../qml/pages/MainView.qml" line="135"/>
<source>Pull down to add a OTP</source> <source>Pull down to add a OTP</source>
<translation>Nach unten ziehen zum hinzufügen</translation> <translation>Nach unten ziehen zum hinzufügen</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="156"/> <location filename="../qml/pages/MainView.qml" line="146"/>
<source>Deleting</source> <source>Deleting</source>
<translation>Lösche</translation> <translation>Lösche</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="172"/> <location filename="../qml/pages/MainView.qml" line="162"/>
<source>Token for </source> <source>Token for </source>
<translation>Token für </translation> <translation>Token für </translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="172"/> <location filename="../qml/pages/MainView.qml" line="162"/>
<source> copied to clipboard</source> <source> copied to clipboard</source>
<translation> kopiert</translation> <translation> kopiert</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="240"/> <location filename="../qml/pages/MainView.qml" line="230"/>
<source>Move up</source> <source>Move up</source>
<translation>Nach oben</translation> <translation>Nach oben</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="245"/> <location filename="../qml/pages/MainView.qml" line="235"/>
<source>Move down</source> <source>Move down</source>
<translation>Nach unten</translation> <translation>Nach unten</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="250"/> <location filename="../qml/pages/MainView.qml" line="240"/>
<source>Edit</source> <source>Edit</source>
<translation>Bearbeiten</translation> <translation>Bearbeiten</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="256"/> <location filename="../qml/pages/MainView.qml" line="246"/>
<source>Delete</source> <source>Delete</source>
<translation>Löschen</translation> <translation>Löschen</translation>
</message> </message>
@ -308,7 +324,7 @@ Lizenz: BSD (3-Klausel)</translation>
<context> <context>
<name>QRPage</name> <name>QRPage</name>
<message> <message>
<location filename="../qml/pages/QRPage.qml" line="73"/> <location filename="../qml/pages/QRPage.qml" line="74"/>
<source>Can&apos;t create QR-Code from incomplete settings!</source> <source>Can&apos;t create QR-Code from incomplete settings!</source>
<translation>Ein QR-Code kann nur mit vollständigen Einstellungen erzeugt werden!</translation> <translation>Ein QR-Code kann nur mit vollständigen Einstellungen erzeugt werden!</translation>
</message> </message>
@ -336,12 +352,12 @@ Lizenz: BSD (3-Klausel)</translation>
<translation>scanne...</translation> <translation>scanne...</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/ScanOTP.qml" line="97"/> <location filename="../qml/pages/ScanOTP.qml" line="101"/>
<source>No valid Token data found.</source> <source>No valid Token data found.</source>
<translation>Kein gültiges Token gefunden.</translation> <translation>Kein gültiges Token gefunden.</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/ScanOTP.qml" line="138"/> <location filename="../qml/pages/ScanOTP.qml" line="142"/>
<source>Tap the picture to start / stop scanning. Pull down to add Token manually.</source> <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> <translation>Vorschau antippen um den Scan zu starten / zu stoppen. Nach unten ziehen um manuell hinzu zu fügen.</translation>
</message> </message>

View file

@ -39,72 +39,88 @@ License: BSD (3-clause)</source>
<context> <context>
<name>AddOTP</name> <name>AddOTP</name>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="68"/> <location filename="../qml/pages/AddOTP.qml" line="70"/>
<source>Show QR-Code</source> <source>Show QR-Code</source>
<translation>Show QR-Code</translation> <translation>Show QR-Code</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="71"/> <location filename="../qml/pages/AddOTP.qml" line="73"/>
<source>Can&apos;t create QR-Code from incomplete settings!</source> <source>Can&apos;t create QR-Code from incomplete settings!</source>
<translation>Can&apos;t create QR-Code from incomplete settings!</translation> <translation>Can&apos;t create QR-Code from incomplete settings!</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="84"/> <location filename="../qml/pages/AddOTP.qml" line="86"/>
<source>Save</source> <source>Save</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="84"/> <location filename="../qml/pages/AddOTP.qml" line="86"/>
<source>Add</source> <source>Add</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="89"/> <location filename="../qml/pages/AddOTP.qml" line="91"/>
<source>Type</source> <source>Type</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="91"/> <location filename="../qml/pages/AddOTP.qml" line="93"/>
<source>Time-based (TOTP)</source> <source>Time-based (TOTP)</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="92"/> <location filename="../qml/pages/AddOTP.qml" line="94"/>
<source>Counter-based (HOTP)</source> <source>Counter-based (HOTP)</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="93"/> <location filename="../qml/pages/AddOTP.qml" line="95"/>
<source>Steam Guard</source> <source>Steam Guard</source>
<translation>Steam Guard</translation> <translation>Steam Guard</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="99"/> <location filename="../qml/pages/AddOTP.qml" line="101"/>
<source>Title</source> <source>Title</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="100"/> <location filename="../qml/pages/AddOTP.qml" line="102"/>
<source>Title for the OTP</source> <source>Title for the OTP</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="112"/> <location filename="../qml/pages/AddOTP.qml" line="114"/>
<source>Secret (at least 16 characters)</source> <source>Secret (at least 16 characters)</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="114"/> <location filename="../qml/pages/AddOTP.qml" line="116"/>
<source>Secret OTP Key</source> <source>Secret OTP Key</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="126"/> <location filename="../qml/pages/AddOTP.qml" line="127"/>
<source>Length</source>
<translation>Length</translation>
</message>
<message>
<location filename="../qml/pages/AddOTP.qml" line="129"/>
<source>Length of the Token</source>
<translation>Length of the Token</translation>
</message>
<message>
<location filename="../qml/pages/AddOTP.qml" line="141"/>
<location filename="../qml/pages/AddOTP.qml" line="143"/>
<source>Time Derivation (Seconds)</source>
<translation>Time Derivation (Seconds)</translation>
</message>
<message>
<location filename="../qml/pages/AddOTP.qml" line="155"/>
<source>Next Counter Value</source> <source>Next Counter Value</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="128"/> <location filename="../qml/pages/AddOTP.qml" line="157"/>
<source>Next Value of the Counter</source> <source>Next Value of the Counter</source>
<translation></translation> <translation></translation>
</message> </message>
@ -227,62 +243,62 @@ License: BSD (3-clause)</source>
<context> <context>
<name>MainView</name> <name>MainView</name>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="106"/> <location filename="../qml/pages/MainView.qml" line="96"/>
<source>About</source> <source>About</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="110"/> <location filename="../qml/pages/MainView.qml" line="100"/>
<source>Export / Import</source> <source>Export / Import</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="114"/> <location filename="../qml/pages/MainView.qml" line="104"/>
<source>Add Token</source> <source>Add Token</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="144"/> <location filename="../qml/pages/MainView.qml" line="134"/>
<source>Nothing here</source> <source>Nothing here</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="145"/> <location filename="../qml/pages/MainView.qml" line="135"/>
<source>Pull down to add a OTP</source> <source>Pull down to add a OTP</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="156"/> <location filename="../qml/pages/MainView.qml" line="146"/>
<source>Deleting</source> <source>Deleting</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="172"/> <location filename="../qml/pages/MainView.qml" line="162"/>
<source>Token for </source> <source>Token for </source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="172"/> <location filename="../qml/pages/MainView.qml" line="162"/>
<source> copied to clipboard</source> <source> copied to clipboard</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="240"/> <location filename="../qml/pages/MainView.qml" line="230"/>
<source>Move up</source> <source>Move up</source>
<translation>Move up</translation> <translation>Move up</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="245"/> <location filename="../qml/pages/MainView.qml" line="235"/>
<source>Move down</source> <source>Move down</source>
<translation>Move down</translation> <translation>Move down</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="250"/> <location filename="../qml/pages/MainView.qml" line="240"/>
<source>Edit</source> <source>Edit</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="256"/> <location filename="../qml/pages/MainView.qml" line="246"/>
<source>Delete</source> <source>Delete</source>
<translation></translation> <translation></translation>
</message> </message>
@ -290,7 +306,7 @@ License: BSD (3-clause)</source>
<context> <context>
<name>QRPage</name> <name>QRPage</name>
<message> <message>
<location filename="../qml/pages/QRPage.qml" line="73"/> <location filename="../qml/pages/QRPage.qml" line="74"/>
<source>Can&apos;t create QR-Code from incomplete settings!</source> <source>Can&apos;t create QR-Code from incomplete settings!</source>
<translation>Can&apos;t create QR-Code from incomplete settings!</translation> <translation>Can&apos;t create QR-Code from incomplete settings!</translation>
</message> </message>
@ -318,12 +334,12 @@ License: BSD (3-clause)</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/ScanOTP.qml" line="97"/> <location filename="../qml/pages/ScanOTP.qml" line="101"/>
<source>No valid Token data found.</source> <source>No valid Token data found.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/ScanOTP.qml" line="138"/> <location filename="../qml/pages/ScanOTP.qml" line="142"/>
<source>Tap the picture to start / stop scanning. Pull down to add Token manually.</source> <source>Tap the picture to start / stop scanning. Pull down to add Token manually.</source>
<translation></translation> <translation></translation>
</message> </message>

View file

@ -41,72 +41,88 @@ Licens: BSD (3-clause)</translation>
<context> <context>
<name>AddOTP</name> <name>AddOTP</name>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="68"/> <location filename="../qml/pages/AddOTP.qml" line="70"/>
<source>Show QR-Code</source> <source>Show QR-Code</source>
<translation>Visa QR-kod</translation> <translation>Visa QR-kod</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="71"/> <location filename="../qml/pages/AddOTP.qml" line="73"/>
<source>Can&apos;t create QR-Code from incomplete settings!</source> <source>Can&apos;t create QR-Code from incomplete settings!</source>
<translation>Kan inte skapa QR-kod från ofullständiga inställningar!</translation> <translation>Kan inte skapa QR-kod från ofullständiga inställningar!</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="84"/> <location filename="../qml/pages/AddOTP.qml" line="86"/>
<source>Save</source> <source>Save</source>
<translation>Spara</translation> <translation>Spara</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="84"/> <location filename="../qml/pages/AddOTP.qml" line="86"/>
<source>Add</source> <source>Add</source>
<translation>Lägg till</translation> <translation>Lägg till</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="89"/> <location filename="../qml/pages/AddOTP.qml" line="91"/>
<source>Type</source> <source>Type</source>
<translation>Typ</translation> <translation>Typ</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="91"/> <location filename="../qml/pages/AddOTP.qml" line="93"/>
<source>Time-based (TOTP)</source> <source>Time-based (TOTP)</source>
<translation>Tidsbaserad (TOTP)</translation> <translation>Tidsbaserad (TOTP)</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="92"/> <location filename="../qml/pages/AddOTP.qml" line="94"/>
<source>Counter-based (HOTP)</source> <source>Counter-based (HOTP)</source>
<translation>Räknarbaserad (HOTP)</translation> <translation>Räknarbaserad (HOTP)</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="93"/> <location filename="../qml/pages/AddOTP.qml" line="95"/>
<source>Steam Guard</source> <source>Steam Guard</source>
<translation>Steam Guard</translation> <translation>Steam Guard</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="99"/> <location filename="../qml/pages/AddOTP.qml" line="101"/>
<source>Title</source> <source>Title</source>
<translation>Namn</translation> <translation>Namn</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="100"/> <location filename="../qml/pages/AddOTP.qml" line="102"/>
<source>Title for the OTP</source> <source>Title for the OTP</source>
<translation>Namn OTP:n</translation> <translation>Namn OTP:n</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="112"/> <location filename="../qml/pages/AddOTP.qml" line="114"/>
<source>Secret (at least 16 characters)</source> <source>Secret (at least 16 characters)</source>
<translation>Hemlighet (Minst 16 tecken)</translation> <translation>Hemlighet (Minst 16 tecken)</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="114"/> <location filename="../qml/pages/AddOTP.qml" line="116"/>
<source>Secret OTP Key</source> <source>Secret OTP Key</source>
<translation>Hemlig OTP-nyckel</translation> <translation>Hemlig OTP-nyckel</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="126"/> <location filename="../qml/pages/AddOTP.qml" line="127"/>
<source>Length</source>
<translation>längd</translation>
</message>
<message>
<location filename="../qml/pages/AddOTP.qml" line="129"/>
<source>Length of the Token</source>
<translation>Längden av token</translation>
</message>
<message>
<location filename="../qml/pages/AddOTP.qml" line="141"/>
<location filename="../qml/pages/AddOTP.qml" line="143"/>
<source>Time Derivation (Seconds)</source>
<translation>Tidsavvikelsen (sekunder)</translation>
</message>
<message>
<location filename="../qml/pages/AddOTP.qml" line="155"/>
<source>Next Counter Value</source> <source>Next Counter Value</source>
<translation>Nästa räknarvärde</translation> <translation>Nästa räknarvärde</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AddOTP.qml" line="128"/> <location filename="../qml/pages/AddOTP.qml" line="157"/>
<source>Next Value of the Counter</source> <source>Next Value of the Counter</source>
<translation>Nästa värde räknaren</translation> <translation>Nästa värde räknaren</translation>
</message> </message>
@ -229,62 +245,62 @@ Licens: BSD (3-clause)</translation>
<context> <context>
<name>MainView</name> <name>MainView</name>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="106"/> <location filename="../qml/pages/MainView.qml" line="96"/>
<source>About</source> <source>About</source>
<translation>Om</translation> <translation>Om</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="110"/> <location filename="../qml/pages/MainView.qml" line="100"/>
<source>Export / Import</source> <source>Export / Import</source>
<translation>Export / Import</translation> <translation>Export / Import</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="114"/> <location filename="../qml/pages/MainView.qml" line="104"/>
<source>Add Token</source> <source>Add Token</source>
<translation>Lägg till Token</translation> <translation>Lägg till Token</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="144"/> <location filename="../qml/pages/MainView.qml" line="134"/>
<source>Nothing here</source> <source>Nothing here</source>
<translation>Inget här</translation> <translation>Inget här</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="145"/> <location filename="../qml/pages/MainView.qml" line="135"/>
<source>Pull down to add a OTP</source> <source>Pull down to add a OTP</source>
<translation>Dra neråt för att lägga till en OTP</translation> <translation>Dra neråt för att lägga till en OTP</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="156"/> <location filename="../qml/pages/MainView.qml" line="146"/>
<source>Deleting</source> <source>Deleting</source>
<translation>Tar bort</translation> <translation>Tar bort</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="172"/> <location filename="../qml/pages/MainView.qml" line="162"/>
<source>Token for </source> <source>Token for </source>
<translation>Token för </translation> <translation>Token för </translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="172"/> <location filename="../qml/pages/MainView.qml" line="162"/>
<source> copied to clipboard</source> <source> copied to clipboard</source>
<translation>kopierad till urklipp</translation> <translation>kopierad till urklipp</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="240"/> <location filename="../qml/pages/MainView.qml" line="230"/>
<source>Move up</source> <source>Move up</source>
<translation>Flytta upp</translation> <translation>Flytta upp</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="245"/> <location filename="../qml/pages/MainView.qml" line="235"/>
<source>Move down</source> <source>Move down</source>
<translation>Flytta ner</translation> <translation>Flytta ner</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="250"/> <location filename="../qml/pages/MainView.qml" line="240"/>
<source>Edit</source> <source>Edit</source>
<translation>Redigera</translation> <translation>Redigera</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/MainView.qml" line="256"/> <location filename="../qml/pages/MainView.qml" line="246"/>
<source>Delete</source> <source>Delete</source>
<translation>Ta bort</translation> <translation>Ta bort</translation>
</message> </message>
@ -292,7 +308,7 @@ Licens: BSD (3-clause)</translation>
<context> <context>
<name>QRPage</name> <name>QRPage</name>
<message> <message>
<location filename="../qml/pages/QRPage.qml" line="73"/> <location filename="../qml/pages/QRPage.qml" line="74"/>
<source>Can&apos;t create QR-Code from incomplete settings!</source> <source>Can&apos;t create QR-Code from incomplete settings!</source>
<translation>Kan inte skapa QR-kod från ofullständiga inställningar!</translation> <translation>Kan inte skapa QR-kod från ofullständiga inställningar!</translation>
</message> </message>
@ -320,12 +336,12 @@ Licens: BSD (3-clause)</translation>
<translation>Skannar...</translation> <translation>Skannar...</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/ScanOTP.qml" line="97"/> <location filename="../qml/pages/ScanOTP.qml" line="101"/>
<source>No valid Token data found.</source> <source>No valid Token data found.</source>
<translation>Ingen giltig Token-data hittades.</translation> <translation>Ingen giltig Token-data hittades.</translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/ScanOTP.qml" line="138"/> <location filename="../qml/pages/ScanOTP.qml" line="142"/>
<source>Tap the picture to start / stop scanning. Pull down to add Token manually.</source> <source>Tap the picture to start / stop scanning. Pull down to add Token manually.</source>
<translation>Tryck bilden för att starta / stoppa skanning. Dra neråt för att lägga till Token manuellt.</translation> <translation>Tryck bilden för att starta / stoppa skanning. Dra neråt för att lägga till Token manuellt.</translation>
</message> </message>

View file

@ -15,6 +15,7 @@ function decode(url) {
var tmp = pstr.split("="); var tmp = pstr.split("=");
if (tmp[0] == "secret") ret.secret = tmp[1]; if (tmp[0] == "secret") ret.secret = tmp[1];
if (tmp[0] == "counter") ret.counter = tmp[1]; if (tmp[0] == "counter") ret.counter = tmp[1];
if (tmp[0] == "digits") ret.digits = tmp[1];
} }
return ret; return ret;

View file

@ -61,8 +61,7 @@ Dialog {
SilicaFlickable { SilicaFlickable {
id: addOtpList id: addOtpList
anchors.fill: parent anchors.fill: parent
contentHeight: dialog.height
PullDownMenu { PullDownMenu {
visible: checkQR() visible: checkQR()
@ -81,7 +80,8 @@ Dialog {
VerticalScrollDecorator {} VerticalScrollDecorator {}
Column { Column {
anchors.fill: parent id: dialog
width: parent.width
DialogHeader { DialogHeader {
acceptText: paramNew ? qsTr("Add") : qsTr("Save") acceptText: paramNew ? qsTr("Add") : qsTr("Save")
} }