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 110213 - no bindtextdomain call is made
no bindtextdomain call is made
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: Other
cvs (head)
Other All
: Normal major
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
Depends on:
Blocks: 103306
 
 
Reported: 2003-04-07 21:22 UTC by Hidetoshi Tajima
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
call bindtextdomain whereever _("foo") is actually used (4.29 KB, patch)
2003-04-07 21:42 UTC, Hidetoshi Tajima
none Details | Review
gnome_vfs_init() should call bindtextdomain inside #ifdef ENABLE_NLS. (1.28 KB, patch)
2003-04-10 18:10 UTC, Hidetoshi Tajima
none Details | Review

Description Hidetoshi Tajima 2003-04-07 21:22:52 UTC
It does not seem libgnomevfs or any of modules(file, ftp,http, 
vfolder..) calls bindtextdomain(), so they are not bound to
gnome-vfs-2.0, a message file for gnome-vfs-2.0. As a result,
none of the translation is used in gnome-vfs-2.0.
Comment 1 Hidetoshi Tajima 2003-04-07 21:38:22 UTC
bindtextdomain() should be called in gnome_vfs_init() in library, and
in each vfs_module_init() which should have translable messages. will
attach a patch after this comment.
Comment 2 Hidetoshi Tajima 2003-04-07 21:42:46 UTC
Created attachment 15545 [details] [review]
call bindtextdomain whereever _("foo") is actually used
Comment 3 Hidetoshi Tajima 2003-04-07 21:45:31 UTC
Please review the patch and commit if it looks okay.
Also, po/POTFILES.in po/POTFLES.skip may need to change.
Comment 4 Alexander Larsson 2003-04-10 13:10:17 UTC
bindtextdomain should be called inside #ifdef ENABLE_NLS.

Why do the modules need to call anything? They use the same
translation domain as the main library, and that is guaranteed to be
initialized before the modules.
Comment 5 Hidetoshi Tajima 2003-04-10 18:07:20 UTC
Yes, I oversited gnome_vfs_init() is called for the modules.
will create a new patch attachment.
Comment 6 Hidetoshi Tajima 2003-04-10 18:10:18 UTC
Created attachment 15618 [details] [review]
gnome_vfs_init() should call bindtextdomain inside #ifdef ENABLE_NLS.
Comment 7 Alexander Larsson 2003-04-11 09:21:50 UTC
looks fine to commit.
Comment 8 Hidetoshi Tajima 2003-04-11 17:37:11 UTC
Thanks, commit to the HEAD.
	* libgnomevfs/gnome-vfs-init.c (gnome_vfs_init): call bindtextdomain
	inside #ifdef ENABLE_NLS. Fixes bug #110213.
Comment 9 Christophe Fergeau 2003-04-11 17:57:37 UTC
If it results in strings visible in the GUI which aren't translated,
can you also commit to the gnome-2-2 branch ?
Comment 10 Hidetoshi Tajima 2003-04-11 18:30:03 UTC
commit to gnome-2-2 branch, too. GUI strings on a gnome-vfs module
cannot be translated without this. Bug 103306 is an
example of CDE menu.
Comment 11 Alexander Larsson 2003-04-14 09:56:23 UTC
Did you tell gnome-i18n-list of this string change?
Comment 12 Alexander Larsson 2003-04-14 09:59:16 UTC
(If indeed there were any string changes..)
Comment 13 Christian Rose 2003-04-18 11:58:26 UTC
Doesn't seem to be any string changes -- the patch only affects what
is displayed at runtime, not what messages are extracted from source.