Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 40577

Summary: media-video/mplayer having localized context-menu on right mouse button in gmplayer by default
Product: Gentoo Linux Reporter: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED INVALID    
Severity: enhancement CC: flash3001
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: mplayer-1.0_pre3-r1.diff

Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2004-02-06 03:35:46 UTC
Hello,

This is a small patch for the mplayer-1.0_pre3.ebuild

gentoo is using the configure-option --enable-i18n when the use-flag "nls" is set. This makes the localized context menu appear on the middle mouse button.
When I replaced this by --language=de I had my localized menu on the right mouse button which I prefer when using a mouse with only two buttons.

A problem would be to have all supported languages for the --language= option in this ebuild. I put in language for german, english and french but I only tested the german language (which works as expected). So when there are needs to add more languages, don't forget to put them into the case function but the errormessage below, too.
I decided to make these changes in the ebuild useless, when not having the $MPLAYER_LANG variable set. So these changes don't break anything as long as $MPLAYER_LANG has a zero length.
Please also note that setting $MPLAYER_LANG disables --enable-i18n / --disable-i18n. This means that setting $MPLAYER_LANG makes the use-flag "nls" obsolete in this ebuild.

best regards

Polynomial-C

P.S.: I know that one can assign the context menu being on an individual mouse-button by changing mplayer's config file but I prefer this being the hard-coded default.


Reproducible: Always
Steps to Reproduce:
1. emerge mplayer
2. start gmplayer
3. press the right mouse button. You will seee the english context menu.
   The localized one is on the middle mouse button.

Actual Results:  
see "Steps to Reproduce" #3

Expected Results:  
localized context-menu when pressing the right mouse button.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2004-02-06 03:38:20 UTC
Created attachment 25070 [details, diff]
mplayer-1.0_pre3-r1.diff

this diff is against mplayer-1.0_pre3.ebuild
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2004-08-02 06:00:10 UTC
Changed resolution to invalid as newer versions work correct.

Poly