Salman11223 commited on
Commit
50dd62f
·
verified ·
1 Parent(s): a7c9606

Update translator.py

Browse files
Files changed (1) hide show
  1. translator.py +4 -4
translator.py CHANGED
@@ -15,8 +15,8 @@ class translation:
15
  self.lan_code = 'en'
16
  elif original_language == 'German':
17
  self.lan_code = 'de'
18
- elif original_language == 'French':
19
- self.lan_code = 'fr'
20
  elif original_language == 'Spanish':
21
  self.lan_code = 'es'
22
  else:
@@ -27,8 +27,8 @@ class translation:
27
  self.tran_code = 'en'
28
  elif target_language == 'German':
29
  self.tran_code = 'de'
30
- elif target_language == 'French':
31
- self.tran_code = 'fr'
32
  elif target_language == 'Spanish':
33
  self.tran_code = 'es'
34
  else:
 
15
  self.lan_code = 'en'
16
  elif original_language == 'German':
17
  self.lan_code = 'de'
18
+ elif original_language == 'Italian':
19
+ self.lan_code = 'it'
20
  elif original_language == 'Spanish':
21
  self.lan_code = 'es'
22
  else:
 
27
  self.tran_code = 'en'
28
  elif target_language == 'German':
29
  self.tran_code = 'de'
30
+ elif target_language == 'Italian':
31
+ self.tran_code = 'it'
32
  elif target_language == 'Spanish':
33
  self.tran_code = 'es'
34
  else: