After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 60350 - Can't edit Japanese text with gtranslator
Can't edit Japanese text with gtranslator
Status: VERIFIED INCOMPLETE
Product: gtranslator
Classification: Other
Component: Interface
HEAD
Other Linux
: Normal normal
: 1.0
Assigned To: Fatih Demir
Fatih Demir
Depends on:
Blocks:
 
 
Reported: 2001-09-10 22:20 UTC by ynakai
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
LANG=ja_JP.eucJP running with gtranslator/po/ja.po (30.60 KB, image/png)
2001-09-10 22:21 UTC, ynakai
Details

Description ynakai 2001-09-10 22:20:18 UTC
gtranslator shows Japanese translations in message trees correctly,
but editor widget shows them incorrectly.

This is the show-stopping bug, and gtranslator cannot be useful for
Japanese (and probably other multi-byte languages) though its rich
features.
Comment 1 ynakai 2001-09-10 22:21:45 UTC
Created attachment 5580 [details]
LANG=ja_JP.eucJP running with gtranslator/po/ja.po
Comment 2 Fatih Demir 2001-09-11 11:49:56 UTC
Did you already switch to your own Japanese fonts for the editor widget?

On Prefs => Colors & fonts you've got to check "Apply own fonts" and
then select your desired Japanese fonts. This should work rightly (at
least I've got one person who can work with Chinese and Japanese this
way, so it should work).
Comment 3 ynakai 2001-09-11 19:45:35 UTC
No, I changed all fonts for Japanese from dialog but doesn't work.
I replace to all gdk_fontset_load() to take Japanese fonts for its
arguments but doesn't work.

It seems to use GtkText widget, but use style changing.

I'm using RHL 7.2, gtk+-1.2.10.
Comment 4 ynakai 2001-09-19 20:39:31 UTC
I've found the bug.

gtranslator_utils_invert_dot() in utils_gui.c
replaces space to 0xb7, so GTK+ is confused. 0xb7 is preserved in
Japanese encoding.

This affects all multibyte environment Japanese, Korean, Chinese
(Traditional, Simplified).

This feature should not be default. And, 0xb7 is not a visible
charactor on all editor in our environment, so you should
write _("\xb7") as ascii strings instead of 0xb7 directly.
Comment 5 Fatih Demir 2001-09-20 13:05:47 UTC
Hm, therefore this character is i18n'ified by the translators -- don't
forget that the "·" character is a translated message (in your case
it'd be the ja.po) -- I guess, the translator didn't translate it
rightly, right?

The comment for the translatable message explains the situation good
IMHO. If the char would be translated differently, would it then work
for you? Test & feedback ,-)
Comment 6 ynakai 2001-09-20 20:38:02 UTC
It is translatable, but do not include non-ascii charactor in
msgid. 0xb7 behaves as backspace and not editable with other
Japanese charactors in many editors, vi, nvi,
emacs(Japanese EUC-JP edit mode) and even in gtranslator.

Those are in utils_gui.c, syntax.c, view.c.

I tried the _("\xb7") but new gtranslator.pot convert it to
non-ascii 0xb7 so it takes no effect.
Comment 7 Joe Man 2001-10-03 15:53:21 UTC
Yes, Ynakai is right.

This is an old bug for me. I am so sorry that I have not
inform you. Due to I have bypass this bug by not selecting
the "use special character to indicate free space" in Prefs.

With this 0xb7, the old po files cannot even msgmerge with
the new pot file. It will stop at the msgid 0xb7
when merge the two files in my big5 system

Everytime, I need to change the 0xb7 to other character in 
the new pot file before I can merge the new pot file with the
old po file.

So, Please try to accept the suggestion from Ynakai


Joe Man
Comment 8 Joe Man 2001-10-03 16:02:12 UTC
Due to this special character 0xb7, you can see that all the
gtranslator.po under ja, zh_cn and zh_TW in the gnome extra status
report http://developer.gnome.org/projects/gtp/status/extra/ are not
right. 

All the po files are stopped at the msgid 0xb7.

Joe Man
Comment 9 Fatih Demir 2001-10-07 14:43:22 UTC
I corrected the direct '·' to be '\xb7' -- this doesn't fix everxthing
I guess.

But at least some of Yukihiro's suggestions go in..
Comment 10 Fatih Demir 2002-01-19 20:06:19 UTC
Does it work with current CVS now?
Comment 11 Ross Golder 2003-06-08 15:45:43 UTC
This bug should be closed. It's against a very old CVS snapshot, and
the screenshot looks like it was Gtk1-based anyway. Let it be
re-opened if it is still a problem with more recent versions.
Comment 12 Fatih Demir 2003-06-09 07:04:13 UTC
Closed due to Ross' request - shall not be currently active anyway
with GNOME 2.x