12#ifndef LINGUIST_CONSOLE_APPLICATION
34#ifndef LINGUIST_CONSOLE_APPLICATION
52 const QLocale::Language &locale,
56 const QLocale::Language &locale, QList<
bool> countRefNeeds);
59 Validator() =
default;
60 QMap<ErrorType, QString> validateTranslation(
const QString &translation,
61 const QLocale::Language &locale,
bool needsRef);
62 std::optional<
bool> m_haveMnemonic;
63 std::optional<QString> m_leadingWhiteSpace;
64 std::optional<QString> m_trailingWhiteSpace;
66 std::optional<QHash<
int,
int>> m_placeMarkerCounts;
67#ifndef LINGUIST_CONSOLE_APPLICATION
68 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