I am creating a web application in PHP that will be available in different languages (about 10 in total), and I would like to know what you consider to be the best practice for setting this up in more general terms.
My idea is to keep all languages in the same domain with a suffix, for example "http://myservice.com/de", where the script checks the location on the site, entering and redirecting the user.
Editorial content will be shared between all languages as separate entries in the database with a specific data column for each language. The markup and scripts will be documented in English, and the pages and sections visible to the user will be translated into their respective language, collected from a common word library file.
The .htaccess file allows you to process all rewrites for articles in order to display them in the corresponding language, for example, "http://myservice.com/de/artikel/12345/", to "http://myservice.com/article? ID = 12345 & id = de "
What do you consider a clean and efficient multilingual setup?
source share