Bug 22252 - Status messages returned by Mana are not translatable
Summary: Status messages returned by Mana are not translatable
Status: NEW
Alias: None
Product: Project Infrastructure
Classification: Unclassified
Component: Mana-kb (server) (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low major
Assignee: Bugs List
QA Contact:
Depends on: 17047
  Show dependency treegraph
Reported: 2019-01-31 16:15 UTC by Owen Leonard
Modified: 2019-11-25 14:22 UTC (History)
4 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Who signed the patch off:
Text to go in the release notes:
Version(s) released in:


Note You need to log in before you can comment on or make changes to this bug.
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