def canonicalizeTranslatedMenuName(self, name): # #1121 & #1188. Allow Chinese characters in command names if g.isascii(name): return ''.join([ch for ch in name.lower() if ch not in '& \t\n\r']) return ''.join([ch for ch in name if ch not in '& \t\n\r'])
def canonicalizeMenuName(self, name): # #1121 & #1188. Allow Chinese characters in command names if g.isascii(name): return ''.join([ch for ch in name.lower() if ch.isalnum()]) return name