Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139508 - Requesting LINGUAS support for opera
Summary: Requesting LINGUAS support for opera
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: Lowest enhancement (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
: 171762 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-06 19:23 UTC by Matti Kaijomaa
Modified: 2008-05-20 23:43 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
opera-lng-9.01.ebuild (opera-lng-9.01.ebuild,1.44 KB, text/plain)
2006-09-24 15:57 UTC, Jeroen Roovers (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matti Kaijomaa 2006-07-06 19:23:24 UTC
There is some language files for Opera on its site: http://opera.com/download/languagefiles/

If there IS language files, why does not Opera's ebuild provide them? No matter what your LINGUAS is - only english language file will be installed. Opera's ebuild should download language files based on the LINGUAS variable just like OOo, Firefox etc. do.

No, I don't know how to do this - I'm just a whining bastard.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2006-08-09 13:25:56 UTC
I like the idea and I have played around with an adapted ebuild that uses LINGUAS to download selected .lng files from [1] and install them in /opt/opera/share/opera/locale, which is quite trivial to achieve, yet that is about all the ebuild can properly do. Opera does not automatically select a UI language for $USER, and neither does the ebuild - it would be improper for the ebuild to edit $HOME/.opera/opera6.ini for every $USER.

I do however think axxo might still want to comment on your enhancement proposal.


[1] http://www.opera.com/download/languagefiles/
Comment 2 Denilson Sá Maia 2006-09-23 20:31:39 UTC
I was about to submit a bug requesting this, so, instead of submitting a duplicate, I will ask here: please add this feature. :)

The ebuild should download and install the language files (like Firefox ebuild does). The user is responsible to change the language file (like in Firefox). The ebuild can, however, print an EINFO explaining where the language files were stored. Nothing more than that.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2006-09-24 15:57:48 UTC
Created attachment 97984 [details]
opera-lng-9.01.ebuild

An ebuild for a new package (I suggest www-client/opera-lng) that installs .lng files for LINGUAS. Please feel free to test, improve, and comment.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2007-01-23 14:58:44 UTC
I am closing this bug because of the complete lack of interest this bug has attracted in the last few months (since I posted the attached ebuild).
Comment 5 Denilson Sá Maia 2007-01-23 15:49:05 UTC
Too bad... Firefox already has LINGUAS support on its "main" ebuild (no extra ebuild necessary). Too bad no developer wanted to take a look at this. Maybe all of them use Firefox... :-P
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2007-01-23 16:08:24 UTC
(In reply to comment #5)
> Too bad... Firefox already has LINGUAS support on its "main" ebuild (no extra
> ebuild necessary). Too bad no developer wanted to take a look at this. Maybe
> all of them use Firefox... :-P

Er, you don't understand. I happen to be a developer and I did take a look at the problem, I proposed a solution and worked out an ebuild, then nobody responded for months on end. Recap: maintaining opera-lng will be a bit more of a hassle than maintaining LINGUAS for firefox is, because Opera is slacking in updating lng files with every new Opera release, so you may end up with, say, Opera 9.02 and with a 9.01 lng file, which usually works well enough but does pose an ebuild maintainance problem, as the Gentoo maintainer would have to monitor [1] frequently (weekly or just when yet another bug is filed?) for changes of available languages against Opera versions and update the opera-lng ebuilds accordingly.

If only Opera would enforce lng file updates with new Opera versions, this[2] wouldn't be such a chore.


[1] http://www.opera.com/download/languagefiles/?platform=linux
[2] I.e. editing several opera-lng ebuilds to update the LANGS variable in each.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-03-22 11:03:34 UTC
*** Bug 171762 has been marked as a duplicate of this bug. ***
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2008-05-20 16:46:34 UTC
I'm looking at an opera 9.50 beta2 build 1971 snapshot which includes lng files in SRC_URI, so this is looking very promising now.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2008-05-20 23:34:18 UTC
I filed Opera bug #331638 to get the zh-* languages in line with the rest of them (i.e. to follow the pattern of ll-CC so that the ebuild doesn't need to perform odd tolower/toupper (or as it is going to be now, to use find -iname <foo> for that purpose).
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2008-05-20 23:40:56 UTC
Comment on attachment 97984 [details]
opera-lng-9.01.ebuild

This will no longer be needed.
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2008-05-20 23:43:07 UTC
www-client/opera-9.50_beta2_p1971-r1 implements the new scheme:

[ebuild   R   ] www-client/opera-9.50_beta2_p1971  USE="qt-static spell -gnome" LINGUAS="en en_GB nl -be -bg -cs -da -de -el -es_ES -es_LA -fi -fr -fr_CA -fy -hi -hr -hu -it -ja -ka -ko -lt -mk -nb -nn -pl -pt -pt_BR -ru -sv -tr -zh_CN -zh_TW" 0 kB

It will be available soon in a Portage tree near you.