From c65b220832434e3d751b93849ac1bb5b623be92d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Mon, 21 Feb 2011 19:38:56 +0100 Subject: Added missing Qt translation strings. 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 +#include #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 event) { notifier->showMessage(Notifier::SystemMessage, title, message, boost::filesystem::path(), boost::function()); } else if(boost::shared_ptr errorEvent = boost::dynamic_pointer_cast(event)) { - notifier->showMessage(Notifier::SystemMessage, "Error", errorEvent->getText(), boost::filesystem::path(), boost::function()); + notifier->showMessage(Notifier::SystemMessage, QT_TRANSLATE_NOOP("", "Error"), errorEvent->getText(), boost::filesystem::path(), boost::function()); } } 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 @@ Offline + + + Error + + + + + QApplication + + + QT_LAYOUT_DIRECTION + Translate this to LTR for left-to-right or RTL for right-to-left languages + + QObject @@ -520,6 +534,69 @@ + QWizard + + + < &Back + + + + + &Finish + + + + + &Help + + + + + Go Back + + + + + Continue + + + + + Commit + + + + + Done + + + + + Quit + + + + + Help + + + + + Cancel + + + + + &Next + + + + + &Next > + + + + QtBookmarkDetailWindow 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 @@ Offline Offline + + + Error + Fout + + + + QApplication + + + QT_LAYOUT_DIRECTION + Translate this to LTR for left-to-right or RTL for right-to-left languages + LTR + QObject @@ -520,6 +534,69 @@ + QWizard + + + < &Back + + + + + &Finish + + + + + &Help + + + + + Go Back + + + + + Continue + + + + + Commit + + + + + Done + + + + + Quit + + + + + Help + + + + + Cancel + Annuleren + + + + &Next + + + + + &Next > + + + + QtBookmarkDetailWindow @@ -583,13 +660,13 @@ Enter Room - Kamer Betreden + Kamer betreden Enter automatically in future - Automatisch Betreden + Automatisch betreden -- cgit v0.10.2-6-g49f6