Add German translation, some small fixes

This commit is contained in:
Sebastian J. Wolf 2020-08-29 23:59:29 +02:00
parent 5fcca3c405
commit 138db9e78e
2 changed files with 101 additions and 94 deletions

View file

@ -30,6 +30,7 @@ Page {
allowedOrientations: Orientation.All allowedOrientations: Orientation.All
property bool loading: true; property bool loading: true;
property bool isInitialized: false;
property int myUserId: tdLibWrapper.getUserInformation().id; property int myUserId: tdLibWrapper.getUserInformation().id;
property variant chatInformation; property variant chatInformation;
property bool isPrivateChat: false; property bool isPrivateChat: false;
@ -84,6 +85,7 @@ Page {
} }
function initializePage() { function initializePage() {
console.log("[ChatPage] Initializing chat page...");
chatView.currentIndex = -1; chatView.currentIndex = -1;
var chatType = chatInformation.type['@type']; var chatType = chatInformation.type['@type'];
isPrivateChat = ( chatType === "chatTypePrivate" ); isPrivateChat = ( chatType === "chatTypePrivate" );
@ -113,7 +115,10 @@ Page {
tdLibWrapper.openChat(chatInformation.id); tdLibWrapper.openChat(chatInformation.id);
} }
if (status === PageStatus.Active) { if (status === PageStatus.Active) {
chatModel.initialize(chatInformation); if (!chatPage.isInitialized) {
chatModel.initialize(chatInformation);
chatPage.isInitialized = true;
}
} }
if (status === PageStatus.Deactivating) { if (status === PageStatus.Deactivating) {
tdLibWrapper.closeChat(chatInformation.id); tdLibWrapper.closeChat(chatInformation.id);
@ -154,6 +159,8 @@ Page {
onMessagesReceived: { onMessagesReceived: {
console.log("[ChatPage] Messages received, view has " + chatView.count + " messages, setting view to index " + modelIndex); console.log("[ChatPage] Messages received, view has " + chatView.count + " messages, setting view to index " + modelIndex);
chatView.currentIndex = modelIndex; chatView.currentIndex = modelIndex;
chatViewLoadingTimer.stop();
chatViewLoadingTimer.start();
} }
onNewMessageReceived: { onNewMessageReceived: {
// Notify user about new messages... // Notify user about new messages...

View file

@ -1,405 +1,405 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS> <!DOCTYPE TS>
<TS version="2.1"> <TS version="2.1" language="de_DE">
<context> <context>
<name>AboutPage</name> <name>AboutPage</name>
<message> <message>
<source>About Fernschreiber</source> <source>About Fernschreiber</source>
<translation type="unfinished"></translation> <translation>Über Fernschreiber</translation>
</message> </message>
<message> <message>
<source>A Telegram client for Sailfish OS</source> <source>A Telegram client for Sailfish OS</source>
<translation type="unfinished"></translation> <translation>Ein Telegram-Client für Sailfish OS</translation>
</message> </message>
<message> <message>
<source>By Sebastian J. Wolf</source> <source>By Sebastian J. Wolf</source>
<translation type="unfinished"></translation> <translation>Von Sebastian J. Wolf</translation>
</message> </message>
<message> <message>
<source>Send E-Mail</source> <source>Send E-Mail</source>
<translation type="unfinished"></translation> <translation>E-Mail verschicken</translation>
</message> </message>
<message> <message>
<source>Licensed under GNU GPLv3</source> <source>Licensed under GNU GPLv3</source>
<translation type="unfinished"></translation> <translation>Lizenziert unter der GNU GPLv3</translation>
</message> </message>
<message> <message>
<source>Sources on GitHub</source> <source>Sources on GitHub</source>
<translation type="unfinished"></translation> <translation>Quelltexte auf GitHub</translation>
</message> </message>
<message> <message>
<source>Terms of Service</source> <source>Terms of Service</source>
<translation type="unfinished"></translation> <translation>Nutzungsbedingungen</translation>
</message> </message>
<message> <message>
<source>Privacy Policy</source> <source>Privacy Policy</source>
<translation type="unfinished"></translation> <translation>Datenschutzerklärung</translation>
</message> </message>
<message> <message>
<source>Credits</source> <source>Credits</source>
<translation type="unfinished"></translation> <translation>Danksagungen</translation>
</message> </message>
<message> <message>
<source>This project uses the Telegram Database Library (TDLib). Thanks for making it available under the conditions of the Boost Software License 1.0!</source> <source>This project uses the Telegram Database Library (TDLib). Thanks for making it available under the conditions of the Boost Software License 1.0!</source>
<translation type="unfinished"></translation> <translation>Dieses Projekt nutzt die Telegram Database Library (TDLib). Vielen Dank dafür, dass sie unter den Bedingungen der Boost Software License 1.0 verfügbar gemacht wurde! </translation>
</message> </message>
<message> <message>
<source>Open Telegram Database Library on GitHub</source> <source>Open Telegram Database Library on GitHub</source>
<translation type="unfinished"></translation> <translation>Telegram Database Library auf GitHub öffnen</translation>
</message> </message>
<message> <message>
<source>About Telegram</source> <source>About Telegram</source>
<translation type="unfinished"></translation> <translation>Über Telegram</translation>
</message> </message>
<message> <message>
<source>This product uses the Telegram API but is not endorsed or certified by Telegram.</source> <source>This product uses the Telegram API but is not endorsed or certified by Telegram.</source>
<translation type="unfinished"></translation> <translation>Dieses Produkt nutzt die Telegram-API, ist aber von Telegram weder unterstützt noch zertifiziert.</translation>
</message> </message>
<message> <message>
<source>TDLib version %1</source> <source>TDLib version %1</source>
<translation type="unfinished"></translation> <translation>TDLib-Version %1</translation>
</message> </message>
<message> <message>
<source>Logged in as %1</source> <source>Logged in as %1</source>
<translation type="unfinished"></translation> <translation>Angemeldet als %1</translation>
</message> </message>
<message> <message>
<source>Phone number: +%1</source> <source>Phone number: +%1</source>
<translation type="unfinished"></translation> <translation>Telefonnummer: +%1</translation>
</message> </message>
<message> <message>
<source>This project uses twemoji. Copyright 2018 Twitter, Inc. and other contributors. Thanks for making it available under the conditions of the MIT License (coding) and CC-BY 4.0 (graphics)!</source> <source>This project uses twemoji. Copyright 2018 Twitter, Inc. and other contributors. Thanks for making it available under the conditions of the MIT License (coding) and CC-BY 4.0 (graphics)!</source>
<translation type="unfinished"></translation> <translation>Dieses Projekt nutzt die twemoji. Copyright 2018 Twitter, Inc. und andere Beitragende. Vielen Dank dafür, dass sie unter den Bedingungen der MIT License (Coding) und CC-BY 4.0 (Grafiken) verfügbar gemacht wurde!</translation>
</message> </message>
<message> <message>
<source>Open twemoji on GitHub</source> <source>Open twemoji on GitHub</source>
<translation type="unfinished"></translation> <translation>Twemoji auf GitHub öffnen</translation>
</message> </message>
</context> </context>
<context> <context>
<name>BackgroundProgressIndicator</name> <name>BackgroundProgressIndicator</name>
<message> <message>
<source>%1 %</source> <source>%1 %</source>
<translation type="unfinished"></translation> <translation>%1 %</translation>
</message> </message>
<message> <message>
<source>%1</source> <source>%1</source>
<translation type="unfinished"></translation> <translation>%1</translation>
</message> </message>
</context> </context>
<context> <context>
<name>ChatPage</name> <name>ChatPage</name>
<message> <message>
<source>Unknown</source> <source>Unknown</source>
<translation type="unfinished"></translation> <translation>Unbekannt</translation>
</message> </message>
<message> <message>
<source>Your message</source> <source>Your message</source>
<translation type="unfinished"></translation> <translation>Ihre Nachricht</translation>
</message> </message>
<message> <message>
<source>was never online</source> <source>was never online</source>
<translation type="unfinished"></translation> <translation>war niemals online</translation>
</message> </message>
<message> <message>
<source>offline, last online: last month</source> <source>offline, last online: last month</source>
<translation type="unfinished"></translation> <translation>offline, zuletzt online im letzten Monat</translation>
</message> </message>
<message> <message>
<source>offline, last online: last week</source> <source>offline, last online: last week</source>
<translation type="unfinished"></translation> <translation>offline, zuletzt online in der letzten Woche</translation>
</message> </message>
<message> <message>
<source>offline, last online: %1</source> <source>offline, last online: %1</source>
<translation type="unfinished"></translation> <translation>offline, zuletzt online: %1</translation>
</message> </message>
<message> <message>
<source>online</source> <source>online</source>
<translation type="unfinished"></translation> <translation>online</translation>
</message> </message>
<message> <message>
<source>offline, was recently online</source> <source>offline, was recently online</source>
<translation type="unfinished"></translation> <translation>offline, war neulich online</translation>
</message> </message>
<message> <message>
<source>%1 members, %2 online</source> <source>%1 members, %2 online</source>
<translation type="unfinished"></translation> <translation>%1 Mitglieder, %2 online</translation>
</message> </message>
<message> <message>
<source>%1 members</source> <source>%1 members</source>
<translation type="unfinished"></translation> <translation>%1 Mitglieder</translation>
</message> </message>
<message> <message>
<source>%1M</source> <source>%1M</source>
<translation type="unfinished"></translation> <translation>%1M</translation>
</message> </message>
<message> <message>
<source>%1K</source> <source>%1K</source>
<translation type="unfinished"></translation> <translation>%1T</translation>
</message> </message>
<message> <message>
<source>%1 subscribers</source> <source>%1 subscribers</source>
<translation type="unfinished"></translation> <translation>%1 Abonnenten</translation>
</message> </message>
<message> <message>
<source>Reply to Message</source> <source>Reply to Message</source>
<translation type="unfinished"></translation> <translation>Auf Nachricht antworten</translation>
</message> </message>
<message> <message>
<source>You</source> <source>You</source>
<translation type="unfinished"></translation> <translation>Sie</translation>
</message> </message>
<message> <message>
<source>Loading messages...</source> <source>Loading messages...</source>
<translation type="unfinished"></translation> <translation>Nachrichten laden...</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CoverPage</name> <name>CoverPage</name>
<message> <message>
<source>unread message</source> <source>unread message</source>
<translation type="unfinished"></translation> <translation>ungelesene Nachricht</translation>
</message> </message>
<message> <message>
<source>unread messages</source> <source>unread messages</source>
<translation type="unfinished"></translation> <translation>ungelesene Nachrichten</translation>
</message> </message>
<message> <message>
<source>in</source> <source>in</source>
<translation type="unfinished"></translation> <translation>in</translation>
</message> </message>
<message> <message>
<source>Waiting for network...</source> <source>Waiting for network...</source>
<translation type="unfinished"></translation> <translation>Auf Netzwerk warten...</translation>
</message> </message>
<message> <message>
<source>Connecting to network...</source> <source>Connecting to network...</source>
<translation type="unfinished"></translation> <translation>Zum Netzwerk verbinden...</translation>
</message> </message>
<message> <message>
<source>Connecting to proxy...</source> <source>Connecting to proxy...</source>
<translation type="unfinished"></translation> <translation>Zum Proxy verbinden...</translation>
</message> </message>
<message> <message>
<source>Connected</source> <source>Connected</source>
<translation type="unfinished"></translation> <translation>Verbunden</translation>
</message> </message>
<message> <message>
<source>Updating content...</source> <source>Updating content...</source>
<translation type="unfinished"></translation> <translation>Inhalte aktualisieren...</translation>
</message> </message>
<message> <message>
<source>chat</source> <source>chat</source>
<translation type="unfinished"></translation> <translation>Chat</translation>
</message> </message>
<message> <message>
<source>chats</source> <source>chats</source>
<translation type="unfinished"></translation> <translation>Chats</translation>
</message> </message>
</context> </context>
<context> <context>
<name>DocumentPreview</name> <name>DocumentPreview</name>
<message> <message>
<source>Download Document</source> <source>Download Document</source>
<translation type="unfinished"></translation> <translation>Dokument herunterladen</translation>
</message> </message>
<message> <message>
<source>Open Document</source> <source>Open Document</source>
<translation type="unfinished"></translation> <translation>Dokument öffnen</translation>
</message> </message>
</context> </context>
<context> <context>
<name>ImagePage</name> <name>ImagePage</name>
<message> <message>
<source>Download Picture</source> <source>Download Picture</source>
<translation type="unfinished"></translation> <translation>Bild herunterladen</translation>
</message> </message>
<message> <message>
<source>Download of %1 successful.</source> <source>Download of %1 successful.</source>
<translation type="unfinished"></translation> <translation>Download von %1 erfolgreich.</translation>
</message> </message>
<message> <message>
<source>Download failed.</source> <source>Download failed.</source>
<translation type="unfinished"></translation> <translation>Download fehlgeschlagen.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>InReplyToRow</name> <name>InReplyToRow</name>
<message> <message>
<source>You</source> <source>You</source>
<translation type="unfinished"></translation> <translation>Sie</translation>
</message> </message>
</context> </context>
<context> <context>
<name>InitializationPage</name> <name>InitializationPage</name>
<message> <message>
<source>OK</source> <source>OK</source>
<translation type="unfinished"></translation> <translation>OK</translation>
</message> </message>
<message> <message>
<source>Welcome to Fernschreiber!</source> <source>Welcome to Fernschreiber!</source>
<translation type="unfinished"></translation> <translation>Willkommen bei Fernschreiber!</translation>
</message> </message>
<message> <message>
<source>Please enter your phone number to continue.</source> <source>Please enter your phone number to continue.</source>
<translation type="unfinished"></translation> <translation>Bitte geben Sie zum Fortfahren Ihre Telefonnummer ein.</translation>
</message> </message>
<message> <message>
<source>Continue</source> <source>Continue</source>
<translation type="unfinished"></translation> <translation>Weiter</translation>
</message> </message>
<message> <message>
<source>Please enter the code that you received:</source> <source>Please enter the code that you received:</source>
<translation type="unfinished"></translation> <translation>Bitte geben Sie den Code ein, den Sie erhalten haben:</translation>
</message> </message>
<message> <message>
<source>Loading...</source> <source>Loading...</source>
<translation type="unfinished"></translation> <translation>Laden...</translation>
</message> </message>
<message> <message>
<source>Unable to authenticate you with the entered code.</source> <source>Unable to authenticate you with the entered code.</source>
<translation type="unfinished"></translation> <translation>Es war nicht möglich, Sie mit dem eingegebenen Code zu authentifizieren.</translation>
</message> </message>
<message> <message>
<source>Enter code again</source> <source>Enter code again</source>
<translation type="unfinished"></translation> <translation>Code erneut eingeben</translation>
</message> </message>
<message> <message>
<source>Restart authentication</source> <source>Restart authentication</source>
<translation type="unfinished"></translation> <translation>Authentifizierung neu starten</translation>
</message> </message>
</context> </context>
<context> <context>
<name>OverviewPage</name> <name>OverviewPage</name>
<message> <message>
<source>About Fernschreiber</source> <source>About Fernschreiber</source>
<translation type="unfinished"></translation> <translation>Über Fernschreiber</translation>
</message> </message>
<message> <message>
<source>Loading...</source> <source>Loading...</source>
<translation type="unfinished"></translation> <translation>Laden...</translation>
</message> </message>
<message> <message>
<source>Fernschreiber</source> <source>Fernschreiber</source>
<translation type="unfinished"></translation> <translation>Fernschreiber</translation>
</message> </message>
<message> <message>
<source>Waiting for network...</source> <source>Waiting for network...</source>
<translation type="unfinished"></translation> <translation>Warten auf Netzwerk...</translation>
</message> </message>
<message> <message>
<source>Connecting to network...</source> <source>Connecting to network...</source>
<translation type="unfinished"></translation> <translation>Zum Netzwerk verbinden...</translation>
</message> </message>
<message> <message>
<source>Connecting to proxy...</source> <source>Connecting to proxy...</source>
<translation type="unfinished"></translation> <translation>Zum Proxy verbinden...</translation>
</message> </message>
<message> <message>
<source>Updating content...</source> <source>Updating content...</source>
<translation type="unfinished"></translation> <translation>Inhalte aktualisieren...</translation>
</message> </message>
<message> <message>
<source>Unknown</source> <source>Unknown</source>
<translation type="unfinished"></translation> <translation>Unbekannt</translation>
</message> </message>
<message> <message>
<source>You</source> <source>You</source>
<translation type="unfinished"></translation> <translation>Sie</translation>
</message> </message>
</context> </context>
<context> <context>
<name>VideoPage</name> <name>VideoPage</name>
<message> <message>
<source>Download Video</source> <source>Download Video</source>
<translation type="unfinished"></translation> <translation>Video herunterladen</translation>
</message> </message>
<message> <message>
<source>Download of %1 successful.</source> <source>Download of %1 successful.</source>
<translation type="unfinished"></translation> <translation>Download von %1 erfolgreich.</translation>
</message> </message>
<message> <message>
<source>Download failed.</source> <source>Download failed.</source>
<translation type="unfinished"></translation> <translation>Download fehlgeschlagen.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>functions</name> <name>functions</name>
<message> <message>
<source>Video: %1</source> <source>Video: %1</source>
<translation type="unfinished"></translation> <translation>Video: %1</translation>
</message> </message>
<message> <message>
<source>has registered with Telegram</source> <source>has registered with Telegram</source>
<translation type="unfinished"></translation> <translation>hat sich bei Telegram angemeldet</translation>
</message> </message>
<message> <message>
<source>Picture: %1</source> <source>Picture: %1</source>
<translation type="unfinished"></translation> <translation>Bild: %1</translation>
</message> </message>
<message> <message>
<source>Sticker: %1</source> <source>Sticker: %1</source>
<translation type="unfinished"></translation> <translation>Sticker: %1</translation>
</message> </message>
<message> <message>
<source>was added to this chat.</source> <source>was added to this chat.</source>
<translation type="unfinished"></translation> <translation>wurde diesem Chat hinzugefügt.</translation>
</message> </message>
<message> <message>
<source>joined this chat.</source> <source>joined this chat.</source>
<translation type="unfinished"></translation> <translation>ist diesem Chat beigetreten.</translation>
</message> </message>
<message> <message>
<source>left this chat.</source> <source>left this chat.</source>
<translation type="unfinished"></translation> <translation>hat diesen Chat verlassen.</translation>
</message> </message>
<message> <message>
<source>Audio: %1</source> <source>Audio: %1</source>
<translation type="unfinished"></translation> <translation>Audio: %1</translation>
</message> </message>
<message> <message>
<source>Voice Note: %1</source> <source>Voice Note: %1</source>
<translation type="unfinished"></translation> <translation>Sprachnachricht: %1</translation>
</message> </message>
<message> <message>
<source>shared a picture</source> <source>shared a picture</source>
<translation type="unfinished"></translation> <translation>hat ein Bild geteilt</translation>
</message> </message>
<message> <message>
<source>shared a video</source> <source>shared a video</source>
<translation type="unfinished"></translation> <translation>hat ein Video geteilt</translation>
</message> </message>
<message> <message>
<source>shared an audio</source> <source>shared an audio</source>
<translation type="unfinished"></translation> <translation>hat ein Audio geteilt</translation>
</message> </message>
<message> <message>
<source>shared a voice note</source> <source>shared a voice note</source>
<translation type="unfinished"></translation> <translation>hat eine Sprachnachricht geteilt</translation>
</message> </message>
<message> <message>
<source>shared their location</source> <source>shared their location</source>
<translation type="unfinished"></translation> <translation>hat die Position geteilt</translation>
</message> </message>
<message> <message>
<source>Animation: %1</source> <source>Animation: %1</source>
<translation type="unfinished"></translation> <translation>Animation: %1</translation>
</message> </message>
<message> <message>
<source>shared an animation</source> <source>shared an animation</source>
<translation type="unfinished"></translation> <translation>hat eine Animation geteilt</translation>
</message> </message>
<message> <message>
<source>Unsupported message: %1</source> <source>Unsupported message: %1</source>
<translation type="unfinished"></translation> <translation>Nicht unterstützte Nachricht: %1</translation>
</message> </message>
<message> <message>
<source>Document: %1</source> <source>Document: %1</source>
<translation type="unfinished"></translation> <translation>Dokument: %1</translation>
</message> </message>
<message> <message>
<source>shared a document</source> <source>shared a document</source>
<translation type="unfinished"></translation> <translation>hat ein Dokument geteilt</translation>
</message> </message>
</context> </context>
</TS> </TS>