Post by avoid » Thu Jun 30, 2016 4:09 am

Hi,
I want to build an automation to generate the invoice in the language the order was placed but I don't really understand how to force language for the actual invoice generator.

The code to detect the language in which the order was placed should be rather simple:

Code: Select all

if ($order_info['language_id']=='1')
		$inv_lang = 'language1';
			elseif ($order_info['language_id']=='2')
		$inv_lang = 'language2';
			else
		$inv_lang = 'wtf';
The problem is how to force load a language depending on the resulting $inv_lang ...
I did not yet discover how to change the default

Code: Select all

$this->load->language('sale/order');
in order to load an arbitrary language.
Does anybody have an idea how this can be done?

Transport Posta Romana - Automatizare formulare (completare automata buletin de expeditie si mandat postal) & calcul transport


Newbie

Posts

Joined
Sun Oct 23, 2011 1:23 am
Who is online

Users browsing this forum: No registered users and 5 guests