Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translated strings are not shown #63

Open
jose1711 opened this issue Apr 20, 2021 · 1 comment
Open

Translated strings are not shown #63

jose1711 opened this issue Apr 20, 2021 · 1 comment

Comments

@jose1711
Copy link
Contributor

jose1711 commented Apr 20, 2021

Not sure what is happening but neither with the latest stable nor with current git snapshot I get localized strings in the program. With LANG set to sk_SK.utf8:

$ strace -s80 lingot 2>&1 | grep -E 'locale.*= [0-9]*$'
openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/share/locale/sk/LC_MESSAGES/libc.mo", O_RDONLY) = 3
openat(AT_FDCWD, "/usr/share/locale/sk/LC_MESSAGES/gtk30-properties.mo", O_RDONLY) = 3
openat(AT_FDCWD, "/usr/share/X11/locale/locale.alias", O_RDONLY) = 10
read(10, "#\n#\tThis file contains alias names of locales.\n#\tEach alias name is described wi"..., 4096) = 4096
openat(AT_FDCWD, "/usr/share/X11/locale/locale.alias", O_RDONLY) = 10
read(10, "#\n#\tThis file contains alias names of locales.\n#\tEach alias name is described wi"..., 4096) = 4096
openat(AT_FDCWD, "/usr/share/X11/locale/locale.dir", O_RDONLY) = 10
read(10, "#\n#\tThis file contains locale database file names\n#\tThe first word is the locale"..., 4096) = 4096
access("/usr/share/X11/locale/en_US.UTF-8/XLC_LOCALE", R_OK) = 0
openat(AT_FDCWD, "/usr/share/X11/locale/en_US.UTF-8/XLC_LOCALE", O_RDONLY) = 10
openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY) = 10

Other programs work fine, here's the same command for vlc:

$ strace -s80 /usr/bin/vlc 2>&1 | grep -E 'locale.*= [0-9]*$'   
openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 5
openat(AT_FDCWD, "/usr/share/locale/sk/LC_MESSAGES/libc.mo", O_RDONLY) = 5
openat(AT_FDCWD, "/usr/share/vlc/../locale/sk/LC_MESSAGES/vlc.mo", O_RDONLY) = 3

Tried other locales and it's still the same. Arch Linux, x86_64 rolling.

$ ls -l /usr/share/locale/sk/LC_MESSAGES/lingot.mo
-rw-r--r-- 1 root root 21123 apr 20 22:57 /usr/share/locale/sk/LC_MESSAGES/lingot.mo

Edit: FWIW I also tested the above on Ubuntu 20.04 with the same results.

@jose1711
Copy link
Contributor Author

jose1711 commented Sep 6, 2022

Resolved with passing the path manually:

./configure --prefix=/usr --localedir=/usr/share/locale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant