Class MY_Lang
- CI_Lang
-
MY_Lang
Located at MY_Lang.php
Methods summary
public
|
|
public
string
|
#
site_url_lang( string|string[] $uri = '', string $lang = '', string $protocol = null )
Returns site_url() of provided URI adding to its beginning language and first segment translation |
public
string
|
#
redirect_lang( string|string[] $uri = '', string $lang = '', string $method = 'auto', string $code = NULL )
Returns redirect() of provided URI using site_url_lang to get the right URI |
public
mixed
|
|
public
mixed
|
|
public
mixed
|
Properties summary
public
string
|
$current
|
#
''
|
protected
array
|
$translations_from_id
|
#
array(
'news' => array(
'en' => 'news',
'es' => 'noticias'
),
'article' => array(
'en' => 'article',
'es' => 'noticia'
)
)
|
protected
array
|
$translations_to_id
|
#
array()
|