+ // $local_path_to_root is set inside find_custom_file.
+ // Select extension domain if po file is provided
+ // otherwise use global translation.
+ if (file_exists($local_path_to_root.'/lang/'.$lang['code'].'/LC_MESSAGES/'.$lang['code'].'.po'))
+ $_SESSION['get_text']->add_domain($lang['code'], $local_path_to_root . "/lang");
+ else
+ $_SESSION['get_text']->add_domain($lang['code'], $path_to_root . "/lang", @$lang['version']);