Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools
Owen Leonard 374f59f3cd
Bug 22661: TinyMCE/WYSIWYG editor doesn't translate
This patch updates the TinyMCE editor to the latest version (5.0.16) and
adds a translatable include file which will allow the TinyMCE interface
to show the same translation as Koha.

The configuration of the editor has been updated according to the new
version's requirements, keeping all the tools available we had before
and adding emoji support.

To test, apply the patch and enable the UseWYSIWYGinSystemPreferences
system preference.

TESTING THE UPGRADED EDITOR

 - Go to Administration -> System preferences -> OPAC.
 - Multiple instances of the TinyMCE editor should appear on the page:
   opaccredits, OpacCustomSearch, OpacLoginInstructions, etc.
 - Test adding and editing content to one or more of these editors.
   Confirm that the various editor tools work correctly.
 - Verify that changing the contents of any editor (including via paste)
   enables the corresponding "Save all X preferences" button.

 - Test the news editor under Tools -> News.

 - Test the library "OPAC info" editor in libraries administration:
   Administration -> Libraries -> Edit library -> OPAC info.

TESTING TRANSLATABILITY

 - Update a translation:

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

 - Open the corresponding .po file for the staff client, e.g.
   misc/translator/po/fr-FR-staff-prog.po
 - Locate strings pulled from includes/str/tinymce_i18n.inc for
   translation, e.g.:

   #. SCRIPT
   #: intranet-tmpl/prog/en/includes/str/tinymce_i18n.inc:1
   #, fuzzy
   msgid "File"
   msgstr "Fichier :"

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

   > perl translate install fr-FR

 - Go to Administration -> System preferences -> OPAC.
 - In each instance of the TinyMCE editor, the first menu item should
   have as its label the translation "msgstr" string you edited.

 - Check that the "About" page shows updated information about
   the TinyMCE version, 5.0.16.

Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-11-03 07:39:54 +00:00
..
access_files.tt
automatic_item_modification_by_age.tt
batch_delete_records.tt Bug 11529: Add templates for biblio title display. Unify display. 2019-08-05 15:03:19 +01:00
batch_record_modification.tt Bug 23196: (follow-up) Add comments to highlight structure 2019-06-28 14:38:19 +01:00
batchMod-del.tt
batchMod-edit.tt Bug 18710: Wrong subfield modified in batch item modification 2019-09-27 14:00:35 +01:00
batchMod.tt
cleanborrowers.tt Bug 11642: (follow-up) Improve Batch patron deletion and anonymization GUI to make consequences clearer 2019-07-15 12:43:03 +01:00
csv-profiles.tt
export.tt
holidays.tt Bug 22272: Calendar: When entering date ranges grey out dates in the past from the start date 2019-08-13 11:53:25 +01:00
import_borrowers.tt Bug 23385: (follow-up) Update link 2019-08-13 11:44:04 +01:00
inventory.tt
koha-news.tt Bug 22661: TinyMCE/WYSIWYG editor doesn't translate 2019-11-03 07:39:54 +00:00
letter.tt Bug 23762: Editing is_html status of email template fails under multi-languages 2019-11-03 07:34:52 +00:00
manage-marc-import.tt Bug 23094: Use Bootstrap-style pagination on staged MARC records page 2019-07-15 11:28:06 +01:00
marc_modification_templates.tt
modborrowers.tt Bug 23447: Fix capitalization and other minor edits on patron batch edit template 2019-10-01 07:48:11 +01:00
overduerules.tt
picture-upload.tt
preview_letter.tt
quotes-upload.tt
quotes.tt
scheduler.tt
showdiffmarc.tt
stage-marc-import.tt
stockrotation.tt Bug 22209: Move stock rotation stage and item forms into modals 2019-08-08 16:05:50 +01:00
tools-home.tt Bug 11642: change / to and in related tools menu 2019-07-15 12:43:12 +01:00
upload-images.tt
upload.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
viewlog.tt