Skip to content

Commit

Permalink
keep newlines in translation as they are
Browse files Browse the repository at this point in the history
  • Loading branch information
michield committed Mar 10, 2024
1 parent bcef815 commit cea0889
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions public_html/lists/admin/languages.php
Original file line number Diff line number Diff line change
Expand Up @@ -377,12 +377,10 @@ public function formatText($text)

if (isset($GLOBALS['developer_email'])) {
if (!empty($_SESSION['show_translation_colours'])) {
return '<span style="color:#A704FF">'.str_replace("\n", '', $text).'</span>';
return '<span style="color:#A704FF">'.$text.'</span>';
}
// return 'TE'.$text.'XT';
}
// return '<span class="translateabletext">'.str_replace("\n","",$text).'</span>';
return str_replace("\n", '', $text);
return $text;
}

/**
Expand Down

0 comments on commit cea0889

Please sign in to comment.