[Marble-devel] [marble/KDE/4.8] src/plasmarunner: Fixes: in PlasmaRunner load "marble" and "marble_qt" catalogs, but also explicitely the misnomed "plasma_runner_marblerunner"
Friedrich W. H. Kossebau
kossebau at kde.org
Fri Jun 15 13:45:44 UTC 2012
Git commit 865eb8ab4da488cf442da70b1df2088abcd9c988 by Friedrich W. H. Kossebau.
Committed on 15/06/2012 at 15:44.
Pushed by kossebau into branch 'KDE/4.8'.
Fixes: in PlasmaRunner load "marble" and "marble_qt" catalogs, but also explicitely the misnomed "plasma_runner_marblerunner"
Without the catalog "marble_qt" the GeoDataCoordinates::fromString(...)
does not support localized coordinates strings
(which created moments of frustration for the author, especially when demo'ing ;) )
And "plasma_runner_marblerunner" needs to be explicitely loaded, because
the name of the plugin is "plasma_runner_marble", but the catalog created
has the former, wrong name.
CCMAIL: marble-devel at kde.org
M +6 -0 src/plasmarunner/plasmarunner.cpp
http://commits.kde.org/marble/865eb8ab4da488cf442da70b1df2088abcd9c988
diff --git a/src/plasmarunner/plasmarunner.cpp b/src/plasmarunner/plasmarunner.cpp
index a66ccee..40ee791 100644
--- a/src/plasmarunner/plasmarunner.cpp
+++ b/src/plasmarunner/plasmarunner.cpp
@@ -24,6 +24,7 @@
#include <KProcess>
#include <KIcon>
#include <KLocale>
+#include <KGlobal>
namespace Marble
@@ -35,6 +36,11 @@ static const int minContainsMatchLength = 3;
PlasmaRunner::PlasmaRunner(QObject *parent, const QVariantList &args)
: AbstractRunner(parent, args)
{
+ KLocale* locale = KGlobal::locale();
+ locale->insertCatalog(QLatin1String("marble"));
+ locale->insertCatalog(QLatin1String("marble_qt"));
+ locale->insertCatalog(QLatin1String("plasma_runner_marblerunner"));
+
setIgnoredTypes(Plasma::RunnerContext::NetworkLocation |
Plasma::RunnerContext::FileSystem |
Plasma::RunnerContext::Help);
More information about the Marble-devel
mailing list