service.py

changeset 53
1c934953c3e6
parent 50
2cf22291a4f4
child 55
0f1d046b3f78
equal deleted inserted replaced
52:cab8d38fe5c6 53:1c934953c3e6
41 try: 41 try:
42 return self.languages[language][section][name] 42 return self.languages[language][section][name]
43 except KeyError: 43 except KeyError:
44 pass 44 pass
45 else: 45 else:
46 return name 46 return name[0:1].upper() + name[1:]
47 47
48 tr = Translator() 48 tr = Translator()
49 for file in listdir('tr'): 49 for file in listdir('tr'):
50 tr.load_language(path.join('tr', file)) 50 tr.load_language(path.join('tr', file))
51 51

mercurial