I just installed the latest version of Gallery2 (blackjack) on a new server running Gentoo. Everything works fine, except that when I choose a language (Swedish), only parts of tha page gets translated. The left menu-bar (add photo, album etc.) stay fixed in english. The main-part of the page does appear in Swedish, which I find quite weird.
Anybody got a clue why this is?
I've read about the localization thing, and yes, my system is running as us_EN I believe, and I really do now want to change that.
Thanks for a great peice of software...
mvip
Posts: 13451
Thats probably just because the swedish translation isn't complete. Since it works for some strings, that indicated that it's indeed working. You could always translate the rest for us, and submit it ;-)
h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org
Posts: 7994
Here are some docs to get you started:
http://codex.gallery2.org/index.php/Gallery2:Localization
Posts: 4
Hobel: Yeah, thats exactly what I though too, so I went into the translation-file to see if that was the case, but it turned out that it's not. These strings that won't get translated actually exists in the translation-file.
Posts: 172
According to the localization report at http://gallery.menalto.com/localization/gallery2 Swedish has a pretty high percentage of completeness. So it's probably not the text not being translated.
Did you try setting the default language? Just to see if that works. I also remember reading the same partial localized page somewhere but can't really find it now. It seems to have something to do with the server not having proper locale support setup. Maybe you will have better luck searching for it.
Try 'locale -a' in the server command line. Does it list sv_SE and its variations?
-
東方之朱
Posts: 4
stephenju:
Yes, sv_SE is listed when typing 'locale -a'.
Also, tried to set Apache's default language to sv, still no difference.
Just did 'export LC_ALL="en_US"' and 'export LANG="sv_SE"', but still no difference (after restarting apache).
bharat:
I looked through the localization link you sent, but nothing really mentioned there related to this as far as I could see.
Posts: 7994
Sorry for the delay in replying. This is odd -- it really should get localized for you. I'd like to investigate this in more detail -- any chance I can ssh to your box and examine what's going on under the hood? If so, private message me with the details.
Posts: 4
bharat,
Sorry, it's not accessable from the outside, it's an Intranet-box for a company.
But please give me any commands to run for you, and I'll provide you with the output.
Here's something to get you started:
server3 ~ # emerge info
Portage 2203-svn (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15-gentoo-r5 i686)
=================================================================
System uname: 2.6.15-gentoo-r5 i686 Intel(R) Celeron(R) CPU 2.80GHz
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python: 2.4.2
dev-util/ccache: [Not Present]
dev-util/confcache: [Not Present]
sys-apps/sandbox: 1.2.12
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-r1
sys-devel/binutils: 2.16.1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.du.se/pub/os/gentoo http://ds.thn.htu.se/linux/gentoo "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acpi apache2 apm avi berkdb bzip2 cdr cli crypt ctype cups curl dba dri eds elibc_glibc emboss encode ethereal expat fam fastbuild foomaticdb force-cgi-redirect fortran ftp gd gdbm gmp gpm gstreamer guile idn imagemagick imlib isdnlog kernel_linux lcms libg++ libwww lm_sensors memlimit mng motif mysql mysqlfriends mysqli ncurses nls nptl pam pcre pdflib perl php png posix pppd python readline reflection samba sdl session simplexml slang soap sockets spell spl ssl tcltk tcpd tiff tokenizer truetype truetype-fonts type1-fonts udev usb userland_GNU vorbis winbind x86 xml xml2 xorg xsl zlib"
Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
server3 ~ # emerge -p dev-lang/php apache mysql gettext
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild R ] dev-lang/php-4.4.2
[ebuild R ] net-www/apache-2.0.55-r1
[ebuild R ] dev-db/mysql-4.1.14-r1
[ebuild R ] sys-devel/gettext-0.14.4
server3 ~ # env
MANPATH=/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.4.5/man
HOSTNAME=localhost
SHELL=/bin/bash
TERM=xterm-color
USER=root
PAGER=/usr/bin/less
CONFIG_PROTECT_MASK=/etc/terminfo
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.5
DISTCC_LOG=
PWD=/root
EDITOR=/bin/nano
DISTCC_VERBOSE=0
DCCC_PATH=/usr/lib/distcc/bin
SHLVL=1
HOME=/root
LESS=-R -M --shift 5
PYTHONPATH=/usr/lib/portage/pym
LOGNAME=root
CVS_RSH=ssh
GCC_SPECS=
LESSOPEN=|lesspipe.sh %s
INFOPATH=/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.4.5/info
_=/usr/bin/env
server3 ~ # cat /etc/portage/package.use
dev-lang/php -* cli apache2 ctype expat fastbuild ftp gd hash iconv memlimit mysql nls pcre pic pdo reflection session simplexml sockets spl ssl tokenizer truetype xml xsl zlib
Posts: 7994
hi, mvip. Something is misfiring with PHP's gettext implementation on your platform, but it's hard to tell what's going wrong without being able to reproduce and tinker with it. I'll see if I can find a similar configuration to experiment with -- sending you shell commands via the forums will take way too long :-/