Libglade and Translatable Strings

Hello,

I’ve been trying to figure out how to do this and I just keep going in
circles. When writing out a glade xml file using ‘glade-2’ it marks the
labels with translatable=“yes”. When using the .glade file to generate
actual code (for example, to C) there are tools to create the necessary
translation files and whatnot. I am curious if libglade has the ability
to load translation files as it dynamically creates the GUI, though.
As I said, I’m just going in circles trying to figure out how to do
this. I’m hoping someone else has already gone through this. Google
doesn’t seem to want to help me.

···


Zachary P. Landau kapheine@hypa.net
GPG: gpg --recv-key 0x24E5AD99 | http://kapheine.hypa.net/kapheine.asc

I’ve been trying to figure out how to do this and I just keep going in
circles. When writing out a glade xml file using ‘glade-2’ it marks the
labels with translatable=“yes”. When using the .glade file to generate
actual code (for example, to C) there are tools to create the necessary
translation files and whatnot. I am curious if libglade has the ability
to load translation files as it dynamically creates the GUI, though.
As I said, I’m just going in circles trying to figure out how to do
this. I’m hoping someone else has already gone through this. Google
doesn’t seem to want to help me.

Posting to ruby-talk must in itself be some kind of cure for coder’s
block. After a few more hours of playing around with this and googling,
I’ve figured it out. If anyone is interested, I’m probably going to put
a page up on the ruby wiki with how to do some of this stuff.

···


Zachary P. Landau kapheine@hypa.net
GPG: gpg --recv-key 0x24E5AD99 | http://kapheine.hypa.net/kapheine.asc

Continuing the conversation with myself, I’ll add this for completeness.
A couple of people have emailed me expressing interest in this, so I
went ahead and wrote a mini tutorial. The initial version is up [1] if
anyone is interested.

[1] http://ruby-gnome2.sourceforge.jp/hiki.cgi?tips_libglade_i18n

···

On Thu, Mar 18, 2004 at 03:51:35PM +0900, Zachary P. Landau wrote:

I’ve been trying to figure out how to do this and I just keep going in
circles. When writing out a glade xml file using ‘glade-2’ it marks the
labels with translatable=“yes”. When using the .glade file to generate
actual code (for example, to C) there are tools to create the necessary
translation files and whatnot. I am curious if libglade has the ability
to load translation files as it dynamically creates the GUI, though.
As I said, I’m just going in circles trying to figure out how to do
this. I’m hoping someone else has already gone through this. Google
doesn’t seem to want to help me.

Posting to ruby-talk must in itself be some kind of cure for coder’s
block. After a few more hours of playing around with this and googling,
I’ve figured it out. If anyone is interested, I’m probably going to put
a page up on the ruby wiki with how to do some of this stuff.


Zachary P. Landau kapheine@hypa.net
GPG: gpg --recv-key 0x24E5AD99 | http://kapheine.hypa.net/kapheine.asc