[Koha-bugs] [Bug 24975] Refactor database translations

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 26 09:28:08 CET 2020


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

--- Comment #3 from Julian Maurice <julian.maurice at biblibre.com> ---
Created attachment 101786
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101786&action=edit
Bug 24975: Keep the translations, prevent duplicates, and other fixes

Translations are no longer lost when you change an itemtype's
description, thanks to a new `l10n_source.key` column which must be
unique within it's "text group" ('itemtype' is a text group)
This also prevent duplicate entries in l10n_source

Columns were renamed to better match their purpose:
* context -> group
* source -> text

Use Koha::Cache::Memory::Lite if other caching systems are not available

Prepend 'l10n:' to the cache key to avoid conflicts

Test plan:
1. DROP TABLE IF EXISTS l10n_target, l10n_source
2. Follow the test plan from previous patch

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list