Re: Can't localize GTK+ itself on Windows XP

2009-07-31 Thread Andrew Ziem
On Mon, Jul 27, 2009 at 12:40 AM, Tor Lillqvist wrote:
>> * GTK 2.16.4 from binaries at http://www.gtk.org/download-windows.html
>
> Including the gettext-runtime binaries?
Yes.

>> * Executables compressed with UPX
>
> Including the GTK+ DLLs?

Yes

> Try without doing this. I have no idea how
> UPX works, but I guess it is possible that it decompresses the DLL to
> a temporary location and then loads it from there? That would break
> the lookup of the message catalogs.

The mistake was I didn't notice py2exe didn't automatically package
int.dll, so now I include it manually.

UPX works nicely with all of GTK and saves me about half the space
plus a little disk I/O time.


Andrew
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Can't localize GTK+ itself on Windows XP

2009-07-26 Thread Andrew Ziem
I can't get GTK+ to localize its own strings when I bundle it and install it
on another Windows machine.  On my development machine, it is fine.  On a
clean test machine, only my application's own strings are localized, but the
GTK+ about dialog and file open dialogs are in English.

I think I have the directory layout right:
C:\Program Files\BleachBit\bin\bleachbit.exe
C:\Program Files\BleachBit\bin\libgtk-win32.dll
C:\Program Files\BleachBit\share\locale\es\LC_MESSAGES\gtk20.mo
C:\Program Files\BleachBit\share\locale\es\LC_MESSAGES\bleachbit.mo

Here is a detailed file layout (with redundant copies of 'share' for
testing):
http://pastebin.com/m38d517f2

I tried setting the language two ways
1. Control Panel - Regional and Language Options - Standards and Formats
2. environment variable: set LANG=es_ES

My environment
* GTK 2.16.4 from binaries at http://www.gtk.org/download-windows.html
* Python 2.5.4
* PyGTK 2.12
* Executables compressed with UPX
* Windows XP SP3
* NSIS 2.45

My source code
http://bleachbit.svn.sourceforge.net/viewvc/bleachbit/trunk/bleachbit/


Andrew
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list