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'] = "Shop"; // nav $lang['nav_cart_count'] = "Cart "; $lang['nav_home'] = "Home"; // index() $lang['index_all_categories'] = "All categories"; $lang['index_add_to_cart'] = "Add to cart"; // display_cart() $lang['display_cart_proceed_to_checkout'] = "Proceed to checkout"; $lang['display_cart_quantity'] = "Quantity"; $lang['display_cart_description'] = "Description"; $lang['display_cart_item_price'] = "Item Price"; $lang['display_cart_sub_total'] = "Sub-Total"; $lang['display_cart_update_cart'] = "Update Cart"; // user_details() $lang[...