Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin
Owen Leonard 2c98f4849d Bug 26230: Move translatable strings out of item_search_fields.tt and into item_search_fields.js
This patch removes the definition of translatable strings out of
templates and into the corresponding JavaScript file, using the new JS
i81n function.

To test:

- Apply the patch, go to Administration -> Item search fields.
- If necessary, add a new search field.
- From the table of search fields, click the "Delete" button for one of
  the fields.
- You should get a confirmation: "Are you sure you want to delete this
  field?"

TESTING TRANSLATABILITY

- Update a translation, e.g. fr-FR:

> cd misc/translator
> perl translate update fr-FR

- Open the corresponding .po file for JavaScript strings, e.g.
  misc/translator/po/fr-FR-messages-js.po
- Locate the string pulled from
  koha-tmpl/intranet-tmpl/prog/js/item_search_fields.js for translation:

  #: koha-tmpl/intranet-tmpl/prog/js/item_search_fields.js:18
  msgid "Are you sure you want to delete this field?"
  msgstr ""

- Edit the "msgstr" string however you want (it's just for testing).
- Install the updated translation:

  > perl translate install fr-FR

- Switch to your newly translated language in the staff client
  and repeat the test plan above. The translated strings should
  appear.

Signed-off-by: Alexis Ripetti <alexis.ripetti@inLibro.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-09-29 14:28:18 +02:00
..
preferences Bug 26283: Add dateexpiry and dateenrolled to new borrower fields modal 2020-09-18 11:49:29 +02:00
searchengine/elasticsearch Bug 24807: Add "year" type to improve sorting behaviour 2020-09-18 11:21:31 +02:00
additional-fields.tt
admin-home.tt Bug 24156: (follow-up) UI - Use "Table settings" 2020-06-25 10:55:41 +02:00
adveditorshortcuts.tt
aqbudgetperiods.tt Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
aqbudgets.tt Bug 26098: Fix JS error on the fund list view when no fund displayed 2020-08-06 11:37:06 +02:00
aqcontract.tt Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
aqplan.tt Bug 26497: "Hide all columns" throws Javascript error on aqplan.pl 2020-09-28 15:06:49 +02:00
audio_alerts.tt Bug 26225: Move translatable strings out of audio_alerts.tt and into audio_alerts.js 2020-09-29 14:28:18 +02:00
auth_subfields_structure.tt Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
auth_tag_structure.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
authorised_values.tt Bug 25534: (QA follow-up) Add AV category 2020-08-25 15:07:28 +02:00
authtypes.tt
biblio_framework.tt Bug 26225: Move translatable strings out of biblio_framework.tt and into biblio_framework.js 2020-09-29 14:28:18 +02:00
branch_transfer_limits.tt
branches.tt Bug 25862: Prevent TinyMCE to mangle local url links 2020-07-20 14:05:21 +02:00
cash_registers.tt Bug 26194: (follow-up) Default to current branch 2020-08-18 15:45:49 +02:00
categories.tt Bug 26229: Move translatable strings out of categories.tt and into categories.js 2020-09-29 14:28:18 +02:00
checkmarc.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
cities.tt Bug 25279: (QA follow-up) Use .escapeHtml 2020-05-12 11:40:22 +01:00
classsources.tt
clone-rules.tt
columns_settings.tt Bug 26160: Make POS items table configurable 2020-08-12 12:07:12 +02:00
credit_types.tt Bug 19036: Add ability to enable credit number for only some credit types 2020-08-20 12:31:59 +02:00
currency.tt Bug 26234: Teach our KohaTable constructor the specific th classes 2020-08-19 08:24:04 +02:00
debit_types.tt
desks.tt
didyoumean.tt
edi_accounts.tt Bug 25687: Switch Y/N in EDI accounts table for Yes and No for better translatability 2020-06-15 11:53:36 +02:00
edi_ean_accounts.tt
item_circulation_alerts.tt
items_search_field.tt
items_search_fields.tt Bug 26230: Move translatable strings out of item_search_fields.tt and into item_search_fields.js 2020-09-29 14:28:18 +02:00
itemtypes.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
koha2marclinks.tt Bug 26007: Add/fix warning for changes to the Koha to MARC mappings 2020-09-09 15:39:51 +02:00
library_groups.tt
localization.tt
marc_subfields_structure.tt Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
marctagstructure.tt
matching-rules.tt
oai_set_mappings.tt
oai_sets.tt
overdrive.tt
patron-attr-types.tt Bug 26119: Enable patron's attribute edition when PatronSelfRegistrationVerifyByEmail 2020-08-18 14:47:44 +02:00
preferences.tt Bug 22844: Simplify the process of selecting database columns for system preferences 2020-07-20 16:08:22 +02:00
share_content.tt
smart-rules.tt Bug 21946: (follow-up) Add optgroup label in circ rules 2020-08-13 10:13:14 +02:00
sms_providers.tt
sru_modmapping.tt
sru_modmapping_auth.tt
systempreferences.tt
transport-cost-matrix.tt
usage_statistics.tt
z3950servers.tt