www.ruby-lang.org icon indicating copy to clipboard operation
www.ruby-lang.org copied to clipboard

Disable redirect to outdated translations

Open znz opened this issue 6 years ago • 6 comments

I think redirecting to outdated translations is not good. And I do not want to maintain languages map manually. So I think it should stop to redirect automatically. Some languages are commented out in LANGS_MAP, because original LANGS does not include them. Magic number about_6_months_ago is to stop redirecting to pt which is not included in original LANGS and latest posts are 2017-12-14.

ref #1827

znz avatar Sep 11 '18 10:09 znz

I'm not convinced yet that automatic disabling is a good thing.

Besides that, I think "_plugins/translation_status.rb" is not the right place to define the "languages_json" tag, it should be separate.

stomar avatar Sep 29 '18 19:09 stomar

What about remembering user's language choice on a cookie. Would that be acceptable?

deivid-rodriguez avatar Oct 04 '18 11:10 deivid-rodriguez

@deivid-rodriguez I wonder if we could show a banner to ask the user if this the language they want the first time they visit and store it in a cookie? If they change to another language from the footer maybe show them a bar at the top asking if they want to save this as their default language?

The logic could be that if the cookie exists it overrides the auto-redirect.

VagishVela avatar Oct 04 '18 13:10 VagishVela

Yeah, that would definitely work for me!

deivid-rodriguez avatar Oct 04 '18 15:10 deivid-rodriguez

Personally, I do not like handling cookies, I'd prefer keeping the site as simple as possible.

stomar avatar Oct 04 '18 16:10 stomar

Do you have any other proposals to fix #1827, then?

Of course, as a user I can change the language of my browser, or go to the footer and click on English every time I visit the site, or remember to type ruby-lang.org/en every time I visit the site. But I think we can agree that it's not a very good user experience. All that assuming that I'm aware that my language translation is outdated. Otherwise I'll just mistakenly assume that the information I'm given is the latest.

deivid-rodriguez avatar Oct 04 '18 16:10 deivid-rodriguez