From: Paul Donald Date: Sat, 27 Jul 2024 19:56:02 +0000 (+0200) Subject: luci-app-commands: replace i18n single quotes with double-quotes X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=119fd22ebfcbccfb46e3298db81a1b4c5861a143;p=project%2Fluci.git luci-app-commands: replace i18n single quotes with double-quotes Closes #7213 Signed-off-by: Paul Donald --- diff --git a/applications/luci-app-commands/ucode/template/commands.ut b/applications/luci-app-commands/ucode/template/commands.ut index 8e5ce0b486..956a1fd98b 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 = - '{{ _('Loading') }} ' + - '{{ _('Waiting for command to complete...') }}' + '{{ _( ' + + '{{ _("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 aef072f802..a3d4707aac 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 %}