Bug 25443: Improve translation of 'Select the record to link%s to'
authorKatrin Fischer <katrin.fischer.83@web.de>
Sun, 24 May 2020 00:04:03 +0000 (02:04 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 9 Jul 2020 09:50:42 +0000 (11:50 +0200)
Before this patch the title was set in italic, which caused the
translation string to be cut off. Removing the italic formatting in
favor of quotes and splitting the string into 2 sentences (dealing
with title existing and not existing:

Select the host record to link to '[% bibliotitle | html %]'
Select the host record to link

To test:
- Activate EasyAnalyticalRecords system preference
- Search for a record in staff
- Use Edit > Link to host record
- Verify the text is shown as above with the reord's title
- The second case is a bit theoretical:
- Delete 245$a from the record or empty out biblio.title using SQL
- Verify the string still shows but without the 'to...' part.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/linkitem.tt

index 84200af..0d5e51c 100644 (file)
 
            [% IF ( missingbarcode ) %]
            <fieldset id="barcode_fieldset">
-        <label for="barcode_fieldset">Select the host record to link[% IF ( bibliotitle ) %] to <i>[% bibliotitle | html %]</i>[% END %]</label>
+        <label for="barcode_fieldset">
+            [% IF (bibliotitle ) %]
+                Select the host record to link to '[% bibliotitle | html %]'
+            [% ELSE %]
+                Select the host record to link
+            [% END %]
+        </label>
                    <div class="hint">Enter item barcode:</div>
                    <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" /> 
            </fieldset>