Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 998327

Summary: http://docs.fedoraproject.org/ doesn't work for the Romanian language (ro-RO)
Product: [Retired] Fedora Documentation Reporter: Cristian Ciupitu <cristian.ciupitu>
Component: docs-requestsAssignee: Nobody's working on this, feel free to take it <nobody>
Status: CLOSED EOL QA Contact: Fedora Docs QA <docs-qa>
Severity: high Docs Contact: Ruediger Landmann <rlandman>
Priority: unspecified    
Version: develCC: me, nobody, pbokoc, pkovar, stickster, zach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1045184 (view as bug list) Environment:
Last Closed: 2019-11-07 15:48:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1045184    
Bug Blocks:    

Description Cristian Ciupitu 2013-08-19 04:35:00 UTC
Document URL:
http://docs.fedoraproject.org/ 

Section Number and Name: 
http://docs.fedoraproject.org/

Describe the issue:
If I put Romanian ([ro-RO] and/or [ro]) at the top of preferred
languages in firefox-23.0-1.fc19.x86_64, the web page doesn't work. The
page is loaded then the browser seems to be redirected to the same page
over and over.

Suggestions for improvement: 

Additional information:
Visiting http://docs.fedoraproject.org/en-US/index.html directly works
fine.
Visiting http://docs.fedoraproject.org/xx-XX/index.html (literaly)
starts a loop.

I don't necessarily want the website translated into Romanian, I just
want it to work even if it's in English.

Comment 1 Pete Travis 2013-08-19 04:39:45 UTC
I've confirmed the symptoms can be recreated by invoking `LANG=ro_RO firefox` under a clean user account.

Comment 2 Cristian Ciupitu 2013-08-19 05:44:51 UTC
Some additional information: the / page has "ro" in the list of
(supported) locales[1] even if the possible URLs for the Romanian
language[2][3] don't work.

I also looked at the git repository for the website and I noticed that
there's no `index.html` under the ro subdirectory[4] like for other
languages, e.g. de-DE[5] and fr-FR[6].  By the way, while looking at the
rest of the languages I noticed that the index file is missing from
ia[7] too, so I tested with Interlingua and the looping issue occurred
again.

[1]: https://git.fedorahosted.org/cgit/docs/web.git/tree/public_html/index.html#n19 <!-- not sure if that's the source of what I get in browser -->
[2]: http://docs.fedoraproject.org/ro/index.html
[3]: http://docs.fedoraproject.org/ro-RO/index.html
[4]: https://git.fedorahosted.org/cgit/docs/web.git/tree/public_html/ro
[5]: https://git.fedorahosted.org/cgit/docs/web.git/tree/public_html/de-DE
[6]: https://git.fedorahosted.org/cgit/docs/web.git/tree/public_html/fr-FR
[7]: https://git.fedorahosted.org/cgit/docs/web.git/tree/public_html/ia

Comment 3 Eric Christensen 2013-11-25 15:54:50 UTC
I'm not able to reproduce the website not redirecting you to en-US language pages.  In fact, that's all I can get it to do.  Looking at the source I can confirm that *some* of the files are translated into Romanian for the website but, like you found, there is no index.html for the language.  

I'll continue to troubleshoot this and see what I can do.  I'd like to see the site available in Romanian (especially if the source is already translated).  

Sorry for the delay on this ticket.

Comment 4 Ruediger Landmann 2013-11-26 02:23:54 UTC
Thanks for the heads-up Sparks -- I'll see if I can get to the bottom of this...

Comment 5 Pete Travis 2013-12-18 04:01:15 UTC
I've done a little poking on this, republishing docsite-publican.  I found that publishing an ro-RO translation results in "ro" in the "locales" variable that gets iterated over for the redirect. For now, I'm manually changing web.git/public_html/index.html to "ro-RO", which redirects to the ro-RO content that seems to be in the correct path.

Comment 6 Cristian Ciupitu 2013-12-18 14:31:02 UTC
Right now I'm being redirected to http://docs.fedoraproject.org/ro-RO/index.html and I see some English documentation in the right frame/panel, but the left side seems to be stuck in an infinite loop.

Comment 7 Pete Travis 2013-12-19 19:51:40 UTC
(In reply to Cristian Ciupitu from comment #6)
> Right now I'm being redirected to
> http://docs.fedoraproject.org/ro-RO/index.html and I see some English
> documentation in the right frame/panel, but the left side seems to be stuck
> in an infinite loop.

The left pane is redirected based via cookie; can you clear cookies for the site and test?

Comment 8 Cristian Ciupitu 2013-12-19 20:16:17 UTC
(In reply to Pete Travis from comment #7)
> (In reply to Cristian Ciupitu from comment #6)
> > Right now I'm being redirected to
> > http://docs.fedoraproject.org/ro-RO/index.html and I see some English
> > documentation in the right frame/panel, but the left side seems to be stuck
> > in an infinite loop.
> 
> The left pane is redirected based via cookie; can you clear cookies for the
> site and test?

I've cleared both the cookies and the cache and the result is the same.