summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-02-21 18:38:56 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-02-21 18:38:56 (GMT)
commitc65b220832434e3d751b93849ac1bb5b623be92d (patch)
tree240137893b7d1448087d9d8044eac38db6c3fd1c /Swift
parent09fd0ff13c2dd542bcd5e2bb0a27d05cafc90fa2 (diff)
downloadswift-c65b220832434e3d751b93849ac1bb5b623be92d.zip
swift-c65b220832434e3d751b93849ac1bb5b623be92d.tar.bz2
Added missing Qt translation strings.
Diffstat (limited to 'Swift')
-rw-r--r--Swift/Controllers/EventNotifier.cpp3
-rw-r--r--Swift/QtUI/QtStrings.h31
-rw-r--r--Swift/Translations/swift.ts77
-rw-r--r--Swift/Translations/swift_nl.ts81
4 files changed, 189 insertions, 3 deletions
diff --git a/Swift/Controllers/EventNotifier.cpp b/Swift/Controllers/EventNotifier.cpp
index 405fa77..740f5c0 100644
--- a/Swift/Controllers/EventNotifier.cpp
+++ b/Swift/Controllers/EventNotifier.cpp
@@ -8,6 +8,7 @@
#include <boost/bind.hpp>
+#include <Swift/Controllers/Intl.h>
#include "Swift/Controllers/XMPPEvents/EventController.h"
#include "SwifTools/Notifier/Notifier.h"
#include "Swiften/Avatars/AvatarManager.h"
@@ -47,7 +48,7 @@ void EventNotifier::handleEventAdded(boost::shared_ptr<StanzaEvent> event) {
notifier->showMessage(Notifier::SystemMessage, title, message, boost::filesystem::path(), boost::function<void()>());
}
else if(boost::shared_ptr<ErrorEvent> errorEvent = boost::dynamic_pointer_cast<ErrorEvent>(event)) {
- notifier->showMessage(Notifier::SystemMessage, "Error", errorEvent->getText(), boost::filesystem::path(), boost::function<void()>());
+ notifier->showMessage(Notifier::SystemMessage, QT_TRANSLATE_NOOP("", "Error"), errorEvent->getText(), boost::filesystem::path(), boost::function<void()>());
}
}
diff --git a/Swift/QtUI/QtStrings.h b/Swift/QtUI/QtStrings.h
new file mode 100644
index 0000000..cee6c14
--- /dev/null
+++ b/Swift/QtUI/QtStrings.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2011 Remko Tronçon
+ * Licensed under the GNU General Public License v3.
+ * See Documentation/Licenses/GPLv3.txt for more information.
+ */
+
+/*
+ * This file contains strings from the Qt library that need to be
+ * translated.
+ *
+ * This header is not included by our sources, but will be picked up
+ * by lupdate.
+ */
+
+#pragma once
+
+QT_TRANSLATE_NOOP3("QApplication", "QT_LAYOUT_DIRECTION", "Translate this to LTR for left-to-right or RTL for right-to-left languages");
+
+QT_TRANSLATE_NOOP("QWizard", "< &Back");
+QT_TRANSLATE_NOOP("QWizard", "&Finish");
+QT_TRANSLATE_NOOP("QWizard", "&Help");
+QT_TRANSLATE_NOOP("QWizard", "Go Back");
+QT_TRANSLATE_NOOP("QWizard", "Continue");
+QT_TRANSLATE_NOOP("QWizard", "Commit");
+QT_TRANSLATE_NOOP("QWizard", "Done");
+QT_TRANSLATE_NOOP("QWizard", "Quit");
+QT_TRANSLATE_NOOP("QWizard", "Help");
+QT_TRANSLATE_NOOP("QWizard", "Cancel");
+QT_TRANSLATE_NOOP("QWizard", "&Next");
+QT_TRANSLATE_NOOP("QWizard", "&Next >");
+
diff --git a/Swift/Translations/swift.ts b/Swift/Translations/swift.ts
index 634faca..37299fe 100644
--- a/Swift/Translations/swift.ts
+++ b/Swift/Translations/swift.ts
@@ -510,6 +510,20 @@
<source>Offline</source>
<translation type="unfinished"></translation>
</message>
+ <message>
+ <location filename="../Controllers/EventNotifier.cpp" line="51"/>
+ <source>Error</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
+ <name>QApplication</name>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="17"/>
+ <source>QT_LAYOUT_DIRECTION</source>
+ <comment>Translate this to LTR for left-to-right or RTL for right-to-left languages</comment>
+ <translation type="unfinished"></translation>
+ </message>
</context>
<context>
<name>QObject</name>
@@ -520,6 +534,69 @@
</message>
</context>
<context>
+ <name>QWizard</name>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="19"/>
+ <source>&lt; &amp;Back</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="20"/>
+ <source>&amp;Finish</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="21"/>
+ <source>&amp;Help</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="22"/>
+ <source>Go Back</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="23"/>
+ <source>Continue</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="24"/>
+ <source>Commit</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="25"/>
+ <source>Done</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="26"/>
+ <source>Quit</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="27"/>
+ <source>Help</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="28"/>
+ <source>Cancel</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="29"/>
+ <source>&amp;Next</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="30"/>
+ <source>&amp;Next &gt;</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
<name>QtBookmarkDetailWindow</name>
<message>
<location filename="../QtUI/QtBookmarkDetailWindow.ui"/>
diff --git a/Swift/Translations/swift_nl.ts b/Swift/Translations/swift_nl.ts
index 0de6e89..cbe99d4 100644
--- a/Swift/Translations/swift_nl.ts
+++ b/Swift/Translations/swift_nl.ts
@@ -510,6 +510,20 @@
<source>Offline</source>
<translation>Offline</translation>
</message>
+ <message>
+ <location filename="../Controllers/EventNotifier.cpp" line="51"/>
+ <source>Error</source>
+ <translation>Fout</translation>
+ </message>
+</context>
+<context>
+ <name>QApplication</name>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="17"/>
+ <source>QT_LAYOUT_DIRECTION</source>
+ <comment>Translate this to LTR for left-to-right or RTL for right-to-left languages</comment>
+ <translation>LTR</translation>
+ </message>
</context>
<context>
<name>QObject</name>
@@ -520,6 +534,69 @@
</message>
</context>
<context>
+ <name>QWizard</name>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="19"/>
+ <source>&lt; &amp;Back</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="20"/>
+ <source>&amp;Finish</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="21"/>
+ <source>&amp;Help</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="22"/>
+ <source>Go Back</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="23"/>
+ <source>Continue</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="24"/>
+ <source>Commit</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="25"/>
+ <source>Done</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="26"/>
+ <source>Quit</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="27"/>
+ <source>Help</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="28"/>
+ <source>Cancel</source>
+ <translation type="unfinished">Annuleren</translation>
+ </message>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="29"/>
+ <source>&amp;Next</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../QtUI/QtStrings.h" line="30"/>
+ <source>&amp;Next &gt;</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
<name>QtBookmarkDetailWindow</name>
<message>
<location filename="../QtUI/QtBookmarkDetailWindow.ui"/>
@@ -583,13 +660,13 @@
<location filename="../QtUI/ui_QtJoinMUCWindow.h" line="124"/>
<location filename="../QtUI/ui_QtJoinMUCWindow.h" line="130"/>
<source>Enter Room</source>
- <translation>Kamer Betreden</translation>
+ <translation>Kamer betreden</translation>
</message>
<message>
<location filename="../QtUI/QtJoinMUCWindow.ui"/>
<location filename="../QtUI/ui_QtJoinMUCWindow.h" line="129"/>
<source>Enter automatically in future</source>
- <translation>Automatisch Betreden</translation>
+ <translation>Automatisch betreden</translation>
</message>
</context>
<context>