diff options
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit')
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp | 2 | ||||
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/i18n/l-te_de.ts | 16 |
2 files changed, 12 insertions, 6 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp b/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp index e8eaa007..a0aff9cc 100644 --- a/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp +++ b/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp @@ -83,7 +83,7 @@ void PlainTextEditor::LoadFile(QString filepath){ this->centerCursor(); //scroll until cursor is centered (if possible) } hasChanges = false; - watcher->addPath(filepath); + if(QFile::exists(filepath)){ watcher->addPath(filepath); } emit FileLoaded(this->whatsThis()); } diff --git a/src-qt5/desktop-utils/lumina-textedit/i18n/l-te_de.ts b/src-qt5/desktop-utils/lumina-textedit/i18n/l-te_de.ts index d493699e..9d7c344b 100644 --- a/src-qt5/desktop-utils/lumina-textedit/i18n/l-te_de.ts +++ b/src-qt5/desktop-utils/lumina-textedit/i18n/l-te_de.ts @@ -241,7 +241,7 @@ <location filename="../MainUI.cpp" line="289"/> <location filename="../MainUI.cpp" line="386"/> <source>Lose Unsaved Changes?</source> - <translation type="unfinished"></translation> + <translation>Nicht gespeicherte Änderungen verlieren?</translation> </message> <message> <location filename="../MainUI.cpp" line="289"/> @@ -249,7 +249,10 @@ Do you want to close it anyway? %1</source> - <translation type="unfinished"></translation> + <translation>Diese Datei hat nicht gespeicherte Änderungen. +Möchten Sie sie trotzdem schließen? + +%1</translation> </message> <message> <location filename="../MainUI.cpp" line="386"/> @@ -257,7 +260,10 @@ Do you want to close it anyway? Do you want to close the editor anyway? %1</source> - <translation type="unfinished"></translation> + <translation>Es gibt nicht gespeicherte Änderungen. +Möchten Sie den Editor trotzdem schließen? + +%1</translation> </message> </context> <context> @@ -275,7 +281,7 @@ Do you want to close the editor anyway? <message> <location filename="../PlainTextEditor.cpp" line="289"/> <source>Row Number: %1, Column Number: %2</source> - <translation type="unfinished"></translation> + <translation>Zeilennummer: %1, Spaltennummer: %2</translation> </message> <message> <location filename="../PlainTextEditor.cpp" line="298"/> @@ -285,7 +291,7 @@ Do you want to close the editor anyway? <message> <location filename="../PlainTextEditor.cpp" line="300"/> <source>(Note: You will lose all currently-unsaved changes)</source> - <translation>(Hinweis: Sie werden alle momentan ungespeicherten Änderungen verlieren)</translation> + <translation>(Hinweis: Sie werden alle momentan nicht gespeicherten Änderungen verlieren)</translation> </message> <message> <location filename="../PlainTextEditor.cpp" line="304"/> |