| 92 | } |
| 93 | |
| 94 | QStringList translationSearchPaths() { |
| 95 | return { |
| 96 | QCoreApplication::applicationDirPath(), |
| 97 | QCoreApplication::applicationDirPath() + QStringLiteral("/translations"), |
| 98 | QStringLiteral("/usr/share/speedynote/translations"), |
| 99 | QStringLiteral("/usr/local/share/speedynote/translations"), |
| 100 | QStandardPaths::locate(QStandardPaths::GenericDataLocation, |
| 101 | QStringLiteral("speedynote/translations"), |
| 102 | QStandardPaths::LocateDirectory), |
| 103 | QStringLiteral(":/resources/translations"), |
| 104 | }; |
| 105 | } |
| 106 | |
| 107 | QList<LanguageEntry> discoverAvailableLanguages(const QString& savedOverrideCode) { |
| 108 | QSet<QString> codes; |
no outgoing calls
no test coverage detected