Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
translator.h File Reference

(d9e43af7ece745ef0922db12351d44f5933a8d5d)

#include "translatormessage.h"
#include "fmt.h"
#include <QCoreApplication>
#include <QDir>
#include <QList>
#include <QLocale>
#include <QMultiHash>
#include <QRegularExpression>
#include <QString>
#include <QSet>
#include <QVector>
Include dependency graph for translator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ConversionData
class  TMMKey
class  Translator
struct  Translator::Duplicates
struct  Translator::FileFormat

Macros

#define ContextComment   "QT_LINGUIST_INTERNAL_CONTEXT_COMMENT"

Functions

 Q_DECLARE_TYPEINFO (TMMKey, Q_RELOCATABLE_TYPE)
size_t qHash (const TMMKey &key)
bool getNumerusInfo (QLocale::Language language, QLocale::Territory territory, QByteArray *rules, QStringList *forms, const char **gettextRules)
bool getCountNeed (QLocale::Language lang, QLocale::Territory territory, QList< bool > &countRefNeeds, QStringList *forms)
QString friendlyString (const QString &str)
QString getNumerusInfoString ()
bool saveQM (const Translator &translator, QIODevice &dev, ConversionData &cd)

Macro Definition Documentation

◆ ContextComment

#define ContextComment   "QT_LINGUIST_INTERNAL_CONTEXT_COMMENT"

Definition at line 226 of file translator.h.

Function Documentation

◆ friendlyString()

QString friendlyString ( const QString & str)

Definition at line 30 of file translator.cpp.

◆ getCountNeed()

bool getCountNeed ( QLocale::Language lang,
QLocale::Territory territory,
QList< bool > & countRefNeeds,
QStringList * forms )

Definition at line 363 of file numerus.cpp.

◆ getNumerusInfo()

bool getNumerusInfo ( QLocale::Language language,
QLocale::Territory territory,
QByteArray * rules,
QStringList * forms,
const char ** gettextRules )

◆ getNumerusInfoString()

QString getNumerusInfoString ( )

Definition at line 378 of file numerus.cpp.

References numerusTable, and NumerusTableSize.

◆ Q_DECLARE_TYPEINFO()

Q_DECLARE_TYPEINFO ( TMMKey ,
Q_RELOCATABLE_TYPE  )

◆ qHash()

size_t qHash ( const TMMKey & key)
inline

Definition at line 75 of file translator.h.

◆ saveQM()

bool saveQM ( const Translator & translator,
QIODevice & dev,
ConversionData & cd )

Definition at line 621 of file qm.cpp.

References containsStripped(), ConversionData::ignoreUnfinished(), ConversionData::isVerbose(), ConversionData::m_saveMode, Translator::message(), Translator::messageCount(), TranslatorMessage::Obsolete, Releaser::save(), Releaser::squeeze(), TranslatorMessage::type(), TranslatorMessage::Unfinished, and TranslatorMessage::Vanished.

Referenced by initQM().

Here is the call graph for this function:
Here is the caller graph for this function: