As i want to use "en" instead of "english" in url and i want to use english backend admin with front end pages in localized language. I am not able to utilize the language abilities of fuel CMS. so i did a quick trick. I setted a global variable called site_lang. Then when i building url, i use <?php echo site_url().$site_lang;?> in various view files.
Although this solutions works fine for custom build pages, it does not work on dynamic pages build at the backend. In the "location" field, i have to manually put "en/home".
How can i automate this part, so i am not enforced to input "en/", but just "home" in the location field?
Comments
// languages for pages. The key is saved to the page variables
$config['languages'] = array(
'en' => 'English',
);
// append the current language value to the site URL automatically
$config['add_language_to_site_url'] = TRUE;
but i noticed that when i creating page at the backend, if i dont put "en/page1" to the location field and putting "page1" instead. The page can only be access at localhost/cms/page1, the en language is not automatically appended to url.
how to make it auto appending