Description of problem: The zh_CN and the zh_TW translation of the Name and Comment fields are broken. Version-Release number of selected component (if applicable): 3.2.0-6.fc4 How reproducible: Always. Steps to Reproduce: a. run GNOME under zh_CN.utf8, view shortcut in menu. OR b. manual inspection of the desktop file using for example, gedit. Actual results: Garbled characters like these are seen: Name[zh_CN]=Grip MP3 å<88>¶ä½<9C>ç¨<8B>åº<8F> Expected results: Name[zh_CN]=Grip MP3 *correct Chinese characters here* Additional info: LANG and LANGUAGE is set to zh_CN.utf8. Additonal Notes: * I've not actually run GNOME under zh_TW.utf8 to see the problem appearing in the menu. But using (b) is sufficient to conclude that the same problem also exists for zh_TW.utf8. * The said strings don't appear to be in GB or Big5 encoding either (tested with iconv).
The desktop file is converted from iso-8859-1 to utf8 in the spec file during build. The original desktop file seems to be already in the wrong format. The best would be if you could directly contact the upstream author about this error. The only thing I could do about it, is to delete the lines with the wrong the encodings from the desktop file. Could you provide a patch to the existing desktop file with the correct content and encoding?
Created attachment 118745 [details] Patch for zh_CN/zh_TW translation Changes: a. Add Encoding key (UTF-8). b. Remove .big5, .gb2312 encoding tags (deprecated) c. Fix zh_TW and zh_CN translations for Name and Comment. d. New German translation (taken from 3.3.1). * I've left Name untranslated as 'Grip'. Translations for other languages have done the same thing. * The fix was done with 3.3.1 and diff'ed with 3.2.0, so we get the German translation in 3.3.1. The more translations the better. I can't vouch for its correctness however.
Can you compress and reattach the patch. I am not sure if downloaded the patch with the correct encoding. Maybe you could also attach a version of your desktop file (also compressed) so that I can compare if my patched version is the same as yours. Thanks.
Created attachment 118783 [details] Original patch and patched grip.desktop Note: The patch was made from the original source, so it'd require some adjustments in the spec file.
Thanks, I have made a new SRPM containing your patch. http://lisas.de/~adrian/rpm/grip-3.2.0-8.src.rpm For me it looks like this version contains now a correct desktop file. It would be great if you could verify this by rebuilding and testing this rpm.
It works fine :)
Thanks.