In K3b ebuilds, the i18n language is determined using the following script: LANGS="bg br bs ca cs cy da de el en_GB es et fr ga hi hu is it lt mk nb nl nn pa pt pt_BR ru sr sv ta tr uk zh_CN" MAKE_LANGS=$(echo "${LINGUAS} ${LANGS}" | fmt -w 1 | sort | uniq -d | fmt -w 10000) However on most systems, even if LINGUAS is set to "fr" in make.conf, some script changes it to be like the $LANG variable. If $LINGUAS is set to something like fr_CH.UTF-8 MAKE_LANGS is not set properly and k3b stays in english. This ebuild should use the same way of determining the language as is found in the openoffice-ximian ebuild for example which accepts both "fr" and "fr_CH.UTF_8". Thanks.
It seems that openoffice-ximian doesn't accept fr_CH.UTF-8 either...
Ok, after searching a little bit more, it seems that the problem comes from the fact that /etc/X11/gdm/Xsession overwrites LINGUAS with LANG: if [ -n "$LINGUAS" ]; then if [ "$LINGUAS" != "$LANG" ]; then LINGUAS="$LANG" fi else unset LINGUAS fi This is wrong isn't it ? LINGUAS should be something like "fr" and LANG can be somethin like fr_CH.UTF-8
LINGUAS can be fr_CH (how else to distinguish between different branches of languages), not sure about the encodings though.
(In reply to comment #3) > LINGUAS can be fr_CH (how else to distinguish between different branches of > languages), not sure about the encodings though. In this case it wont work for k3b either (and I guess for openoffice-ximian it's the same problem) So what we have now: 1)LINGUAS=fr is replaced to LINGUAS=$LANG=fr_CH.UTF-8 by /etc/X11/gdm/Xsession 2)LINGUAS=fr_CH won't work for some ebuild (k3b, openoffice) 3)LINGUAS=fr_CH.UTF-8 won't work for some ebuild (k3b, openoffice)
what is the original problem here?
Putting linguas in make.conf these application seems localized correctly now. However, you might want to be sure that the behaviour in Comment #2 is correct (overwriting LINGUAS with LANG). Thanks
works for myself / reporter now