0
Well, I am in need of a translation system via PHP, however, I wish to be translated the link looks like this: www.meudominio.com.br/en or www.meudominio.com.br/en at the same time that it will save the type of language, I want it to be able to enter other pages, getting more or less like this: www.meudominio.com.br/en/Register or www.meudominio.com.br/en/registro Regarding the translation of the link, I know how to do this, but I wish this style of system, if you know how I can do help me. I’ve searched the net, but I only find old systems that don’t work.
Well, thanks for the comment. But, I found a good way to do the translation and routing at the same time. I performed with a function, getting the return of the array like this: Return ((!$langueSelect[$langueVisist]) ? $langueSelect['en'][$scopoTranslate] : $langueSelect[$langueVisist][$scopoTranslate]); will search in the function if there is translation, if there is not, it defines the language 'EN' as the main of the website, of course the structure of the site, I am doing a translation at a time, already in relation to texts, I will go by one with AJAX pulling from your language.
– user126995
If you ask me how do pro 'Languevisist' catch the visitor’s language, I use: 'substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0,2)', then my function was: <?php echo $Langue->scopeLangue(BASELANGUE, 'login-connect'); ? >, rs :D
– user126995