blob: b7b23d149cd9ebe17cf4d249d4d2b392146a7074 [file] [log] [blame]
Derek Jones8ede1a22011-10-05 13:34:52 -05001###############
2Language Helper
3###############
4
5The Language Helper file contains functions that assist in working with
6language files.
7
8.. contents:: Page Contents
9
10Loading this Helper
11===================
12
13This helper is loaded using the following code
14
15::
16
17 $this->load->helper('language');
18
19The following functions are available:
20
21lang('language line', 'element id')
22===================================
23
24This function returns a line of text from a loaded language file with
25simplified syntax that may be more desirable for view files than calling
26`$this->lang->line()`. The optional second parameter will also output a
27form label for you. Example
28
29::
30
31 echo lang('language_key', 'form_item_id');
32 // becomes <label for="form_item_id">language_key</label>
33