| 25 | #include <memory> |
| 26 | |
| 27 | QString 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 | |
| 34 | TranslationManager::TranslationManager(QObject *parent, const QString &path) |
no test coverage detected