Changeset 32672 for trunk/src/wp-includes/pomo/mo.php
- Timestamp:
- 05/31/2015 03:17:50 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pomo/mo.php
r30663 r32672 28 28 } 29 29 30 /** 31 * @param string $filename 32 * @return bool 33 */ 30 34 function export_to_file($filename) { 31 35 $fh = fopen($filename, 'wb'); … … 36 40 } 37 41 42 /** 43 * @return string|false 44 */ 38 45 function export() { 39 46 $tmp_fh = fopen("php://temp", 'r+'); … … 44 51 } 45 52 53 /** 54 * @param Translation_Entry $entry 55 * @return bool 56 */ 46 57 function is_entry_good_for_export( $entry ) { 47 58 if ( empty( $entry->translations ) ) { … … 56 67 } 57 68 69 /** 70 * @param resource $fh 71 * @return true 72 */ 58 73 function export_to_file_handle($fh) { 59 74 $entries = array_filter( $this->entries, array( $this, 'is_entry_good_for_export' ) ); … … 102 117 } 103 118 119 /** 120 * @param Translation_Entry $entry 121 * @return string 122 */ 104 123 function export_original($entry) { 105 124 //TODO: warnings for control characters … … 110 129 } 111 130 131 /** 132 * @param Translation_Entry $entry 133 * @return string 134 */ 112 135 function export_translations($entry) { 113 136 //TODO: warnings for control characters … … 115 138 } 116 139 140 /** 141 * @return string 142 */ 117 143 function export_headers() { 118 144 $exported = ''; … … 123 149 } 124 150 151 /** 152 * @param int $magic 153 * @return string|false 154 */ 125 155 function get_byteorder($magic) { 126 156 // The magic is 0x950412de … … 255 285 } 256 286 287 /** 288 * @param int $count 289 * @return string 290 */ 257 291 function select_plural_form($count) { 258 292 return $this->gettext_select_plural_form($count); 259 293 } 260 294 295 /** 296 * @return int 297 */ 261 298 function get_plural_forms_count() { 262 299 return $this->_nplurals;
Note: See TracChangeset
for help on using the changeset viewer.