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

git-svn-id: https://develop.svn.wordpress.org/trunk@9211 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2008-10-16 20:27:45 +00:00
parent 9a8383e26f
commit 5f2a75db7b
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);
}
/**