Changeset 13316 for trunk/wp-includes/pomo/po.php
- Timestamp:
- 02/22/2010 11:12:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pomo/po.php
r13228 r13316 19 19 if ( !class_exists( 'PO' ) ): 20 20 class PO extends Gettext_Translations { 21 21 22 22 23 23 /** … … 107 107 return $po; 108 108 } 109 109 110 110 /** 111 111 * Gives back the original string from a PO-formatted string … … 218 218 return $res !== false; 219 219 } 220 220 221 221 function read_entry($f, $lineno = 0) { 222 222 $entry = new Translation_Entry(); … … 323 323 return array('entry' => $entry, 'lineno' => $lineno); 324 324 } 325 325 326 326 function read_line($f, $action = 'read') { 327 327 static $last_line = ''; … … 340 340 return $line; 341 341 } 342 342 343 343 function add_comment_to_entry(&$entry, $po_comment_line) { 344 344 $first_two = substr($po_comment_line, 0, 2); … … 354 354 } 355 355 } 356 356 357 357 function trim_quotes($s) { 358 358 if ( substr($s, 0, 1) == '"') $s = substr($s, 1);
Note: See TracChangeset
for help on using the changeset viewer.