Bug 146421

Summary: Strange characters in .desktop files caused by improper convert to UTF-8
Product: [Applications] digikam Reporter: Marcin Garski <mgarski>
Component: Portability-RuntimeAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, rapsys
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 7.6.0
Attachments: Fix French translation (patch is UTF-8 encoded)

Description Marcin Garski 2007-06-05 20:48:21 UTC
Version:           0.9.2-beta3 (using KDE Devel)
Installed from:    Compiled sources
OS:                Linux

In digikam/utilities/hotplug/digikam-download.desktop.in, digikam/utilities/hotplug/digikam-gphoto2-camera.desktop.in and digikam/utilities/hotplug/digikam-mount-and-download.desktop.in you can find "Télécharger" string in French translation, I'm not a French guy but IMHO proper string is "Télécharger".

I'll attach a patch that fix this issue. What's strange for me is that in changelog there is entry which for me is about the same bug, so it should be fixed.

2007-05-30 19:49  lure

        * trunk/extragear/graphics/digikam/utilities/hotplug/digikam-download.desktop.in,
          trunk/extragear/graphics/digikam/utilities/hotplug/digikam-gphoto2-camera.desktop.in,
          trunk/extragear/graphics/digikam/utilities/hotplug/digikam-mount-and-download.desktop.in:
          Fix French translation in .desktop files (UTF-8 encoding)
          Thanks to Anthony Mercatante <tonio@ubuntu.com>
Comment 1 Marcin Garski 2007-06-05 20:49:21 UTC
Created attachment 20784 [details]
Fix French translation (patch is UTF-8 encoded)
Comment 2 Luka Renko 2007-06-05 21:27:12 UTC
I have committed the patch which was used in Ubuntu to fix french translation.

Not sure why it does not work on you system. Which distro do you use?
Can you check with nanguage/encoding you use?

  env | grep LANG
Comment 3 Marcin Garski 2007-06-05 21:39:24 UTC
My distro is Fedora Core 6 with full UTF-8 support (LANG=pl_PL.UTF-8).
Can you provide me link to Ubuntu patch?

This desktops files are UTF-8 encoded, but something went wrong and you have "é" instead "é" (as I said this was probably happen during file recoding or on patch apply) and my patch fix this.

BTW this is not related to my distro because "é" is already in digikam sources, look at: http://websvn.kde.org/branches/extragear/kde3/graphics/digikam/utilities/hotplug/digikam-download.desktop.in?view=markup
Comment 4 Marcin Garski 2007-06-05 21:54:30 UTC
I've found Ubuntu's patches:
http://archive.ubuntu.com/ubuntu/pool/main/d/digikam/digikam_0.9.1-1ubuntu4.diff.gz
http://archive.ubuntu.com/ubuntu/pool/main/d/digikam/digikam_0.9.2~beta2-1ubuntu2.diff.gz

If you look at the 11-add-service-menu-translations.diff.diff from both sources you will notice that in 0.9.1 there is "Télécharger" but in 0.9.2 this has changed to little monster ;) "Télécharger".
Comment 5 Luka Renko 2007-06-05 21:55:29 UTC
Patch was taken from this debdiff:
http://archive.ubuntu.com/ubuntu/pool/main/d/digikam/digikam_0.9.2~beta2-1ubuntu2.diff.gz
Comment 6 Marcin Garski 2007-06-07 22:11:03 UTC
I have informed Ubuntu maintainer about this issue in their patch.
Comment 7 caulier.gilles 2007-06-09 09:10:09 UTC
*** Bug 146571 has been marked as a duplicate of this bug. ***
Comment 8 caulier.gilles 2007-11-28 13:18:19 UTC
desktop.in files are not i18n. It's a duplicate of #141085.

kde script must be fixed for that.

Gilles Caulier

*** This bug has been marked as a duplicate of 141085 ***
Comment 9 caulier.gilles 2022-01-20 21:30:28 UTC
Fixed with https://bugs.kde.org/show_bug.cgi?id=141085