Bug 22252

Summary: Status messages returned by Mana are not translatable
Product: Project Infrastructure Reporter: Owen Leonard <oleonard>
Component: Mana-kb (server)Assignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact:
Severity: major    
Priority: P5 - low CC: caroline.cyr-la-rose, jonathan.druart, josef.moravec, paul.poulain
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 17047    
Bug Blocks:    

Description Owen Leonard 2019-01-31 16:15:41 UTC
Some Mana messages which are shown in Koha are being passed directly from Mana as English strings:

lib/Mana/Resource.pm: return { msg => "The $resource already exists on Mana, thanks for your contribution!", id => $id, statuscode => 208 };

These strings are not translatable in Koha. If each message is being sent with a unique statuscode we should put the messages strings in a template and use the statuscodes to control their display.
Comment 1 Paul Poulain 2019-05-15 12:41:08 UTC
Owen, it is something we should change on server side first right ? Changing the product accordingly.
Comment 2 Caroline Cyr La Rose 2019-11-25 14:22:49 UTC
I don't think it's a duplicate, but a related bug

Bug 24096 - Mana KB "Shared successfully" untranslatable