Hi,
I want to start make the changes to add one additional language. I’ve created a new directory for additional spanish language (/es/) with a copy of main index.php file plus this code:
$assign_to_config['global_vars']['language'] = 'Spanish';
$assign_to_config['global_vars']['language_code'] = 'es';
The url of spanish version is: website.com/es/
Then in templates I’m using:
{if language_code =="es"}
spanish text
{if:else}
english text
{/if}
The home of website is working fine with this method, if I visit myhomepage.com/es/ it shows the spanish version, ok that’s fine.
The problem I’ve is the categories and entries… I can’t access the entries or categories in spanish language using the following url structure: myhomepage.com/es/cat or myhomepage.com/es/entry, a page not found is the server response.
These urls are working fine in english version myhomepage.com/cat and myhomepage.com/entry, so the issue is the es directory in url.
So I’m doing anything wrong, can anybody give me some directions?
Thank you very much.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.