WordPress.org

Make WordPress Core

Changeset 9211


Ignore:
Timestamp:
10/16/08 20:27:45 (6 years ago)
Author:
westi
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/l10n.php

    r8782 r9211  
    6666 
    6767    if (isset($l10n[$domain])) 
    68         return apply_filters('gettext', $l10n[$domain]->translate($text), $text); 
     68        return apply_filters('gettext', $l10n[$domain]->translate($text), $text, $domain); 
    6969    else 
    70         return $text; 
     70        return apply_filters('gettext', $text, $text, $domain); 
    7171} 
    7272 
Note: See TracChangeset for help on using the changeset viewer.