sangar82 / CodeIgniter-Starter

Codeigniter 2.1.3 base for fast development
Other
40 stars 23 forks source link

multilingual not working properly #2

Closed brizoo closed 11 years ago

brizoo commented 11 years ago

Hello,

First of all I would like to thank you for this great job. I was exactly going to do the same shape for starting quickly a project on good bases. I want to work with CodeIgniter because I like it, but I need my application to have back/front end pages separated and multilingual functionality for both. I wanted also Sparks for plugins. So I've found your Starter kit, which is awesome !

So this is definitively what I need !

But, I'm experimenting an issue with the installation of CodeIgniter-Starter. I can't make multilingual work. I'm sure this is not a big deal, but still not working for me.

I'll explain myself:

I'm working on mac os x with MAMP Pro I have configured MAMP Pro like this : conf mamp pro

So this is the index page I have: index

And this is what I have after a clic on "es" for example, this is the same with all languages, I have this word: "entra" and then a blank page. I guess "entra" is the begining of "entrada" in spanish. But I can't figure out why the code break or stop.. Maybe that is done on purposes and I haven't understood it...

bug

My settings are:

conf1

and:

Capture d e cran 2012-12-16 a 21 59 37

My "french" repertory is created (duplicated from english..)

So, Do you know what is wrong with my configuration ?

Hope someone will find something :)

Thank you, Brice

brizoo commented 11 years ago

I almost forget to show my aliases:

<VirtualHost *:80>

ServerName poplidays

ServerAlias *.poplidays

DocumentRoot \Users\brice\Sites\dev-poplidays.com

and my etc/hosts:

127.0.0.1 localhost 127.0.0.1 poplidays 127.0.0.1 es.poplidays 127.0.0.1 www.poplidays

My goal is to have an url like poplidays/fr or poplidays/es etc...

But first, I would like to have fr.poplidays or es.poplidays working !

Thanks

sangar82 commented 11 years ago

Brizoo!!

Sorry!! Github not has sent me a notification for this issue.

Are you having problem yet?

sangar82 commented 11 years ago

Brizoo, the problem is being solved. I forgot a die() when I was debugging a bug. Thanks for your time and forgive for wait!

Delete Line 12 @ hooks/language.php

brizoo commented 11 years ago

Thanks a lot, that was it !

Hopefully, I had to build something else letting this starter kit behind my attention for a little while.. But now I'm heading into it again, I almost have everything I need. BTW, If you are interested, I have added a little tweek giving you the possibility of hiding the default language into the url. So your default language website which for me is French would never appear into the url, but the others would.

ex: www.mydomain.com/ would be the default language www.mydomain.com/es would be the spanish one etc...

If you are interested, please let me know.

Cheers