<label for="username"><?php echo __('language.groupname.username'); ?></label>...
'form' => 'Entry form :name', 'body' => 'The following details can and will be used for official printing and online publication. :name', 'formgroup' => array('form' =>'Entry form', 'body' => 'The following details can and will be used for official printing and online publication.', 'step1' => 'Step 1 of 5', 'step2' => 'Step 2 of 5', 'step3' => 'Step 3 of 5', 'step4' => 'Step 4 of 5', 'step5' => 'Step 5 of 5', 'entrydetail' => 'Entry details', 'entrybody' => array('title' => 'Title for entry','language' => 'Language of entry' , 'country' => 'Country' ,'end-customer' => 'Name of end-customer', 'designer' => 'Name of designer'), 'printerdetail' => 'printer\'s details', 'printerbody' => array('company' => 'Company' , 'fname' => 'First Name', 'lname' => 'Last Name', 'function' => 'Function', 'address' => 'Address' , 'city' => 'City', 'phone' => 'Phone', 'postal-code' => 'Postal Code', 'fax' => 'Fax', 'email' => ' Email ' , 'website' => 'Website' , 'env-manage' => 'Environmental Management Systems', ), 'form-errors' => 'Please fill in all required fields', 'form-next' => 'Next Step >',the above is my sample string array. how i will convert it to multiple languages keeping the indices of the array same. is there any automatic tool ?
return array ( 'form' => 'Entry form :name', // and the rest here );
Lang::load('test', true);and get a string using
// will echo Entry form my first formname echo Lang::get('test.form', array('name' => 'my first form'));
Config::set('language', 'fr'); // will echo your french translation echo Lang::get('test.form', array('name' => 'my first form'));
It looks like you're new here. If you want to get involved, click one of these buttons!