0
I will have to develop a website in two languages, Portuguese and English. Nothing complex, but I am in doubt on how to organize the structure, so I would like the opinion of someone who has already been in my current situation.
The site should open in Portuguese and at the top of each page will have an American flag that will take to the page in English, if the user is interested. For example, user is on index and goes to the contact page, the site follows the normal flow in Portuguese. If the user accesses the index and changes the language, the same index will be loaded in English and then if they click 'contact', the contact page will be loaded in English. When the language is Portuguese, at the top there will be an American flag (button) for language exchange, and vice versa.
How can I structure this? Thank you.
Yes it is possible to do with pure php. Go from creating one or more files with an array containing the indenters and repective values or store this in the database. There on the right is the question area
relacionadas
give a look also always have interesting things on the theme.– rray
@rray I wish to have a similar feature to android for internationalization huh,.
– user28595
The most robust solution is to use the gettext, this is a good tutorial: http://www.devin.com.br/php-gettext/.
– BrunoRB
Here’s a good tutorial for this: http://www.bitrepository.com/php-how-to-add-multi-language-support-to-a-website.html Hj I don’t do that anymore. I prefer to use Wordpress with WPML plugin.
– Emanuel Rocha Costa
If the link indicated above does not contain an adequate answer to the question, you can [Dit] the same by adding the specifics of your problem that are different from that. Alternatively, here’s another one approach for the same problem: http://answall.com/questions/15937 - Anything, leave a comment.
– Bacco