Files
qt-creator/share/qtcreator/translations/extract-snippets.xq
Alessandro Portale cd2aef9f50 Translations: Move extracted translations into QtC:: contexts
This change adapts the exctraction scripts. The contexts in the .ts files
were already merged in earlier changes.

Core::Internal::ExternalTool
 -> QtC::Core

ProjectExplorer::CustomWizard
 -> QtC::ProjectExplorer

ProjectExplorer::JsonWizard
 -> QtC::ProjectExplorer

TextEditor::Internal::Snippets
 -> QtC::TextEditor

Change-Id: I277707d259abcc13fac064a1d879aeedee1703e4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-17 10:17:29 +00:00

10 lines
582 B
Plaintext

let $prefix := string("QT_TRANSLATE_NOOP3(&quot;QtC::TextEditor&quot;, &quot;")
let $midfix := string("&quot;, &quot;")
let $suffix := concat("&quot;)", 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)