bugGnash - The GNU Flash player - Bugs: bug #20154, Translation catalogs installed...

 
 

bug #20154: Translation catalogs installed into bad directories

Submitted by:  None
Submitted on:  Tue 12 Jun 2007 10:40:00 AM UTC  
 
Category: buildSeverity: 3 - Normal
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: John Gilmore <jgilmore>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Mon 17 Mar 2008 08:21:46 PM UTC, comment #12:

I'll assume it works for everyone else, then. Please reopen if that's not the case.

Benjamin Wolsey <bwy>
Project Member
Mon 18 Feb 2008 11:37:23 PM UTC, comment #11:

I can't because I'm unable to compile cvs head without gstreamer.
OTOH "make -C po -n install" output seems Ok now.

Petr Pisar <petrp>
Sun 17 Feb 2008 08:49:47 AM UTC, comment #10:

Works for me, would be great if someone could confirm before the release.

Benjamin Wolsey <bwy>
Project Member
Wed 29 Aug 2007 09:46:24 AM UTC, comment #9:

Jhon, I've no idea how to verify this, since internationalization doesn't work at all for me.

Sandro Santilli <strk>
Project Member
Thu 14 Jun 2007 12:23:00 PM UTC, comment #8:

At first your system has to support Italian locale (this is the /etc/locale.gen and locale-gen) stuff.

After that you can pick any locale you want using "LANG=it_IT.UTF-8 gnash" command. This will not affect anyhing else.

BTW, I found a HOWTO for Ubuntu Edgy http://ubuntuguide.org/wiki/Ubuntu_Edgy#How_to_add_locales_to_Ubuntu_the_command_line_way but I'm not sure if it is still valid way for Ubuntu.

Petr Pisar <petrp>
Thu 14 Jun 2007 11:56:24 AM UTC, comment #7:

I'm using Ubuntu Dapper. Anyway, it's not that I want everything in italian, I just want to test gnash localized messsages.
Would this still need messing with system-wide settings like locale.gen ?

Sandro Santilli <strk>
Project Member
Thu 14 Jun 2007 11:31:44 AM UTC, comment #6:

I don't know which distribution of linux or if even linux you use, but most modern distributions like Debian or Gentoo uses following approach:

Let suppose you live in Italy, speaks Italian and preffers Unicode over 8bit charsets.

Then, as root, append into file /etc/locale.gen line

it_IT.UTF-8 UTF-8

and, still as root, run

locale-gen

The locale-gen command should "recompile" all definitions of all locales listed in /etc/locale.gen. Then command "locale -a" should print it_IT.UTF-8 too. Then export this locale using command "export LANG=it_IT.UTF-8" and in the same terminal after starting new program, it should talk to you italian (supposted the program has Italian translation).

Petr Pisar <petrp>
Thu 14 Jun 2007 10:56:16 AM UTC, comment #5:

Sorry about the dumb question, but how do I install them ?
Is it the locale-gen thing ? I tried that but didn't work
(ie: locale-gen output still shows just the en-* sets)

Sandro Santilli <strk>
Project Member
Thu 14 Jun 2007 10:46:00 AM UTC, comment #4:

Of course because of not installed italian locale which you apperently request. First, install at least one of these locales (listed in /usr/share/i18n/SUPPORTED):

it_CH.UTF-8 UTF-8
it_CH ISO-8859-1
it_IT.UTF-8 UTF-8
it_IT ISO-8859-1
it_IT@euro ISO-8859-15

and try it again.

Petr Pisar <petrp>
Thu 14 Jun 2007 10:16:46 AM UTC, comment #3:

Mmm.. no occurrences of gnash.mo in the strace output.
These are the occorrunces of 'locale':

open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
open("/usr/lib/locale/it/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/it/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 5476] open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 5476] open("/usr/share/locale/locale.alias", O_RDONLY) = 3
[pid 5476] open("/usr/lib/locale/it/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 5476] open("/usr/share/locale-langpack/it/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 5478] open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 5478] open("/usr/share/locale/locale.alias", O_RDONLY) = 3
[pid 5478] open("/usr/lib/locale/it/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 5478] open("/usr/share/locale-langpack/it/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 5479] open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 5479] open("/usr/share/locale/locale.alias", O_RDONLY) = 3
[pid 5479] open("/usr/lib/locale/it/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 5479] open("/usr/share/locale-langpack/it/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 5482] open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 5482] open("/usr/share/locale/locale.alias", O_RDONLY) = 3
[pid 5482] open("/usr/lib/locale/it/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 5482] open("/usr/share/locale-langpack/it/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 5483] open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 5483] open("/usr/share/locale/locale.alias", O_RDONLY) = 3
[pid 5483] open("/usr/lib/locale/it/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 5483] open("/usr/share/locale-langpack/it/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY) = 4
open("/usr/lib/locale/it/LC_MESSAGES", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/it/LC_MESSAGES", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY|O_LARGEFILE) = 4
open("/usr/lib/locale/it/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/it/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
Using the fallback 'C' locale.
open("/usr/share/X11/locale/locale.alias", O_RDONLY) = 4
open("/usr/share/X11/locale/locale.dir", O_RDONLY) = 4
open("/usr/share/X11/locale/C/XLC_LOCALE", O_RDONLY) = 4
open("/usr/share/X11/locale/locale.alias", O_RDONLY) = 4
open("/usr/share/X11/locale/locale.dir", O_RDONLY) = 4
open("/usr/share/X11/locale/C/XLC_LOCALE", O_RDONLY) = 4

Sandro Santilli <strk>
Project Member
Thu 14 Jun 2007 09:46:51 AM UTC, comment #2:

Use
$ strace -f -eopen gnash SWF_FILE 2>&1 |grep gnash.mo to track locations which gettext/glibc tries.

The bindtextdomain() processes second argument as a prefix. The postfix is calculated from LC_MESSAGES category (it usually fallbacks to value of $LANG). Complete path to binary catalog is "$LOCALEDIR/$LOCALE/LC_MESSAGES/$DOMAIN.mo". The $LOCALE part can be composed of $LANG, $TERITORY, $MODIFICATOR and $CHARSET. gettext library cascades $LOCALE value by cutting of $CHARSET, $MODIFICATOR and $TERITORY.

E.g. my locale is cs_CZ.UTF-8 and I intall gnash into PREFIX=/usr, therefore one of right possible location is /usr/share/locale/cs/LC_MESSAGES/gnash.mo.

Petr Pisar <petrp>
Thu 14 Jun 2007 08:38:22 AM UTC, comment #1:

I actually keep getting this message:

(<unknown>:24731): Gtk-WARNING **: Locale not supported by C library.

Wherever the .mo is...

Note that gui/gnash.cpp is using bindtextdomain to specify a
directory.

Sandro Santilli <strk>
Project Member
Tue 12 Jun 2007 10:40:00 AM UTC, original submission:

The transalation catalogs (gnash.mo) for every language are installed into $(DESTDIR)$(datadir)/locale/$$i. Unfortunatelly, this is not default location which gettext awaits. The right one is $(DESTDIR)$(datadir)/locale/$$i/LC_MESSAGES.

Just adjust appropriate line in po/Makefile.am under install-data-hook: target to fix it.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #13027:  gnash-0.8.0-LC_MESSAGES.diff added by None (728B - text/plain - Involves LC_MESSAGES)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bwy (Posted a comment)
  • -unavailable- added by petrp (Posted a comment)
  • -unavailable- added by strk (Posted a comment)
  •  

    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
    Mon 17 Mar 2008 08:21:46 PM UTCbwyStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Sun 17 Feb 2008 08:49:47 AM UTCbwyStatusNone=>Ready For Test
    Wed 29 Aug 2007 09:46:24 AM UTCstrkAssigned toNone=>jgilmore
    Tue 12 Jun 2007 11:48:47 AM UTCNoneAttached File-=>Added gnash-0.8.0-LC_MESSAGES.diff, #13027

    Back to the top


    Powered by Savane 3.1-cleanup1