MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / addTranslation

Method addTranslation

gui/translationhandler.cpp:172–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172void TranslationHandler::addTranslation(const char *name, const char *filename)
173{
174 TranslationInfo info;
175 info.mName = name;
176 info.mFilename = filename;
177 const int codeLength = QString(filename).length() - QString(filename).indexOf('_') - 1;
178 info.mCode = QString(filename).right(codeLength);
179 mTranslations.append(info);
180}
181
182int TranslationHandler::getLanguageIndexByCode(const QString &code) const
183{

Callers

nothing calls this directly

Calls 1

QStringClass · 0.70

Tested by

no test coverage detected