Bugzilla – Attachment 83705 Details for
Bug 22080
Easier translation of ElasticSearch mappings page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22080 - Easier translation of ElasticSearch mappings page
Bug-22080---Easier-translation-of-ElasticSearch-ma.patch (text/plain), 3.78 KB, created by
Fridolin Somers
on 2019-01-08 08:55:04 UTC
(
hide
)
Description:
Bug 22080 - Easier translation of ElasticSearch mappings page
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2019-01-08 08:55:04 UTC
Size:
3.78 KB
patch
obsolete
>From 127ce0e9f172d03d236089a5946024c4e267b727 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >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 <span> 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 { > <div class="dialog [% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'error_on_update' %] >- An error occurred when updating mappings ([% m.message | html %]). >+ <span>An error occurred when updating mappings ([% m.message | html %]).</span> > [% 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 %].) >+ <span>An error occurred when deleting the existing mappings. Nothing has been changed!</span> >+ <span>(search field [% m.values.field_name | html %] with mapping [% m.values.marc_field | html %].)</span> > [% CASE 'invalid_field_weight' %] >- Invalid field weight "[% m.weight | html %]", must be a positive decimal number. >+ <span>Invalid field weight "[% m.weight | html %]", must be a positive decimal number.</span> > [% CASE 'error_on_update_es_mappings' %] >- An error occurred when updating Elasticsearch index mappings: [% m.message | html %]. >+ <span>An error occurred when updating Elasticsearch index mappings: [% m.message | html %].</span> > [% CASE 'reindex_required' %] >- Index "[% m.index | html %]" needs to be reindexed >+ <span>Index "[% m.index | html %]" needs to be reindexed</span> > [% CASE 'recreate_required' %] >- Index "[% m.index | html %]" needs to be recreated >+ <span>Index "[% m.index | html %]" needs to be recreated</span> > [% CASE 'success_on_update' %] >- Mappings updated successfully. >+ <span>Mappings updated successfully.</span> > [% CASE 'success_on_reset' %] >- Mappings have been reset successfully. >+ <span>Mappings have been reset successfully.</span> > [% CASE %] >- [% m.code | html %] >+ <span>[% m.code | html %]</span> > [% END %] > </div> > [% END %] >@@ -115,9 +115,9 @@ a.add, a.delete { > [% FOREACH e IN errors %] > <li> > [% IF ( e.type == "malformed_mapping" ) %] >- The value "[% e.value | html %]" is not supported for mappings >+ <span>The value "[% e.value | html %]" is not supported for mappings</span> > [% ELSIF ( e.type == "no_mapping" ) %] >- There is no mapping for the index [% e.value | html %] >+ <span>There is no mapping for the index [% e.value | html %]</span> > [% END %] > </li> > [% END %] >-- >2.17.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22080
:
83705
|
83791
|
83792
|
85012
|
85441
|
85442
|
85443
|
85444