php - How to get all languages data in codeigniter -
i trying fetch language files data , store them in array. able default language data.
i need language data sync them in files. far have tried following code,
public function syncjslanguagefile($language) { //i need german (de) , other data data $this->lang->load('translate','de'); //but can default language data. think above line not working. $languagemessage = $this->lang->language; echo "<pre>"; print_r($languagemessage); die; }
i don't want change default language, need language data in array specific purpose. should not change site default language.
please me out here.
i have tried,
$data = $this->lang->load('translate','de', true);
but not working. :(
please these steps
//load helper language $this->load->helper('language'); //mytest language file in english folder //application\language\english\mytest_lang.php $this->lang->load('mytest','english');// filename, folder name in //fetch data in custom $all_lang_array variable $all_lang_array=$this->lang->language; //display or test data. print_r( $all_lang_array);
Comments
Post a Comment