mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
diagnostics: Translate descriptions only in view
Tests: - Enable all apps, and run diagnostics. Diagnostic descriptions are formatted as expected. - Change the language to Spanish, and view the diagnostic results. Diagnostic descriptions are translated as expected. Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
1 parent
a5820bc36d
commit
3fcd6b9e58
18 files changed
+101
-89
No files matched your search
@@ -6,6 +6,7 @@ FreedomBox app to configure system date and time.
|
||||
import subprocess
|
||||
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from django.utils.translation import gettext_noop
|
||||
|
||||
from plinth import app as app_module
|
||||
from plinth import menu
|
||||
@@ -118,4 +119,5 @@ def _diagnose_time_synchronized():
|
||||
pass
|
||||
|
||||
return DiagnosticCheck('datetime-ntp-sync',
|
||||
_('Time synchronized to NTP server'), result)
|
||||
gettext_noop('Time synchronized to NTP server'),
|
||||
result)
|
||||
Reference in new issue
Block a user