Try using hardcoded test cases translation.activate(language)before submitting:
def nomegiorno(self):
old = translation.get_language()
print('old', old)
translation.activate('it')
pio = self.datainserimento.strftime("%A")
translation.activate(old)
return pio
And tell me what you have, this should help anyway
source
share