www.ruby-lang.org
www.ruby-lang.org copied to clipboard
Disable redirect to outdated translations
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
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.
What about remembering user's language choice on a cookie. Would that be acceptable?
@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.
Yeah, that would definitely work for me!
Personally, I do not like handling cookies, I'd prefer keeping the site as simple as possible.
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.