]> git.0d.be Git - django-panik-nonstop.git/commitdiff
mark forced switch message for translation
authorFrédéric Péters <fpeters@0d.be>
Sun, 22 Oct 2023 09:48:50 +0000 (11:48 +0200)
committerFrédéric Péters <fpeters@0d.be>
Sun, 22 Oct 2023 09:48:50 +0000 (11:48 +0200)
nonstop/views.py

index 53de8ef5b3227207e6167bbfc509db144a7bcf77..26282d49d694eb783339f8c418c3d5c768dc080d 100644 (file)
@@ -1223,6 +1223,6 @@ class StreamDeleteView(DeleteView):
 
 def force_switch_view(request, *args, **kwargs):
     logger.info('forced switch back to nonstop')
-    messages.info(request, 'Forced back switch to nonstop')
+    messages.info(request, _('Forced back switch to nonstop'))
     requests.post(app_settings.ON_AIR_SWITCH_URL, data={'s': '0'})
     return HttpResponseRedirect(reverse('nonstop-quick-links'))