Doc is more clear

This commit is contained in:
Laurent Destailleur 2010-08-15 15:15:52 +00:00
parent 6aaac6b03d
commit eed75471af

View File

@ -176,8 +176,8 @@ class Translate {
foreach($this->dir as $searchdir)
{
// If $domain is @xxx instead of xxx then we look for module lang file htdocs/xxx/langs/code_CODE/xxx.lang
// instead of global lang file htdocs/langs/code_CODE/xxx.lang
// If $domain is "file@module" instead of "file" then we look for module lang file htdocs/module/langs/code_CODE/file.lang
// instead of file htdocs/langs/code_CODE/filelang
if (preg_match('/@/',$domain)) $searchdir = $searchdir."/".(!empty($modulename)?$modulename:$newdomain)."/langs";
else $searchdir=$searchdir."/langs";