[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdelibs/frameworks] staging/kservice/src/plugin: Improve the poor's man replacement of i18n in kser
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2013-08-31 16:21:47
Message-ID: E1VFnvn-0003Oa-Bz () scm ! kde ! org
[Download RAW message or body]

Git commit ae87c5804c3278609aa3927737054055bc4e48df by Albert Astals Cid.
Committed on 31/08/2013 at 16:20.
Pushed by aacid into branch 'frameworks'.

Improve the poor's man replacement of i18n in kservice

Reviewed by Aleix

M  +2    -2    staging/kservice/src/plugin/kpluginloader.cpp

http://commits.kde.org/kdelibs/ae87c5804c3278609aa3927737054055bc4e48df

diff --git a/staging/kservice/src/plugin/kpluginloader.cpp b/staging/kservi=
ce/src/plugin/kpluginloader.cpp
index 945c75b..91a3857 100644
--- a/staging/kservice/src/plugin/kpluginloader.cpp
+++ b/staging/kservice/src/plugin/kpluginloader.cpp
@@ -22,8 +22,8 @@
 #include <klocalizedstring.h>
 #else
 QString i18n(QString a) { return a; }
-QString i18n(QString a, QString) { return a; }
-QString i18n(QString a, QString, QString) { return a; }
+QString i18n(QString a, QString b) { return a.arg(b); }
+QString i18n(QString a, QString b, QString c) { return a.arg(b, c); }
 #endif
 #include "kpluginfactory.h"
 #include <kservice.h>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic