names of added apps doesn't match actual language

Bug #1089993 reported by Jan Schürmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drawers
Fix Released
Medium
icb410

Bug Description

i'm using Ubuntu 12.10 64-bit with all latest updates and German Language.
adding my german named applications to a drawer ends up in the original english names so i have to rename all apps by hand

Revision history for this message
icb410 (ian-berke) wrote :

Interesting... I'm not all that familiar with translations. It seems that many .desktop files have different locale keys for each field (e.g. Name). Drawers just pulls the default "Name" key from the file and doesn't look for a specific locale Name key (e.g. Name[de]). I'll investigate the possibility of reading a locale from the system and then pulling the appropriate keys from the desktop file.

BTW. If you're interested in contributing to translating drawers, please consider going through the following: https://translations.launchpad.net/drawers/trunk/+pots/drawers/de/+translate

Thanks,
Ian

Changed in drawers:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → icb410 (ian-berke)
Revision history for this message
icb410 (ian-berke) wrote :

Hi,

I think I have a solution to this. Would you mind testing a patch for me? It's attached. To apply it do the following:

cd /opt/extras.ubuntu.com/drawers/drawers
sudo patch < PATH_TO_PATCH/langs.patch

Try it out by adding an application to the drawer and please let me know if it works. Not all application's desktop files have locale specific name entries. If it doesn't, it won't work. You can double check if the application does, by dropping the .desktop onto gedit or opening with some other text editor. I used chromium-browser.desktop for testing since it seemed to have plenty of locale entries.

Note: the attached patch only adds support for an existing drawer. Drawers created in the beginning dialog by searching categories won't have this feature (yet)

Thanks,
Ian

Changed in drawers:
status: Triaged → In Progress
Revision history for this message
Jan Schürmann (visionfactory.net) wrote :

running this patch does the same as i wrote for my other bug report, it starts and nothing happens, even after more than 5 minutes...

Revision history for this message
Jan Schürmann (visionfactory.net) wrote :

inserting and deleting the entries in drawer.py seem to broke the Drawers because after doing the changes, it doesn't open anymore, even after a re-login it doesn't open.
reverting to the original drawer.py instantly makes the Drawer open again...

so the patch doesn't seem to work on my system :-(

icb410 (ian-berke)
Changed in drawers:
status: In Progress → Fix Committed
icb410 (ian-berke)
Changed in drawers:
milestone: none → 12.12.2
icb410 (ian-berke)
Changed in drawers:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.