- CodeIgniter Web Application Blueprints
- Rob Foster
- 139字
- 2021-08-06 19:34:30
Creating the language file
Taking text out of the HTML or storing text in other files such as controllers can make maintaining applications or adding multiple languages a nightmare. Keeping languages in a separate dedicated file is always a good idea. With that in mind, we will create a language file for this app.
Create the language file en_admin_lang.php
and add the following code to it:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); // General $lang['system_system_name'] = "URLs a Swinger"; // Encode $lang['encode_instruction_1']= "Enter a URL in the text box below and we'll shorten it"; $lang['encode_encode_now']= "Shorten Now"; $lang['encode_encode_now_success']= "Your URL was successfully shortened - check it out below"; $lang['encode_encode_now_error']= "We could not shorten your url, see below for why"; $lang['encode_type_url_here']= "Write the URL here"; $lang['create_url_address'] = "Write the URL here"; $lang['encode_encoded_url']= "Hey look at this, your shortenedurl is:";
推薦閱讀
- 程序員面試筆試寶典(第3版)
- 案例式C語言程序設計
- Linux核心技術從小白到大牛
- C語言從入門到精通(第4版)
- Python數據結構與算法(視頻教學版)
- 大學計算機基礎實驗指導
- Mastering Android Game Development
- Mastering Akka
- Node.js開發指南
- Learning Docker Networking
- JavaScript程序設計:基礎·PHP·XML
- Unity 2017 Game AI Programming(Third Edition)
- Python網絡爬蟲實例教程(視頻講解版)
- Unreal Engine Game Development Cookbook
- Scala編程(第4版)