From 1021ecef108532b0d9af3409cf754b842e344b20 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 28 Jul 2024 00:21:19 +0200 Subject: [PATCH] Revert "luci-app-commands: replace i18n single quotes with double-quotes" This reverts commit 119fd22ebfcbccfb46e3298db81a1b4c5861a143. The commit is ineffective and does not solve the reported issue. Signed-off-by: Jo-Philipp Wich --- .../ucode/template/commands.ut | 30 +++++++++---------- .../ucode/template/commands_public.ut | 8 ++--- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/applications/luci-app-commands/ucode/template/commands.ut b/applications/luci-app-commands/ucode/template/commands.ut index 956a1fd98b..8e5ce0b486 100644 --- a/applications/luci-app-commands/ucode/template/commands.ut +++ b/applications/luci-app-commands/ucode/template/commands.ut @@ -44,8 +44,8 @@ if (legend && output) { output.innerHTML = - '{{ _( ' + - '{{ _("Waiting for command to complete...") }}' + '{{ _('Loading') }} ' + + '{{ _('Waiting for command to complete...') }}' ; legend.parentNode.style.display = 'block'; @@ -57,20 +57,20 @@ if (st) { if (st.binary) - st.stdout = '[{{ _("Binary data not displayed, download instead.") }}]'; + st.stdout = '[{{ _('Binary data not displayed, download instead.') }}]'; legend.style.display = 'none'; output.innerHTML = String.format( '
# %h\n%h%h
' + - '
%s ({{ _("Code:") }} %d)
', + '
%s ({{ _('Code:') }} %d)
', st.command, st.stdout, st.stderr, - (st.exitcode == 0) ? '{{ _("Command successful") }}' : '{{ _("Command failed") }}', + (st.exitcode == 0) ? '{{ _('Command successful') }}' : '{{ _('Command failed') }}', st.exitcode); } else { legend.style.display = 'none'; - output.innerHTML = '{{ _("Failed to execute command!") }}'; + output.innerHTML = '{{ _('Failed to execute command!') }}'; } location.hash = '#output'; @@ -114,7 +114,7 @@ legend.style.display = 'none'; output.parentNode.style.display = 'block'; output.innerHTML = String.format( - '

{{ _("Download execution result") }} %s

{{ _("Or display result") }} %s

', + '

{{ _('Download execution result') }} %s

{{ _('Or display result') }} %s

', link, link, link_nodownload, link_nodownload ); @@ -134,14 +134,14 @@
-

{{ _("Custom Commands") }}

+

{{ _('Custom Commands') }}

{% if (length(commands) == 0): %}

- {{ _("This section contains no values yet") }} + {{ _('This section contains no values yet') }}

@@ -151,15 +151,15 @@ {% for (let command in commands): %}

{{ entityencode(command.name) }}

-

{{ _("Command:") }} {{ entityencode(command.command) }}

+

{{ _('Command:') }} {{ entityencode(command.command) }}

{% if (command.param == "1"): %} -

{{ _("Arguments:") }}

+

{{ _('Arguments:') }}

{% endif %}
- - + + {% if (command.public == "1"): %} - + {% endif %}
@@ -171,7 +171,7 @@
diff --git a/applications/luci-app-commands/ucode/template/commands_public.ut b/applications/luci-app-commands/ucode/template/commands_public.ut index a3d4707aac..aef072f802 100644 --- a/applications/luci-app-commands/ucode/template/commands_public.ut +++ b/applications/luci-app-commands/ucode/template/commands_public.ut @@ -29,19 +29,19 @@ {% if (length(stdout)): %} -

{{ _("Standard Output") }}

+

{{ _('Standard Output') }}

{{ entityencode(stdout) }}
{% endif %} {% if (length(stderr)): %} -

{{ _("Standard Error") }}

+

{{ _('Standard Error') }}

{{ entityencode(stderr) }}
{% endif %}