Fixed mintMenu not working properly in Korean (don't re-encode unicode strings)
This commit is contained in:
parent
b1849f6195
commit
6994188c71
@ -354,12 +354,15 @@ class ApplicationLauncher( easyButton ):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def strip_accents(self, string):
|
def strip_accents(self, string):
|
||||||
import unicodedata
|
if isinstance(string, unicode):
|
||||||
try:
|
return string
|
||||||
value = unicodedata.normalize('NFKD', unicode(string)).encode('UTF8', 'ignore')
|
else:
|
||||||
except:
|
import unicodedata
|
||||||
value = string
|
try:
|
||||||
return value
|
value = unicodedata.normalize('NFKD', unicode(string)).encode('UTF8', 'ignore')
|
||||||
|
except:
|
||||||
|
value = string
|
||||||
|
return value
|
||||||
|
|
||||||
def getTooltip( self ):
|
def getTooltip( self ):
|
||||||
tooltip = self.appName
|
tooltip = self.appName
|
||||||
|
Loading…
Reference in New Issue
Block a user