Changeset 5081
- Timestamp:
- 03/22/2007 03:34:23 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/l10n.php
r4764 r5081 36 36 else 37 37 echo $text; 38 } 39 40 function _c($text, $domain = 'default') { 41 global $l10n; 42 43 if ( isset($l10n[$domain]) ) 44 $whole = apply_filters('gettext', $l10n[$domain]->translate($text), $text); 45 else 46 $whole = $text; 47 48 $trans = explode('|', $whole, 2); 49 if ( isset( $trans[1] ) ) 50 return $trans[1]; 51 else 52 return $trans[0]; 38 53 } 39 54
Note: See TracChangeset
for help on using the changeset viewer.