From 62feecad1fbf6a78b4af4026ef56c1d6c34a25a6 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Tue, 22 Mar 2022 10:26:28 +0100 Subject: Add missing gettext functions Otherwise, this strings are not translatable. --- ogcp/templates/actions/client_details.html | 10 +++++----- ogcp/templates/actions/image_create.html | 4 +++- ogcp/templates/actions/image_restore.html | 4 +++- ogcp/templates/actions/mode.html | 4 +++- ogcp/templates/actions/oglive.html | 4 +++- ogcp/templates/actions/setup.html | 14 +++++++------- ogcp/templates/actions/wol.html | 4 +++- 7 files changed, 27 insertions(+), 17 deletions(-) (limited to 'ogcp/templates/actions') diff --git a/ogcp/templates/actions/client_details.html b/ogcp/templates/actions/client_details.html index 8d869f8..4b83c21 100644 --- a/ogcp/templates/actions/client_details.html +++ b/ogcp/templates/actions/client_details.html @@ -19,11 +19,11 @@ - - - - - + + + + + diff --git a/ogcp/templates/actions/image_create.html b/ogcp/templates/actions/image_create.html index 4c8ac43..3fb93c7 100644 --- a/ogcp/templates/actions/image_create.html +++ b/ogcp/templates/actions/image_create.html @@ -10,7 +10,9 @@

{{_('Create a partition image')}}

-

Selected client: {{ form.ip.data }}

+

+ {{ _('Selected client') }}: {{ form.ip.data }} +

{{ wtf.quick_form(form, action=url_for('action_image_create'), diff --git a/ogcp/templates/actions/image_restore.html b/ogcp/templates/actions/image_restore.html index 8a5d22e..939ab74 100644 --- a/ogcp/templates/actions/image_restore.html +++ b/ogcp/templates/actions/image_restore.html @@ -11,7 +11,9 @@ {% set ip_list = form.ips.data.split(' ') %} {% set ip_count = ip_list | length %} -

Restore partition image to {{ip_count}} {%if ip_count > 1%}computers{% else %}computer{% endif %}

+

+ {{ _('Restore partition image to %(ip_count)d computer(s)', ip_count=ip_count) }} +

{{ macros.cmd_selected_clients(selected_clients) }} diff --git a/ogcp/templates/actions/mode.html b/ogcp/templates/actions/mode.html index 44de8ac..131097a 100644 --- a/ogcp/templates/actions/mode.html +++ b/ogcp/templates/actions/mode.html @@ -11,7 +11,9 @@ {% set ip_list = form.ips.data.split(' ') %} {% set ip_count = ip_list | length %} -

Changing boot mode of {{ip_count}} {%if ip_count > 1%}computers{% else %}computer{% endif %}

+

+ {{ _('Changing boot mode of %(ip_count)d computer(s)', ip_count=ip_count) }} +

{{ macros.cmd_selected_clients(selected_clients) }} diff --git a/ogcp/templates/actions/oglive.html b/ogcp/templates/actions/oglive.html index 9a4467f..6b8e8b3 100644 --- a/ogcp/templates/actions/oglive.html +++ b/ogcp/templates/actions/oglive.html @@ -11,7 +11,9 @@ {% set ip_list = form.ips.data.split(' ') %} {% set ip_count = ip_list | length %} -

Changing ogLive of {{ip_count}} {%if ip_count > 1%}computers{% else %}computer{% endif %}

+

+ {{ _('Changing ogLive of %(ip_count)d computer(s)', ip_count=ip_count) }} +

{{ macros.cmd_selected_clients(selected_clients) }} diff --git a/ogcp/templates/actions/setup.html b/ogcp/templates/actions/setup.html index 559be84..5dd3528 100644 --- a/ogcp/templates/actions/setup.html +++ b/ogcp/templates/actions/setup.html @@ -13,8 +13,8 @@
PartitionTypeFilesytemSize (MB)Image{{_('Partition')}}{{_('Type')}}{{_('Filesystem')}}{{_('Size')}} (MB){{_('Image')}}
- - + + @@ -29,11 +29,11 @@
Partition Table TypeTotal Disk Size (MB){{ _('Partition Table Type') }}{{ _('Total Disk Size') }} (MB)
- - - - - + + + + + diff --git a/ogcp/templates/actions/wol.html b/ogcp/templates/actions/wol.html index e93927b..adeb2e0 100644 --- a/ogcp/templates/actions/wol.html +++ b/ogcp/templates/actions/wol.html @@ -11,7 +11,9 @@ {% set ip_list = form.ips.data.split(' ') %} {% set ip_count = ip_list | length %} -

Powering on {{ip_count}} {%if ip_count > 1%}computers{% else %}computer{% endif %}

+

+ {{ _('Powering on %(ip_count)d computer(s)', ip_count=ip_count) }} +

{{ macros.cmd_selected_clients(selected_clients) }} -- cgit v1.2.3-18-g5258
PartitionTypeFilesytemSize (MB)Format?{{ _('Partition') }}{{ _('Type') }}{{ _('Filesystem') }}{{ _('Size') }} (MB){{ _('Format?') }}