Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin
Owen Leonard 1eb0fe4e5e Bug 26225: Move translatable strings out of biblio_framework.tt and into biblio_framework.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 -> MARC bibliographic framework.
- Click Actions -> Export and save the file.
- Click Actions -> Import.
- Select a file which isn't CSV or ODS. You should get an error message,
  "Please select a CSV (.csv) or ODS (.ods) spreadsheet file."
- Select the file you exported previously and click "Import." You should
  see an error message, "Are you sure you want to replace the fields and
  subfields for the default framework structure? ..."
- Click "OK." You should see a message in the modal window, "Importing
  to framework:..."
- Edit your exported framework file in such a way that it isn't a valid
  framework export.
- Repeat the process of importing the file. You should get an error
  message, "Error importing the framework..."

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 strings pulled from
  koha-tmpl/intranet-tmpl/prog/js/biblio_framework.js for translation,
  e.g.:

  msgid "Please select a CSV (.csv) or ODS (.ods) spreadsheet file"
  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.

https://bugs.koha-community.org/show_bug.cgi?id=26226

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

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
adveditorshortcuts.tt
aqbudgetperiods.tt Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
aqbudgets.tt
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
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
cash_registers.tt
categories.tt Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
checkmarc.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
cities.tt
classsources.tt
clone-rules.tt
columns_settings.tt
credit_types.tt
currency.tt
debit_types.tt
desks.tt
didyoumean.tt
edi_accounts.tt
edi_ean_accounts.tt
item_circulation_alerts.tt
items_search_field.tt
items_search_fields.tt
itemtypes.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
koha2marclinks.tt
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
preferences.tt
share_content.tt
smart-rules.tt
sms_providers.tt
sru_modmapping.tt
sru_modmapping_auth.tt
systempreferences.tt
transport-cost-matrix.tt
usage_statistics.tt
z3950servers.tt