mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 11:59:23 +00:00
Add french translation file
This commit is contained in:
@ -191,9 +191,9 @@ class CounterClick(DetailView):
|
||||
def parse_code(self, request):
|
||||
"""Parse the string entered by the barman"""
|
||||
string = str(request.POST['code']).upper()
|
||||
if string == _("FIN"):
|
||||
if string == _("END"):
|
||||
return self.finish(request)
|
||||
elif string == _("ANN"):
|
||||
elif string == _("CAN"):
|
||||
return self.cancel(request)
|
||||
regex = re.compile(r"^((?P<nb>[0-9]+)X)?(?P<code>[A-Z0-9]+)$")
|
||||
m = regex.match(string)
|
||||
|
Reference in New Issue
Block a user