From eed75471af6ef6e39b8a406889ff4b4aa6fd9bec Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 15 Aug 2010 15:15:52 +0000 Subject: [PATCH] Doc is more clear --- htdocs/core/class/translate.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php index 1cd6e06498d..4573b7c2d63 100644 --- a/htdocs/core/class/translate.class.php +++ b/htdocs/core/class/translate.class.php @@ -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";