TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 02, 2024, 01:38:31 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,178
  • Total Topics: 21,220
  • Online today: 136
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 146
  • Total: 147
  • tino

[bugtracker] Block language display options don't work

Started by agridoc, February 07, 2009, 08:36:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

agridoc

The problem ramains in subversion 148.

If block is set to display in english it is displayed in all languages. If another language is selected it's not displayed at all.
  For Greek aeromodellers and our friends around the world  - Greek Button sets for SMF

G6Cad

Tested this with English, Swedish, and German and the blocks change the language between the language options ( only tested through language option in Server Settings and not by user profiles )

If i set the blocks to show swedish, they do even if the forum is set to use English as main language.

www.septaldefects.org   ( need to register to change between languages in the profile )

bloc

- Logic was faulty in determining when a language was active or not. Fixed for TP v1.0 beta3.

It seems it wasn't accurate enough :P Now it will show the block if a language is set and true for the user, but if none is set(which makes no sense really, to have no languages set) it will simply assume you like to treat it like a normal block.

agridoc

I am not sure if language selection for session should be used. It should also work for guests that might select another language, also a user could temporarily change language.

Multilingual sites have language selection options for users and guests.
  For Greek aeromodellers and our friends around the world  - Greek Button sets for SMF

bloc

The $user_info variable will always contain exactly what the user or guest sees. And that is what TP is checking now. It was using the global $language variable earlier, but that can in fact be different from the session language set.