Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin
Fridolin Somers f3dfd5226d Bug 20085: Better translatability of smart-rules.tt
Template smart-rules.tt in administration contains some if/elsif/else with translatable strings.
For example :
[% IF rule.onshelfholds == 1 %]
    Yes
[% ELSIF rule.onshelfholds == 2 %]
    If all unavailable
[% ELSE %]
    If any unavailable
[% END %]

Adding span to translatable strings will allow to have the same translation than :

<select name="onshelfholds" id="onshelfholds">
    <option value="1">Yes</option>
    <option value="0">If any unavailable</option>
    <option value="2">If all unavailable</option>
</select>

This is important to allow editing an existing circulation and fine rule.

Actually for example in french some strings are translated differently :
msgid "%s Yes %s If all unavailable %s If any unavailable %s"
msgstr "%s Oui %s Si tous indisponibles %s Si aucun indisponible %s"

msgid "If any unavailable"
msgstr "Si au moins un exemplaire est indisponible"

Test plan :
1) Look at PO files, for example fr-FR and see there is :
msgid "%s Yes %s If all unavailable %s If any unavailable %s"
msgid "If any unavailable"
2) Apply patch
3) update PO files
4) Look at PO files, for example fr-FR and see there is now only :
msgid "If any unavailable"
5) Install translation
6) Go to Administration > Circulation and fine rule
7) Check that when editing an existing rule, edition comboboxes are set on the correct value
8) Create a default holds policy by item type and check that correct values are displayed in table

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2018-03-26 17:01:10 -03:00
..
preferences Bug 20264: Remove syspref checkdigit 2018-03-23 11:45:38 -03:00
searchengine/elasticsearch Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
admin-home.tt Bug 20383: Hide link to plugin management if plugins are not enabled 2018-03-19 13:55:53 -03:00
aqbudgetperiods.tt Bug 12904: Add KOHA_VERSION to few more .css 2018-02-16 13:01:19 -03:00
aqbudgets.tt Bug 18789: Send Koha::Patron object to the templates 2018-02-16 13:03:58 -03:00
aqcontract.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
aqplan.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
audio_alerts.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
auth_subfields_structure.tt Bug 20074: (follow-up) Replace hidden value -5 by 1 in data and interface 2018-02-26 13:04:31 -03:00
auth_tag_structure.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
authorised_values.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
authtypes.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
biblio_framework.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
branch_transfer_limits.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
branches.tt Bug 20190: Replace intranet-tmpl with [% interface %] 2018-02-13 12:57:46 -03:00
categories.tt Bug 19641: Move patron templates to the footer 2018-02-15 13:30:23 -03:00
checkmarc.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
cities.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
classsources.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
clone-rules.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
columns_settings.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
currency.tt Bug 4078: Add the checkbox to the UI 2018-03-23 11:45:38 -03:00
didyoumean.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
edi_accounts.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
edi_ean_accounts.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
fieldmapping.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
item_circulation_alerts.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
items_search_field.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
items_search_fields.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
itemtypes.tt Bug 20216: Correctly populate values in itemtype editor 2018-02-15 16:02:47 -03:00
koha2marclinks.tt Bug 20139: Improve MARC mapping translatable strings 2018-02-27 13:53:15 -03:00
library_groups.tt Bug 12904: Add KOHA_VERSION to few more .css 2018-02-16 13:01:19 -03:00
localization.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
marc_subfields_structure.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
marctagstructure.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
matching-rules.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
oai_set_mappings.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
oai_sets.tt Bug 20140: Allow translating more of OAI sets 2018-02-26 13:24:44 -03:00
patron-attr-types.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
preferences.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
printers.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
smart-rules.tt Bug 20085: Better translatability of smart-rules.tt 2018-03-26 17:01:10 -03:00
sms_providers.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
sru_modmapping.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
systempreferences.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
transport-cost-matrix.tt Bug 20141: Untranslatable string in transport cost matrix 2018-02-27 13:53:15 -03:00
usage_statistics.tt Bug 12904: Add KOHA_VERSION to few more .css 2018-02-16 13:01:19 -03:00
z3950servers.tt Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00