官术网_书友最值得收藏!

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:";
主站蜘蛛池模板: 乡宁县| 腾冲县| 竹山县| 亚东县| 江安县| 建平县| 新津县| 滦南县| 荥经县| 乌鲁木齐县| 麟游县| 新平| 琼结县| 集安市| 孟津县| 蓝山县| 津南区| 泰和县| 伊川县| 赤壁市| 彝良县| 莫力| 阜新| 泽库县| 汉沽区| 体育| 天长市| 全南县| 铁岭市| 庆元县| 腾冲县| 团风县| 绩溪县| 河间市| 商洛市| 佛冈县| 大冶市| 柘荣县| 凌海市| 民勤县| 日照市|