diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-07-16 15:08:46 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-07-16 16:35:27 +0200 |
commit | a3cd6e7923deee74745b790c66e687d79668e5c6 (patch) | |
tree | c52a76ffee5a9c62b0b75fcbeccd6e874be22856 /share/qtcreator/translations/extract-customwizards.xq | |
parent | b23e6b47d7638a92d77ba7a71d4892a3863d58a6 (diff) |
clean up string extraction from xml files
Diffstat (limited to 'share/qtcreator/translations/extract-customwizards.xq')
-rw-r--r-- | share/qtcreator/translations/extract-customwizards.xq | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/share/qtcreator/translations/extract-customwizards.xq b/share/qtcreator/translations/extract-customwizards.xq new file mode 100644 index 0000000000..63e9887c48 --- /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) |