bugGNU gettext - Bugs: bug #27464, Documentation defines localedir...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #27464: Documentation defines localedir incorrectly

Submitted by:  Sylvain Beucler <Beuc>
Submitted on:  Wed 16 Sep 2009 08:37:07 PM UTC  
 
Category: DocSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Bruno Haible <haible>
Open/Closed: Closed

Sat 19 Sep 2009 03:01:45 PM UTC, comment #2:

Thanks for the report. The cited text applies only to
autoconf versions older than 2.60. For 2.60 and newer,
you don't need to define localedir yourself at all if you
are using automake (because autoconf already does it all),
and if you are not using automake, the following definitions
are needed:

datadir = @datadir@
datarootdir= @datarootdir@
localedir = @localedir@
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@

Bruno Haible <haible>
Project AdministratorIn charge of this item.
Wed 16 Sep 2009 08:45:10 PM UTC, comment #1:

Actually it seems that 'localedir' is now defined in autoconf and automake, so maybe the example could just be simplified to:
DEFS = -DLOCALEDIR=\"@localedir@\" @DEFS@

Sylvain Beucler <Beuc>
Wed 16 Sep 2009 08:37:07 PM UTC, original submission:

In the gettext manual, section src/Makefile, you can see:

datadir = @datadir@
localedir = $(datadir)/locale
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@

while localedir is expanded differently in po/Makefile:

localedir = ${datarootdir}/locale

This caused a problem in GNU FreeDink's Debian package, which configured like this:

./configure --prefix=/usr --bindir=/usr/games --datadir=/usr/share/games

Thus the program searched for the .mo in /usr/share/games/locale/ instead of /usr/share/locale/, where they were installed.

Attached is a patch :)

Sylvain Beucler <Beuc>

 

Attached Files
file #18724:  localedir.diff added by Beuc (433B - text/x-c)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by haible (Posted a comment)
  • -unavailable- added by Beuc (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 27 Nov 2016 12:24:33 AM UTChaibleCategoryNone=>Doc
    Sat 19 Sep 2009 03:01:45 PM UTChaibleStatusNone=>Fixed
      Assigned toNone=>haible
      Open/ClosedOpen=>Closed
    Wed 16 Sep 2009 08:37:07 PM UTCBeucAttached File-=>Added localedir.diff, #18724

    Back to the top


    Powered by Savane 3.1-cleanup1