From: Janusz Dobrowolski Date: Tue, 5 Oct 2010 09:41:15 +0000 (+0000) Subject: Fixed language file selection. X-Git-Tag: v2.4.2~19^2~596 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=dac720786b6783fccdd1be729186f118c707086c;p=fa-stable.git Fixed language file selection. --- diff --git a/reporting/includes/class.pdf.inc b/reporting/includes/class.pdf.inc index f3e842be..7b5ee8d2 100644 --- a/reporting/includes/class.pdf.inc +++ b/reporting/includes/class.pdf.inc @@ -86,7 +86,7 @@ class Cpdf extends FPDI { $lang = array_search_value($code, $installed_languages, 'code'); $_SESSION['get_text']->set_language($lang['code'], strtoupper($lang['encoding'])); - $_SESSION['get_text']->add_domain($lang['code'], $path_to_root . "/lang"); + $_SESSION['get_text']->add_domain($lang['code'], $path_to_root . "/lang", @$lang['version']); // re-read translated sys names. include($path_to_root.'/includes/sysnames.inc');