FS#52292 - [kbd] Fix locale installation path
Attached to Project:
Arch Linux
Opened by Rafael Fontenelle (josephg) - Wednesday, 28 December 2016, 16:59 GMT
Last edited by Tobias Powalowski (tpowa) - Tuesday, 21 July 2020, 21:03 GMT
Opened by Rafael Fontenelle (josephg) - Wednesday, 28 December 2016, 16:59 GMT
Last edited by Tobias Powalowski (tpowa) - Tuesday, 21 July 2020, 21:03 GMT
|
Details
Description: Localization isn't working because binary
translation files are installed in an invalid path. In the
source code, the variable 'localedir' relies on datadir and,
since the PKGBUILD sets datadir to /usr/share/kbd, localedir
currently is /usr/share/kbd/locale, which is a invalid path
-- glibc won't find and therefore translations won't be
used.
A valid path would be /usr/share/locale, but passing '--localedir=/usr/share/locale' to ./configure won't work, as po/Makefile ignores the value of the localedir variable. As workaround, this variable can be passed to make install. So, in order to solve this, simply append "localedir=/usr/share/locale" to make install. Additional info: * package version(s) kbd 2.0.3-1 Steps to reproduce: 1- find a language code to which kbd is translated and enable it in locale-gen, if needed; 2- run any binary from kbd package prefixing with LC_ALL=<langcode>, if needed -- should get English strings instead 3- list locale installation path with `pacman -Ql kbd | grep locale` 4- use straces to debug the locale calls with e.g `trace -e trace=open setfont --help 2>&1 | fgrep /kbd.mo` (path listed in step 3 won't be listed in step 4, therefore invalid path) |
This task depends upon
Comment by
Tobias Powalowski (tpowa) - Tuesday,
21 July 2020, 19:29 GMT
Comment by
Rafael Fontenelle (josephg) -
Tuesday, 21 July 2020, 20:52 GMT
Still an issue with latest kbd?
Nope. Upstream updated gettext stuff and fixed the locale dir
installation process. Thanks.