MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / TranslationFileNameToLocaleName

Function TranslationFileNameToLocaleName

src/TranslationManager.cpp:27–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25#include <memory>
26
27QString TranslationFileNameToLocaleName(const QString &baseName)
28{
29 // return "zh_CN" from "NotepadNext_zh_CN"
30 return baseName.mid(QApplication::applicationName().length() + 1); // +1 for the underscore
31}
32
33
34TranslationManager::TranslationManager(QObject *parent, const QString &path)

Callers 1

availableTranslationsMethod · 0.85

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected