<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>40253</bug_id>
          
          <creation_ts>2004-02-03 01:40 0000</creation_ts>
          <short_desc>Localization doesn&apos;t work in freeciv</short_desc>
          <delta_ts>2004-02-03 03:12:46 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Games</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>s96161@studenti.polito.it</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>s96161@studenti.polito.it</who>
            <bug_when>2004-02-03 01:40:09 0000</bug_when>
            <thetext>Freeciv language is English even if emerged with nls flag and language is italian.
marco@localhost marco $ locale
LANG=it_IT@euro
LC_CTYPE=&quot;it_IT@euro&quot;
LC_NUMERIC=&quot;it_IT@euro&quot;
LC_TIME=&quot;it_IT@euro&quot;
LC_COLLATE=&quot;it_IT@euro&quot;
LC_MONETARY=&quot;it_IT@euro&quot;
LC_MESSAGES=&quot;it_IT@euro&quot;
LC_PAPER=&quot;it_IT@euro&quot;
LC_NAME=&quot;it_IT@euro&quot;
LC_ADDRESS=&quot;it_IT@euro&quot;
LC_TELEPHONE=&quot;it_IT@euro&quot;
LC_MEASUREMENT=&quot;it_IT@euro&quot;
LC_IDENTIFICATION=&quot;it_IT@euro&quot;
LC_ALL=it_IT@euro

strace civserver reports:

open(&quot;/usr/games/share/locale/it_IT@euro/LC_MESSAGES/freeciv.mo&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/usr/games/share/locale/it@euro/LC_MESSAGES/freeciv.mo&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/usr/games/share/locale/it_IT/LC_MESSAGES/freeciv.mo&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/usr/games/share/locale/it/LC_MESSAGES/freeciv.mo&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)

and localization file are installed in /usr/share/games/locale/it/LC_MESSAGES/freeciv.mo

Reproducible: Always
Steps to Reproduce:
1.USE=&apos;gtk gtk2 sdl&apos; emerge freeciv
2.
3.
Actual Results:  
the software runs in english 

Expected Results:  
the software should run in italian 

Portage 2.0.49-r21 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.4.22-gentoo-r5) 
================================================================= 
System uname: 2.4.22-gentoo-r5 i686 AMD Duron(tm) Processor 
Gentoo Base System version 1.4.3.10 
ACCEPT_KEYWORDS=&quot;x86&quot; 
AUTOCLEAN=&quot;yes&quot; 
CFLAGS=&quot;-mcpu=athlon-xp -O2 -pipe &quot; 
CHOST=&quot;i686-pc-linux-gnu&quot; 
COMPILER=&quot;gcc3&quot; 
CONFIG_PROTECT=&quot;/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config 
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config 
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control&quot; 
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot; 
CXXFLAGS=&quot;-mcpu=athlon-xp -O2 -pipe &quot; 
DISTDIR=&quot;/usr/portage/distfiles&quot; 
FEATURES=&quot;autoaddcvs ccache sandbox&quot; 
GENTOO_MIRRORS=&quot;http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ 
http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ 
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/&quot; 
MAKEOPTS=&quot;-j2&quot; 
PKGDIR=&quot;/usr/portage/packages&quot; 
PORTAGE_TMPDIR=&quot;/var/tmp&quot; 
PORTDIR=&quot;/usr/portage&quot; 
PORTDIR_OVERLAY=&quot;&quot; 
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot; 
USE=&quot;3dnow X acpi acpi4linux alsa apache2 apm arts bindist cdr crypt cups dvd 
encode fbcon foomaticdb gif gpm gtk gtk2 java jikes jpeg kde libwww mbox memlimit 
mmx mozilla mpeg ncurses nls oggvorbis opengl pam pdflib plotutils png ppds qt 
quicktime readline sasl slp spell sse ssl tcpd tetex tiff truetype usb x86 xv zlib&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2004-02-03 03:12:46 0000</bug_when>
            <thetext>How ugly.  The location of the locale files is hard-coded to be
&apos;${prefix}/share/locale&apos; instead of &apos;${datadir}/locale&apos;

Fixed in CVS.  Resync and remerge to get a working nls setup.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>