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:
parent
9a8383e26f
commit
5f2a75db7b
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue