diff options
author | Eike Ziller <eike.ziller@qt.io> | 2018-02-23 10:56:52 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2018-02-23 10:56:52 +0100 |
commit | 7c3cfa166d6b54c792f1c452a162bd7842becd52 (patch) | |
tree | 404f58894cfebcf6fb62e9eab60b3fb33a3f6f44 /src/plugins/texteditor/snippets | |
parent | 31a55b02477fa0c6b9b9fca7e26ebc6951c3be30 (diff) | |
parent | 09a7247bfc08e5d8e027493909c2acb448a0bd8e (diff) |
Merge remote-tracking branch 'origin/4.6'
Conflicts:
src/plugins/coreplugin/helpmanager.cpp
Change-Id: I2feb60ec0afb2f22f75dc137a01c3fa217b299d8
Diffstat (limited to 'src/plugins/texteditor/snippets')
-rw-r--r-- | src/plugins/texteditor/snippets/snippetscollection.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/plugins/texteditor/snippets/snippetscollection.cpp b/src/plugins/texteditor/snippets/snippetscollection.cpp index 5756a01f668..660ac0746c5 100644 --- a/src/plugins/texteditor/snippets/snippetscollection.cpp +++ b/src/plugins/texteditor/snippets/snippetscollection.cpp @@ -44,6 +44,13 @@ using namespace TextEditor; using namespace Internal; +/* TRANSLATOR TextEditor::Internal::Snippets + + Snippets are text fragments that can be inserted into an editor via the usual completion + mechanics using a trigger text. The translated text (trigger variant) is used to + disambiguate between snippets with the same trigger. +*/ + namespace { static bool snippetComp(const Snippet &a, const Snippet &b) @@ -359,7 +366,10 @@ QList<Snippet> SnippetsCollection::readXML(const QString &fileName, const QStrin if (isGroupKnown(groupId) && (snippetId.isEmpty() || snippetId == id)) { Snippet snippet(groupId, id); snippet.setTrigger(atts.value(kTrigger).toString()); - snippet.setComplement(atts.value(kComplement).toString()); + snippet.setComplement(QCoreApplication::translate( + "TextEditor::Internal::Snippets", + atts.value(kComplement).toString().toLatin1(), + atts.value(kId).toString().toLatin1())); snippet.setIsRemoved(toBool(atts.value(kRemoved).toString())); snippet.setIsModified(toBool(atts.value(kModified).toString())); |