From a3cd6e7923deee74745b790c66e687d79668e5c6 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 16 Jul 2010 15:08:46 +0200 Subject: clean up string extraction from xml files --- share/qtcreator/translations/extract-customwizards.xq | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 share/qtcreator/translations/extract-customwizards.xq (limited to 'share/qtcreator/translations/extract-customwizards.xq') diff --git a/share/qtcreator/translations/extract-customwizards.xq b/share/qtcreator/translations/extract-customwizards.xq new file mode 100644 index 00000000000..63e9887c48e --- /dev/null +++ b/share/qtcreator/translations/extract-customwizards.xq @@ -0,0 +1,6 @@ +let $prefix := string("QT_TRANSLATE_NOOP("ProjectExplorer::CustomWizard", "") +let $suffix := concat("")", codepoints-to-string(10)) +for $file in tokenize($files, string("\|")) + let $doc := doc($file) + for $text in ($doc/*:wizard/*:description, $doc/*:wizard/*:displayname, $doc/*:wizard/*:displaycategory, $doc/*:wizard/*:fieldpagetitle, $doc/*:wizard/*:fields/*:field/*:fielddescription) + return fn:concat($prefix, data($text), $suffix) -- cgit v1.2.3