From 127ce0e9f172d03d236089a5946024c4e267b727 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Tue, 8 Jan 2019 09:51:35 +0100 Subject: [PATCH] Bug 22080 - Easier translation of ElasticSearch mappings page Actual translation of ElasticSearch mappings page contains a huge block with a lot of %s. It makes translation hard. This patch adds to split into several translation blocks. Test plan : 1) Compare page with and without patch, check the only difference is span tags. 2) Check HTML is OK with patch. 3) Update a PO file and see new translation blocks. --- .../searchengine/elasticsearch/mappings.tt | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt index bb2ade3ea6..353c97672f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt @@ -75,24 +75,24 @@ a.add, a.delete {
[% SWITCH m.code %] [% CASE 'error_on_update' %] - An error occurred when updating mappings ([% m.message | html %]). + An error occurred when updating mappings ([% m.message | html %]). [% CASE 'error_on_delete' %] - An error occurred when deleting the existing mappings. Nothing has been changed! - (search field [% m.values.field_name | html %] with mapping [% m.values.marc_field | html %].) + An error occurred when deleting the existing mappings. Nothing has been changed! + (search field [% m.values.field_name | html %] with mapping [% m.values.marc_field | html %].) [% CASE 'invalid_field_weight' %] - Invalid field weight "[% m.weight | html %]", must be a positive decimal number. + Invalid field weight "[% m.weight | html %]", must be a positive decimal number. [% CASE 'error_on_update_es_mappings' %] - An error occurred when updating Elasticsearch index mappings: [% m.message | html %]. + An error occurred when updating Elasticsearch index mappings: [% m.message | html %]. [% CASE 'reindex_required' %] - Index "[% m.index | html %]" needs to be reindexed + Index "[% m.index | html %]" needs to be reindexed [% CASE 'recreate_required' %] - Index "[% m.index | html %]" needs to be recreated + Index "[% m.index | html %]" needs to be recreated [% CASE 'success_on_update' %] - Mappings updated successfully. + Mappings updated successfully. [% CASE 'success_on_reset' %] - Mappings have been reset successfully. + Mappings have been reset successfully. [% CASE %] - [% m.code | html %] + [% m.code | html %] [% END %]
[% END %] @@ -115,9 +115,9 @@ a.add, a.delete { [% FOREACH e IN errors %]
  • [% IF ( e.type == "malformed_mapping" ) %] - The value "[% e.value | html %]" is not supported for mappings + The value "[% e.value | html %]" is not supported for mappings [% ELSIF ( e.type == "no_mapping" ) %] - There is no mapping for the index [% e.value | html %] + There is no mapping for the index [% e.value | html %] [% END %]
  • [% END %] -- 2.17.1