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 307617 - Totem creates inconsistencies in Nautilus
Totem creates inconsistencies in Nautilus
Status: RESOLVED NOTGNOME
Product: totem
Classification: Core
Component: general
1.1.x
Other All
: Urgent minor
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
: 323288 323714 337533 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-06-14 12:18 UTC by Rafael Fernández López
Modified: 2006-04-06 19:55 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Rafael Fernández López 2005-06-14 12:18:43 UTC
Please describe the problem:
I'm using Gnome as a Spanish User (es_ES@euro) and ISO-8859-15. locale returns:

LANG=es_ES@euro
LC_CTYPE="es_ES@euro"
LC_NUMERIC="es_ES@euro"
LC_TIME="es_ES@euro"
LC_COLLATE="es_ES@euro"
LC_MONETARY="es_ES@euro"
LC_MESSAGES="es_ES@euro"
LC_PAPER="es_ES@euro"
LC_NAME="es_ES@euro"
LC_ADDRESS="es_ES@euro"
LC_TELEPHONE="es_ES@euro"
LC_MEASUREMENT="es_ES@euro"
LC_IDENTIFICATION="es_ES@euro"
LC_ALL=es_ES@euro

Okay. I have a folder named "Música" ("Music" in spanish) (Note: It has a
special character), and I save an audio or video file inside it.

Now I right-click on the file and select "Properties", and when I move to the
Audio/Video tab that is provided by Totem, it shows me everything in ENGLISH,
like it has no spanish language, and the MAIN PROBLEM is that "Música" becomes
"M?sica (Invalid coding)" in Nautilus, and spaces (" ") becomes ("%20") wherever
in nautilus.

If I do uninstall Totem and the Audio/Video tab disappears there is no such problem.

Steps to reproduce:
1. Set your environment to spanish (es_ES@euro).
2. Create a folder named "Música", save at least an audio or video file (with
id3 tags or whatever) in that folder.
3. Now right-click on the file and Properties "Propiedades" in spanish. Now go
to the tab Audio/Video and see what happens to "Música" in Nautilus.


Actual results:
Música becomes M?sica (invalid encoding) and it shows all tags IN ENGLISH in
Audio/Video tab

Expected results:
Show all tags in spanish and not to change my nautilus encoding

Does this happen every time?
Always. The only thing you can do to restablish Nautilus' spanish encoding is to
restart gnome session. (There's no need to reboot).

Other information:
Using Gentoo Linux.
Comment 1 Rafael Fernández López 2005-06-14 16:56:26 UTC
Now, I've been studying Totem's code and here is the problem: (Totem v1.0.2):

File: totem-properties-main.c.

/* --- extension interface --- */
void
nautilus_module_initialize (GTypeModule *module)
{
	bacon_video_widget_init_backend (NULL, NULL);
	totem_properties_plugin_register_type (module);
	totem_properties_view_register_type (module);

	/* set up translation catalog */
	bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
}

As I see it hasn't been Internationalized yet...
Comment 2 Bastien Nocera 2005-06-30 18:16:25 UTC
The fact that it hasn't been translated is a different problem.
What does removing this line do to your test case?
	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
Comment 3 Rafael Fernández López 2005-07-01 00:29:00 UTC
Well, I haven't re-compiled it without that line. I am using Gentoo and I only
have this computer, so I don't want to do a "make install" getting my body out
of portage... That would be risky... so... If someone could check it out...

Thanks.
Comment 4 Nickolay V. Shmyrev 2005-09-02 22:29:22 UTC
Bastien, the problem is that you are creating interface from glade file, and
glade use nautilus translation domain by default instead of totem one.

We had such problem in evince and fixed it by adding GETTEXT_PACKAGE as third
argument to glade_xml_new when you create nautilus property page.

Let me mark this as high priority since it brokes translation.
Comment 5 Bastien Nocera 2005-09-13 19:38:45 UTC
2005-09-03  Bastien Nocera  <hadess@hadess.net>

        * src/totem-interface.c: (totem_interface_load_with_root):
        load the glade files with the totem gettext package to force
        totem translations to be used when loading as part of other applications
       (fixes the property window not being translated in Nautilus)
        (Closes: #307617)
Comment 6 Bastien Nocera 2005-12-17 20:42:54 UTC
*** Bug 323288 has been marked as a duplicate of this bug. ***
Comment 7 Bastien Nocera 2005-12-17 20:44:05 UTC
*** Bug 323714 has been marked as a duplicate of this bug. ***
Comment 8 Damien Gombault 2005-12-19 22:22:14 UTC
This bug is not fixed in Totem 1.3.0.
Please reopen !
Comment 9 Bastien Nocera 2005-12-20 08:18:51 UTC
Reopening, looks like I'll need to test it better.
Comment 10 Bastien Nocera 2005-12-22 12:06:18 UTC
This only happens with the xine-lib backend, when the samba input plugin exists (try to move away /usr/lib/xine/plugins/<version>/xineplug_inp_smb.so, and restarting nautilus)

The bug is caused by libsmbclient calling setlocale(), thus overriding the current language to C:
https://bugzilla.samba.org/show_bug.cgi?id=2926
Comment 11 Benjamín Valero Espinosa 2005-12-24 10:29:24 UTC
Ok, this last solution works :)  As I don't use Samba, it's perfect for me, I imagine I won't have collateral effects ;)
Comment 12 Sebastien Bacher 2006-04-06 19:55:14 UTC
*** Bug 337533 has been marked as a duplicate of this bug. ***