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)
commitd53b58cab858f06be7f9762b16b89c8bfbce5625
tree10ea3c70760f6d6028b6531f7643eeb84c4e6626
parent6250c2dc1556dbf0ef87f2bb36f13534cb2e2368
Bug 25443: Improve translation of 'Select the record to link%s to'

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