andialbrecht / crunchyfrog

Head over to RunSQLRun, the successor of CrunchyFrog
http://runsqlrun.org
GNU General Public License v3.0
5 stars 2 forks source link

PPA: Locale mis-match #96

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using the dev ppa on launchpad, in maverick, parts of the interface appear to 
be in a different language, for example, the confirm unsaved file dialog: 
http://img181.imageshack.us/img181/3763/savefiles009.png

Original issue reported on code.google.com by darren.w...@gmail.com on 21 Oct 2010 at 3:28

GoogleCodeExporter commented 9 years ago
What's your system language? Is it Indonesian? If not, can you please post the 
value of the LANG environment variable?

According to the translations in Launchpad it seems that the strings that you 
see in English aren't translated yet.

Original comment by albrecht.andi on 26 Oct 2010 at 12:31

GoogleCodeExporter commented 9 years ago
System language (in gnome-language-preferences) is English (United Kingdom)

LANG=en_GB.utf8

There doesn't appear to be anything of note on the console (at least nothing 
language/locale related):

1288096896.745853 WARNING pane.py:41 Failed to load additional icons (Icon 
'stock_book_green' not present in theme) 
1288096896.979282 WARNING app.py:328 Icon 'stock_connect' not present in theme 
1288096896.986100 WARNING app.py:328 Icon 'stock_connect' not present in theme 
1288096897.180150 WARNING app.py:328 Icon 'stock_book_green' not present in 
theme 

Original comment by darren.w...@gmail.com on 26 Oct 2010 at 12:42

GoogleCodeExporter commented 9 years ago
That's really strange. I have no clue why it falls back to Indonesian (just 
confirmed, that it is Indonesian). Does this happen everytime you start the 
application?

Does it happen when you start the application from the command line like

LANG=C crunchyfrog

Original comment by albrecht.andi on 26 Oct 2010 at 12:50

GoogleCodeExporter commented 9 years ago
It is odd isnt it, and yes, every time unfortunately :(

If I start it with LANG=c, it's fine, all in English.

To test, I started it with an invalid locale (LANG=en_GB crunchyfrog), and it 
correctly moaned at me:

(process:8908): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.

Original comment by darren.w...@gmail.com on 26 Oct 2010 at 12:54

GoogleCodeExporter commented 9 years ago
Ah, I've got it reproduced now: "LANG=en_GB.utf8 crunchyfrog" (German is 
default lang on my system).

Technically it's the "python build_mo" command that messes up the translations 
somehow.

Thanks for the feedback!

Original comment by albrecht.andi on 26 Oct 2010 at 1:05

GoogleCodeExporter commented 9 years ago
This issue was closed by revision e886d20ec7.

Original comment by albrecht.andi on 26 Oct 2010 at 1:26

GoogleCodeExporter commented 9 years ago
Great stuff, will the fix be pushed to the dev ppa? :)

Original comment by darren.w...@gmail.com on 26 Oct 2010 at 1:33

GoogleCodeExporter commented 9 years ago
Yes, the dev ppa was disconnected for a while. But I since yesterday it should 
be there again. Finally I've got some time to work on this app again :)

Original comment by albrecht.andi on 26 Oct 2010 at 1:37

GoogleCodeExporter commented 9 years ago
Hi - did this fix make it's way to the (dev) PPA? I still have the problem at 
the moment.

Original comment by darren.w...@gmail.com on 2 Nov 2010 at 9:23

GoogleCodeExporter commented 9 years ago
Thanks! There was a minor bug in the build system. It's available now!

Original comment by albrecht.andi on 2 Nov 2010 at 12:19

GoogleCodeExporter commented 9 years ago
Not quite fixed I'm afraid - crashed on startup now:

$ crunchyfrog 
1288700881.485895 WARNING pane.py:41 Failed to load additional icons (Icon 
'stock_book_green' not present in theme) 
1288700881.651210 WARNING core.py:224 Plugin path 
/build/buildd/crunchyfrog-0.4.2-dev~hg695/debian/crunchyfrog/usr/share/crunchyfr
og/plugins missing 
Traceback (most recent call last):
  File "/usr/bin/crunchyfrog", line 14, in <module>
    cf.cmdline.run()
  File "/usr/lib/python2.6/dist-packages/cf/cmdline.py", line 109, in run
    instance = app.new_instance(args)
  File "/usr/lib/python2.6/dist-packages/cf/app.py", line 201, in new_instance
    instance = MainWindow(self, create_editor=create_editor)
  File "/usr/lib/python2.6/dist-packages/cf/ui/mainwindow.py", line 82, in __init__
    self.set_icon_list(*utils.get_logo_icon_list())
  File "/usr/lib/python2.6/dist-packages/cf/ui/utils.py", line 30, in get_logo_icon_list
    return tuple(get_logo_icon(size) for size in [24, 48, 96, 256])
  File "/usr/lib/python2.6/dist-packages/cf/ui/utils.py", line 30, in <genexpr>
    return tuple(get_logo_icon(size) for size in [24, 48, 96, 256])
  File "/usr/lib/python2.6/dist-packages/cf/ui/utils.py", line 36, in get_logo_icon
    return gtk.gdk.pixbuf_new_from_file(os.path.join(icon_dir, fname))
glib.GError: Failed to open file 
'/build/buildd/crunchyfrog-0.4.2-dev~hg695/debian/crunchyfrog/usr/share/crunchyf
rog/pixmaps/crunchyfrog_24x24.png': No such file or directory

That path is obviously wrong, I assume it should simply be /usr/share...

(sorry to bear bad news!)

Original comment by darren.w...@gmail.com on 2 Nov 2010 at 12:29

GoogleCodeExporter commented 9 years ago
hehe, don't worry about the "bad news" :)

This is an different issue, however I'm re-opening this issue 

Original comment by albrecht.andi on 2 Nov 2010 at 12:36

GoogleCodeExporter commented 9 years ago
This issue was closed by revision b2bd97b794.

Original comment by albrecht.andi on 9 Nov 2010 at 1:30