]> git.koha-community.org Git - koha.git/commit
Bug 36815: (follow-up) Fix logic for new languages
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 10 May 2024 12:15:39 +0000 (13:15 +0100)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Thu, 27 Jun 2024 12:04:52 +0000 (14:04 +0200)
commit7f3a0bb76bf8edb2209d06961bc2addbbc7ceab6
tree57b9fc2b508f4afa352f71eabde7b6a2ecaea4ce
parent73371635db5b920514a3a5a048cfe3d2dd15346c
Bug 36815: (follow-up) Fix logic for new languages

If a notice doesn't already have any data in it we weren't able to use
the object to lookup the sample.. with this patch we now always load the
samples if they exist for each installed and enabled language,
regardless of whether there's already a notice stored in that language.

Test plan
1. Install Spanish by running koha-translate --install es-ES from inside
   the kohashell
2. restart all
3. Set TranslateNotices to Allow
4. Verify that the Spanish-language sample_notices.yml exists
5. Open a notice that has at least one Spanish default notice defined
6. Confirm you see the 'View default' button for the spanish notice and
   that the displayed notice is indeed the spanish translation

Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
tools/letter.pl