[BUG] libglade, gettext and empty msgstr

Hi,

the default behaviour of gettext is, that if a msgstr is empty the text
from the msgid is displayed. This works perfectly with strings that are
extracted from ruby files. But if the string comes from a glade file and
is not translated the original string is not shown.

I use ruby gnome from CVS.


This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

Hi,

On Thu, 17 May 2007 15:45:17 +0200
Detlef R. [email protected] wrote:

Hi,

the default behaviour of gettext is, that if a msgstr is empty the text
from the msgid is displayed. This works perfectly with strings that are
extracted from ruby files. But if the string comes from a glade file and
is not translated the original string is not shown.

I use ruby gnome from CVS.

Could you show us your sample ?


This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

Am Samstag, den 19.05.2007, 23:29 +0900 schrieb Masao M.:

is not translated the original string is not shown.

I use ruby gnome from CVS.

Could you show us your sample ?

Hi,

first sorry for the long delay on response, but i was on holidays :slight_smile:

You can download my app from here:

http://det.cable.nu/kloetzle/index.rbx

The lines in the po-file that make problems you’ll find in
po/de/kloetzle.po 504 and 509.

The source file that uses the po and the glade file is
in /lib/kloetzle/video/config.rb

After i replaced the empty msgstr with a copy of the msgid, the string
is shown like expected. If it is from interest, the glade files are
created with glade3.

Cheers
detlef


This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

Hi Detlef,

Sorry for late.

On Mon, 28 May 2007 15:04:35 +0200
Detlef R. [email protected] wrote:

Am Samstag, den 19.05.2007, 23:29 +0900 schrieb Masao M.:

Hi,

On Thu, 17 May 2007 15:45:17 +0200
Detlef R. [email protected] wrote:

After i replaced the empty msgstr with a copy of the msgid, the string
is shown like expected. If it is from interest, the glade files are
created with glade3.

I could reproduce “bbbbbbbbbbbbb” becomes empty.
Then, I recompiled your mo-file using rmsgfmt, it becomes “bbbbbbbb…”.

So I suspect your klotzle.mo file was broken.
Did you fix this by yourself?

HTH,
Masao


This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

Hi Detlef,

Wow, it’s a miracle. Just now, I sended my previous message
before your message was reached ;).

On Mon, 25 Jun 2007 15:19:52 +0200
Detlef R. [email protected] wrote:

Am Samstag, den 19.05.2007, 23:29 +0900 schrieb Masao M.:

is not translated the original string is not shown.

created with glade3.



ruby-gnome2-devel-en mailing list
[email protected]
ruby-gnome2-devel-en List Signup and Options


This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

Hi Masao,

about the miracle: i saw someone from japan in my webserver logfiles
viewing the kloetzle pages. And because i didn’t published this pages
very far from now i thought on you :slight_smile: Then i thought about this old
bug, looked at the actual state and saw that it was solved for me. BTW
the .mo file was created by GetText.create_mofiles so the old version
seems to have a bug.

While we are at bugs:
some time ago i reported a bug in the libglade ruby bindings. This got
corrected in CVS some time ago. Because i want to release my kloetzle
program in the next 2-3 weeks to the public: whats about an other
ruby-gnome release? I don’t want to force my users to fetch things from
CVS.

Cheers
detlef

Am Montag, den 25.06.2007, 22:26 +0900 schrieb Masao M.:

Hi Detlef,

Wow, it’s a miracle. Just now, I sended my previous message
before your message was reached ;).


This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

Hi,

with the update to debians unstable tree and with it to the
libruby-gettext1.8 package (version 1.9.0-1) this problem is gone.

Cheers
detlef

Am Montag, den 28.05.2007, 15:04 +0200 schrieb Detlef R.:

extracted from ruby files. But if the string comes from a glade file and
You can download my app from here:
is shown like expected. If it is from interest, the glade files are
http://sourceforge.net/powerbar/db2/


ruby-gnome2-devel-en mailing list
[email protected]
ruby-gnome2-devel-en List Signup and Options


This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/