Loading...
 
Skip to main content

Page translation module with Reference language (pivot_language) parameter broken on tiki-index.php

Status
Open
Subject
Page translation module with Reference language (pivot_language) parameter broken on tiki-index.php
Category
  • Regression
Feature
i18n (Multilingual, l10n, Babelfish)
Submitted by
Philippe Cloutier
Volunteered to solve
Louis-Philippe Huberdeau
Lastmod by
Philippe Cloutier
Rating
(0)
Description
The Page translation module uses the pageLang global variable to determine the language of the page being viewed. tiki-index.php does not set that variable anymore since r14757. This breaks filter_languages_from_pivot when viewing pages in the reference language and using a Reference language parameter. Then, translations of the currently viewed page are not displayed. pageLang was moved to renderlib, in setupMultilingual(), but setupMultilingual() can be called several times in a request on tiki-all_languages.php, so this needs a deeper fix than declaring pageLang as global.
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
2825
Created
Saturday 24 October, 2009 20:50:31 UTC
by Unknown
LastModif
Saturday 24 October, 2009 20:52:29 UTC


Show PHP error messages