Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293556

PoItem::formatSingular doesn't add linebreak on untranslated strings

$
0
0

Problem/Motivation

When using PoItem to export translation strings, the linebreak output differs between translated and untranslated strings.

Steps to reproduce

$untranslated = new PoItem();
$untranslated->setSource("");

// msgid ""
// msgstr ""
$untranslated->__toString():

$translated = new PoItem();
$translated->setSource("");
$translated->setTranslation("");

// msgid ""
// msgstr ""
//
$translated->__toString();

Proposed resolution

Append line break to singular untranslated string output for consistency with other cases.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 293556

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>