From 111c019edde7fc8b3fa031d81128d50e99d5222d Mon Sep 17 00:00:00 2001 From: David Sansome Date: Tue, 2 Mar 2010 17:29:43 +0000 Subject: [PATCH] Load translations from the current directory so translators don't have to recompile to test their translations --- src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index fa721769e..b928b3d09 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -13,6 +13,7 @@ #include #include #include +#include int main(int argc, char *argv[]) { QCoreApplication::setApplicationName("Clementine"); @@ -49,6 +50,12 @@ int main(int argc, char *argv[]) { clementine_translator.load("clementine_" + QLocale::system().name(), ":/translations"); a.installTranslator(&clementine_translator); + // Also look for translations in the current directory so translators don't + // need to recompile Clementine to test their translations + QTranslator pwd_translator; + clementine_translator.load("clementine_" + QLocale::system().name(), QDir::currentPath()); + a.installTranslator(&clementine_translator); + // Window MainWindow w; a.setActivationWindow(&w);