aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/translations
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2023-02-16 19:12:58 +0100
committerAlessandro Portale <alessandro.portale@qt.io>2023-02-17 10:17:29 +0000
commitcd2aef9f509eb000dd58498979bd7589d41859c8 (patch)
tree5ecebbdb776e1e8260cd33e1196f242b6b0622e1 /share/qtcreator/translations
parent9af5ebe856220fedaed3e386a360b850ee015304 (diff)
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>
Diffstat (limited to 'share/qtcreator/translations')
-rw-r--r--share/qtcreator/translations/extract-customwizards.py2
-rw-r--r--share/qtcreator/translations/extract-customwizards.xq2
-rw-r--r--share/qtcreator/translations/extract-externaltools.py2
-rw-r--r--share/qtcreator/translations/extract-externaltools.xq2
-rw-r--r--share/qtcreator/translations/extract-jsonwizards.py2
-rw-r--r--share/qtcreator/translations/extract-snippets.py2
-rw-r--r--share/qtcreator/translations/extract-snippets.xq2
7 files changed, 7 insertions, 7 deletions
diff --git a/share/qtcreator/translations/extract-customwizards.py b/share/qtcreator/translations/extract-customwizards.py
index c5235b53628..a7bea19bf9b 100644
--- a/share/qtcreator/translations/extract-customwizards.py
+++ b/share/qtcreator/translations/extract-customwizards.py
@@ -30,7 +30,7 @@ def parse_file(file_path):
'.//comboentrytext',
'.//message']:
for e in root.findall(i):
- result += 'const char *a{} = QT_TRANSLATE_NOOP("ProjectExplorer::CustomWizard", "{}"); // {}\n'.format(index, fix_value(e.text), file_path)
+ result += 'const char *a{} = QT_TRANSLATE_NOOP("QtC::ProjectExplorer", "{}"); // {}\n'.format(index, fix_value(e.text), file_path)
index += 1
return result
diff --git a/share/qtcreator/translations/extract-customwizards.xq b/share/qtcreator/translations/extract-customwizards.xq
index 0ded98410b9..efc6fb60c14 100644
--- a/share/qtcreator/translations/extract-customwizards.xq
+++ b/share/qtcreator/translations/extract-customwizards.xq
@@ -1,4 +1,4 @@
-let $prefix := string("QT_TRANSLATE_NOOP(&quot;ProjectExplorer::CustomWizard&quot;, &quot;")
+let $prefix := string("QT_TRANSLATE_NOOP(&quot;QtC::ProjectExplorer&quot;, &quot;")
let $suffix := concat("&quot;)", codepoints-to-string(10))
for $file in tokenize($files, string("\|"))
let $doc := doc($file)
diff --git a/share/qtcreator/translations/extract-externaltools.py b/share/qtcreator/translations/extract-externaltools.py
index 9af0de756ae..be91f24670c 100644
--- a/share/qtcreator/translations/extract-externaltools.py
+++ b/share/qtcreator/translations/extract-externaltools.py
@@ -27,7 +27,7 @@ def parse_file(file_path):
index = 0
for i in ['.//description', './/displayname', './/category']:
for e in root.findall(i):
- result += 'const char *a{} = QT_TRANSLATE_NOOP("Core::Internal::ExternalTool", "{}"); // {}\n'.format(index, fix_value(e.text), file_path)
+ result += 'const char *a{} = QT_TRANSLATE_NOOP("QtC::Core", "{}"); // {}\n'.format(index, fix_value(e.text), file_path)
index += 1
return result
diff --git a/share/qtcreator/translations/extract-externaltools.xq b/share/qtcreator/translations/extract-externaltools.xq
index f15ce8ac676..894f31d56aa 100644
--- a/share/qtcreator/translations/extract-externaltools.xq
+++ b/share/qtcreator/translations/extract-externaltools.xq
@@ -1,4 +1,4 @@
-let $prefix := string("QT_TRANSLATE_NOOP(&quot;Core::Internal::ExternalTool&quot;, &quot;")
+let $prefix := string("QT_TRANSLATE_NOOP(&quot;QtC::Core&quot;, &quot;")
let $suffix := concat("&quot;)", codepoints-to-string(10))
for $file in tokenize($files, string("\|"))
let $doc := doc($file)
diff --git a/share/qtcreator/translations/extract-jsonwizards.py b/share/qtcreator/translations/extract-jsonwizards.py
index 8a9cd7ade90..dbb6c6dbf76 100644
--- a/share/qtcreator/translations/extract-jsonwizards.py
+++ b/share/qtcreator/translations/extract-jsonwizards.py
@@ -44,7 +44,7 @@ def parse_file(file_path):
for key, value in recursive_iter(root):
if key.startswith('tr'):
- result += 'const char *a{} = QT_TRANSLATE_NOOP("ProjectExplorer::JsonWizard", "{}"); // {}\n'.format(index, fix_value(value), file_path)
+ result += 'const char *a{} = QT_TRANSLATE_NOOP("QtC::ProjectExplorer", "{}"); // {}\n'.format(index, fix_value(value), file_path)
index += 1
return result
diff --git a/share/qtcreator/translations/extract-snippets.py b/share/qtcreator/translations/extract-snippets.py
index 6dcbdb5aa3e..98b0d3b3dd3 100644
--- a/share/qtcreator/translations/extract-snippets.py
+++ b/share/qtcreator/translations/extract-snippets.py
@@ -29,7 +29,7 @@ def parse_file(file_path):
if 'complement' in e.attrib:
text = fix_value(e.attrib['complement'])
if text:
- result += 'const char *a{} = QT_TRANSLATE_NOOP3("TextEditor::Internal::Snippets", "{}", "group:\'{}\' trigger:\'{}\'"); // {}\n' \
+ result += 'const char *a{} = QT_TRANSLATE_NOOP3("QtC::TextEditor", "{}", "group:\'{}\' trigger:\'{}\'"); // {}\n' \
.format(index, text, e.attrib['group'], e.attrib['trigger'], file_path)
index += 1
diff --git a/share/qtcreator/translations/extract-snippets.xq b/share/qtcreator/translations/extract-snippets.xq
index 0b7e52d4766..fa9d28ffa88 100644
--- a/share/qtcreator/translations/extract-snippets.xq
+++ b/share/qtcreator/translations/extract-snippets.xq
@@ -1,4 +1,4 @@
-let $prefix := string("QT_TRANSLATE_NOOP3(&quot;TextEditor::Internal::Snippets&quot;, &quot;")
+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("\|"))