Fixed mintMenu not working properly in Korean (don't re-encode unicode strings)

This commit is contained in:
Clement Lefebvre 2013-05-21 11:00:55 +01:00
parent b1849f6195
commit 6994188c71

View File

@ -353,13 +353,16 @@ class ApplicationLauncher( easyButton ):
self.show()
return True
def strip_accents(self, string):
import unicodedata
try:
value = unicodedata.normalize('NFKD', unicode(string)).encode('UTF8', 'ignore')
except:
value = string
return value
def strip_accents(self, string):
if isinstance(string, unicode):
return string
else:
import unicodedata
try:
value = unicodedata.normalize('NFKD', unicode(string)).encode('UTF8', 'ignore')
except:
value = string
return value
def getTooltip( self ):
tooltip = self.appName