ModelEditor: Tr::tr()

Following orphaned contexts are merged into ::ModelEditor

  ModelEditor::Internal::ActionHandler
  ModelEditor::Internal::ElementTasks
  ModelEditor::Internal::ExtPropertiesMView
  ModelEditor::Internal::FileWizardFactory
  ModelEditor::Internal::ModelDocument
  ModelEditor::Internal::ModelEditor
  ModelEditor::Internal::ModelsManager
  ModelEditor::Internal::PxNodeController
  Modeling

Change-Id: Ib602b91af7a4b8d8f886e587e6988338b1e841e8
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Alessandro Portale
2023-02-09 17:06:04 +01:00
parent 3c6b8b08df
commit ba34f00e1e
15 changed files with 77 additions and 252 deletions

View File

@@ -19540,9 +19540,6 @@ Fejl: %5</translation>
<source>Zoom: %1%</source>
<translation>Zoom: %1%</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ActionHandler</name>
<message>
<source>&amp;Remove</source>
<translation>&amp;Fjern</translation>
@@ -19603,16 +19600,10 @@ Fejl: %5</translation>
<source>Return</source>
<translation>Vend tilbage</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ElementTasks</name>
<message>
<source>Update Include Dependencies</source>
<translation>Opdater inkluder-afhængigheder</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ExtPropertiesMView</name>
<message>
<source>Select Custom Configuration Folder</source>
<translation>Vælg brugerdefineret konfigurationsmappe</translation>
@@ -19625,9 +19616,6 @@ Fejl: %5</translation>
<source>&lt;font color=red&gt;Model file must be reloaded.&lt;/font&gt;</source>
<translation>&lt;font color=red&gt;Modelfil skal genindlæses.&lt;/font&gt;</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelDocument</name>
<message>
<source>No model loaded. Cannot save.</source>
<translation>Ingen model indlæst. Kan ikke gemme.</translation>
@@ -19640,9 +19628,6 @@ Fejl: %5</translation>
<source>Could not open &quot;%1&quot; for reading: %2.</source>
<translation>Kunne ikke åbne &quot;%1&quot; til læsning: %2.</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelEditor</name>
<message>
<source>&lt;html&gt;&lt;body style=&quot;color:#909090; font-size:14px&quot;&gt;&lt;div align=&apos;center&apos;&gt;&lt;div style=&quot;font-size:20px&quot;&gt;Open a diagram&lt;/div&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;hr/&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Double-click on diagram in model tree&lt;/div&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Select &quot;Open Diagram&quot; from package&apos;s context menu in model tree&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;body style=&quot;color:#909090; font-size:14px&quot;&gt;&lt;div align=&apos;center&apos;&gt;&lt;div style=&quot;font-size:20px&quot;&gt;Åbn et diagram&lt;/div&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;hr/&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Dobbeltklik diagram i model-træ&lt;/div&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Vælg &quot;Åbn diagram&quot; fra pakkens genvejsmenu i model-træ&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</translation>
@@ -19739,16 +19724,10 @@ Fejl: %5</translation>
<source>Swimlane</source>
<translation>Svømmebane</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelsManager</name>
<message>
<source>Open Diagram</source>
<translation>Åbn diagram</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::PxNodeController</name>
<message>
<source>Add Component %1</source>
<translation>Tilføj komponenten %1</translation>
@@ -19809,7 +19788,7 @@ Fejl: %5</translation>
</message>
</context>
<context>
<name>Modeling</name>
<name>::ModelEditor</name>
<message>
<source>Modeling</source>
<translation>Modelering</translation>

View File

@@ -34614,7 +34614,7 @@ provided they were unmodified before the refactoring.</source>
</message>
</context>
<context>
<name>ModelEditor::Internal::ActionHandler</name>
<name>::ModelEditor</name>
<message>
<source>&amp;Remove</source>
<translation>&amp;Entfernen</translation>
@@ -34675,9 +34675,6 @@ provided they were unmodified before the refactoring.</source>
<source>Return</source>
<translation>Return</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelEditor</name>
<message>
<source>&lt;html&gt;&lt;body style=&quot;color:#909090; font-size:14px&quot;&gt;&lt;div align=&apos;center&apos;&gt;&lt;div style=&quot;font-size:20px&quot;&gt;Open a diagram&lt;/div&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;hr/&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Double-click on diagram in model tree&lt;/div&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Select &quot;Open Diagram&quot; from package&apos;s context menu in model tree&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;body style=&quot;color:#909090; font-size:14px&quot;&gt;&lt;div align=&apos;center&apos;&gt;&lt;div style=&quot;font-size:20px&quot;&gt;Diagramm öffnen&lt;/div&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;hr/&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Doppelklick auf ein Diagramm im Baum&lt;/div&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Wählen Sie &quot;Diagramm öffnen&quot; aus dem Kontextmenü eines Pakets im Baum&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</translation>
@@ -37492,7 +37489,7 @@ Siehe auch die Einstellungen für Google Test.</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelDocument</name>
<name>::ModelEditor</name>
<message>
<source>No model loaded. Cannot save.</source>
<translation>Kein Modell geladen, daher ist sichern nicht möglich.</translation>
@@ -37501,23 +37498,14 @@ Siehe auch die Einstellungen für Google Test.</translation>
<source>Could not open &quot;%1&quot; for reading: %2.</source>
<translation>&quot;%1&quot; konnte nicht gelesen werden: %2.</translation>
</message>
</context>
<context>
<name>Modeling</name>
<message>
<source>Modeling</source>
<translation>Modellierung</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelsManager</name>
<message>
<source>Open Diagram</source>
<translation>Diagramm öffnen</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::PxNodeController</name>
<message>
<source>Add Component %1</source>
<translation>Komponente %1 hinzufügen</translation>
@@ -37594,7 +37582,7 @@ Sie werden erhalten.</numerusform>
</message>
</context>
<context>
<name>ModelEditor::Internal::ExtPropertiesMView</name>
<name>::ModelEditor</name>
<message>
<source>Select Custom Configuration Folder</source>
<translation>Konfigurationsverzeichnis auswählen</translation>
@@ -39469,7 +39457,7 @@ Ablaufdatum: %3</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ElementTasks</name>
<name>::ModelEditor</name>
<message>
<source>Update Include Dependencies</source>
<translation>Include-Abhängigkeiten aktualisieren</translation>

View File

@@ -25005,7 +25005,7 @@ Rok upotrebe: %3</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ActionHandler</name>
<name>::ModelEditor</name>
<message>
<source>&amp;Remove</source>
<translation>&amp;Ukloni</translation>
@@ -25066,16 +25066,10 @@ Rok upotrebe: %3</translation>
<source>Return</source>
<translation>Return</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ElementTasks</name>
<message>
<source>Update Include Dependencies</source>
<translation>Aktualiziraj dodavanje ovisnosti</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ExtPropertiesMView</name>
<message>
<source>Select Custom Configuration Folder</source>
<translation>Odaberi mapu prilagođene konfiguracije</translation>
@@ -25088,9 +25082,6 @@ Rok upotrebe: %3</translation>
<source>&lt;font color=red&gt;Model file must be reloaded.&lt;/font&gt;</source>
<translation>&lt;font color=red&gt;Datoteka modela se mora ponovo učitati.&lt;/font&gt;</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelDocument</name>
<message>
<source>No model loaded. Cannot save.</source>
<translation>Nijedan model nije učitan. Spremanje nije moguće.</translation>
@@ -25099,9 +25090,6 @@ Rok upotrebe: %3</translation>
<source>Could not open &quot;%1&quot; for reading: %2.</source>
<translation>Nije bilo moguće otvoriti &quot;%1&quot; za čitanje: %2.</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelEditor</name>
<message>
<source>&lt;html&gt;&lt;body style=&quot;color:#909090; font-size:14px&quot;&gt;&lt;div align=&apos;center&apos;&gt;&lt;div style=&quot;font-size:20px&quot;&gt;Open a diagram&lt;/div&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;hr/&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Double-click on diagram in model tree&lt;/div&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Select &quot;Open Diagram&quot; from package&apos;s context menu in model tree&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;body style=&quot;color:#909090; font-size:14px&quot;&gt;&lt;div align=&apos;center&apos;&gt;&lt;div style=&quot;font-size:20px&quot;&gt;Otvori dijagram&lt;/div&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;hr/&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Dvoklik na dijagram u stablastom modelu&lt;/div&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Odabei &quot;Otvori dijagram&quot; iz kontekstnog izbornika u stablastom modelu&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</translation>
@@ -25198,30 +25186,18 @@ Rok upotrebe: %3</translation>
<source>Swimlane</source>
<translation>Dijagram toka</translation>
</message>
</context>
<context>
<name>::ModelEditor</name>
<message>
<source>Zoom: %1%</source>
<translation>Zumiraj: %1%</translation>
</message>
</context>
<context>
<name>Modeling</name>
<message>
<source>Modeling</source>
<translation>Modeliranje</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelsManager</name>
<message>
<source>Open Diagram</source>
<translation>Otvori dijagram</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::PxNodeController</name>
<message>
<source>Add Component %1</source>
<translation>Dodaj komponentu %1</translation>

View File

@@ -38772,7 +38772,7 @@ Would you like to overwrite it?</source>
</message>
</context>
<context>
<name>ModelEditor::Internal::ActionHandler</name>
<name>::ModelEditor</name>
<message>
<source>&amp;Remove</source>
<translation>(&amp;R)</translation>
@@ -38837,9 +38837,6 @@ Would you like to overwrite it?</source>
<source>Return</source>
<translation>Return</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ExtPropertiesMView</name>
<message>
<source>Select Custom Configuration Folder</source>
<translation></translation>
@@ -38852,9 +38849,6 @@ Would you like to overwrite it?</source>
<source>&lt;font color=red&gt;Model file must be reloaded.&lt;/font&gt;</source>
<translation>&lt;font color=&quot;red&quot;&gt;&lt;/font&gt;</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelDocument</name>
<message>
<source>No model loaded. Cannot save.</source>
<translation></translation>
@@ -38867,29 +38861,10 @@ Would you like to overwrite it?</source>
<source>Could not open &quot;%1&quot; for reading: %2.</source>
<translation> &quot;%1&quot; : %2.</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelEditor</name>
<message>
<source>&lt;html&gt;&lt;body style=&quot;color:#909090; font-size:14px&quot;&gt;&lt;div align=&apos;center&apos;&gt;&lt;div style=&quot;font-size:20px&quot;&gt;Open a diagram&lt;/div&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;hr/&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Double-click on diagram in model tree&lt;/div&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Select &quot;Open Diagram&quot; from package&apos;s context menu in model tree&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;body style=&quot;color:#909090; font-size:14px&quot;&gt;&lt;div align=&apos;center&apos;&gt;&lt;div style=&quot;font-size:20px&quot;&gt;&lt;/div&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;hr/&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; &lt;/div&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; &quot;&quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<source>Add Package</source>
<translation></translation>
</message>
<message>
<source>Add Component</source>
<translation></translation>
</message>
<message>
<source>Add Class</source>
<translation></translation>
</message>
<message>
<source>Add Canvas Diagram</source>
<translation></translation>
</message>
<message>
<source>Images (*.png *.jpeg *.jpg *.tif *.tiff);;PDF (*.pdf)</source>
<translation> (*.png *.jpeg *.jpg *.tif *.tiff);;PDF (*.pdf)</translation>
@@ -38950,23 +38925,14 @@ Would you like to overwrite it?</source>
<source>Boundary</source>
<translation></translation>
</message>
</context>
<context>
<name>Modeling</name>
<message>
<source>Modeling</source>
<translation></translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelsManager</name>
<message>
<source>Open Diagram</source>
<translation></translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::PxNodeController</name>
<message>
<source>Add Component %1</source>
<translation> %1 </translation>

View File

@@ -33620,7 +33620,7 @@ itself takes time.</source>
</message>
</context>
<context>
<name>ModelEditor::Internal::ActionHandler</name>
<name>::ModelEditor</name>
<message>
<source>&amp;Remove</source>
<translation>&amp;Usuń</translation>
@@ -33689,9 +33689,6 @@ itself takes time.</source>
<source>Return</source>
<translation>Powróć</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelDocument</name>
<message>
<source>No model loaded. Cannot save.</source>
<translation>Brak załadowanego projektu. Nie można zachować.</translation>
@@ -33704,29 +33701,10 @@ itself takes time.</source>
<source>Could not open &quot;%1&quot; for reading: %2.</source>
<translation>Nie można otworzyć &quot;%1&quot; do odczytu: %2.</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelEditor</name>
<message>
<source>&lt;html&gt;&lt;body style=&quot;color:#909090; font-size:14px&quot;&gt;&lt;div align=&apos;center&apos;&gt;&lt;div style=&quot;font-size:20px&quot;&gt;Open a diagram&lt;/div&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;hr/&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Double-click on diagram in model tree&lt;/div&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Select &quot;Open Diagram&quot; from package&apos;s context menu in model tree&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Add Package</source>
<translation>Dodaj pakiet</translation>
</message>
<message>
<source>Add Component</source>
<translation>Dodaj komponent</translation>
</message>
<message>
<source>Add Class</source>
<translation>Dodaj klasę</translation>
</message>
<message>
<source>Add Canvas Diagram</source>
<translation>Dodaj diagram płótna</translation>
</message>
<message>
<source>Images (*.png *.jpeg *.jpg *.tif *.tiff);;PDF (*.pdf)</source>
<translation>Pliki graficzne (*.png *.jpeg *.jpg *.tif *.tiff);;PDF (*.pdf)</translation>
@@ -33771,23 +33749,14 @@ itself takes time.</source>
<source>Boundary</source>
<translation>Granice</translation>
</message>
</context>
<context>
<name>Modeling</name>
<message>
<source>Modeling</source>
<translation>Modelowanie</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelsManager</name>
<message>
<source>Open Diagram</source>
<translation>Otwórz diagram</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::PxNodeController</name>
<message>
<source>Add Component %1</source>
<translation>Dodaj komponent %1</translation>
@@ -35433,7 +35402,7 @@ Czy nadpisać go?</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ExtPropertiesMView</name>
<name>::ModelEditor</name>
<message>
<source>Select Custom Configuration Folder</source>
<translation>Wybierz katalog z własną konfiguracją</translation>
@@ -39640,7 +39609,7 @@ Błąd: %5</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ElementTasks</name>
<name>::ModelEditor</name>
<message>
<source>Update Include Dependencies</source>
<translation>Uaktualnij zależności</translation>

View File

@@ -24941,9 +24941,6 @@ Useful if build directory is corrupted or when rebuilding with a newer version o
<source>Zoom: %1%</source>
<translation>Масштаб: %1%</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ActionHandler</name>
<message>
<source>&amp;Remove</source>
<translation>&amp;Убрать</translation>
@@ -25005,16 +25002,10 @@ Useful if build directory is corrupted or when rebuilding with a newer version o
<source>Return</source>
<translation>Ввод</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ElementTasks</name>
<message>
<source>Update Include Dependencies</source>
<translation>Обновить зависимость от включаемых файлов</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ExtPropertiesMView</name>
<message>
<source>Select Custom Configuration Folder</source>
<translation>Выбор особого каталога настроек</translation>
@@ -25027,9 +25018,6 @@ Useful if build directory is corrupted or when rebuilding with a newer version o
<source>&lt;font color=red&gt;Model file must be reloaded.&lt;/font&gt;</source>
<translation>&lt;font color=red&gt;Файл модели должен быть перезагружен.&lt;/font&gt;</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelDocument</name>
<message>
<source>No model loaded. Cannot save.</source>
<translation>Модель не загружена. Сохранить невозможно.</translation>
@@ -25038,9 +25026,6 @@ Useful if build directory is corrupted or when rebuilding with a newer version o
<source>Could not open &quot;%1&quot; for reading: %2.</source>
<translation>Не удалось открыть файл «%1» для чтения: %2.</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelEditor</name>
<message>
<source>&lt;html&gt;&lt;body style=&quot;color:#909090; font-size:14px&quot;&gt;&lt;div align=&apos;center&apos;&gt;&lt;div style=&quot;font-size:20px&quot;&gt;Open a diagram&lt;/div&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;hr/&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Double-click on diagram in model tree&lt;/div&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Select &quot;Open Diagram&quot; from package&apos;s context menu in model tree&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;body style=&quot;color:#909090; font-size:14px&quot;&gt;&lt;div align=&apos;center&apos;&gt;&lt;div style=&quot;font-size:20px&quot;&gt;Открытие диаграммы&lt;/div&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;hr/&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Двойной щелчок на диаграмме в дереве модели&lt;/div&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; «Открыть диаграмму» в контекстном меню пакета дерева модели&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</translation>
@@ -25137,16 +25122,10 @@ Useful if build directory is corrupted or when rebuilding with a newer version o
<source>Swimlane</source>
<translation>Swimlane</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelsManager</name>
<message>
<source>Open Diagram</source>
<translation>Открыть диаграмму</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::PxNodeController</name>
<message>
<source>Add Component %1</source>
<translation>Добавить компонент %1</translation>
@@ -25207,7 +25186,7 @@ Useful if build directory is corrupted or when rebuilding with a newer version o
</message>
</context>
<context>
<name>Modeling</name>
<name>::ModelEditor</name>
<message>
<source>Modeling</source>
<translation>Моделирование</translation>

View File

@@ -42108,7 +42108,7 @@ the program.</source>
</message>
</context>
<context>
<name>ModelEditor::Internal::ActionHandler</name>
<name>::ModelEditor</name>
<message>
<source>&amp;Remove</source>
<translation>&amp;Прибрати</translation>
@@ -42145,9 +42145,6 @@ the program.</source>
<source>Return</source>
<translation></translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelDocument</name>
<message>
<source>No model loaded. Cannot save.</source>
<translation>Модель на завантажено. Неможливо зберегти.</translation>
@@ -42164,9 +42161,6 @@ the program.</source>
<source>Could not open &quot;%1&quot; for reading: %2.</source>
<translation>Не вдалось відкрити файл &apos;%1&apos; для читання: %2.</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelEditor</name>
<message>
<source>&lt;html&gt;&lt;body style=&quot;color:#909090; font-size:14px&quot;&gt;&lt;div align=&apos;center&apos;&gt;&lt;div style=&quot;font-size:20px&quot;&gt;Open a diagram&lt;/div&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;hr/&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Double-click on diagram in model tree&lt;/div&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Select &quot;Open Diagram&quot; from package&apos;s context menu in model tree&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;body style=&quot;color:#909090; font-size:14px&quot;&gt;&lt;div align=&apos;center&apos;&gt;&lt;div style=&quot;font-size:20px&quot;&gt;Відкрити діаграму&lt;/div&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;hr/&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Подвійне клацання на діаграмі в дереві моделі&lt;/div&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Виберіть &quot;Відкрити діаграму&quot; з контекстного меню пакунка в дереві моделі&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</translation>
@@ -42231,16 +42225,10 @@ the program.</source>
<source>Boundary</source>
<translation>Границя</translation>
</message>
</context>
<context>
<name>Modeling</name>
<message>
<source>Modeling</source>
<translation>Моделювання</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::FileWizardFactory</name>
<message>
<source>Model</source>
<translation type="vanished">Модель</translation>
@@ -42265,16 +42253,10 @@ the program.</source>
<source>Location:</source>
<translation type="vanished">Розташування:</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelsManager</name>
<message>
<source>Open Diagram</source>
<translation>Відкрити діаграму</translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::PxNodeController</name>
<message>
<source>Add Component %1</source>
<translation>Додати компонент %1</translation>
@@ -43890,7 +43872,7 @@ Would you like to overwrite it?</source>
</message>
</context>
<context>
<name>ModelEditor::Internal::ExtPropertiesMView</name>
<name>::ModelEditor</name>
<message>
<source>Select Custom Configuration Folder</source>
<translation>Оберіть теку для налаштувань користувача</translation>

View File

@@ -24851,9 +24851,6 @@ Useful if build directory is corrupted or when rebuilding with a newer version o
<source>Zoom: %1%</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ActionHandler</name>
<message>
<source>&amp;Remove</source>
<translation type="unfinished">(&amp;R)</translation>
@@ -24914,16 +24911,10 @@ Useful if build directory is corrupted or when rebuilding with a newer version o
<source>Return</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ElementTasks</name>
<message>
<source>Update Include Dependencies</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ExtPropertiesMView</name>
<message>
<source>Select Custom Configuration Folder</source>
<translation type="unfinished"></translation>
@@ -24936,9 +24927,6 @@ Useful if build directory is corrupted or when rebuilding with a newer version o
<source>&lt;font color=red&gt;Model file must be reloaded.&lt;/font&gt;</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelDocument</name>
<message>
<source>No model loaded. Cannot save.</source>
<translation type="unfinished"></translation>
@@ -24947,9 +24935,6 @@ Useful if build directory is corrupted or when rebuilding with a newer version o
<source>Could not open &quot;%1&quot; for reading: %2.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelEditor</name>
<message>
<source>&lt;html&gt;&lt;body style=&quot;color:#909090; font-size:14px&quot;&gt;&lt;div align=&apos;center&apos;&gt;&lt;div style=&quot;font-size:20px&quot;&gt;Open a diagram&lt;/div&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;hr/&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Double-click on diagram in model tree&lt;/div&gt;&lt;div style=&quot;margin-top: 5px&quot;&gt;&amp;bull; Select &quot;Open Diagram&quot; from package&apos;s context menu in model tree&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation>
@@ -25046,16 +25031,10 @@ Useful if build directory is corrupted or when rebuilding with a newer version o
<source>Swimlane</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::ModelsManager</name>
<message>
<source>Open Diagram</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ModelEditor::Internal::PxNodeController</name>
<message>
<source>Add Component %1</source>
<translation type="unfinished"></translation>
@@ -25144,7 +25123,7 @@ Error:
</message>
</context>
<context>
<name>Modeling</name>
<name>::ModelEditor</name>
<message>
<source>Modeling</source>
<translation type="unfinished"></translation>

View File

@@ -3,8 +3,9 @@
#include "actionhandler.h"
#include "modeleditor_constants.h"
#include "modeleditor.h"
#include "modeleditor_constants.h"
#include "modeleditortr.h"
#include <coreplugin/coreconstants.h>
#include <coreplugin/actionmanager/actionmanager.h>
@@ -120,26 +121,26 @@ void ActionHandler::createActions()
d->pasteAction = registerCommand(Core::Constants::PASTE, &ModelEditor::paste, d->context)->action();
Core::Command *removeCommand = registerCommand(
Constants::REMOVE_SELECTED_ELEMENTS, &ModelEditor::removeSelectedElements, d->context,
tr("&Remove"), QKeySequence::Delete);
Tr::tr("&Remove"), QKeySequence::Delete);
medit->addAction(removeCommand, Core::Constants::G_EDIT_COPYPASTE);
d->removeAction = removeCommand->action();
Core::Command *deleteCommand = registerCommand(
Constants::DELETE_SELECTED_ELEMENTS, &ModelEditor::deleteSelectedElements, d->context,
tr("&Delete"), QKeySequence("Ctrl+D"));
Tr::tr("&Delete"), QKeySequence("Ctrl+D"));
medit->addAction(deleteCommand, Core::Constants::G_EDIT_COPYPASTE);
d->deleteAction = deleteCommand->action();
d->selectAllAction = registerCommand(Core::Constants::SELECTALL, &ModelEditor::selectAll, d->context)->action();
Core::Command *exportDiagramCommand = registerCommand(
Constants::EXPORT_DIAGRAM, &ModelEditor::exportDiagram, d->context,
tr("Export Diagram..."));
Tr::tr("Export Diagram..."));
exportDiagramCommand->setAttribute(Core::Command::CA_Hide);
mfile->addAction(exportDiagramCommand, Core::Constants::G_FILE_EXPORT);
d->exportDiagramAction = exportDiagramCommand->action();
Core::Command *exportSelectedElementsCommand = registerCommand(
Constants::EXPORT_SELECTED_ELEMENTS, &ModelEditor::exportSelectedElements, d->context,
tr("Export Selected Elements..."));
Tr::tr("Export Selected Elements..."));
exportSelectedElementsCommand->setAttribute(Core::Command::CA_Hide);
mfile->addAction(exportSelectedElementsCommand, Core::Constants::G_FILE_EXPORT);
d->exportSelectedElementsAction = exportSelectedElementsCommand->action();
@@ -150,34 +151,34 @@ void ActionHandler::createActions()
d->openParentDiagramAction = registerCommand(
Constants::OPEN_PARENT_DIAGRAM, &ModelEditor::openParentDiagram, Core::Context(),
tr("Open Parent Diagram"), QKeySequence("Ctrl+Shift+P"),
Tr::tr("Open Parent Diagram"), QKeySequence("Ctrl+Shift+P"),
QIcon(":/modeleditor/up.png"))->action();
registerCommand(Constants::ACTION_ADD_PACKAGE, nullptr, Core::Context(), tr("Add Package"),
registerCommand(Constants::ACTION_ADD_PACKAGE, nullptr, Core::Context(), Tr::tr("Add Package"),
QKeySequence(), QIcon(":/modelinglib/48x48/package.png"));
registerCommand(Constants::ACTION_ADD_COMPONENT, nullptr, Core::Context(), tr("Add Component"),
registerCommand(Constants::ACTION_ADD_COMPONENT, nullptr, Core::Context(), Tr::tr("Add Component"),
QKeySequence(), QIcon(":/modelinglib/48x48/component.png"));
registerCommand(Constants::ACTION_ADD_CLASS, nullptr, Core::Context(), tr("Add Class"),
registerCommand(Constants::ACTION_ADD_CLASS, nullptr, Core::Context(), Tr::tr("Add Class"),
QKeySequence(), QIcon(":/modelinglib/48x48/class.png"));
registerCommand(Constants::ACTION_ADD_CANVAS_DIAGRAM, nullptr, Core::Context(), tr("Add Canvas Diagram"),
registerCommand(Constants::ACTION_ADD_CANVAS_DIAGRAM, nullptr, Core::Context(), Tr::tr("Add Canvas Diagram"),
QKeySequence(), QIcon(":/modelinglib/48x48/canvas-diagram.png"));
d->synchronizeBrowserAction = registerCommand(
Constants::ACTION_SYNC_BROWSER, nullptr, Core::Context(),
tr("Synchronize Browser and Diagram") + "<br><i><small>"
+ tr("Press && Hold for Options") + "</small></i>", QKeySequence(),
Tr::tr("Synchronize Browser and Diagram") + "<br><i><small>"
+ Tr::tr("Press && Hold for Options") + "</small></i>", QKeySequence(),
Utils::Icons::LINK_TOOLBAR.icon())->action();
d->synchronizeBrowserAction->setCheckable(true);
auto editPropertiesAction = new QAction(tr("Edit Element Properties"),
auto editPropertiesAction = new QAction(Tr::tr("Edit Element Properties"),
Core::ICore::dialogParent());
Core::Command *editPropertiesCommand = Core::ActionManager::registerAction(
editPropertiesAction, Constants::SHORTCUT_MODEL_EDITOR_EDIT_PROPERTIES, d->context);
editPropertiesCommand->setDefaultKeySequence(QKeySequence(tr("Shift+Return")));
editPropertiesCommand->setDefaultKeySequence(QKeySequence(Tr::tr("Shift+Return")));
connect(editPropertiesAction, &QAction::triggered, this, &ActionHandler::onEditProperties);
auto editItemAction = new QAction(tr("Edit Item on Diagram"), Core::ICore::dialogParent());
auto editItemAction = new QAction(Tr::tr("Edit Item on Diagram"), Core::ICore::dialogParent());
Core::Command *editItemCommand = Core::ActionManager::registerAction(
editItemAction, Constants::SHORTCUT_MODEL_EDITOR_EDIT_ITEM, d->context);
editItemCommand->setDefaultKeySequence(QKeySequence(tr("Return")));
editItemCommand->setDefaultKeySequence(QKeySequence(Tr::tr("Return")));
connect(editItemAction, &QAction::triggered, this, &ActionHandler::onEditItem);
}

View File

@@ -3,10 +3,11 @@
#include "elementtasks.h"
#include "componentviewcontroller.h"
#include "modeleditor_plugin.h"
#include "modeleditortr.h"
#include "modelsmanager.h"
#include "openelementvisitor.h"
#include "modeleditor_plugin.h"
#include "componentviewcontroller.h"
#include "qmt/diagram/delement.h"
#include "qmt/diagram/dpackage.h"
@@ -407,7 +408,7 @@ bool ElementTasks::extendContextMenu(const qmt::DElement *delement, const qmt::M
{
bool extended = false;
if (dynamic_cast<const qmt::DPackage *>(delement)) {
menu->addAction(new qmt::ContextMenuAction(tr("Update Include Dependencies"), "updateIncludeDependencies", menu));
menu->addAction(new qmt::ContextMenuAction(Tr::tr("Update Include Dependencies"), "updateIncludeDependencies", menu));
extended = true;
}
return extended;

View File

@@ -3,6 +3,8 @@
#include "extpropertiesmview.h"
#include "modeleditortr.h"
#include "qmt/model/mpackage.h"
#include "qmt/project/project.h"
#include "qmt/project_controller/projectcontroller.h"
@@ -37,14 +39,14 @@ void ExtPropertiesMView::visitMPackage(const qmt::MPackage *package)
qmt::Project *project = m_projectController->project();
if (!m_configPath) {
m_configPath = new Utils::PathChooser(m_topWidget);
m_configPath->setPromptDialogTitle(tr("Select Custom Configuration Folder"));
m_configPath->setPromptDialogTitle(Tr::tr("Select Custom Configuration Folder"));
m_configPath->setExpectedKind(Utils::PathChooser::ExistingDirectory);
m_configPath->setValidationFunction([=](Utils::FancyLineEdit *edit, QString *errorMessage) {
return edit->text().isEmpty() || m_configPath->defaultValidationFunction()(edit, errorMessage);
});
m_configPath->setInitialBrowsePathBackup(
Utils::FilePath::fromString(project->fileName()).absolutePath());
addRow(tr("Config path:"), m_configPath, "configpath");
addRow(Tr::tr("Config path:"), m_configPath, "configpath");
connect(m_configPath, &Utils::PathChooser::textChanged,
this, &ExtPropertiesMView::onConfigPathChanged);
}
@@ -88,7 +90,7 @@ void ExtPropertiesMView::onConfigPathChanged()
}
}
if (modified && m_configPathInfo)
m_configPathInfo->setText(tr("<font color=red>Model file must be reloaded.</font>"));
m_configPathInfo->setText(Tr::tr("<font color=red>Model file must be reloaded.</font>"));
}
} // namespace Interal

View File

@@ -3,10 +3,11 @@
#include "modeldocument.h"
#include "extdocumentcontroller.h"
#include "modeleditor_constants.h"
#include "modeleditor_plugin.h"
#include "modeleditortr.h"
#include "modelsmanager.h"
#include "extdocumentcontroller.h"
#include "qmt/config/configcontroller.h"
#include "qmt/infrastructure/ioexceptions.h"
@@ -57,7 +58,7 @@ Core::IDocument::OpenResult ModelDocument::open(QString *errorString,
bool ModelDocument::save(QString *errorString, const Utils::FilePath &filePath, bool autoSave)
{
if (!d->documentController) {
*errorString = tr("No model loaded. Cannot save.");
*errorString = Tr::tr("No model loaded. Cannot save.");
return false;
}
@@ -107,7 +108,7 @@ bool ModelDocument::reload(QString *errorString, Core::IDocument::ReloadFlag fla
*errorString = ex.errorMessage();
return false;
} catch (const qmt::Exception &ex) {
*errorString = tr("Could not open \"%1\" for reading: %2.").arg(filePath().toString()).arg(ex.errorMessage());
*errorString = Tr::tr("Could not open \"%1\" for reading: %2.").arg(filePath().toString()).arg(ex.errorMessage());
return false;
}
emit contentSet();
@@ -131,7 +132,7 @@ Core::IDocument::OpenResult ModelDocument::load(QString *errorString, const QStr
*errorString = ex.errorMessage();
return OpenResult::ReadError;
} catch (const qmt::Exception &ex) {
*errorString = tr("Could not open \"%1\" for reading: %2.").arg(fileName).arg(ex.errorMessage());
*errorString = Tr::tr("Could not open \"%1\" for reading: %2.").arg(fileName).arg(ex.errorMessage());
return OpenResult::CannotHandle;
}

View File

@@ -233,7 +233,7 @@ void ModelEditor::init()
d->noDiagramLabel = new QLabel(d->diagramStack);
const QString placeholderText =
tr("<html><body style=\"color:#909090; font-size:14px\">"
Tr::tr("<html><body style=\"color:#909090; font-size:14px\">"
"<div align='center'>"
"<div style=\"font-size:20px\">Open a diagram</div>"
"<table><tr><td>"
@@ -333,13 +333,13 @@ void ModelEditor::init()
syncToggleButton->setDefaultAction(d->actionHandler->synchronizeBrowserAction());
QMenu *syncMenu = new QMenu(syncToggleButton);
QActionGroup *syncGroup = new QActionGroup(syncMenu);
d->syncBrowserWithDiagramAction = syncMenu->addAction(tr("Synchronize Structure with Diagram"));
d->syncBrowserWithDiagramAction = syncMenu->addAction(Tr::tr("Synchronize Structure with Diagram"));
d->syncBrowserWithDiagramAction->setCheckable(true);
d->syncBrowserWithDiagramAction->setActionGroup(syncGroup);
d->syncDiagramWithBrowserAction = syncMenu->addAction(tr("Synchronize Diagram with Structure"));
d->syncDiagramWithBrowserAction = syncMenu->addAction(Tr::tr("Synchronize Diagram with Structure"));
d->syncDiagramWithBrowserAction->setCheckable(true);
d->syncDiagramWithBrowserAction->setActionGroup(syncGroup);
d->syncEachOtherAction = syncMenu->addAction(tr("Keep Synchronized"));
d->syncEachOtherAction = syncMenu->addAction(Tr::tr("Keep Synchronized"));
d->syncEachOtherAction->setCheckable(true);
d->syncEachOtherAction->setActionGroup(syncGroup);
syncToggleButton->setMenu(syncMenu);
@@ -573,13 +573,13 @@ void ModelEditor::exportToImage(bool selectedElements)
if (diagram) {
if (d->lastExportDirPath.isEmpty())
d->lastExportDirPath = d->document->filePath().toFileInfo().canonicalPath();
QString filter = tr("Images (*.png *.jpeg *.jpg *.tif *.tiff);;PDF (*.pdf)");
QString filter = Tr::tr("Images (*.png *.jpeg *.jpg *.tif *.tiff);;PDF (*.pdf)");
#ifndef QT_NO_SVG
filter += tr(";;SVG (*.svg)");
filter += Tr::tr(";;SVG (*.svg)");
#endif // QT_NO_SVG
QString fileName = FileUtils::getSaveFilePath(
nullptr,
selectedElements ? tr("Export Selected Elements") : tr("Export Diagram"),
selectedElements ? Tr::tr("Export Selected Elements") : Tr::tr("Export Diagram"),
FilePath::fromString(d->lastExportDirPath), filter).toString();
if (!fileName.isEmpty()) {
qmt::DocumentController *documentController = d->document->documentController();
@@ -602,11 +602,11 @@ void ModelEditor::exportToImage(bool selectedElements)
if (success)
d->lastExportDirPath = QFileInfo(fileName).canonicalPath();
else if (selectedElements)
QMessageBox::critical(Core::ICore::dialogParent(), tr("Exporting Selected Elements Failed"),
tr("Exporting the selected elements of the current diagram into file<br>\"%1\"<br>failed.").arg(fileName));
QMessageBox::critical(Core::ICore::dialogParent(), Tr::tr("Exporting Selected Elements Failed"),
Tr::tr("Exporting the selected elements of the current diagram into file<br>\"%1\"<br>failed.").arg(fileName));
else
QMessageBox::critical(Core::ICore::dialogParent(), tr("Exporting Diagram Failed"),
tr("Exporting the diagram into file<br>\"%1\"<br>failed.").arg(fileName));
QMessageBox::critical(Core::ICore::dialogParent(), Tr::tr("Exporting Diagram Failed"),
Tr::tr("Exporting the diagram into file<br>\"%1\"<br>failed.").arg(fileName));
}
}
}
@@ -1096,7 +1096,7 @@ void ModelEditor::initToolbars()
styleEngineElementType = qmt::StyleEngine::TypeSwimlane;
}
QIcon icon;
QString newElementName = tr("New %1").arg(tool.m_name);
QString newElementName = Tr::tr("New %1").arg(tool.m_name);
if (!tool.m_stereotype.isEmpty() && stereotypeIconElement != qmt::StereotypeIcon::ElementAny) {
const qmt::Style *style = documentController->styleController()->adaptStyle(styleEngineElementType);
icon = stereotypeController->createIcon(
@@ -1139,32 +1139,32 @@ void ModelEditor::initToolbars()
toolBars.insert(generalId, toolBar);
toolBarLayout->addWidget(
new DragTool(QIcon(":/modelinglib/48x48/package.png"),
tr("Package"), tr("New Package"), QLatin1String(qmt::ELEMENT_TYPE_PACKAGE),
Tr::tr("Package"), Tr::tr("New Package"), QLatin1String(qmt::ELEMENT_TYPE_PACKAGE),
QString(), toolBar));
toolBarLayout->addWidget(
new DragTool(QIcon(":/modelinglib/48x48/component.png"),
tr("Component"), tr("New Component"), QLatin1String(qmt::ELEMENT_TYPE_COMPONENT),
Tr::tr("Component"), Tr::tr("New Component"), QLatin1String(qmt::ELEMENT_TYPE_COMPONENT),
QString(), toolBar));
toolBarLayout->addWidget(
new DragTool(QIcon(":/modelinglib/48x48/class.png"),
tr("Class"), tr("New Class"), QLatin1String(qmt::ELEMENT_TYPE_CLASS),
Tr::tr("Class"), Tr::tr("New Class"), QLatin1String(qmt::ELEMENT_TYPE_CLASS),
QString(), toolBar));
toolBarLayout->addWidget(
new DragTool(QIcon(":/modelinglib/48x48/item.png"),
tr("Item"), tr("New Item"), QLatin1String(qmt::ELEMENT_TYPE_ITEM),
Tr::tr("Item"), Tr::tr("New Item"), QLatin1String(qmt::ELEMENT_TYPE_ITEM),
QString(), toolBar));
toolBarLayout->addWidget(Layouting::createHr(d->leftToolBox));
toolBarLayout->addWidget(
new DragTool(QIcon(":/modelinglib/48x48/annotation.png"),
tr("Annotation"), QString(), QLatin1String(qmt::ELEMENT_TYPE_ANNOTATION),
Tr::tr("Annotation"), QString(), QLatin1String(qmt::ELEMENT_TYPE_ANNOTATION),
QString(), toolBar));
toolBarLayout->addWidget(
new DragTool(QIcon(":/modelinglib/48x48/boundary.png"),
tr("Boundary"), QString(), QLatin1String(qmt::ELEMENT_TYPE_BOUNDARY),
Tr::tr("Boundary"), QString(), QLatin1String(qmt::ELEMENT_TYPE_BOUNDARY),
QString(), toolBar));
toolBarLayout->addWidget(
new DragTool(QIcon(":/modelinglib/48x48/swimlane.png"),
tr("Swimlane"), QString(), QLatin1String(qmt::ELEMENT_TYPE_SWIMLANE),
Tr::tr("Swimlane"), QString(), QLatin1String(qmt::ELEMENT_TYPE_SWIMLANE),
QString(), toolBar));
}

View File

@@ -6,8 +6,9 @@
#include "diagramsviewmanager.h"
#include "extdocumentcontroller.h"
#include "modeldocument.h"
#include "modeleditor_constants.h"
#include "modeleditor.h"
#include "modeleditor_constants.h"
#include "modeleditortr.h"
#include "modelindexer.h"
#include "pxnodecontroller.h"
@@ -97,7 +98,7 @@ ModelsManager::ModelsManager(QObject *parent)
ProjectExplorer::Constants::M_FOLDERCONTEXT);
folderContainer->insertGroup(ProjectExplorer::Constants::G_FOLDER_FILES,
Constants::EXPLORER_GROUP_MODELING);
d->openDiagramContextMenuItem = new QAction(tr("Open Diagram"), this);
d->openDiagramContextMenuItem = new QAction(Tr::tr("Open Diagram"), this);
Core::Command *cmd = Core::ActionManager::registerAction(
d->openDiagramContextMenuItem, Constants::ACTION_EXPLORER_OPEN_DIAGRAM,
projectTreeContext);

View File

@@ -3,11 +3,12 @@
#include "pxnodecontroller.h"
#include "pxnodeutilities.h"
#include "componentviewcontroller.h"
#include "classviewcontroller.h"
#include "componentviewcontroller.h"
#include "modeleditortr.h"
#include "modelutilities.h"
#include "packageviewcontroller.h"
#include "pxnodeutilities.h"
#include "qmt/model/mpackage.h"
#include "qmt/model/mclass.h"
@@ -134,7 +135,7 @@ void PxNodeController::addFileSystemEntry(const QString &filePath, int line, int
QFileInfo fileInfo(filePath);
if (fileInfo.exists() && fileInfo.isFile()) {
auto menu = new QMenu;
menu->addAction(new MenuAction(tr("Add Component %1").arg(elementName), elementName,
menu->addAction(new MenuAction(Tr::tr("Add Component %1").arg(elementName), elementName,
MenuAction::TYPE_ADD_COMPONENT, menu));
const QStringList classNames = Utils::toList(
d->classViewController->findClassDeclarations(
@@ -143,7 +144,7 @@ void PxNodeController::addFileSystemEntry(const QString &filePath, int line, int
menu->addSeparator();
int index = 0;
for (const QString &className : classNames) {
auto action = new MenuAction(tr("Add Class %1").arg(className), elementName,
auto action = new MenuAction(Tr::tr("Add Class %1").arg(className), elementName,
MenuAction::TYPE_ADD_CLASS, index, menu);
action->className = className;
menu->addAction(action);
@@ -161,15 +162,15 @@ void PxNodeController::addFileSystemEntry(const QString &filePath, int line, int
// ignore line and column
QString stereotype;
auto menu = new QMenu;
auto action = new MenuAction(tr("Add Package %1").arg(elementName), elementName,
auto action = new MenuAction(Tr::tr("Add Package %1").arg(elementName), elementName,
MenuAction::TYPE_ADD_PACKAGE, menu);
action->packageStereotype = stereotype;
menu->addAction(action);
action = new MenuAction(tr("Add Package and Diagram %1").arg(elementName), elementName,
action = new MenuAction(Tr::tr("Add Package and Diagram %1").arg(elementName), elementName,
MenuAction::TYPE_ADD_PACKAGE_AND_DIAGRAM, menu);
action->packageStereotype = stereotype;
menu->addAction(action);
action = new MenuAction(tr("Add Component Model"), elementName,
action = new MenuAction(Tr::tr("Add Component Model"), elementName,
MenuAction::TYPE_ADD_COMPONENT_MODEL, menu);
action->packageStereotype = stereotype;
menu->addAction(action);
@@ -300,7 +301,7 @@ void PxNodeController::onMenuActionTriggered(PxNodeController::MenuAction *actio
package->setName(action->elementName);
if (!action->packageStereotype.isEmpty())
package->setStereotypes({action->packageStereotype});
d->diagramSceneController->modelController()->undoController()->beginMergeSequence(tr("Create Component Model"));
d->diagramSceneController->modelController()->undoController()->beginMergeSequence(Tr::tr("Create Component Model"));
QStringList relativeElements = qmt::NameController::buildElementsPath(
d->pxnodeUtilities->calcRelativePath(filePath, d->anchorFolder), true);
if (qmt::MObject *existingObject = d->pxnodeUtilities->findSameObject(relativeElements, package)) {
@@ -321,7 +322,7 @@ void PxNodeController::onMenuActionTriggered(PxNodeController::MenuAction *actio
}
if (newObject) {
d->diagramSceneController->modelController()->undoController()->beginMergeSequence(tr("Drop Node"));
d->diagramSceneController->modelController()->undoController()->beginMergeSequence(Tr::tr("Drop Node"));
qmt::MObject *parentForDiagram = nullptr;
QStringList relativeElements = qmt::NameController::buildElementsPath(
d->pxnodeUtilities->calcRelativePath(filePath, d->anchorFolder),