Changeset 35686
- Timestamp:
- 11/18/2015 08:36:50 PM (9 years ago)
- Location:
- trunk/src/wp-includes/pomo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pomo/entry.php
r34348 r35686 70 70 function key() { 71 71 if (is_null($this->singular)) return false; 72 // prepend context and EOT, like in MO files 73 return is_null($this->context)? $this->singular : $this->context.chr(4).$this->singular; 72 73 // Prepend context and EOT, like in MO files 74 $key = is_null($this->context)? $this->singular : $this->context.chr(4).$this->singular; 75 // Standardize on \n line endings 76 $key = str_replace( array( "\r\n", "\r" ), "\n", $key ); 77 78 return $key; 74 79 } 75 80 -
trunk/src/wp-includes/pomo/translations.php
r35620 r35686 83 83 function translate_entry(&$entry) { 84 84 $key = $entry->key(); 85 $key = str_replace( "\r\n", "\n", $key );86 85 return isset($this->entries[$key])? $this->entries[$key] : false; 87 86 }
Note: See TracChangeset
for help on using the changeset viewer.