Hi there,
I’m struggling with how to set up various Spanish languages to charge the es-version of the website (common Spanish->Castilian, Galego, Catalan, Basque…). All other languages should be redirected to the English version.
So the English version has this set up and works fine:
<?php
return array (
'code' => 'en',
'default' => false,
'direction' => 'ltr',
'locale' => 'en_US',
'name' => 'English',
'url' => '/en',
'translations' => [
'email-placeholder' => 'yourname@email.com',
'footer-help' => 'Help & Support',
]
);
For the Spanish version I've tried with these code lines, but the Web does not work fine with that:
<?php
return array (
'code' => 'es',
'default' => true,
'direction' => 'ltr',
'locale' => 'es_ES',
'name' => 'Spanish',
'url' => '/es',
'translations' => [
'email-placeholder' => 'tunombre@email.com',
'footer-help' => 'Ayuda & Soporte',
]
);
return array (
'code' => 'eu',
'default' => true,
'direction' => 'ltr',
'locale' => 'eu_ES',
'name' => 'Basque',
'url' => '/es',
'translations' => [
'email-placeholder' => 'tunombre@email.com',
'footer-help' => 'Ayuda & Soporte',
]
);
return array (
'code' => 'ca',
'default' => true,
'direction' => 'ltr',
'locale' => 'ca_ES',
'name' => 'Catalan',
'url' => '/es',
'translations' => [
'email-placeholder' => 'tunombre@email.com',
'footer-help' => 'Ayuda & Soporte',
]
);
return array (
'code' => 'gl',
'default' => true,
'direction' => 'ltr',
'locale' => 'gl_ES',
'name' => 'Galician',
'url' => '/es',
'translations' => [
'email-placeholder' => 'tunombre@email.com',
'footer-help' => 'Ayuda & Soporte',
]
);
Only with the first command lines for “es”, it does work fine. I have an issue when I try to add the other Spanish languages…