File 0007-Use-i18n-instead-of-concatenating-strings-that-are-s.patch of Package polkit-kde-agent-5

From 159e5e09fdecd0ebeaf311660633cf026a4ef27c Mon Sep 17 00:00:00 2001
From: Albert Astals Cid <tsdgeos@terra.es>
Date: Tue, 13 Dec 2011 09:28:45 +0100
Subject: [PATCH 1/1] Use i18n instead of concatenating strings that are shown
 to the user

REVIEW: 103400
---
 AuthDialog.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/AuthDialog.cpp b/AuthDialog.cpp
index 4450052..d698f79 100644
--- a/AuthDialog.cpp
+++ b/AuthDialog.cpp
@@ -207,7 +207,7 @@ void AuthDialog::createUserCB(const PolkitQt1::Identity::List &identities)
             // Display user Full Name IF available
             QString display;
             if (!user.property(KUser::FullName).toString().isEmpty()) {
-                display = user.property(KUser::FullName).toString() + " (" + user.loginName() + ')';
+                display = i18nc("%1 is the full user name, %2 is the user login name", "%1 (%2)", user.property(KUser::FullName).toString(), user.loginName());
             } else {
                 display = user.loginName();
             }
-- 
1.9.3

openSUSE Build Service is sponsored by