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

(9fc1bb8b9837c90ae2ad35ba4fa6c349daf7b91b)

#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)
 
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 229 of file translator.h.

Function Documentation

◆ getNumerusInfo()

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

◆ getNumerusInfoString()

QString getNumerusInfoString ( )

Definition at line 361 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 83 of file translator.h.

◆ saveQM()

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

Definition at line 619 of file qm.cpp.

References containsStripped(), ConversionData::ignoreUnfinished(), ConversionData::isVerbose(), ConversionData::m_idBased, 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: