Bug 12791 - Mate MintMenu break MCC language
Summary: Mate MintMenu break MCC language
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 4
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: advisory MGA4-64-OK mga4-32-ok
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2014-02-16 09:51 CET by Arnaud Vacquier
Modified: 2014-12-09 21:13 CET (History)
4 users (show)

See Also:
Source RPM: mintmenu
CVE:
Status comment:


Attachments

Description Arnaud Vacquier 2014-02-16 09:51:16 CET
Hi,

I use Mate in my Mageia 4 64bits
There is an applet call "MintMenu"

It is make Cinnamon menu on Mate, it is great :p
But MCC is only in english and on defaut menu with the language select (french for me)

Mint menu (we see MCC in english) : http://pix.toile-libre.org/upload/original/1392540600.png

Classic menu (we see MCC in french) : http://pix.toile-libre.org/upload/original/1392540633.png

Thank you

Reproducible: 

Steps to Reproduce:
Comment 1 Manuel Hiebel 2014-02-16 18:10:45 CET
happens with other apps ?
Comment 2 Arnaud Vacquier 2014-02-16 19:05:27 CET
Other apps run fine, i think it os the "link" with MCC who is break
Comment 3 Arnaud Vacquier 2014-03-26 01:12:53 CET
hi,

I found probbly issue :

/usr/share/mintMenu/plugins

file : system_management.py

line 136 :

              Button1 = easyButton( "/usr/share/icons/drakconf.png", self.iconsize, [_("Mageia Control Center")], -1, -1 )

-----
It is curious it is only in english ?


-----
Line : 143 

        Button2.connect( "clicked", self.ButtonClicked, "gksu-polkit /usr/bin/drakrpm" )


--
in terminal :
gksu-polkit /usr/bin/drakrpm = launch in english only
/usr/bin/drakrpm = launch in french
Arnaud Vacquier 2014-03-26 01:13:14 CET

Whiteboard: (none) => MGA5TOO

Comment 4 Arnaud Vacquier 2014-03-26 01:33:24 CET
hum
I see too :
# i18n
gettext.install("mintmenu", "/usr/share/locale")

and in "fr" folder, there is a "mintmenu.mo"
probably bad translate ? i don't know i can't open :(
Manuel Hiebel 2014-03-30 11:18:06 CEST

Keywords: (none) => Triaged
Version: 4 => Cauldron
Assignee: bugsquad => tarakbumba
Source RPM: (none) => mintmenu
Whiteboard: MGA5TOO => MGA4TOO

Comment 5 Atilla ÖNTAŞ 2014-03-30 16:41:17 CEST
(In reply to Arnaud Vacquier from comment #0)
> Hi,
> 
> I use Mate in my Mageia 4 64bits
> There is an applet call "MintMenu"
> 
> It is make Cinnamon menu on Mate, it is great :p
> But MCC is only in english and on defaut menu with the language select
> (french for me)
> 
> Mint menu (we see MCC in english) :
> http://pix.toile-libre.org/upload/original/1392540600.png
> 
> Classic menu (we see MCC in french) :
> http://pix.toile-libre.org/upload/original/1392540633.png
> 
> Thank you
> 
> Reproducible: 
> 
> Steps to Reproduce:

I think i can workaround MCC is only english issue. That is easy to fix.
But i think i can not provide localized "Mageia Control Center" menu entry.

Translations are taken from linuxmint. Unfortunately, LinuxMint guys provide their applications and tools only LinuxMint in mind. Meaning that they provide them distro specific. I had to heavily patch this piece of applet to fit for Mageia. So, some entries are naturally not translated. If you have a solution for entry translation, then please share with me.
Comment 6 Atilla ÖNTAŞ 2014-03-30 16:47:42 CEST
Anyway, i submitted mintmenu-5.5.2-2.mga5 to Cauldron repositories. Please test it.

Launcher script which comes with drakconf package (/usr/bin/drakconf) does not work with MintMenu altough drakrpm one works. I have copied drakrpm launcher script and modified to work with drakconf and install as /usr/bin/mintmenu-drakconf. Also, rediffed draktools patch to use new  /usr/bin/mintmenu-drakconf. Now, MCC from MintMenu system menu should work as expected.
Comment 7 Atilla ÖNTAŞ 2014-11-22 03:21:51 CET
I have submitted mintmenu-5.5.8-5.mga5 to Cauldron repositories. This package should fix MCC menu entry localization issue. Please test it and if it works for you please close this bug report.
Comment 8 Atilla ÖNTAŞ 2014-11-23 03:14:21 CET
I have uploaded an updated mintmenu package for Mageia 4.


Test Case:
========================
Before updating:
- Try to launch MCC from mintmenu menu entry. On non english systems MCC menu entry is english (Mageia Control Center) and MCC runs english only locale
- Right click on mintmenu panel applet, select "about". You'll notice that an error message is "sh: /usr/share/mintMenu/common/version.py:No such file or directory"
After updating: Take same steps and you should see that these issues got fixed.

Suggested advisory:
========================

- Before update, mintmenu make use of gksu-polkit to launch MCC due to infamous "double forking" issue in drakconf package. Latest drakconf package in core/updates repo fixed the issue and with this update; gksu-polkit usage/dependency is now dropped

- Before update, MCC menu entry was english only. This update provides localized MCC menu entries for supported languages. (mga#12791)

- Before update, "about" dialog of mintmenu was displaying an error message, instead of version info etc. This update fixes the issue.

========================

Updated packages in core/updates_testing:
========================
mintmenu-5.5.0-2.1.mga4.noarch.rpm

Source Package:
=======================
mintmenu-5.5.0-2.1.mga4.src.rpm

Keywords: Triaged => (none)
Version: Cauldron => 4
Assignee: tarakbumba => qa-bugs
Whiteboard: MGA4TOO => (none)

Comment 9 olivier charles 2014-11-25 16:47:12 CET
Testing on Mageia-3-32 real hardware using MATE desktop

Current package :
mintmenu-5.5.0-2.mga4
then
Update testing package
mintmenu-5.5.0-2.1.mga4

Reproduced the bug following comment 8.
Saw that update testing corrected the bug.

But saw there is what seems a related bug on another item of Mint-Menu :

When selecting "Bureau" (Desktop), got an error message stating :
Impossible de trouver « /home/zitounu/Desktop ».
It seems to point to /home/user/Desktop instead of /home/user/Bureau

(usual Mate menu item "Bureau" works well.)

No issue found on other items on mintmenu.

CC: (none) => olchal

Comment 10 Atilla ÖNTAŞ 2014-11-26 21:52:40 CET
(In reply to olivier charles from comment #9)
> Testing on Mageia-3-32 real hardware using MATE desktop
> 
> Current package :
> mintmenu-5.5.0-2.mga4
> then
> Update testing package
> mintmenu-5.5.0-2.1.mga4
> 
> Reproduced the bug following comment 8.
> Saw that update testing corrected the bug.
> 
> But saw there is what seems a related bug on another item of Mint-Menu :
> 
> When selecting "Bureau" (Desktop), got an error message stating :
> Impossible de trouver « /home/zitounu/Desktop ».
> It seems to point to /home/user/Desktop instead of /home/user/Bureau
> 
> (usual Mate menu item "Bureau" works well.)
> 
> No issue found on other items on mintmenu.

Thanks for testing. But i think there is a mistake, you don't mean to Mageia-3, yes? MATE Desktop and MintMenu are not included/provided and supported for Mageia 3. If you use unofficial Mageia 3 repository of mine, please stop testing and please try to test on Mageia 4.

CC: (none) => tarakbumba

Comment 11 olivier charles 2014-11-27 00:04:28 CET
Oups sorry, that was in fact Mageia4-32 testing 
not Mageia 3-32 as I wrote in comment 10) 

and it was from official repository :
                       
mintmenu-5.5.0-2.mga4 and mintmenu-5.5.0-2.1.mga4.
Comment 12 Atilla ÖNTAŞ 2014-11-27 07:56:29 CET
Thanks olivier. It seems to med that the bug you've discovered is another issue. Would you mind to check your ~/.config/user-dirs.dirs file? Is XDG_DESKTOP_DIR variable is localized as "Bureau" ? If not, it is a bug not related to mintmenu but related to xdg-user-dirs or xdg-user-dirs-gtk packages.
Comment 13 olivier charles 2014-11-27 08:21:18 CET
Attila :

In ~/.config/user-dirs.dirs :

XDG_DESKTOP_DIR="$HOME/Bureau"
Comment 14 olivier charles 2014-11-27 13:17:19 CET
I checked again mintmenu.

The issue concerning mintmenu item "Bureau" (Desktop) applies not only to testing package (mintmenu-5.5.0-2.1.mga4) but to current package (mintmenu-5.5.0-2.mga4) also.

So this is not a regression.

Attila, please confirm it is not related with bug 12791 so that I file a new bug report if necessary.

Thanks.
Comment 15 Lewis Smith 2014-12-02 20:29:03 CET
Testing MGA4 x64
using Mate Desktop with Mint menu mintmenu-5.5.0-2.mga4 added from normal repos
and Cymraeg [Welsh] language. Right-click top panel, "Add to panel" MintMenu.
Confirm the faults noted in Comment 8:
- The MCC menu entry under System is in English.
- MCC when launched thus is all in English.
- The "About" MintMenu menu entry throws the error message described.
[As a control, I tried from the normal Mate menu. *Here also* the System/Management menu entry for MCC *is in English*! - but the other items translated. MCC itself ran in Welsh].

Updated MintMenu to mintmenu-5.5.0-2.1.mga4, and confirm all OK:
- Under System, the MCC menu entry is translated.
- When launched thus, MCC is all correctly translated.
- The "About" right-click menu entry worked OK.

For Olivier's note in Comment about an error from MintMenu Places/Desktop, this did not happen with me. The menu entry is correct as 'Penbwrdd' and shows the right directory /home/lewis/Desktop - but this may be because Welsh is classed as subsidiary to UK.

However, another iffy: BOTH Mate menu & MintMenu 'Places/Desktop' show *2* icons for the Home directory in the file manager window that pops up. Yes, I do have KDE as well. Is this related to the LXDE (with KDE) bug about 2 Home icons on its desktop (but which invoked *different* file managers)? That has been fixed.

CC: (none) => lewyssmith
Whiteboard: (none) => MGA4-64-OK

Comment 16 claire robinson 2014-12-09 14:21:13 CET
Atilla, how would you like to proceed please?
Comment 17 Atilla ÖNTAŞ 2014-12-09 14:30:10 CET
I think olivers findings about Places/Desktop is unconfirmed regarding to my experience and Lewis's. Also, it seems to me that Lewis's "BOTH Mate menu & MintMenu 'Places/Desktop' show *2* icons for the Home directory" issue is a KDE related bug; may be a "OnlyShowIn" or "NotShowIn" key is missed in KDE's Home.desktop?

Anyway, these two issues are seperate from MintMenu update. Please, validate this. Thanks.
Comment 18 claire robinson 2014-12-09 14:45:34 CET
Adding OK's from previous testing. 

Olivier you might try creating a new user and logging in as that user to see if the issue with Desktop still occurs. If you find it does could you please create a new bug for it so that it can be debugged separately. Thanks.

Whiteboard: MGA4-64-OK => MGA4-64-OK mga4-32-ok

Comment 19 claire robinson 2014-12-09 14:52:22 CET
Validating. Advisory uploaded.

Please push to updates

Thanks

Keywords: (none) => validated_update
Whiteboard: MGA4-64-OK mga4-32-ok => advisory MGA4-64-OK mga4-32-ok
CC: (none) => sysadmin-bugs

Comment 20 Atilla ÖNTAŞ 2014-12-09 14:59:12 CET
Thanks claire.
Comment 21 olivier charles 2014-12-09 16:26:48 CET
I've retested the whole process with a new install of Mageia4x32 Mate desktop on real hardware and I still come upon the same issue, even with a new user. It occurs with both versions.

Do I have to wait for this testing package to be pushed before reporting a bug ?
Comment 22 claire robinson 2014-12-09 16:29:59 CET
No go ahead Olivier, this will need to be pushed before another mintmenu is built in testing is all, if it's mintmenu at fault.
Comment 23 olivier charles 2014-12-09 16:59:48 CET
Ok and done :
https://bugs.mageia.org/show_bug.cgi?id=14761
Comment 24 Mageia Robot 2014-12-09 21:13:19 CET
An update for this issue has been pushed to Mageia Updates repository.

http://advisories.mageia.org/MGAA-2014-0212.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.