Changeset 10810 for trunk/wp-includes/l10n.php
- Timestamp:
- 03/18/2009 02:43:45 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/l10n.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/l10n.php
r10774 r10810 231 231 /** 232 232 * Register plural strings with context in POT file, but don't translate them. 233 * 233 * 234 234 * @see _n_noop() 235 235 */ … … 261 261 262 262 if ( !is_readable($mofile)) return; 263 263 264 264 $mo = new MO(); 265 265 $mo->import_from_file( $mofile ); … … 267 267 if (isset($l10n[$domain])) 268 268 $mo->merge_with( $l10n[$domain] ); 269 269 270 270 $l10n[$domain] = &$mo; 271 271 } … … 339 339 * Returns the Translations instance for a domain. If there isn't one, 340 340 * returns empty Translations instance. 341 * 341 * 342 342 * @param string $domain 343 343 * @return object A Translation instance … … 353 353 * not in the source there are dummy gettext calls to get them into the POT 354 354 * file and this function properly translates them back. 355 * 355 * 356 356 * The before_last_bar() call is needed, because older installs keep the roles 357 357 * using the old context format: 'Role name|User role' and just skipping the
Note: See TracChangeset
for help on using the changeset viewer.