Page MenuHomePhabricator

#lsth cannot retrieve the translated contents on translated pages
Closed, DuplicatePublic

Description

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

  • i open -> Temporary_accounts
  • see the text starts with a temporary user name => ok the #lsth is transcluding EN contents into the EN page
  • now I open similarly the FR translated page -> Temporary_accounts/fr

What happens?:

  • the expected text brought by #lsth is missing in this FR paragraph :

What should have happened instead?:

  • I expected the transcluded contents would be the existing FR translation of the EN paragraph
  • I tried using Special:MyLanguage/ but it does not help
  • I used /fr and the FR anchor value : it works but it is a harcoded way and cannot be adopted
  • Where is the solution ?

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.): Desktop + Vector skin.

Event Timeline

I've worked around the issue for this specific page, but there's a real bug that LST and translate should interact better here. It's unlikely anyone, including myself, will spend time fixing it, though.

ok, it gives the solution to my problem. To understand, we must say that we replaced

{{#lsth:Trust and Safety Product/Temporary Accounts/FAQ|What does a temporary username look like?}}

by

{{#lst:Trust and Safety Product/Temporary Accounts/FAQ{{#translation:}}|pattern}}

where 'pattern' is the name of an explictly declared section containing the translate tagged contents to transclude. Thanks.