Bug 32397

Summary: Language falls back to default if changing the language to german and try to access the tools in the staff interface
Product: Koha Reporter: Pascal Uphaus <pascal.uphaus>
Component: I18N/L10NAssignee: Bugs List <koha-bugs>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: f.demians, victor
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Crowdfunding committed: 0
Crowdfunding contact: Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Pascal Uphaus 2022-12-02 16:26:08 UTC
Test plan:
1. Install the german language to the koha instance running the main/master version
2. Enable the language via the systempreferences (language, OPAClanguages and opaclanguagesdisplay)
3. Changing the language to german
4. Access the tools in the staff interface
5. Result: the complete language of the staff interface is english

I tested it with the french language and it works
Comment 1 Victor Grousset/tuxayo 2022-12-02 18:48:48 UTC
I have almost the same thing on my local Koha (using koha-testing-docker), when trying to switch the UI to German, it fails an goes back to English.

It's certainly related to the error I got when deploying the translation:

root@kohadevbox:koha(testing-SO-QA)$ cd misc/translator ; ./translate update de-DE ; cd -
/kohadevbox/koha
root@kohadevbox:koha(testing-SO-QA)$ cd misc/translator ; ./translate install de-DE ; cd -
%s: Completely confused parametrizing -- msgid: Unbekannter Status "%s%
Koha directories hierarchy for de-DE must be created first
/kohadevbox/koha


It interferes with testing patches related to translation and if not fixed will likely to be a problem for 23.05
Comment 2 Victor Grousset/tuxayo 2022-12-02 18:50:45 UTC
Nothing wrong in any log (/var/log/koha/kohadev/*)
Comment 3 Katrin Fischer 2022-12-02 21:21:29 UTC
It's not falling back I think, but you have run into the translation bug that ws fixed in the most recent packages but not on master yet I believe - it will be fixed in .01.

There are 2 fatal errors in the po files currently that prevent all template files form being created. If you fix them locally, remove the language and install the language again, it should be fixed:

 #: koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt:145
 #, c-format
 msgid "Are you sure you want to delete \"%s\"?"
-msgstr "Sind Sie sicher, dass Sie \"%s% löschen möchten?"
+msgstr "Sind Sie sicher, dass Sie '%s' löschen möchten?"
 
 #. For the first occurrence,
 #. SCRIPT
@@ -66875,7 +66875,7 @@ msgstr "Unbekannter Datensatztyp, kann nicht importiert werden"
 #: koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc:272
 #, c-format
 msgid "Unknown status \"%s\""
-msgstr "Unbekannter Status \"%s%"
+msgstr "Unbekannter Status \"%s\""

Not: REMOVE the language, there also is a bug in update right now we are about to fix.
Comment 4 Katrin Fischer 2022-12-02 21:24:55 UTC
Well, it IS falling back, because the German file is just not there. :( Sorry for that mess.
Comment 5 Katrin Fischer 2023-06-10 22:10:28 UTC
This should have been resolved since with fixed po files in all releases after 22.11.0