Ticket #23232: 23232.patch
| File 23232.patch, 1.1 KB (added by SergeyBiryukov, 4 months ago) |
|---|
-
wp-includes/pomo/mo.php
207 207 $translation = $reader->substr( $strings, $t['pos'], $t['length'] ); 208 208 209 209 if ('' === $original) { 210 $this->set_headers($this->make_headers($translation)); 210 $headers = $this->make_headers($translation); 211 $this->set_headers($headers); 211 212 } else { 212 213 $entry = &$this->make_entry($original, $translation); 213 214 $this->entries[$entry->key()] = &$entry; -
wp-includes/pomo/po.php
223 223 $res = $this->read_entry($f, $lineno); 224 224 if (!$res) break; 225 225 if ($res['entry']->singular == '') { 226 $this->set_headers($this->make_headers($res['entry']->translations[0])); 226 $headers = $this->make_headers($res['entry']->translations[0]); 227 $this->set_headers($headers); 227 228 } else { 228 229 $this->add_entry($res['entry']); 229 230 }
