Only a proof of concept to illustrate what's needed to enable translation for a new kind of object.
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
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
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
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.
Is this is a possible duplicate of bug 20307? Both appear a bit stuck :(
Ping pong
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
Created attachment 150037 [details] [review] Bug 24977: WIP Adjust and continue
hum I feel like I am not going into the correct direction with AVs, I am concerned by perf impact here. See FIXMEs.