Added preliminary support for Glade translations (as suggested by Lennon Cook).
commit78debdea8400a1ca9de6db358388fb1648bf3318
authorAndras Mohari <mayday@vizslamail.hu>
Wed, 3 Oct 2007 09:43:43 +0000 (3 11:43 +0200)
committerAndras Mohari <mayday@vizslamail.hu>
Wed, 3 Oct 2007 09:43:43 +0000 (3 11:43 +0200)
tree105a1fd004c4330693c77669e1e6d81e2331c22b
parentfa6c9d121c1578732bb2c64395a6ea22f68ad8be
Added preliminary support for Glade translations (as suggested by Lennon Cook).

We check for the presence of libintl.h and use the bindtextdomain() call
to tell Glade where to find its catalogs. Right now the $APP_DIR/Messages
directory must be set up manually so that the catalogs can be found, eg.:

.
|-- hu
|   `-- LC_MESSAGES
|       `-- ROX-Filer.mo -> ../../hu.gmo
`-- hu.gmo

This seems to work fine when ROX-Filer is configured to use the LANG
environment variable. Changing languages manually is not supported
though, since we should change the locale on the fly, which does not
seem to be a good idea to me...
ROX-Filer/src/config.h.in
ROX-Filer/src/configure.in
ROX-Filer/src/gui_support.c
ROX-Filer/src/i18n.c