Allow plugins to mangle translations of english strings as well as translated strings. Fixes #6742.

git-svn-id: http://svn.automattic.com/wordpress/trunk@9211 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2008-10-16 20:27:45 +00:00
parent 57fb217b3f
commit de52fa23a2
1 changed files with 2 additions and 2 deletions

View File

@ -65,9 +65,9 @@ function translate($text, $domain = 'default') {
global $l10n;
if (isset($l10n[$domain]))
return apply_filters('gettext', $l10n[$domain]->translate($text), $text);
return apply_filters('gettext', $l10n[$domain]->translate($text), $text, $domain);
else
return $text;
return apply_filters('gettext', $text, $text, $domain);
}
/**