Commit d5d37de77f4ba7baee511a2b13c6a684c69ba6a0
1 parent
0f9b3a95
Let _kt() take an optional second parameter - the "domain" to search for
the text. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5229 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
2 deletions
lib/i18n/i18nutil.inc.php
| ... | ... | @@ -59,8 +59,8 @@ class KTi18nUtil { |
| 59 | 59 | } |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | -function _kt($sContents) { | |
| 62 | +function _kt($sContents, $sDomain = 'knowledgeTree') { | |
| 63 | 63 | $oReg =& KTi18nRegistry::getSingleton(); |
| 64 | - $oi18n =& $oReg->geti18n('knowledgeTree'); | |
| 64 | + $oi18n =& $oReg->geti18n($sDomain); | |
| 65 | 65 | return $oi18n->gettext($sContents); |
| 66 | 66 | } | ... | ... |