Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2004:
[Freeciv-Dev] Re: (PR#11510) norwegian po file name
Home

[Freeciv-Dev] Re: (PR#11510) norwegian po file name

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: sndirsch@xxxxxxx
Subject: [Freeciv-Dev] Re: (PR#11510) norwegian po file name
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Thu, 23 Dec 2004 04:44:32 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11510 >

On Wed, 15 Dec 2004, Stefan Dirsch wrote:
> > So it looks like the change has happened for glibc 2.3.3, but the
> > nb_NO alias already exists since glibc 2.2.3 (2001-04-27). Thorsten,
> > Karl, please correct me, if you think I'm wrong. Thanks.
>
> Just verified on a 3 year old SUSE 7.2 system with glibc 2.2.5.
> nb_NO/nn_NO locales exist.

I just checked my Fedora Core 3 install:

[perrin@localhost freeciv-2.0]$ ls /usr/share/locale/no/LC_MESSAGES/|wc -l
142
[perrin@localhost freeciv-2.0]$ ls /usr/share/locale/nb/LC_MESSAGES/|wc -l
96

On cvs.freeciv.org, which is Fedora Core 1, the ratio is 95 to 2. Another
Fedora Core 3 had 724 to 126.

I moved freeciv.mo from the "no" directory to the "nb" directory, and no
text is translated anymore. So my LANG env variable needs to be "nb" as
well, which it is not by default on Fedora, apparently.

So this is a mess. Perhaps the best solution is to install _both_ as 'no'
and 'nb' until the mess resolves itself. Attached patch will do this
automatically. I have tested it with both 'make install' and 'make dist'.

  - Per

Index: autogen.sh
===================================================================
RCS file: /home/freeciv/CVS/freeciv/autogen.sh,v
retrieving revision 1.15.2.4
diff -u -r1.15.2.4 autogen.sh
--- autogen.sh  26 Oct 2004 15:03:15 -0000      1.15.2.4
+++ autogen.sh  22 Dec 2004 22:35:44 -0000
@@ -165,7 +165,10 @@
     echo "You may want to use --disable-nls to disable NLS."
     echo "This will also remove the dependency for xgettext and msgfmt."
     DIE=1
-  fi    
+  fi
+  # duplicate this language since the language code changed, but many
+  # distros lag behind in updating it
+  cp po/no.po po/nb.po
 fi
 
 if [ "$DIE" -eq 1 ]; then
Index: configure.ac
===================================================================
RCS file: /home/freeciv/CVS/freeciv/configure.ac,v
retrieving revision 1.80.2.7
diff -u -r1.80.2.7 configure.ac
--- configure.ac        9 Dec 2004 03:32:11 -0000       1.80.2.7
+++ configure.ac        22 Dec 2004 22:35:44 -0000
@@ -149,7 +149,7 @@
 dnl  AC_PROG_MAKE_SET
 
 dnl I18n support
-ALL_LINGUAS="ca cs da de en_GB es et fi fr he_IL hu it ja nl no pl pt pt_BR ro 
ru sv uk"
+ALL_LINGUAS="ca cs da de en_GB es et fi fr he_IL hu it ja nl nb no pl pt pt_BR 
ro ru sv uk"
 AM_GNU_GETTEXT(,need-ngettext)
 
 dnl AM_GNU_GETTEXT doesn't have all features we want
Index: configure.in
===================================================================
RCS file: /home/freeciv/CVS/freeciv/Attic/configure.in,v
retrieving revision 1.256.2.7
diff -u -r1.256.2.7 configure.in
--- configure.in        9 Dec 2004 03:32:11 -0000       1.256.2.7
+++ configure.in        22 Dec 2004 22:35:45 -0000
@@ -148,7 +148,7 @@
 dnl  AC_PROG_MAKE_SET
 
 dnl I18n support
-ALL_LINGUAS="ca cs da de en_GB es et fi fr he_IL hu it ja nl no pl pt pt_BR ro 
ru sv uk"
+ALL_LINGUAS="ca cs da de en_GB es et fi fr he_IL hu it ja nl nb no pl pt pt_BR 
ro ru sv uk"
 AM_GNU_GETTEXT(,need-ngettext)
 
 dnl AM_GNU_GETTEXT doesn't have all features we want

[Prev in Thread] Current Thread [Next in Thread]