mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 07:07:38 +02:00
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:
parent
57fb217b3f
commit
de52fa23a2
@ -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
Block a user