summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index 83d8601..f213943 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -195,9 +195,15 @@ void Today::loadPlugins() {
195 plugin.iface = iface; 195 plugin.iface = iface;
196 plugin.name = QString(*it); 196 plugin.name = QString(*it);
197 197
198 QString type = (*it).left( (*it).find(".") ); 198 QString type = (*it).left( (*it).find(".") );
199 QStringList langs = Global::languageList(); 199
200 // grr, sharp rom does not know Global::languageList();
201 // QStringList langs = Global::languageList();
202 QString tfn = QPEApplication::qpeDir() + "/i18n/";
203 QDir langDir = tfn;
204 QStringList langs = langDir.entryList("*", QDir::Dirs );
205
200 for (QStringList::ConstIterator lit = langs.begin(); lit!=langs.end(); ++lit) { 206 for (QStringList::ConstIterator lit = langs.begin(); lit!=langs.end(); ++lit) {
201 QString lang = *lit; 207 QString lang = *lit;
202 qDebug( "Languages: " + lang ); 208 qDebug( "Languages: " + lang );
203 QTranslator * trans = new QTranslator( qApp ); 209 QTranslator * trans = new QTranslator( qApp );