Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update LanguageHelper.php to handle translated text with embedded new lines. #42456

Closed
wants to merge 11 commits into from
Prev Previous commit
Next Next commit
Update LanguageHelper.php
Further phpcs error correction.
  • Loading branch information
BrainforgeUK committed Dec 26, 2023
commit 61285abbffcbd8eb606df20a939de8f60d267815
2 changes: 1 addition & 1 deletion libraries/src/Language/LanguageHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ protected static function parseMultilineIni($inifileContents)
// In case there is a space before / after =
$lineParts[0] = rtrim($lineParts[0]);
$lineParts[1] = ltrim($lineParts[1]);

// We are only expecting strings for language translation
if (!str_starts_with($lineParts[1], '"')) {
// Unexpected file contents
Expand Down