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

List:       kde-commits
Subject:    kdelibs/kdecore
From:       Tobias Koenig <tokoe () kde ! org>
Date:       2003-11-02 0:27:20
[Download RAW message or body]

CVS commit by tokoe: 

KAccelManager uses now only ASCII characters for accels, so the asian translators can put stuff like

msgid "Foobar"
msgstr "XXXXXXX (A)"

into the po file (with X = non-latin1 character) and KAM will automatically
use 'A' as accel.
CCMAIL:58647-done@bugs.kde.org


  M +1 -1      kaccelmanager.cpp   1.28


--- kdelibs/kdecore/kaccelmanager.cpp  #1.27:1.28
@@ -581,5 +581,5 @@ int KAccelString::maxWeight(int &index, 
 
   for (uint pos=0; pos<m_pureText.length(); ++pos)
-    if (!used.contains(m_pureText[pos].lower()))
+    if (used.find(m_pureText[pos], 0, FALSE) == -1 && m_pureText[pos].latin1() != 0)
       if (m_weight[pos] > max)
       {


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

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