minj / foxtrick

FoxTrick is a browser extension for the Hattrick online football manager game, currently available for Firefox, Google Chrome, as well as for Opera.
https://www.foxtrick.org
GNU General Public License v3.0
71 stars 49 forks source link

Wrong (and only one) language in FT #869

Closed minj closed 9 years ago

minj commented 9 years ago

Original issue 869 created by ifkgamlasaxon on 2011-12-13T06:22:47.000Z:

FT is all-English!


Setup These are your settings that FoxTrick detected. If incorrect, please report. Locale 'en' Country 'Sweden'

Date format 'yyyy-mm-dd'

It's the "locale" that is wrong. Should be 'se'

Also, changing language (via the ht-logo) in Hattrick doesn't always work with FT enabled. It only changes back to Swedish on my next click.

Just tried this though (FoxTrick 0.8.9.8023) and it actually did work now, but that didn't help changing the language of Hattrick though. That's still stuck on English.

What steps will reproduce the problem?

What is the expected behaviour? What is the actual behaviour instead? You could provide a screenshot if necessary.

What is the version of the FoxTrick, your browser and operating system?

Copy FoxTrick debug output on the page here (Enable debug output at main preferences tab of FoxTrick)

Please provide any additional information below.

minj commented 9 years ago

Comment #1 originally posted by ifkgamlasaxon on 2011-12-13T18:30:56.000Z:

Just for the time being I tried exporting my prefs, then editing the line:

user_pref("extensions.foxtrick.prefs.htLanguage","en");

to read:

user_pref("extensions.foxtrick.prefs.htLanguage","sv");

then importing that file!


So for my personal settings it's back to Swedish, but that don't change the fact that FT do not longer change language automaticly. If I change language on HT, then FT does no longer change accordingly.

minj commented 9 years ago

Comment #2 originally posted by convincedd on 2011-12-19T20:34:49.000Z:

language detection is done with following line:

Mitt Hattrick Min Klubb Världen Forum Shoppen Hjälp

if you have something different please tell us

also, there was a bug which for opera could have caused that bug. which browser do you use?

minj commented 9 years ago

Comment #3 originally posted by ifkgamlasaxon on 2011-12-19T21:27:42.000Z:

My original header reads: "Mitt Hattrick Min Klubb Världen Forum Shoppen Alltid Hjälp" Alltid is the only "extra" (now of course useless) item there.

I use FF (8.0.1)

minj commented 9 years ago

Comment #4 originally posted by CatzHoek on 2011-12-19T22:30:23.000Z:

Is it possible that alltid supporters have a menu that does not have the id "menu"?

minj commented 9 years ago

Comment #5 originally posted by CatzHoek on 2011-12-20T00:19:47.000Z:

Site source from an Alltid supporter: http://pastebin.com/fBwtpVZa

Couldn't spot any weirdness on first sight.

minj commented 9 years ago

Comment #6 originally posted by CatzHoek on 2011-12-20T00:23:39.000Z:

Innertext of "MyHattrick" seems to come with one trailing shitespace all the time, might cause the issue.

minj commented 9 years ago

Comment #7 originally posted by CatzHoek on 2011-12-20T00:26:44.000Z:

Innertext of "MyHattrick" seems to come with one trailing whitespace all the time, might cause the issue.

minj commented 9 years ago

Comment #8 originally posted by CatzHoek on 2011-12-20T00:31:08.000Z:

Innertext of "MyHattrick" seems to come with one trailing whitespace all the time, might cause the issue. Would also point towards an implementation specific issue, explaining why only a few ppl experience this?

minj commented 9 years ago

Comment #9 originally posted by office on 2011-12-21T09:25:49.000Z:

Since I am experiencing the same issue, I think it has something to do with Alltid supportership since I am one too...

minj commented 9 years ago

Comment #10 originally posted by ljushaff on 2011-12-21T12:15:48.000Z:

I reported it to HTs and they have removed Alltid links. As a consequence the language change problem has disappeared.

I think the issue can be closed

Status: Fixed