Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <QtCore/qtcore-config.h>
#include <QtTools/private/qttools-config_p.h>
#include <QtCore/QList>
#include <QtCore/QHash>
#include <QtCore/QCoreApplication>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QTranslator>
Go to the source code of this file.
Classes | |
class | ParserTool |
class | TrFunctionAliasManager |
Macros | |
#define | LUPDATE_FOR_EACH_TR_FUNCTION(UNARY_MACRO) |
#define | MAKE_ENTRY(F) |
Enumerations | |
enum | UpdateOption { Verbose = 1 , NoObsolete = 2 , PluralOnly = 4 , NoSort = 8 , HeuristicSameText = 16 , HeuristicSimilarText = 32 , AbsoluteLocations = 256 , RelativeLocations = 512 , NoLocations = 1024 , NoUiLines = 2048 , SourceIsUtf16 = 4096 } |
Functions | |
Translator | merge (const Translator &tor, const Translator &virginTor, const QList< Translator > &aliens, UpdateOptions options, QString &err) |
void | loadCPP (Translator &translator, const QStringList &filenames, ConversionData &cd) |
bool | loadJava (Translator &translator, const QString &filename, ConversionData &cd) |
bool | loadPython (Translator &translator, const QString &fileName, ConversionData &cd) |
bool | loadUI (Translator &translator, const QString &filename, ConversionData &cd) |
bool | loadQScript (Translator &translator, const QString &filename, ConversionData &cd) |
bool | loadQml (Translator &translator, const QString &filename, ConversionData &cd) |
QT_END_NAMESPACE | QT_PREPEND_NAMESPACE (TrFunctionAliasManager) trFunctionAliasManager |
#define LUPDATE_FOR_EACH_TR_FUNCTION | ( | UNARY_MACRO | ) |
#define MAKE_ENTRY | ( | F | ) |
enum UpdateOption |
void loadCPP | ( | Translator & | translator, |
const QStringList & | filenames, | ||
ConversionData & | cd ) |
bool loadJava | ( | Translator & | translator, |
const QString & | filename, | ||
ConversionData & | cd ) |
Definition at line 562 of file java.cpp.
References parse(), yyCurLineNo, yyFileName, yyInPos, yyInStr, yyPackage, yyParenDepth, yyParenLineNo, yyScope, and yyTok.
bool loadPython | ( | Translator & | translator, |
const QString & | fileName, | ||
ConversionData & | cd ) |
Definition at line 749 of file python.cpp.
References getCharFromFile(), parse(), peekCharFromFile(), Tok_tr, Tok_translate, Tok_trUtf8, tokens, and yyInFile.
bool loadQml | ( | Translator & | translator, |
const QString & | filename, | ||
ConversionData & | cd ) |
Definition at line 454 of file qdeclarative.cpp.
bool loadQScript | ( | Translator & | translator, |
const QString & | filename, | ||
ConversionData & | cd ) |
Definition at line 459 of file qdeclarative.cpp.
bool loadUI | ( | Translator & | translator, |
const QString & | filename, | ||
ConversionData & | cd ) |
Definition at line 157 of file ui.cpp.
References XmlParser::parse().
Translator merge | ( | const Translator & | tor, |
const Translator & | virginTor, | ||
const QList< Translator > & | aliens, | ||
UpdateOptions | options, | ||
QString & | err ) |
Definition at line 80 of file merge.cpp.
References applySameTextHeuristic(), HeuristicSameText, Translator::locationsType(), NoObsolete, Translator::setLocationsType(), and Verbose.
|
extern |