$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
- 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.php
<div style=...> <ul>
). The code in Custom Site Header is like this:
{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/
) 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
- Solution
- Workaround
- Importance
- 6
- Priority
- 30
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 3088
- Created
- Wednesday 24 March, 2010 15:10:11 UTC
by daav - LastModif
- Monday 01 June, 2026 21:01:03 UTC