diff options
Diffstat (limited to 'ogcp')
-rw-r--r-- | ogcp/templates/actions/client_details.html | 10 | ||||
-rw-r--r-- | ogcp/templates/actions/image_create.html | 4 | ||||
-rw-r--r-- | ogcp/templates/actions/image_restore.html | 4 | ||||
-rw-r--r-- | ogcp/templates/actions/mode.html | 4 | ||||
-rw-r--r-- | ogcp/templates/actions/oglive.html | 4 | ||||
-rw-r--r-- | ogcp/templates/actions/setup.html | 14 | ||||
-rw-r--r-- | ogcp/templates/actions/wol.html | 4 |
7 files changed, 27 insertions, 17 deletions
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 @@ <table class="table"> <tbody class="text-center"> <tr> - <th>Partition</th> - <th>Type</th> - <th>Filesytem</th> - <th>Size (MB)</th> - <th>Image</th> + <th>{{_('Partition')}}</th> + <th>{{_('Type')}}</th> + <th>{{_('Filesystem')}}</th> + <th>{{_('Size')}} (MB)</th> + <th>{{_('Image')}}</th> <th colspan="2"></th> </tr> </tbody> 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 @@ <h1 class="m-5">{{_('Create a partition image')}}</h1> -<h2 class="mx-5">Selected client: {{ form.ip.data }}</h1> +<h2 class="mx-5"> + {{ _('Selected client') }}: {{ form.ip.data }} +</h1> {{ 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 %} -<h1 class="m-5">Restore partition image to {{ip_count}} {%if ip_count > 1%}computers{% else %}computer{% endif %}</h1> +<h1 class="m-5"> + {{ _('Restore partition image to %(ip_count)d computer(s)', ip_count=ip_count) }} +</h1> {{ 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 %} -<h1 class="m-5">Changing boot mode of {{ip_count}} {%if ip_count > 1%}computers{% else %}computer{% endif %}</h1> +<h1 class="m-5"> + {{ _('Changing boot mode of %(ip_count)d computer(s)', ip_count=ip_count) }} +</h1> {{ 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 %} -<h1 class="m-5">Changing ogLive of {{ip_count}} {%if ip_count > 1%}computers{% else %}computer{% endif %}</h1> +<h1 class="m-5"> + {{ _('Changing ogLive of %(ip_count)d computer(s)', ip_count=ip_count) }} +</h1> {{ 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 @@ <table class="table"> <thead class="text-center"> <tr> - <th>Partition Table Type</th> - <th>Total Disk Size (MB)</th> + <th>{{ _('Partition Table Type') }}</th> + <th>{{ _('Total Disk Size') }} (MB)</th> </tr> </thead> @@ -29,11 +29,11 @@ <table class="table"> <thead class="text-center"> <tr> - <th>Partition</th> - <th>Type</th> - <th>Filesytem</th> - <th>Size (MB)</th> - <th>Format?</th> + <th>{{ _('Partition') }}</th> + <th>{{ _('Type') }}</th> + <th>{{ _('Filesystem') }}</th> + <th>{{ _('Size') }} (MB)</th> + <th>{{ _('Format?') }}</th> <th colspan="2"></th> </tr> </thead> 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 %} -<h1 class="m-5">Powering on {{ip_count}} {%if ip_count > 1%}computers{% else %}computer{% endif %}</h1> +<h1 class="m-5"> + {{ _('Powering on %(ip_count)d computer(s)', ip_count=ip_count) }} +</h1> {{ macros.cmd_selected_clients(selected_clients) }} |