[fixed] Extensions -> Tags -> browser_lang help file

Post Reply
deactivated010521

[fixed] Extensions -> Tags -> browser_lang help file

Post by deactivated010521 »

The help file reads:

Code: Select all

Insert the tag early into your page template (it can go above the <head> section if you want) and provide it the name of the default language, and the accepted languages (only two character language names are accepted), then do something with the result. i.e:

{browser_lang accepted=de,fr,en,es default=en assign=tmp}{session_put var=lang val=$tmp}
When I try:

Code: Select all

{browser_lang accepted=de,fr,en,es default=en assign=tmp}
I get a Smarty error:

Code: Select all

Syntax Error in template "85e28f9dd2fb97d6828d89cbc86554ba05282225"  on line 5 "{browser_lang accepted=nl,de,fr,en,es default=en assign=tmp}"  - Unexpected ",", expected one of: "}" , " " , ATTR
So update the help file change:

Code: Select all

{browser_lang accepted=de,fr,en,es default=en assign=tmp}
into:

Code: Select all

{browser_lang accepted="de,fr,en,es" default=en assign=tmp}
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Extensions -> Tags -> browser_lang help file

Post by calguy1000 »

Fixed in svn R8102
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
deactivated010521

Re: Extensions -> Tags -> browser_lang help file

Post by deactivated010521 »

Rev: 8102 confirmed fix
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Extensions -> Tags -> browser_lang help file

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “Closed Issues”