Changeset View
Changeset View
Standalone View
Standalone View
src/catalog/gettext/catalogitem.cpp
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Line(s) | 66 | { | |||
---|---|---|---|---|---|
67 | Q_UNUSED(form) | 67 | Q_UNUSED(form) | ||
68 | return d._prependMsgStrEmptyLine; | 68 | return d._prependMsgStrEmptyLine; | ||
69 | } | 69 | } | ||
70 | 70 | | |||
71 | const QVector<QString>& CatalogItem::msgstrPlural() const | 71 | const QVector<QString>& CatalogItem::msgstrPlural() const | ||
72 | { | 72 | { | ||
73 | return d._msgstrPlural; | 73 | return d._msgstrPlural; | ||
74 | } | 74 | } | ||
75 | const QVector<QString>& CatalogItem::msgidPlural() const | ||||
76 | { | ||||
77 | return d._msgidPlural; | ||||
78 | } | ||||
75 | 79 | | |||
76 | QStringList CatalogItem::allPluralForms(CatalogItem::Part part, bool stripNewLines) const | 80 | QStringList CatalogItem::allPluralForms(CatalogItem::Part part, bool stripNewLines) const | ||
77 | { | 81 | { | ||
78 | QStringList result = (part == CatalogItem::Source ? d._msgidPlural : d._msgstrPlural).toList(); | 82 | QStringList result = (part == CatalogItem::Source ? d._msgidPlural : d._msgstrPlural).toList(); | ||
79 | if (stripNewLines) { | 83 | if (stripNewLines) { | ||
80 | result.replaceInStrings(QStringLiteral("\n"), QString()); | 84 | result.replaceInStrings(QStringLiteral("\n"), QString()); | ||
81 | } | 85 | } | ||
82 | return result; | 86 | return result; | ||
▲ Show 20 Lines • Show All 259 Lines • Show Last 20 Lines |