Project

General

Profile

Task #1983

askbot normalization for documentation

Added by Olivier Hallot over 1 year ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Category:
Askbot
Target version:
Team - Pool
Start date:
Due date:
% Done:

100%

Estimated time:
Tags:
URL:

Description

I need to normalize askbot URLs for easier access. This relates to bug https://bugs.documentfoundation.org/show_bug.cgi?id=96015

At the moment the askbot service is per language and not per locale. That means, the /en/ askbot serves for en-US, en-UK, en-SA, etc...

The current askbot URLs exists in this logic:

ask.libreoffice.org/de/questions
ask.libreoffice.org/en/questions
ask.libreoffice.org/es/questions
...

but for Portuguese, we have
ask.libreoffice.org/pt-br/questions

1) can I get a symlink or redirect from
ask.libreoffice.org/pt/questions
to
ask.libreoffice.org/pt-br/questions

2) can I get a missing language to fall-back to /en/? Today a missing language returns a customized 404 page.

History

#1 Updated by Olivier Hallot over 1 year ago

Patch for LibreOffice depending on this:

https://gerrit.libreoffice.org/#/c/27028/

#2 Updated by Florian Effenberger over 1 year ago

  • Project changed from Documentation to Infrastructure
  • Category set to Askbot
  • Assignee set to Christian Lohmaier
  • Target version set to Pool

#3 Updated by Christian Lohmaier over 1 year ago

added a 303 (see other) redirect for /pt/(.*) to /pt-br/$1

Not convinced that a redirect to en is usefull for all other non-matches. Rather the 404 not found page should have pointers to the available languages.

#4 Updated by Olivier Hallot over 1 year ago

Excellent for pt-br... works perfectly.

On 404, I agree as well.
Available languages for Ask:

Arabic (ar)
German (de)
English (en)
Spanish (es)
Croatian (hr)
Italian (it)
Japanese (ja)
Korean (ko)
Portuguese (pt)
Romanian (ro)

#5 Updated by Florian Effenberger over 1 year ago

Can we update the 404 page manually, Olivier, is there a setting in the AskBot web interface?

#6 Updated by Olivier Hallot over 1 year ago

I don't see where to change the 404 page contents in the Settings UI, although it is translated in the browser language.

(It will be nice to be able to modify the 404 contents at the web UI in the Ask settings.)

#7 Updated by Florian Effenberger over 1 year ago

I just poked Evgeny to see how easy that is (so we don't mess up with his regular updates/git pulls)

#8 Updated by Florian Effenberger over 1 year ago

404 page editing is not possible at the moment - checking how much work/budget it would require atm

#9 Updated by Olivier Hallot about 1 year ago

This is the list of URL that will be activated when user click on link "Get Help Online...", according to the discussions

Incoming link:

http://hub.libreoffice.org/forum/?&LOlang

where LOLang is one of the languages below.

Askbot links:

Arabic (ar) https://ask.libreoffice.org/ar/questions/
Czech (cs) https://ask.libreoffice.org/cs/questions/
Slovak (sk) https://ask.libreoffice.org/sk/questions/
German (de) https://ask.libreoffice.org/de/questions/
English (en) https://ask.libreoffice.org/en/questions/
Spanish (es) https://ask.libreoffice.org/es/questions/
Croatian (hr) https://ask.libreoffice.org/hr/questions/
Italian (it) https://ask.libreoffice.org/it/questions/
Japanese (ja) https://ask.libreoffice.org/ja/questions/
Korean (ko) https://ask.libreoffice.org/ko/questions/
Dutch (nl) https://ask.libreoffice.org/nl/questions/
Portuguese (pt) https://ask.libreoffice.org/pt/questions/
Romanian (ro) https://ask.libreoffice.org/ro/questions/
Norwegian (nn) https://ask.libreoffice.org/en/questions/
Norwegian (nb) https://ask.libreoffice.org/en/questions/
Guarani (es) https://ask.libreoffice.org/es/questions/
Lithuanian (lt) https://ask.libreoffice.org/en/questions/
Turkish (tr) https://ask.libreoffice.org/tr/questions/

Non-askbot links:

Chinese (cn) http://www.libreofficechina.org/forum.php?from=UI
French (fr) https://fr.libreoffice.org/get-help/poser-une-question
Russian (ru) http://forumooo.ru/
Danish (da) http://forum.liboforum.dk/
Tamil (ta) http://ta.libreoffice.org/
Slovenian (sl) http://sl.libreoffice.org/po-pomoc/podpora-skupnosti/

#10 Updated by Florian Effenberger about 1 year ago

Olivier Hallot wrote:

This is the list of URL that will be activated when user click on link "Get Help Online...", according to the discussions

Editing of the 404 pages is currently not possible. We might order that (with fresh budget) in 2017, but right now, it's not possible.
What request remains then?

I see "redirect from ask.libreoffice.org/pt/questions to ask.libreoffice.org/pt-br/questions"
What else needs doing?

#11 Updated by Olivier Hallot about 1 year ago

Ouch!

My comment #9 was inserted proly by mistake although it is related because of the hub URL.

From bug#96015, a "Get Help Online" entry is added to the Help menu of LibreOffice. This entry will bring the user to the page indicated by comment #9.

Because of the 2nd bug hunting session, it will be nice to have it ready.

NOTE: the 'de' and 'ru' sites are under discussion becasue they point to a AOO infra and brand.

#12 Updated by Florian Effenberger about 1 year ago

To recap:

Ticket #1983 is about
1. getting a redirect for ask/pt to ask/pt-br
2. if possible get a specific redirect in nginx for unknown/not
available languages in AskBot (e.g. a match like ask/xx and ask/xx-xx)

Ticket #1988 is about adding some new static URLs at hub

Correct?

#13 Updated by Olivier Hallot about 1 year ago

Updated list with Slovenian.

#14 Updated by Olivier Hallot 11 months ago

  • Assignee changed from Christian Lohmaier to Guilhem Moulin

Assigning to Guilhem.

Please look at comment #9.
IMHO the deadline is 5.3 release date...

#15 Updated by Guilhem Moulin 11 months ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Added redirects for all of these: [[http://hub.libreoffice.org/forum/?&LOlang=(nn|nb|lt)]] are redirected to [[https://ask.libreoffice.org/en/questions/]], cn/fr/ru/da/ta/sl have the language-specific, non ask.lo redirections URI you specified, and all the rest is redirected to [[https://ask.libreoffice.org/$LOlang/questions/]] (preserving the 404 for missing forums).

#16 Updated by Guilhem Moulin 11 months ago

  • Status changed from Resolved to Closed

#17 Updated by Guilhem Moulin 11 months ago

  • Status changed from Closed to In Progress

#18 Updated by Kevin Suo 11 months ago

For Simplified Chinese,when I click the Get Help Online menu, it opens:
http://hub.libreoffice.org/forum/?LOlang=zh
and then redirects to:
https://ask.libreoffice.org/zh/questions/
which does not exist.

In the redmine list we have the item:
Chinese (cn) http://www.libreofficechina.org/forum.php?from=UI

So the issue may be related to "zh" and "cn" strings.

For the zh locale, we have zh_cn (Simplified Chinese) and zh_tw (Traditional Chinese) variants, which both are active locales in libreoffice.

I suggest we add redirect for "zh" to http://www.libreofficechina.org/forum.php?from=UI (we have both Simplified and Tranditional support in the site), I assume the zh_tw team will agree.

#19 Updated by Guilhem Moulin 11 months ago

  • Status changed from In Progress to Rejected

Fixed mandarin's ISO 639-1 code (s/cn/zh)

#20 Updated by Guilhem Moulin 11 months ago

  • Status changed from Rejected to Closed

Also available in: Atom PDF