- mapping = []
- mapping.append ("abcABC") # 0
- mapping.append ("abcABC") # 1
- mapping.append ("abcABC") # 2
- mapping.append ("defDEF") # 3
- mapping.append ("ghiGHI") # 4
- mapping.append ("jklJKL") # 5
- mapping.append ("mnoMNO") # 6
- mapping.append ("pqrsPQRS") # 7
- mapping.append ("tuvTUV") # 8
- mapping.append ("wxyzWXYZ") # 9
+ def __init__(self, nextFunc=None, handleTimeout = True):
+ self.mapping = []
+ self.lang = language.getLanguage()
+ self.useableChars=None
+ self.nextFunction=nextFunc
+
+ if self.lang == 'de_DE':
+ self.mapping.append (u".,?'\"0-()@/:_") # 0
+ self.mapping.append (u" 1") # 1
+ self.mapping.append (u"aäbc2AÄBC") # 2
+ self.mapping.append (u"def3DEF") # 3
+ self.mapping.append (u"ghi4GHI") # 4
+ self.mapping.append (u"jkl5JKL") # 5
+ self.mapping.append (u"mnoö6MNOÖ") # 6
+ self.mapping.append (u"pqrsß7PQRSß") # 7
+ self.mapping.append (u"tuüv8TUÜV") # 8
+ self.mapping.append (u"wxyz9WXYZ") # 9
+ elif self.lang == 'es_ES':
+ self.mapping.append (u".,?'\"0-()@/:_") # 0
+ self.mapping.append (u" 1") # 1
+ self.mapping.append (u"abcáà2ABCÁÀ") # 2
+ self.mapping.append (u"deéèf3DEFÉÈ") # 3
+ self.mapping.append (u"ghiíì4GHIÍÌ") # 4
+ self.mapping.append (u"jkl5JKL") # 5
+ self.mapping.append (u"mnñoóò6MNÑOÓÒ") # 6
+ self.mapping.append (u"pqrs7PQRS") # 7
+ self.mapping.append (u"tuvúù8TUVÚÙ") # 8
+ self.mapping.append (u"wxyz9WXYZ") # 9
+ else:
+ self.mapping.append (u".,?'\"0-()@/:_") # 0
+ self.mapping.append (u" 1") # 1
+ self.mapping.append (u"abc2ABC") # 2
+ self.mapping.append (u"def3DEF") # 3
+ self.mapping.append (u"ghi4GHI") # 4
+ self.mapping.append (u"jkl5JKL") # 5
+ self.mapping.append (u"mno6MNO") # 6
+ self.mapping.append (u"pqrs7PQRS") # 7
+ self.mapping.append (u"tuv8TUV") # 8
+ self.mapping.append (u"wxyz9WXYZ") # 9