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 144525 - gtk dialog is not localized
gtk dialog is not localized
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Gedit maintainers
gedit QA volunteers
Depends on:
Blocks:
 
 
Reported: 2004-06-17 12:17 UTC by Takao Fujiwara
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for gedit-2.5.92-orig/gedit/gedit-encodings-option-menu.c (454 bytes, patch)
2004-06-17 12:19 UTC, Takao Fujiwara
needs-work Details | Review
patch for gtk+-2.4.1-orig/gtk/gtkfilechooserdefault.c (578 bytes, patch)
2004-06-17 12:19 UTC, Takao Fujiwara
needs-work Details | Review
patch for gedit-2.5.92-orig/gedit/gedit-encodings-option-menu.c (485 bytes, patch)
2004-06-17 14:17 UTC, Takao Fujiwara
accepted-commit_now Details | Review

Description Takao Fujiwara 2004-06-17 12:17:48 UTC
Description of Problem:
gtkdialog is not localized.

Steps to reproduce the problem:
1. Invoke gedit.
2. Choose [File] -> [Open]
 

Actual Results:
"Auto Detected", "Current locale" and "Add or
Remove" are not localized. and also "Filesystem"
in right pane in the dialog is not localized.

Expected Results:
All is correctly internationalized.

How often does this happen? 
To open the dialog.

Additional Information:
I attached the patches.
Comment 1 Takao Fujiwara 2004-06-17 12:19:10 UTC
Created attachment 28792 [details] [review]
patch for gedit-2.5.92-orig/gedit/gedit-encodings-option-menu.c

Added a patch
Comment 2 Takao Fujiwara 2004-06-17 12:19:56 UTC
Created attachment 28793 [details] [review]
patch for gtk+-2.4.1-orig/gtk/gtkfilechooserdefault.c

Added another patch.
Comment 3 Paolo Borelli 2004-06-17 12:25:29 UTC
It seems that the 2nd patch is against gtk+: if so you should open a bug agaist
gtk+ and attach the patch there...
For what it worth, I may be wrong it doesn't look right to me:
 - afaik you can't mark with _() a string that is returned dinamically
 - if that was possible you are leaking the string
Comment 4 Takao Fujiwara 2004-06-17 13:04:18 UTC
I submitted another bug 144529 about gtk.
I cannot file any bugs via traditional interface because I get an error when submit 
bugs via Netscape 7.0 on Solaris.
Comment 5 Paolo Maggi 2004-06-17 14:02:10 UTC
Thanks for the bug report and the patches.

The gtk+ patch is broken. You cannot apply _() to a non-constant string.

The gedit patch is broken too, since you have to verify if HAVE_CONFIG_H is
defined before including config.h

You should add:

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

Please, fix the gedit patch as I suggested and commit in both the gnome-2-6 and
HEAD branch (please, add an entry to gedit/ChangeLog).
Comment 6 Takao Fujiwara 2004-06-17 14:17:56 UTC
Created attachment 28797 [details] [review]
patch for gedit-2.5.92-orig/gedit/gedit-encodings-option-menu.c

I revised the patch.
I'll see the gtk patch.
Comment 7 Paolo Maggi 2004-06-17 14:39:06 UTC
Comment on attachment 28797 [details] [review]
patch for gedit-2.5.92-orig/gedit/gedit-encodings-option-menu.c

The new patch looks good.
Please commit in both gnome-2-6 and HEAD branch (with a ChangeLog entry).
Comment 8 Takao Fujiwara 2004-06-19 08:23:54 UTC
I don't have the account. Can I get it?
Comment 9 Paolo Borelli 2004-07-06 10:08:41 UTC
this was applied some time ago both on HEAD and on stable branch, but I forgot
to close it. Thanks again for the patch Takao.