Changeset 30663 for trunk/src/wp-includes/pomo/po.php
- Timestamp:
- 11/30/2014 09:40:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pomo/po.php
r26500 r30663 190 190 * 191 191 * @static 192 * @param object&$entry the entry to convert to po string193 * @return string|boolPO-style formatted string for the entry or192 * @param Translation_Entry &$entry the entry to convert to po string 193 * @return false|string PO-style formatted string for the entry or 194 194 * false if the entry is empty 195 195 */ … … 216 216 } 217 217 218 /** 219 * @param string $filename 220 * @return boolean 221 */ 218 222 function import_from_file($filename) { 219 223 $f = fopen($filename, 'r'); … … 239 243 } 240 244 245 /** 246 * @param resource $f 247 * @param int $lineno 248 * @return null|false|array 249 */ 241 250 function read_entry($f, $lineno = 0) { 242 251 $entry = new Translation_Entry(); … … 344 353 } 345 354 355 /** 356 * @staticvar string $last_line 357 * @staticvar boolean $use_last_line 358 * @param resource $f 359 * @param string $action 360 * @return boolean 361 */ 346 362 function read_line($f, $action = 'read') { 347 363 static $last_line = ''; … … 362 378 } 363 379 380 /** 381 * @param Translation_Entry $entry 382 * @param string $po_comment_line 383 */ 364 384 function add_comment_to_entry(&$entry, $po_comment_line) { 365 385 $first_two = substr($po_comment_line, 0, 2); … … 376 396 } 377 397 398 /** 399 * @param string $s 400 * @return sring 401 */ 378 402 function trim_quotes($s) { 379 403 if ( substr($s, 0, 1) == '"') $s = substr($s, 1);
Note: See TracChangeset
for help on using the changeset viewer.