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

List:       kde-commits
Subject:    KDE/kdesdk/lokalize/src
From:       Nickolai Shaforostoff <shafff () ukr ! net>
Date:       2009-06-07 9:47:34
Message-ID: 1244368054.336347.32754.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 978465 by shaforo:

BUG:195510
words in <brackets> in translation hint are not shown

thanks for the report.



 M  +7 -2      msgctxtview.cpp  


--- trunk/KDE/kdesdk/lokalize/src/msgctxtview.cpp #978464:978465
@@ -127,8 +127,13 @@
         html.chop(6);
     }
 
-    if (!m_catalog->msgctxt(m_entry.entry).isEmpty())
-        html+=i18nc("@info PO comment \
parsing","<br><b>Context:</b><br>")+m_catalog->msgctxt(m_entry.entry); +    QString \
msgctxt=m_catalog->msgctxt(m_entry.entry); +    if (!msgctxt.isEmpty())
+    {
+        msgctxt.replace('<',"&lt;");
+        msgctxt.replace('>',"&gt;");
+        html+=i18nc("@info PO comment parsing","<br><b>Context:</b><br>")+msgctxt;
+    }
 
     QTextCursor t=m_browser->textCursor();
     t.movePosition(QTextCursor::End);


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

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