As with all the projects in this book, we're making use of the language file to serve text to users. This way, you can enable multiple region/multiple language support. Let's create the language file.
Create the /path/to/codeigniter/application/language/english/en_admin_lang.php
file and add the following code to it:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); // General $lang['system_system_name'] = "Todo"; // Tasks - view.php $lang['tasks_add_task'] = "Add"; $lang['tasks_add_task_desc'] = "What have you got to do?"; $lang['tasks_task_desc'] = "Task Description"; $lang['tasks_set_done'] = "Mark as done"; $lang['tasks_set_todo'] = "Mark as todo"; $lang['task_due_d'] = "Due Day"; $lang['task_due_m'] = "Due Month"; $lang['task_due_y'] = "Due Year"; $lang['status_change_success'] = "Task updated"; $lang['status_change_fail'] = "Task not updated";