28#ifndef LINGUIST_CONSOLE_APPLICATION
46 const QLocale::Language &locale,
50 const QLocale::Language &locale, QList<
bool> countRefNeeds);
53 Validator() =
default;
54 QMap<ErrorType, QString> validateTranslation(
const QString &translation,
55 const QLocale::Language &locale,
bool needsRef);
56 std::optional<
bool> m_haveMnemonic;
57 std::optional<QString> m_leadingWhiteSpace;
58 std::optional<QString> m_trailingWhiteSpace;
59 std::optional<Ending> m_ending;
60 std::optional<QHash<
int,
int>> m_placeMarkerCounts;
61#ifndef LINGUIST_CONSOLE_APPLICATION
62 std::optional<QHash<QString, QStringList>> m_matchingPhraseTargets;
bool surroundingWhiteSpace
static Validator fromSource(const QString &source, const Checks &checks, const QLocale::Language &locale, const QHash< QString, QList< Phrase * > > &phrases)
QMap< ErrorType, QString > validate(QStringList translations, const TranslatorMessage &msg, const QLocale::Language &locale, QList< bool > countRefNeeds)
@ SurroundingWhitespaceDiffers