forked from qt-creator/qt-creator
Additional snippet information is displayed in the options and when completing snippets to distinguish between multiple snippets with the same trigger. This information is extracted from xml files. Translate these strings like the information for external tools. Task-number: QTCREATORBUG-5912 Change-Id: I90a22d687a99339b8f30c0de3b04b379085b6bd5 Reviewed-by: Robert Loehning <robert.loehning@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
10 lines
597 B
Plaintext
10 lines
597 B
Plaintext
let $prefix := string("QT_TRANSLATE_NOOP3("TextEditor::Internal::Snippets", "")
|
|
let $midfix := string("", "")
|
|
let $suffix := concat("")", codepoints-to-string(10))
|
|
for $file in tokenize($files, string("\|"))
|
|
for $snippet in (doc($file)/*/snippet)
|
|
let $group := fn:concat(string("group:'"), data($snippet/@group), string("' "))
|
|
let $trigger := fn:concat(string("trigger:'"), data($snippet/@trigger), string("'"))
|
|
where ($snippet/@complement)
|
|
return fn:concat($prefix, data($snippet/@complement), $midfix, $group, $trigger, $suffix)
|