I am setting up a multi-language site so far so good - everything is pretty obvious what to do.
I am curious if there is a way/best practice to have the environmentVariables
array configured so that it knows which key to use based on the current siteUrl
key?
I realize the syntax is incorrect/wrong but this is just an example:
'.dev' => array(
'siteUrl' => array(
'en' => 'http://local.mysite.dev/',
'fr' => 'http://local.mysite.dev/fr/',
),
'environmentVariables' => array(
'en' => array(
'basePath' => '/path-to-mysite/public/',
'baseUrl' => 'http://local.mysite.dev/',
),
'fr' => array(
'basePath' => '/path-to-mysite/public/fr/',
'baseUrl' => 'http://local.mysite.dev/fr/',
)
)
)
Or, is that something I just append to any path(s) in my template given the current section/segment etc?