Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools
Owen Leonard 8bf7c342bf Bug 26395: Move translatable strings out of letter.tt into letter.js
This patch moves strings defined for translation in letter.tt
into letter.js for translation using the new double-underscore
i81n function.

Note, the "MSG_NO_NOTICE_FOUND" usage has been removed because it didn't
work.

To test, apply the patch and go to Tools -> Notices & Slips.

- Use the "Copy" dropdown to copy an existing notice to a specific
  library.
- Save the copied notice.
- Return to the "All libraries" view on the Notices & Slips page.
- Repeat the same process above: Copy the same notice to the same
  library.
- When you click save on the "Add notice" page you should get an error
  message, "A letter with the code 'ACCTDETAILS' already exists for
  <library>"

- From the "All libraries" view on the Notices & Slips page, copy the
  text in the "Code" column of an existing notice.
- Click "New notice" and choose the module of the notice you copied
  from.
- On the "Add notice" page, paste the code into the "Code" field and
  enter a name in the "Name" field.
- Click "Save" without making any other changes. You should get an error
  message, "Please fill at least one template."
- Enter some data into one of the message body fields but not message
  subject, and click "Save" again.
- You should get an error, "Please specify title and content for
  <notice>"
- Enter data in the message subject field and click "Save" again.
- You should get an error, "A default letter with the code <CODE>
  already exists."

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/letter.js for translation,
  e.g.:

  msgid "Please fill at least one template."
  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: David Nind <david@davidnind.com>

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
..
access_files.tt
automatic_item_modification_by_age.tt
batch_delete_records.tt Bug 26159: Remove the use of jquery.checkboxes plugin from batch record delete page 2020-08-18 15:45:49 +02:00
batch_extend_due_dates.tt Bug 25101: (follow-up) Tick preview checkbox on by default 2020-09-02 15:35:08 +02:00
batch_record_modification.tt Bug 26202: Remove the use of jquery.checkboxes plugin from batch record modification page 2020-08-18 15:45:49 +02:00
batchMod-del.tt Bug 5428: Add searchid to the "Return to the record" button (batch del) 2020-08-13 07:55:45 +02:00
batchMod-edit.tt Bug 19889: Add select2 class to the new dropdown list 2020-08-31 16:17:58 +02:00
batchMod.tt
cleanborrowers.tt Bug 25765: (QA follow-up) Use method directly in cleanborrowers 2020-07-23 11:17:27 +02:00
csv-profiles.tt
export.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
holidays.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
import_borrowers.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
inventory.tt Bug 26150: Remove the use of jquery.checkboxes plugin from inventory page 2020-08-24 11:19:03 +02:00
koha-news.tt Bug 21066: Rename publicationdate with published_on 2020-09-02 15:35:08 +02:00
letter.tt Bug 26395: Move translatable strings out of letter.tt into letter.js 2020-09-29 14:28:18 +02:00
manage-marc-import.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
marc_modification_templates.tt Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
modborrowers.tt
overduerules.tt
picture-upload.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
preview_letter.tt
problem-reports.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
quotes-upload.tt
quotes.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
scheduler.tt
showdiffmarc.tt
stage-marc-import.tt
stockrotation.tt
tools-home.tt Bug 26017: Correct permission check on tools page 2020-08-06 11:37:06 +02:00
upload-images.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
upload.tt
viewlog.tt Bug 26236: Fix translating interface from DB term to readable term 2020-09-03 14:18:23 +02:00