last rev 10109 Working on a multilingual web site FR, En, Es, De, with CGSimpleSmarty2.0
I use in the template at the top
Code: Select all
{process_pagedata}
{assign var='rootlang' cgsimple::get_root_alias() scope=global}
{global_content name="languagestrings_`$rootlang`"}
But Have a lot of errors message on my translation (languagestrings)
To have no error message
I comment at the top atfer {process_pagedata}
{*assign var='rootlang' cgsimple::get_root_alias() scope=global*}
{*global_content name="languagestrings_`$rootlang`"*}
I must write after </__body>
{assign var='rootlang' cgsimple::get_root_alias()}
{global_content name="languagestrings_`$rootlang`"}
and write after <head>
{assign var='rootlang' cgsimple::get_root_alias()}
{global_content name="languagestrings_`$rootlang`"}
Is there a problem now (Smarty 3.1.16) with scope=global ?