• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: [fixed] Extensions -> Tags -> browser_lang help file
PostPosted: Sun Jun 24, 2012 12:08 pm 
Offline
Power Poster
Power Poster

Joined: Sun Apr 19, 2009 9:33 am
Posts: 1372
The help file reads:

Code:
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:
{browser_lang accepted=de,fr,en,es default=en assign=tmp}


I get a Smarty error:
Code:
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:
{browser_lang accepted=de,fr,en,es default=en assign=tmp}


into:

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

_________________
The CMSMS Builder is a tool to help you develop and optimize CMS Made Simple >= 2.2.3 themes, it is made by a developer for developers.

I you like an automated file based work-flow this project might be for you. It is usable to kick-start a new CMSMS project or it can be applied to existing ones.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Extensions -> Tags -> browser_lang help file
PostPosted: Sun Jun 24, 2012 3:36 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 8144
Location: Fernie British Columbia, Canada
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.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Extensions -> Tags -> browser_lang help file
PostPosted: Sun Jun 24, 2012 4:07 pm 
Offline
Power Poster
Power Poster

Joined: Sun Apr 19, 2009 9:33 am
Posts: 1372
Rev: 8102 confirmed fix

_________________
The CMSMS Builder is a tool to help you develop and optimize CMS Made Simple >= 2.2.3 themes, it is made by a developer for developers.

I you like an automated file based work-flow this project might be for you. It is usable to kick-start a new CMSMS project or it can be applied to existing ones.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Extensions -> Tags -> browser_lang help file
PostPosted: Sun Jun 24, 2012 4:19 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Apr 23, 2008 7:53 am
Posts: 7678
Location: The Netherlands
Also changed in http://docs.cmsmadesimple.org/tags/core/browser_lang

Thanks Arnoud

_________________
Image

Did my post help you solving a problem at your (customers) website and it saved you many hours of work? Great!! Consider buying me a cup of coffee in return!



Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting