sdebacker / TypiCMS

Multilingual CMS built with Laravel 4.2
MIT License
474 stars 119 forks source link

Bilingual - disable if only 1 language online #88

Closed ghost closed 9 years ago

ghost commented 10 years ago

I've been playing around with the system lately, I am hoping to use this for a project I am working on however I noticed that when you disable (you are unable to delete) the 2 other languages other than English, it will still add "en" to the url, and still present's the options across the admin panel. Ideally, it would turn off disabled languages across the site and the front-end.

goldenTabby commented 10 years ago

yeap, that anoing

sdebacker commented 10 years ago

For now you have to remove unneeded languages from the languages array in app/config.php. If you don't want lang in url, you have to check that option in admin/settings panel and manually regenerate uris of pages.

goldenTabby commented 10 years ago

But if needed, for example, several languages and one of them should not contain lang in uri (is default). For example for en (it default) it should be: / and for de it should be /de ?

sdebacker commented 10 years ago

Ok I see. That's not possible for the moment. I have to work on that point.

sdebacker commented 9 years ago

Now main locale part of a website can have no lang in url.

Shejan commented 9 years ago

How can I set default url without no language? I've trued to change the local array but did not work.

sdebacker commented 9 years ago

Set main_locale_in_url to false in config/typicms.php then the fallback_locale defined in config/app.php will not appear in URLs. Does it work for you ?

Shejan commented 9 years ago

Thanks for ur quick reply. I've made it false before but it did not work. If I disable the lan from setting, default root page remains language page without any lan button.

On Mon, Oct 19, 2015, 3:42 AM Samuel De Backer notifications@github.com wrote:

Set main_locale_in_url to false in config/typicms.php then the fallback_locale defined in config/app.php will not appear in URLs. Does it work for you ?

— Reply to this email directly or view it on GitHub https://github.com/sdebacker/TypiCMS/issues/88#issuecomment-149050938.

Shejan commented 9 years ago

It worked. Sorry for the previous reply. Many many thanks.

On Mon, Oct 19, 2015, 4:12 AM CJ Shejan shejanbd@gmail.com wrote:

Thanks for ur quick reply. I've made it false before but it did not work. If I disable the lan from setting, default root page remains language page without any lan button.

On Mon, Oct 19, 2015, 3:42 AM Samuel De Backer notifications@github.com wrote:

Set main_locale_in_url to false in config/typicms.php then the fallback_locale defined in config/app.php will not appear in URLs. Does it work for you ?

— Reply to this email directly or view it on GitHub https://github.com/sdebacker/TypiCMS/issues/88#issuecomment-149050938.