11#ifndef LINGUIST_CONSOLE_APPLICATION
33#ifndef LINGUIST_CONSOLE_APPLICATION
57 const QLocale::Language &locale,
61 const QLocale::Language &locale, QList<
bool> countRefNeeds);
64 Validator() =
default;
65 QList<Error> validateTranslation(
const QString &translation,
const QLocale::Language &locale,
67 std::optional<
bool> m_haveMnemonic;
68 std::optional<QString> m_leadingWhiteSpace;
69 std::optional<QString> m_trailingWhiteSpace;
71 std::optional<QHash<
int,
int>> m_placeMarkerCounts;
72#ifndef LINGUIST_CONSOLE_APPLICATION
73 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)
QList< Error > validate(QStringList translations, const TranslatorMessage &msg, const QLocale::Language &locale, QList< bool > countRefNeeds)
@ SurroundingWhitespaceDiffers