[FIX] Custom value locale fixes 2244

Fixes [ticket 2244](https://www.openproject.org/work_packages/2244)