Welcome Guest, Not a member yet? Register   Sign In
CI language handling
#2

(This post was last modified: 11-02-2014, 04:25 PM by ivantcholakov.)

1. You need language files for each language. The language strings translate the user interface mainly. Except your custom language file(s) you need to have translations the CodeIgniter language files.

2., 3. About the database structure: This link explains and compares possible approaches http://www.apphp.com/tutorials/index.php...n-in-mysql . I personally like "4. Additional Translation Table Approach".

Also you have to think about data entry for the different languages, if you have an administration panel, you would need sort of multi-language CRUD. And if you store site settings within the database, you would have to find a way how it would be done for language-sensitive ones.

All these things are challenging and time consuming, not for "noobs". On the other hand, you wrote that your site would be simple. I would like to propose you first to have a look at CMS that supports multiple languages - http://ionizecms.com/ (it still uses CodeIgniter 2), and then to decide whether to code from scratch or to find/use a ready yet solution.
Reply


Messages In This Thread
CI language handling - by discofunk - 11-02-2014, 04:32 AM
RE: CI language handling - by ivantcholakov - 11-02-2014, 04:22 PM
RE: CI language handling - by Hobbes - 11-02-2014, 05:25 PM
RE: CI language handling - by ivantcholakov - 11-02-2014, 06:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB