I would like to know please, what is the recommended way to develop a website with two languages:
Arabic ( Right To Left )
English ( Left to Right )
URLs will have a two characters to specify the language, like:
www.domainname.com/ar/homepage or www.domainname.com/en/homepage
so, the router shall be able to add ar, en for each url …
I know that I my controller should work for both languages, but, how to pick the right css for the chosen language ? is there a blog or tutorial for this case ?
Also, as for the data base, shall I add a field of content for each language ? what’s the recommended approach for that ? for reading and writing ?
Any guidance will be more than appreciated!
I would use I18n and then scope the urls, but I suggest that you read this article on I18n, to get a firmer grasp of the concept.