Closed Bug 622151 Opened 13 years ago Closed 13 years ago

Show English article and notice, instead of redirecting, when localization doesn't exist or isn't approved

Categories

(support.mozilla.org :: Knowledge Base Software, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: JasnaPaka, Assigned: paulc)

References

Details

From Bug 621389.

When I try to visit article which doesn't have translation I'm
redirected to the en-US version of SUMO. With old SUMO there was no redirect to
the en-US version. In other words I saw czech (cs) SUMO (GUI) with english
article

Visit:
http://support.mozilla.com/cs/kb/what-are-app-tabs

You are redirected to the page:
http://support.mozilla.com/en-US/kb/what-are-app-tabs

My expectation:
* Stay on the same URL and show english version of the article.
Yeah this should be fixed. This bug means that, as soon as you click on an article that isn't yet translated, you're moved over to the en-US site and will not see localized articles for the remainder of the browsing session... unless Kitsune checks the availability of translated articles based on the accept-lang string for every page hit?

The other side of this is that we can't notify the user that the article doesn't exist in their language if we move over to the en-US page. By staying on the correct locale (cs above), we can show a notification telling the user that the articles isn't yet translated into Czech (and even encourage people to start a translation, which we did on Tiki).
So if the document doesn't exist, but an English document with the same slug does, or if the document exists but has no approved revisions, show the English content and a message, without redirecting.
Summary: SUMO should not redirect to the en-US interface when article is not localized → Show English article and notice, instead of redirecting, when localization doesn't exist or isn't approved
Target Milestone: --- → 2.4.3
Assignee: nobody → paulc
Here are two versions of the notice:

1. Our volunteers haven't translated this article into *language* yet. If you're interested in helping get the job done — just click here!

2. Our volunteers haven't translated this article into *language* yet. You can help us change that — just click here!

What do you think?
3. Our volunteers haven't translated this article into *language* yet. If
you're interested in helping us change that — just click here!

Where would the link lead?
After talking to David here are two new versions removing the click here text and making the action a link.

4. Our volunteers haven't translated this article into *language* yet. [You can
help us change that!]

5. Our volunteers haven't translated this article into *language* yet. [Join us and help get the job done!]
We really need a decision ASAP here. Michael: #4 or #5?
Let's go with:

Our volunteers haven't translated this article into *language* yet. [Join us
and help get the job done!]

Second sentence should link to:
http://support.mozilla.com/en-US/kb/localize-firefox-help
Looks great!
This happily made it in 2.4.3:

https://github.com/jsocol/kitsune/commit/ea6d8acd710697a6967217a84f512617f57a2b47
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Sorry for bug spam:
Thanks for removing the "click here" text. That would be bad usability according to http://www.useit.com/homepageusability/guidelines.html (point #35).
I'm not getting English text and a note to translate on articles in a locale without a translation- I'm still getting redirected to the /en-US article. Ex: https://support-release.allizom.org/cs/kb/ticky-clock
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
I'm not sure but Paul mentioned version 2.4.3 which isn't on URL you posted. English text you can see here:

https://support.allizom.org/cs/kb/How%20do%20I%20edit%20options%20to%20add%20Adobe%20to%20the%20list%20of%20allowed%20sites

Or am I wrong?
(In reply to comment #14)
> I'm not sure but Paul mentioned version 2.4.3 which isn't on URL you posted.
> Or am I wrong?
Correct. This is 2.4.3 and hence not on support-release yet.

Rebecca: want to take another look?
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
Ah, much better, the link from comment 13 now shows a nice note 'Our volunteers haven't translated this article into Čeština yet. Join us and help get the job done!' Verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.