Bug 142458 - pwmanager-1.2.4 ebuild: i18n doesn't work
Bug#: 142458 Product:  Gentoo Linux Version: 2006.0 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: kde@gentoo.org Reported By: sebroeder@gmail.com
Component: Ebuilds
URL: 
Summary: pwmanager-1.2.4 ebuild: i18n doesn't work
Keywords:  
Status Whiteboard: 
Opened: 2006-08-01 12:21 0000
Description:   Opened: 2006-08-01 12:21 0000
[ebuild   R   ] kde-misc/pwmanager-1.2.4  USE="arts xinerama -debug -smartcard"
LINGUAS="de -ca -da -el -es -et -fr -hu -it -lt -nl -pl -ro -sv" 0 kB

This should give me a German pwmanager - but it doesn't :( I checked the German
.po file in the i18n tarball and it seems complete. Since there is not ONE
single word in pwmanager translated into German it seems to me that the ebuild
handling of LINGUAS / i18n is somehow wrong.

Could this be fixed, pls? Let me know if you need more infos.

emerge --info
Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4,
2.6.16-suspend2-r8-June21st i686)
=================================================================
System uname: 2.6.16-suspend2-r8-June21st i686 Intel(R) Pentium(R) M processor
1.60GHz
Gentoo Base System version 1.12.1
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O3 -march=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/gentoo-distfiles
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="en_US.UTF-8"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acl acpi alsa arts avi bash-completion berkdb bitmap-fonts bzip2 cdr
cli crypt cups dlloader dri dvd dvdr emboss encode exif foomaticdb fortran gdbm
gif gphoto2 gpm imap imlib isdnlog jpeg kde kdeenablefinal kdexdeltas libg++
libwww mad mikmod mmx mp3 mpeg ncurses nls nptl nsplugin ogg opengl oss pam
pcre pdflib perl png ppds pppd python qt qt3 qt4 quicktime readline reflection
sasl scanner sdl session spell spl sqlite sse ssl tcpd tiff truetype
truetype-fonts type1-fonts udev unicode usb vorbis xinerama xml xorg xv zlib
elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse
input_devices_synaptics kernel_linux linguas_de userland_GNU video_cards_i810"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS,
PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #1 From Jakub Moc (RETIRED) 2006-08-01 12:46:50 0000 -------
Maybe set your locales correctly? LANG="en_US.UTF-8" would help much w/ German
translation.

------- Comment #2 From Sebastian Roeder 2006-08-01 13:52:18 0000 -------
I am not sure whether I got your point Jacob - of cause my whole system for the
everyday user (unlike root) is German. And it works for all apps (KDE, GTK,
OpenOffice etc.). Only pwmanager doesn't get a translated UI, that why I assume
it's a fault in the pwmanager ebuild ...

sero@whiterabbit ~ $ locale
LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES=en_US.UTF-8
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=

So why do you want me to set my locale to en_US when I complain about missing
German i18n?

------- Comment #3 From Jakub Moc (RETIRED) 2006-08-01 13:59:21 0000 -------
(In reply to comment #2)
> So why do you want me to set my locale to en_US when I complain about missing
> German i18n?

Me? Excuse me, but when you post emerge --info where you have
LANG="en_US.UTF-8" set (read what you've posted) and complain that something
doesn't speak German, it looks pretty much like PEBKAC.

------- Comment #4 From Diego E. 'Flameeyes' Pettenò 2006-08-01 14:15:58 0000 -------
LC_MESSAGES=en_US.UTF-8

means you'll get stuff in en_US.UTF-8 I'm afraid.

------- Comment #5 From Sebastian Roeder 2006-08-01 15:53:13 0000 -------
OK then this was a missunderstanding (I didn't ment to be offending) and yes I
didn't noticed the confusing LANG in emerge --info. This is because I prefer an
English environment for root and set the German LANG in my everyday users
~/.xprofile. The LC_MESSAGES=en_US.UTF-8 is just for Error messages, cause they
often become very crytic once (badly) translated from English to German.

I hope this convinces you that this time it's not PEBKAC ...

Your comment #1 still doens't make sense (so reread what you write), sry ...

------- Comment #6 From Ioannis Aslanidis 2006-08-01 16:12:26 0000 -------
(In reply to comment #5)
> Your comment #1 still doens't make sense (so reread what you write), sry ...

AFAIK there's something called irony.

------- Comment #7 From Carsten Lohrke 2007-04-01 16:24:40 0000 -------
The introduction of $KDE_S and its overriding of $S in the kde.eclass is the
source of the breakage. Ugly feature in the first place, but since it exists...

Fixed with 1.2.4-r1.