rejetto forum
May 24, 2012, 11:00:22 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: once more %lang%  (Read 1621 times)
0 Members and 1 Guest are viewing this topic.
bacter
Operator
Insane poster
*****
Offline Offline

Spain Spain

Posts: 679


View Profile
« on: November 11, 2007, 07:59:16 AM »

As the first point I want to thank to Rejetto for the great effort done with the last releases to version 2.3. The new features are a great improvement.

One new feature is the %lang% value that contains a value sent to the server from the browser.

In my case using Firefox and IE, lang returns es-us (that may stand for spanish-US = spanglish), while the information that I can retrieve form the navigator-object is es-ES. Firefox doesn't support neither user- nor browserlanguage, so I get them from the useragent or versionstring. IE fills out correctly the values.

But the problem at which I want to point is another.

If we cant SET the %lang% value, I think it is almost useless. Getting the browserlanguage is no problem, and if a template supports the language, it's ok. But the reason for a language value when I proposed this, was that the visitor can SELECT between different languages this one he best understands when his language isn't directly supported. The interesting thing would be that this value should be stored during his conection and would be available in every (diff) template, avoiding the need to overload folder- and uplinks with stuff like #lang=..

It would be great to have ?lang=.. to set %lang% in the main template!

Thanks.
Logged

your computer has no brain - use your own !
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #1 on: November 12, 2007, 01:10:52 PM »

i will return es instead of es-ES or es-US.

what you ask for it is too much complex. we have no sessions. your "connection" term is referred to sessions. indeed connections (TCP sockets) can be many, and can be break at any time.

someone asked for %lang% to be working inside the section name. though it is not working there, yet.
Logged
bacter
Operator
Insane poster
*****
Offline Offline

Spain Spain

Posts: 679


View Profile
« Reply #2 on: November 12, 2007, 04:53:50 PM »

thanks for your answer rejetto.

I hadn't enough time to study the source till now and supposed ther would be an internal vector with the users conected which results in %number-addresses% or %connections%.

If there's no such vector I understand that it may be to complicated, and as I hav to use overload anyway, there is no need for me that you change the format of %lang%.

Thank you anyway.
Logged

your computer has no brain - use your own !
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #3 on: November 12, 2007, 09:01:31 PM »

no, we have such vector, connections.
what we don't have is: sessions.
sessions are based on cookies.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 08, 2012, 05:00:31 AM
anything