Page MenuHomePhabricator

Some entrypoints do not properly open CX/SX applications for multi-word page titles
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
The user is redirected to the SX or CX application with the right language pair, but the translation for the given page is not properly starting. This is only happening for multi-word page titles.

What should have happened instead?:
The translation for the given page should start.

Other information (browser name/version, screenshots, etc.):
Screencast of the issue NOT happening for single-word titles:

Screencast of the issue happening for multi-word titles:

Event Timeline

ngkountas triaged this task as Medium priority.

Change 886925 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] Fix entrypoints to use page title instead of page name

https://gerrit.wikimedia.org/r/886925

Change 886925 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Fix entrypoints to use page title instead of page name

https://gerrit.wikimedia.org/r/886925

Change 887333 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] SX fetch pages api: set non-normalized titles as alias

https://gerrit.wikimedia.org/r/887333

Change 887333 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX fetch pages api: set non-normalized titles as alias

https://gerrit.wikimedia.org/r/887333

Change 901328 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20230321

https://gerrit.wikimedia.org/r/901328

Change 901328 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20230321

https://gerrit.wikimedia.org/r/901328

@ngkountas could you pls clarify why I don't see the suggested language section as shown below ( Just like the video you shared)

Screenshot 2023-05-03 at 11.11.17 PM.png (1×1 px, 198 KB)

@EChukwukere-WMF in order to see the banner about the missing languages ("Missing in...") you need two things:

a. You need to have the "langMap" property set inside your browser's local storage. The easiest way to test this is by open the "Console" tab of the Developers tool (right click and "Inspect" option in Chrome) and type the following:
mw.storage.get( 'langMap' ). You will get a JSON string. If it's empty you would need to populate it with some languages where Section Translation is enabled (e.g. Igbo). In order to populate the langMap you need:

  1. Open the Dev Tools and enable the mobile mode
  2. While in mobile mode, visit a page in English Wikipedia, that also exists in the target language (e.g. "Igbo").
  3. Open the language selector and click on the target language ("Igbo"). Now this language has been added inside the "langMap". If it's already present in the "langMap" its frequency counter will be increased by one.

b. You should find an article that is missing for that language, (e.g. "Plants in space") and open it in the mobile version. Then open the language selector and the "igbo" language should be displayed in the "Missing in..." banner

Screencast below:

As demonstrated in the following screencast, as recorded in el wiki, this issue is now fixed:

@Pginer-WMF do you think we could close this task?