| 87 | |
| 88 | |
| 89 | void addSource(TranslationEntries& entries, const QString& context, const QString& source, const QString& comment) |
| 90 | { |
| 91 | // Comment must be unique. It is used to match translations. |
| 92 | auto found = std::find_if(begin(entries), end(entries), [&context, &comment](auto& entry) { |
| 93 | return entry.context == context && entry.comment == comment; |
| 94 | }); |
| 95 | QVERIFY(found == end(entries)); |
| 96 | entries.push_back({context, source, comment}); |
| 97 | } |
| 98 | |
| 99 | void processTranslation(const Map& map, TranslationEntries& translation_entries) |
| 100 | { |
no outgoing calls
no test coverage detected