Loading...
 
Skip to main content

$prefs.language does not work properly?

Status
Closed
Subject
$prefs.language does not work properly?
Version
4.x
Category
  • Consistency
  • Usability
Feature
Theme: Look & feel, Styles, CSS, Theme Control Center
i18n (Multilingual, l10n, Babelfish)
Resolution status
Fixed or Solved
Submitted by
daav
Lastmod by
Ushindi Gedeon
Rating
(0)
Description

This is related to the Custom Site Header section of Look & Feel on our Web site. We put a top navigation bar which is expected to be showin in different languages depending on the visitor's language (look at http://www.daav.cn/cms/tiki-list_file_gallery.phpQuestion ). The code in Custom Site Header is like this:

<div style=...> <ul>

{if $prefs.language eq "cn"}

<li>link1 in Chinese</li>

...

<li>linkN in Chinese</li>

{elseif $prefs.language eq "fr"}

<li>link1 in French</li>

...

<li>linkN in French</li>

{elseif $prefs.language eq "de"}

<li>link1 in German</li>

...

<li>linkN in German</li>

{else}

<li>link1 in English</li>

...

<li>linkN in English</li>

{/if}

</ul> </div>


however, it seems the top navigation bar is always shown in Chinese even when I set the default browser language to English only. At that time, our php-based language detector works correctly to identify the user/browser language as English (example: our homepage at http://www.daav.cn/Question ) but tikiwiki remains in Chinese unchanged.

Is there anything wrong with the code or it's just because my Windows XP is in Chinese? Then how to get around this in Tikiwiki? What language do you get on the linked page that I included above?

Thanks for any hints.

Files
  1. Test1
  2. Tikiwiki4.i18n.settings
Solution
Workaround
Importance
6
Priority
30
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
3088
Created
Wednesday 24 March, 2010 15:10:11 UTC
by daav
LastModif
Monday 01 June, 2026 21:01:03 UTC


Show PHP error messages