Cut off launcher name and description in Polish translation

Bug #1793406 reported by Spass on 2018-09-19
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
MenuLibre
Undecided
Unassigned

Bug Description

Hello. There's a problem in current MenuLibre on Xubuntu 18.04 and 18.10 with cut off names and descriptions in many, many launcher entries.

Screenshots:
1) https://ibb.co/c0WDfU
2) https://ibb.co/dXqN1e

In addition to that, if I click on the cut off name to edit the launcher, it shows the full name, but if I click to edit the description, it still doesn't show the full description in the text field.
See here - https://ibb.co/i9CVS9

I'm not sure what causes this issue, but when I changed the system language to English, it wasn't occurring anymore.

Launcher names and descriptions in the Whisker Menu are displaying correctly, launcher names in the left side pane in MenuLibre application itself are also OK.

Spass (malysps) on 2018-09-19
description: updated
Konstantin K. (tehkos) wrote :

Same in russian localization
Look at screenshot.
Instead of "Веб-браузер" there is only "Веб-бр".
And instead of "Смотреть в интернете" there is only "Смотреть в".
All applications with non-latin characters have such reduced titles.

Konstantin K. (tehkos) on 2018-09-22
Changed in menulibre:
status: New → Confirmed
Spass (malysps) wrote :

I've just looked at many launchers in MenuLibre and I can confirm what tehkos wrote, seems like this problem occurs specifically when there's a "Polish specific" (in my case) letter with diacritic mark in the name and/or description, so "ę, ó, ą, ś, ł, ż, ź, ć, ń".

Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1793406

tags: added: iso-testing
RedBug312 (redbug312) wrote :

Same under tranditional Chinese language.

This bug caused in [GLib.markup_escape_text](https://bazaar.launchpad.net/~menulibre-dev/menulibre/import/view/head:/menulibre/util.py#L99)

If called without second argument, the length would fallback to `strlen()` in C. which counts the byte number. However `len()` in python would count character number, resulting in name being cut-off.

Reference:
- [gi](https://github.com/GNOME/pygobject/blob/master/gi/overrides/GLib.py#L414)
- [glib](https://github.com/GNOME/glib/blob/master/glib/gmarkup.c#L2248)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers