Bug 24977 - Enable translations for authorised values (POC)
Summary: Enable translations for authorised values (POC)
Status: ASSIGNED
Alias: None
Product: Koha
Classification: Unclassified
Component: I18N/L10N (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Julian Maurice
QA Contact: Testopia
URL:
Keywords:
Depends on: 24975
Blocks:
  Show dependency treegraph
 
Reported: 2020-03-25 15:03 UTC by Julian Maurice
Modified: 2024-01-22 23:58 UTC (History)
6 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 24977: Enable translations for authorised values (POC) (5.73 KB, patch)
2020-03-25 15:04 UTC, Julian Maurice
Details | Diff | Splinter Review
Bug 24977: Enable translations for authorised values (POC) (6.44 KB, patch)
2020-03-26 10:10 UTC, Julian Maurice
Details | Diff | Splinter Review
Bug 24977: Enable translations for authorised values (POC) (6.44 KB, patch)
2020-03-26 10:17 UTC, Julian Maurice
Details | Diff | Splinter Review
Bug 24977: Enable translations for authorised values (POC) (6.79 KB, patch)
2023-04-20 12:49 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 24977: WIP Adjust and continue (9.69 KB, patch)
2023-04-21 12:46 UTC, Jonathan Druart
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Maurice 2020-03-25 15:03:05 UTC
Only a proof of concept to illustrate what's needed to enable translation for a new kind of object.
Comment 1 Julian Maurice 2020-03-25 15:04:34 UTC
Created attachment 101720 [details] [review]
Bug 24977: Enable translations for authorised values (POC)

Only a proof of concept to illustrate what's needed to enable
translation for a new kind of object.

Only authorised values retrieved with
Koha::AuthorisedValues->get_descriptions_by_koha_field are translated.
This is used for instance for shelving locations in
catalogue/itemsearch.pl

Test plan:
1. Run updatedatabase && update_dbix_class_files && reload starman
2. Go to Admin » Localization
3. Find a LOC authorised value and translate it
4. Go to Item search form and verify that it is translated

Requires bug 24975
Comment 2 Julian Maurice 2020-03-26 10:10:25 UTC
Created attachment 101797 [details] [review]
Bug 24977: Enable translations for authorised values (POC)

Only a proof of concept to illustrate what's needed to enable
translation for a new kind of object.

Only authorised values retrieved with
Koha::AuthorisedValues->get_descriptions_by_koha_field and
Koha::AuthorisedValues->get_descriptions_by_koha_field are translated.
This is used for instance for shelving locations in
catalogue/itemsearch.pl

Test plan:
1. Run updatedatabase && update_dbix_class_files && reload starman
2. Go to Admin » Localization
3. Find a LOC authorised value and translate it
4. Go to Item search form and verify that it is translated
4. Verify that it is translated in results too

Requires bug 24975
Comment 3 Julian Maurice 2020-03-26 10:17:17 UTC
Created attachment 101798 [details] [review]
Bug 24977: Enable translations for authorised values (POC)

Only a proof of concept to illustrate what's needed to enable
translation for a new kind of object.

Only authorised values retrieved with
Koha::AuthorisedValues->get_descriptions_by_koha_field and
Koha::AuthorisedValues->get_description_by_koha_field are translated.
This is used for instance for shelving locations in
catalogue/itemsearch.pl

Test plan:
1. Run updatedatabase && update_dbix_class_files && reload starman
2. Go to Admin » Localization
3. Find a LOC authorised value and translate it
4. Go to Item search form and verify that it is translated
4. Verify that it is translated in results too

Requires bug 24975
Comment 4 Marcel de Rooy 2022-03-09 14:48:32 UTC
Would really be great to have. Would like to be able to translate various AV descriptions, also in the scope of their use in notices.
Comment 5 Katrin Fischer 2023-04-11 13:28:13 UTC
Is this is a possible duplicate of bug 20307? Both appear a bit stuck :(
Comment 6 Marcel de Rooy 2023-04-19 14:31:20 UTC
Ping pong
Comment 7 Jonathan Druart 2023-04-20 12:49:28 UTC
Created attachment 149955 [details] [review]
Bug 24977: Enable translations for authorised values (POC)

Only a proof of concept to illustrate what's needed to enable
translation for a new kind of object.

Only authorised values retrieved with
Koha::AuthorisedValues->get_descriptions_by_koha_field and
Koha::AuthorisedValues->get_description_by_koha_field are translated.
This is used for instance for shelving locations in
catalogue/itemsearch.pl

Test plan:
1. Run updatedatabase && update_dbix_class_files && reload starman
2. Go to Admin » Localization
3. Find a LOC authorised value and translate it
4. Go to Item search form and verify that it is translated
4. Verify that it is translated in results too

Requires bug 24975
Comment 8 Jonathan Druart 2023-04-21 12:46:44 UTC
Created attachment 150037 [details] [review]
Bug 24977: WIP Adjust and continue
Comment 9 Jonathan Druart 2023-04-21 12:48:04 UTC
hum I feel like I am not going into the correct direction with AVs, I am concerned by perf impact here. See FIXMEs.