LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File pam-translate.diff of Package kdebase4-workspace (Project openSUSE:11.4)

Index: libs/kdm/kgreet_generic.cpp
===================================================================
--- libs/kdm/kgreet_generic.cpp.orig
+++ libs/kdm/kgreet_generic.cpp
@@ -164,7 +164,9 @@ KGenericGreeter::textMessage(const char
 
     if (m_infoMsgs.isEmpty())
         revive();
-    QString qtext = QString::fromUtf8(text);
+    // PAM does not translate these
+    //(void) I18N_NOOP("");
+    QString qtext = i18n( text );
     m_infoMsgs.append(qtext);
     m_messageLabel->setText( m_infoMsgs.join( "\n" ));
 
@@ -193,7 +195,11 @@ KGenericGreeter::textPrompt(const char *
     m_children.append(m_label);
     m_echo = echo;
 
-    m_label->setText( QString::fromUtf8( prompt ).trimmed());
+    // PAM does not translate these
+    ( void ) I18N_NOOP( "Password: " );
+    ( void ) I18N_NOOP( "Password or swipe finger: " );
+    m_label->setText( i18n( prompt ).trimmed());
+
     m_lineEdit->setContextMenuPolicy( Qt::NoContextMenu );
     m_lineEdit->setCompletionObject( 0 );
     m_lineEdit->disconnect( this );