I18N: In Translations::translate_entry()
, account for multi-line strings in files with Windows line endings.
Fixes #22172. git-svn-id: https://develop.svn.wordpress.org/trunk@35620 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4f837ef5b6
commit
69106a5971
@ -82,6 +82,7 @@ class Translations {
|
||||
*/
|
||||
function translate_entry(&$entry) {
|
||||
$key = $entry->key();
|
||||
$key = str_replace( "\r\n", "\n", $key );
|
||||
return isset($this->entries[$key])? $this->entries[$key] : false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user