diff --git a/share/qtcreator/translations/qtcreator_cs.ts b/share/qtcreator/translations/qtcreator_cs.ts index f3e863b7c3c..0ac02e17f39 100644 --- a/share/qtcreator/translations/qtcreator_cs.ts +++ b/share/qtcreator/translations/qtcreator_cs.ts @@ -30733,7 +30733,7 @@ Při GDB může být zadána posloupnost příkazů oddělená oddělovačem &ap - QmlProfiler::Internal::QmlProfilerAttachDialog + QmlProfiler Dialog Dialog @@ -37498,7 +37498,7 @@ Vytvořte, prosím, součástky pomocné knihovny pro výstup dat o ladění na - QmlProfiler::Internal::QmlProfilerEngine + QmlProfiler No executable file to launch. Nebyl zadán žádný spustitelný soubor ke spuštění. @@ -37542,102 +37542,18 @@ Použijte, prosím, místo toho tlačítko Zastavit. Ladicí program QML: Nepodařilo se vytvořit žádné spojení se součástkou ladění v procesu: %1 - - QML Profiler - Profiler QML - - - - QmlProfiler::Internal::QmlProfilerEventStatistics Source code not available Není dostupný žádný zdrojový kód - - <bytecode> - <bytecode> - - - - QmlProfiler::Internal::QmlProfilerEventsView - - Location - Umístění - - - Type - Typ - Time in Percent - Čas v procentu - - - Total Time - Celkový čas - - - Calls - Volání + Čas v procentu Time per Call Čas na volání - - Mean Time - Střední čas - - - Median Time - Střední hodnota času - - - Longest Time - Nejdelší čas - - - Shortest Time - Nejkratší čas - - - Details - Podrobnosti - - - Paint - Barva - - - Compile - Sestavit - - - Create - Vytvořit - - - Binding - Přiřazená klávesa - - - Signal - Signál - - - - QmlProfiler::Internal::QmlProfilerRunControlFactory - - QML Profiler - Profiler QML - - - - QmlProfiler::Internal::QmlProfilerTool - - QML Profiler - Profiler QML - The QML Profiler can be used to find performance bottlenecks in applications using QML. Profiler QML se dá použít k nalezení výkonnostních překážek v programech používajících QML. @@ -37660,26 +37576,10 @@ Please use the stop button instead. Program byl před nahráním profilovaných dat ukončen. Použijte, prosím, místo toho tlačítko Zastavit. - - Extended Event Statistics - Rozšířená statistika událostí - - - Limit Events Pane to Current Range - Omezit tabulku na nynější rozsah - - - Reset Events Pane - Vynulovat tabulku událostí - Reset Zoom Nastavit zvětšení znovu - - JavaScript - JavaScript - %1 s %1 s @@ -37692,20 +37592,6 @@ Použijte, prosím, místo toho tlačítko Zastavit. QML traces (*%1) Výpisy volání QML (*%1) - - Application finished before loading profiled data. - Please use the stop button instead. - Program byl před nahráním profilovaných dat ukončen. -Použijte, prosím, místo toho tlačítko Zastavit. - - - Copy Row - Kopírovat řádek - - - Copy Table - Kopírovat tabulku - The QML profiler requires Qt 4.7.4 or newer. The Qt version configured in your active build configuration is too old. @@ -37714,14 +37600,6 @@ Do you want to continue? Verze Qt, která je nastavena ve vašem současném nastavení sestavování, je příliš stará. Chcete pokračovat? - - Events - Události - - - Timeline - Časová přímka - Callees Volané funkce @@ -37750,23 +37628,10 @@ Chcete pokračovat? Elapsed: %1 s Uplynulo: %1 s - - Qt Creator - Qt Creator - - - Could not connect to the in-process QML profiler. -Do you want to retry? - Qt Creatoru se nepodařilo vytvořit žádné spojení s profilerem QML v procesu. -Má se to zkusit ještě jednou? - QML traces (%1) Stopy QML (%1) - - - QmlProfiler::Internal::RemoteLinuxQmlProfilerRunner Gathering ports failed: %1 Chyba při ověřování portů: %1 @@ -37799,9 +37664,6 @@ Má se to zkusit ještě jednou? Vzdálený proces byl ukončen. Vrácená hodnota %1. - - - QmlProfiler::Internal::TraceWindow Jump to previous event Jít na předchozí událost @@ -42692,7 +42554,7 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. - MainView + QmlProfiler Painting Vykreslení @@ -50428,11 +50290,7 @@ Chcete jej ukončit? - QmlProfiler::Internal::QmlProfilerClientManager - - Qt Creator - Qt Creator - + QmlProfiler Could not connect to the in-process QML profiler. Do you want to retry? @@ -50447,13 +50305,6 @@ Má se to zkusit ještě jednou? QML Profiler: connected and running Profiler QML: Připojujen a běží - - - QmlProfiler::Internal::QmlProfilerDataModel - - Source code not available - Není dostupný žádný zdrojový kód - Source code not available. Není dostupný žádný zdrojový kód. @@ -50530,9 +50381,6 @@ Má se to zkusit ještě jednou? Invalid version of QML Trace file. Neplatná verze souboru QML Trace. - - - QmlProfiler::Internal::QmlProfilerEventsWidget Trace information from the v8 JavaScript engine. Available only in Qt5 based applications Sledovat informace ze stroje v8 JavaScript. Dostupné pouze v programech založených na Qt5 @@ -50577,9 +50425,6 @@ Má se to zkusit ještě jednou? Reset Events Pane Vynulovat tabulku událostí - - - QmlProfiler::Internal::QmlProfilerStatisticsMainView Location Umístění @@ -50588,10 +50433,6 @@ Má se to zkusit ještě jednou? Type Typ - - Time in Percent - Čas v % - Total Time Celkový čas @@ -50692,21 +50533,10 @@ reference k prvkům v jiných souborech, smyčkách atd.) Create Vytvoření - - Binding - Vázání - Signal Signál - - JavaScript - JavaScript - - - - QmlProfiler::Internal::QmlProfilerEventsParentsAndChildrenView Part of binding loop Část smyčky vázaní @@ -50723,18 +50553,6 @@ reference k prvkům v jiných souborech, smyčkách atd.) Caller Volající - - Type - Typ - - - Total Time - Celkový čas - - - Calls - Volání - Callee Description Popis volané @@ -50743,16 +50561,13 @@ reference k prvkům v jiných souborech, smyčkách atd.) Caller Description Popis volající - - - QmlProfiler::Internal::QmlProfilerStateManager Switching to unknown state in %1:%2 Přepnutí do neznámého stavu v %1:%2 - QmlProfiler::Internal::QmlProfilerTraceView + ButtonsBar Jump to previous event Jít na předchozí událost @@ -50811,7 +50626,7 @@ reference k prvkům v jiných souborech, smyčkách atd.) - QmlProfiler::Internal::QmlProfilerViewManager + QmlProfiler Events Události @@ -50820,10 +50635,6 @@ reference k prvkům v jiných souborech, smyčkách atd.) Timeline Časová přímka - - JavaScript - JavaScript - QmakeProjectManager::SymbianIDevice @@ -53693,7 +53504,7 @@ o pravděpodobném URI. - QmlProfiler::Internal::QmlProfilerStateWidget + QmlProfiler Loading data Nahrávají se data @@ -61510,94 +61321,7 @@ Zavřete, prosím, všechny běžící instance své aplikace, předtím než za - QmlProfiler::Internal::LocalQmlProfilerRunner - - No executable file to launch. - Nebyl zadán žádný spustitelný soubor ke spuštění. - - - - QmlProfiler::Internal::QmlProfilerRunControl - - Qt Creator - Qt Creator - - - Could not connect to the in-process QML debugger: -%1 - %1 is detailed error message - Ladicí program QML: Nepodařilo se vytvořit žádné spojení se součástkou ladění v procesu: -%1 - - - QML Profiler - Profiler QML - - - - QmlProfiler::Internal::QmlProfilerEventsModelProxy - - <program> - <program> - - - Main Program - Hlavní program - - - - QmlProfiler::Internal::QmlProfilerEventParentsModelProxy - - <program> - <program> - - - Main Program - Hlavní program - - - - QmlProfiler::Internal::QmlProfilerEventChildrenModelProxy - - <program> - <program> - - - - QmlProfiler::Internal::QmlProfilerEventRelativesView - - Part of binding loop. - Část smyčky vázaní. - - - - QmlProfiler::Internal::QmlProfilerDataState - - Trying to set unknown state in events list. - Pokus o nastavení neznámého stavu v seznamu událostí. - - - - QmlProfiler::QmlProfilerModelManager - - Unexpected complete signal in data model. - Neočekávaný signál v datovém modelu. - - - Could not open %1 for writing. - Soubor '%1' se nepodařilo otevřít pro zápis. - - - Could not open %1 for reading. - Soubor %1 se nepodařilo otevřít pro čtení. - - - - QmlProfiler::Internal::PaintEventsModelProxy - - Painting - Vykreslení - + QmlProfiler Animations Animace @@ -61610,116 +61334,15 @@ Zavřete, prosím, všechny běžící instance své aplikace, předtím než za Render Thread Vlákno vykreslování - - µs - µs - - - ms - ms - - - s - s - - - - QmlProfiler::Internal::QmlProfilerPlugin - - QML Profiler - Profiler QML - QML Profiler (External) Profiler QML (externí) - - - QmlProfiler::Internal::QmlProfilerProcessedModel - - <bytecode> - <bytecode> - - - Source code not available. - Není dostupný žádný zdrojový kód. - - - - QmlProfiler::QmlProfilerSimpleModel - - Animations - Animace - - - - QmlProfiler::Internal::BasicTimelineModel - - µs - µs - - - ms - ms - - - s - s - - - - QmlProfiler::Internal::QmlProfilerFileReader Error while parsing trace data file: %1 Chyba při vyhodnocování souboru se sledováním dat %1 - - QmlProfiler::Internal::QV8ProfilerDataModel - - <program> - <program> - - - Main Program - Hlavní program - - - - QmlProfiler::Internal::QV8ProfilerEventsMainView - - µs - µs - - - ms - ms - - - s - s - - - Paint - Vykreslení - - - Compile - Překlad - - - Create - Vytvoření - - - Binding - Vázání - - - Signal - Signál - - QmlProjectManager::QmlProjectFileFormat @@ -63626,49 +63249,11 @@ Tyto soubory jsou zachovány. - QmlProfiler::QmlProfilerBaseModel - - µs - µs - - - ms - ms - - - s - s - - - - QmlProfiler::QmlProfilerDataModel - - <bytecode> - <bytecode> - - - Source code not available. - Není dostupný žádný zdrojový kód. - + QmlProfiler anonymous function Anonymní funkce - - Animations - Animace - - - - QmlProfiler::QV8ProfilerDataModel - - <program> - <program> - - - Main Program - Hlavní program - Qnx diff --git a/share/qtcreator/translations/qtcreator_da.ts b/share/qtcreator/translations/qtcreator_da.ts index fd66da8720f..8f238b0a012 100644 --- a/share/qtcreator/translations/qtcreator_da.ts +++ b/share/qtcreator/translations/qtcreator_da.ts @@ -10855,7 +10855,7 @@ Flag: %3 - DebugMessagesModel + QmlProfiler Debug Message Fejlretmeddelelse @@ -21008,7 +21008,7 @@ Fejl: %5 - MainView + QmlProfiler JavaScript JavaScript @@ -32885,7 +32885,7 @@ QML-redigeringen skal kende til en sandsynlig URI. - QmlProfiler::Internal::DebugMessagesModel + QmlProfiler Unknown Message %1 Ukendt meddelelse %1 @@ -32902,24 +32902,6 @@ QML-redigeringen skal kende til en sandsynlig URI. Location Placering - - - QmlProfiler::Internal::DebugMessagesModelTest - - Timestamp - Tidsstempel - - - Message - Meddelelse - - - Location - Placering - - - - QmlProfiler::Internal::FlameGraphModel Could not re-read events from temporary trace file: %1 Kunne ikke genlæse begivenheder fra midlertidig spor-fil: %1 @@ -32932,25 +32914,14 @@ QML-redigeringen skal kende til en sandsynlig URI. Create Opret - - Binding - Binding - Signal Signal - - JavaScript - JavaScript - Source code not available Kildekode ikke tilgængelig - - - QmlProfiler::Internal::FlameGraphView Flame Graph Flammegraf @@ -32959,9 +32930,6 @@ QML-redigeringen skal kende til en sandsynlig URI. Show Full Range Vis fulde område - - - QmlProfiler::Internal::InputEventsModel Mouse Events Muse-begivenheder @@ -32970,10 +32938,6 @@ QML-redigeringen skal kende til en sandsynlig URI. Keyboard Events Tastatur-begivenheder - - Timestamp - Tidsstempel - Key Press Tast tryk @@ -33046,104 +33010,10 @@ QML-redigeringen skal kende til en sandsynlig URI. Unknown Ukendt - - - QmlProfiler::Internal::InputEventsModelTest - - Mouse Events - Muse-begivenheder - - - Keyboard Events - Tastatur-begivenheder - - - Timestamp - Tidsstempel - - - Key Press - Tast tryk - - - Key - Tast - - - Modifiers - Modifere - - - Key Release - Tast slip - - - Keyboard Event - Tastatur-begivenhed - - - Mouse Press - Mus tryk - - - Button - Knap - - - Result - Resultat - - - Mouse Release - Mus slip - - - Mouse Move - Mus flyt - - - X - X - - - Y - Y - - - Double Click - Dobbeltklik - - - Mouse Wheel - Musehjul - - - Angle X - Vinkel X - - - Angle Y - Vinkel Y - - - Mouse Event - Muse-begivenhed - - - Unknown - Ukendt - - - - QmlProfiler::Internal::MemoryUsageModel Memory Allocation Hukommelsesallokering - - Memory Usage - Hukommelsesforbrug - Memory Allocated Hukommelse allokeret @@ -33195,79 +33065,6 @@ QML-redigeringen skal kende til en sandsynlig URI. Type Type - - Location - Placering - - - - QmlProfiler::Internal::MemoryUsageModelTest - - Memory Allocation - Hukommelsesallokering - - - Memory Usage - Hukommelsesforbrug - - - Memory Allocated - Hukommelse allokeret - - - Total - Sammenlagt - - - %1 byte(s) - - %1 byte - %1 byte - - - - Allocated - Allokeret - - - Allocations - Allokationer - - - Type - Type - - - Heap Allocation - Heap allokering - - - Location - Placering - - - Deallocated - Afallokeret - - - Deallocations - Afallokeringer - - - Large Item Allocation - Stor post allokering - - - Memory Freed - Hukommelse frigivet - - - Heap Usage - Heap forbrug - - - - QmlProfiler::Internal::PixmapCacheModel Cache Size Mellemlagerstørrelse @@ -33280,10 +33077,6 @@ QML-redigeringen skal kende til en sandsynlig URI. Image Loaded Billede indlæst - - Result - Resultat - Load Error Indlæsningsfejl @@ -33304,56 +33097,6 @@ QML-redigeringen skal kende til en sandsynlig URI. Height Højde - - - QmlProfiler::Internal::PixmapCacheModelTest - - Image Cached - Billede mellemlagret - - - Cache Size - Mellemlagerstørrelse - - - Image Loaded - Billede indlæst - - - Duration - Varighed - - - File - Fil - - - Width - Bredde - - - Height - Højde - - - - QmlProfiler::Internal::QmlProfilerAnimationsModel - - Animations - Animationer - - - GUI Thread - GUI-tråd - - - Render Thread - Renderingstråd - - - Duration - Varighed - Framerate Billedhastighed @@ -33362,9 +33105,6 @@ QML-redigeringen skal kende til en sandsynlig URI. Context Kontekst - - - QmlProfiler::Internal::QmlProfilerAttachDialog QML Profiler QML-profilering @@ -33397,9 +33137,6 @@ QML-redigeringen skal kende til en sandsynlig URI. Kit: Kit: - - - QmlProfiler::Internal::QmlProfilerConfigWidget Flush data while profiling: Tøm data under profilering: @@ -33430,35 +33167,14 @@ itself takes time. og programmets hukommelsesforbrug. Det forvrænger profilen eftersom selve tømningen tager tid. - - - QmlProfiler::Internal::QmlProfilerOptionsPage - - QML Profiler - QML-profilering - Analyzer Analysator - - - QmlProfiler::Internal::QmlProfilerRangeModel - - Duration - Varighed - Details Detaljer - - Location - Placering - - - - QmlProfiler::Internal::QmlProfilerStateWidget Profiling application: %n events @@ -33492,9 +33208,6 @@ tager tid. Waiting for data Venter på data - - - QmlProfiler::Internal::QmlProfilerStatisticsView Statistics Statistik @@ -33511,13 +33224,6 @@ tager tid. Extended Event Statistics Udvidet begivenhedsstatisik - - Show Full Range - Vis fulde område - - - - QmlProfiler::Internal::QmlProfilerTool Load QML Trace Indlæs QML-spor @@ -33538,10 +33244,6 @@ tager tid. Hide or show event categories. Skjul eller vis begivenhedskategorier. - - QML Profiler - QML-profilering - QML traces (*%1 *%2) QML-spor (*%1 *%2) @@ -33608,9 +33310,6 @@ Do you want to save the data first? Start af ny profileringssession vil forkaste de forrige data, inklusiv noter som ikke er gemt. Vil du gemme dataene først? - - - QmlProfiler::Internal::QmlProfilerTraceView Timeline Tidslinje @@ -33627,31 +33326,14 @@ Vil du gemme dataene først? Reset Zoom Nulstil zoom - - - QmlProfiler::Internal::QmlProfilerViewManager - - QML Profiler - QML-profilering - - - - QmlProfiler::Internal::SceneGraphTimelineModel Stage Stage - - Duration - Varighed - Glyphs Glyffer - - - QmlProfiler::QmlProfilerModelManager Failed to replay QML events from stash file. Kunne ikke genafspille QML-begivenheder fra stash-fil. @@ -33668,37 +33350,6 @@ Vil du gemme dataene først? Read past end in temporary trace file. Læs udover slutningen af midlertidig spor-fil. - - - QmlProfiler::QmlProfilerStatisticsModel - - Painting - Maler - - - Compiling - Kompilerer - - - Creating - Opretter - - - Binding - Binding - - - Handling Signal - Håndterer signal - - - JavaScript - JavaScript - - - Could not re-read events from temporary trace file: %1 - Kunne ikke genlæse begivenheder fra midlertidig spor-fil: %1 - Main program Hovedprogram @@ -33707,26 +33358,10 @@ Vil du gemme dataene først? +%1 in recursive calls +%1 i rekursive kald - - <bytecode> - <bytekode> - - - Source code not available - Kildekode ikke tilgængelig - Calls Kald - - Details - Detaljer - - - Location - Placering - Longest Time Længste tid @@ -33755,45 +33390,14 @@ Vil du gemme dataene først? Total Time Sammenlagt tid - - Type - Type - Median Time Mediantid - - - QmlProfilerFlameGraphView - - Total Time - Sammenlagt tid - - - Calls - Kald - - - Details - Detaljer - - - Mean Time - Mean-tid - In Percent I procent - - Location - Placering - - - Allocations - Allokationer - Memory Hukommelse @@ -33806,9 +33410,6 @@ Vil du gemme dataene først? others andre - - - QmlProfilerRunConfiguration QML Profiler Settings QML-profileringsindstillinger @@ -44577,34 +44178,19 @@ Vil du overskrive dem? - QmlProfiler::Internal::QmlProfilerActions + QmlProfiler The QML Profiler can be used to find performance bottlenecks in applications using QML. QML-profileringen kan bruges til at finde ydelsesflaskehalse i programmer som bruger QML. - - QML Profiler - QML-profilering - QML Profiler (Attach to Waiting Application) QML-profilering (tilkobl til ventende program) - - Load QML Trace - Indlæs QML-spor - - - Save QML Trace - Gem QML-spor - QML Profiler Options QML-profilering-valgmuligheder - - - QmlProfilerEventStorage Cannot open temporary trace file to store events. Kan ikke åbne midlertidig spor-fil til at lagre begivenheder. @@ -44621,13 +44207,6 @@ Vil du overskrive dem? Could not re-open temporary trace file. Kunne ikke genåbne midlertidig spor-fil. - - Read past end in temporary trace file. - Læs udover slutningen af midlertidig spor-fil. - - - - QmlProfiler::QmlProfilerStatisticsRelativesModel Main Program Hovedprogram @@ -44636,14 +44215,6 @@ Vil du overskrive dem? called recursively kaldt rekursivt - - <bytecode> - <bytekode> - - - Source code not available - Kildekode ikke tilgængelig - Callee Modtager @@ -44652,18 +44223,6 @@ Vil du overskrive dem? Caller Kalder - - Type - Type - - - Total Time - Sammenlagt tid - - - Calls - Kald - Callee Description Modtager-beskrivelse @@ -44672,9 +44231,6 @@ Vil du overskrive dem? Caller Description Kalder-beskrivelse - - - QmlProfiler::Internal::QmlProfilerTraceFile Error while parsing trace data file: %1 Fejl under parsing af spordata-fil: %1 diff --git a/share/qtcreator/translations/qtcreator_de.ts b/share/qtcreator/translations/qtcreator_de.ts index 7096bfcb714..438b8df6fe0 100644 --- a/share/qtcreator/translations/qtcreator_de.ts +++ b/share/qtcreator/translations/qtcreator_de.ts @@ -14418,7 +14418,7 @@ Gibt an, wie sich die Rücktaste bezüglich Einrückung verhält. - QmlProfiler::Internal::QmlProfilerAttachDialog + QmlProfiler QML Profiler QML-Profiler @@ -15374,11 +15374,7 @@ Bei vollständiger Cache-Simulation werden weitere Ereigniszähler aktiviert: - QmlProfiler::Internal::QmlProfilerTool - - QML Profiler - QML-Profiler - + QmlProfiler Load QML Trace QML-Trace laden @@ -16364,7 +16360,7 @@ Wenn falsch, wird das Zielobjekt sofort zur aktuellen Mouseposition bewegt. - MainView + QmlProfiler Memory Usage Speicherverbrauch @@ -16397,10 +16393,6 @@ Wenn falsch, wird das Zielobjekt sofort zur aktuellen Mouseposition bewegt.Binding Binding - - Handling Signal - Signal wird behandelt - Input Events Eingabeereignisse @@ -19823,7 +19815,7 @@ gehören nicht zu den verifizierten Remotes in %3. Anderes Verzeichnis angeben?< - QmlProfiler::Internal::QmlProfilerStateWidget + QmlProfiler Profiling application: %n events @@ -19857,9 +19849,6 @@ gehören nicht zu den verifizierten Remotes in %3. Anderes Verzeichnis angeben?< Waiting for data Warte auf Daten - - - QmlProfiler::Internal::QmlProfilerTraceView Timeline Zeitleiste @@ -19877,13 +19866,6 @@ gehören nicht zu den verifizierten Remotes in %3. Anderes Verzeichnis angeben?< Vergrößerung zurücksetzen - - QmlProfiler::Internal::QmlProfilerViewManager - - QML Profiler - QML-Profiler - - Qnx @@ -23687,7 +23669,7 @@ Bitte schließen Sie alle laufenden Instanzen Ihrer Anwendung vor dem Erstellen. - QmlProfiler::QmlProfilerModelManager + QmlProfiler Failed to replay QML events from stash file. QML-Ereignisse aus der Stash-Datei konnten nicht wieder abgespielt werden. @@ -31588,7 +31570,7 @@ konnte dem Projekt "%2" nicht hinzugefügt werden. - QmlProfiler::Internal::QmlProfilerConfigWidget + QmlProfiler Flush data while profiling: Daten während Profiling übertragen: @@ -31619,10 +31601,6 @@ itself takes time. Daten und den Speicherverbrauch der Applikation. Es stört das Profiling, weil das Senden selbst auch Zeit benötigt. - - QML Profiler - QML-Profiler - Analyzer Analyzer @@ -33391,19 +33369,7 @@ Das Setzen von Haltepunkten anhand von Dateinamen und Zeilennummern könnte fehl - QmlProfiler::Internal::QmlProfilerAnimationsModel - - Animations - Animationen - - - GUI Thread - GUI-Thread - - - Render Thread - Render-Thread - + QmlProfiler Duration Dauer @@ -33416,13 +33382,6 @@ Das Setzen von Haltepunkten anhand von Dateinamen und Zeilennummern könnte fehl Context Kontext - - - QmlProfiler::Internal::QmlProfilerRangeModel - - Duration - Dauer - Details Details @@ -33431,9 +33390,6 @@ Das Setzen von Haltepunkten anhand von Dateinamen und Zeilennummern könnte fehl Location Ort - - - QmlProfilerRunConfiguration QML Profiler Settings Einstellungen des QML-Profilers @@ -35497,7 +35453,7 @@ Sie werden erhalten. - QmlProfiler::Internal::QmlProfilerStatisticsView + QmlProfiler Statistics Statistik @@ -35518,9 +35474,6 @@ Sie werden erhalten. Show Full Range Ganzen Bereich anzeigen - - - DebugMessagesModel Debug Message Debugnachricht @@ -36454,7 +36407,7 @@ Siehe auch die Einstellungen für Google Test. - QmlProfiler::Internal::DebugMessagesModel + QmlProfiler Unknown Message %1 Unbekannte Nachricht %1 @@ -36467,13 +36420,6 @@ Siehe auch die Einstellungen für Google Test. Message Nachricht - - Location - Ort - - - - QmlProfiler::Internal::FlameGraphModel Could not re-read events from temporary trace file: %1 Ereignisse konnten nicht erneut aus der temporären Trace-Datei eingelesen werden: %1 @@ -36486,40 +36432,22 @@ Siehe auch die Einstellungen für Google Test. Create Erzeugung - - Binding - Binding - Signal Signal - - JavaScript - JavaScript - Source code not available Kein Quelltext verfügbar - - - QmlProfiler::Internal::FlameGraphView Flame Graph Flame Graph - - Show Full Range - Ganzen Bereich anzeigen - Reset Flame Graph Flame Graph zurücksetzen - - - QmlProfiler::Internal::InputEventsModel Mouse Events Mausereignisse @@ -36528,10 +36456,6 @@ Siehe auch die Einstellungen für Google Test. Keyboard Events Tastaturereignisse - - Timestamp - Zeitstempel - Key Press Tastendruck @@ -36604,17 +36528,10 @@ Siehe auch die Einstellungen für Google Test. Unknown Unbekannt - - - QmlProfiler::Internal::MemoryUsageModel Memory Allocation Speicherallokation - - Memory Usage - Speicherverbrauch - Memory Allocated Speicher allokiert @@ -36666,13 +36583,6 @@ Siehe auch die Einstellungen für Google Test. Type Typ - - Location - Ort - - - - QmlProfiler::Internal::PixmapCacheModel Cache Size Puffergröße @@ -36685,18 +36595,10 @@ Siehe auch die Einstellungen für Google Test. Image Loaded Bild geladen - - Result - Ergebnis - Load Error Ladefehler - - Duration - Dauer - File Datei @@ -36709,221 +36611,15 @@ Siehe auch die Einstellungen für Google Test. Height Höhe - - - QmlProfiler::Internal::SceneGraphTimelineModel Stage Phase - - Duration - Dauer - Glyphs Glyphen - - QmlProfiler::Internal::DebugMessagesModelTest - - Timestamp - Zeitstempel - - - Message - Nachricht - - - Location - Ort - - - - QmlProfiler::Internal::InputEventsModelTest - - Mouse Events - Mausereignisse - - - Keyboard Events - Tastaturereignisse - - - Timestamp - Zeitstempel - - - Key Press - Tastendruck - - - Key - Taste - - - Modifiers - Modifizierer - - - Key Release - Tastenfreigabe - - - Keyboard Event - Tastaturereignis - - - Mouse Press - Mausdruck - - - Button - Maustaste - - - Result - Ergebnis - - - Mouse Release - Mausfreigabe - - - Mouse Move - Mausbewegung - - - X - X - - - Y - Y - - - Double Click - Doppelklick - - - Mouse Wheel - Mausrad - - - Angle X - X-Winkel - - - Angle Y - Y-Winkel - - - Mouse Event - Mausereignis - - - Unknown - Unbekannt - - - - QmlProfiler::Internal::MemoryUsageModelTest - - Memory Allocation - Speicherallokation - - - Memory Usage - Speicherverbrauch - - - Memory Allocated - Speicher allokiert - - - Total - Summe - - - %n byte(s) - - Ein Byte - %n Bytes - - - - Allocated - Allokiert - - - Allocations - Allokationen - - - Type - Typ - - - Heap Allocation - Heap-Allokation - - - Location - Ort - - - Deallocated - Freigegeben - - - Deallocations - Freigaben - - - Large Item Allocation - Allokation großer Elemente - - - Memory Freed - Speicher freigegeben - - - Heap Usage - Heap-Verbrauch - - - - QmlProfiler::Internal::PixmapCacheModelTest - - Image Cached - Bild gepuffert - - - Image Loaded - Bild geladen - - - Duration - Dauer - - - Cache Size - Puffergröße - - - File - Datei - - - Width - Breite - - - Height - Höhe - - Qnx @@ -37430,7 +37126,7 @@ Fehler: %5 - QmlProfilerFlameGraphView + QmlProfiler Total Time Gesamtdauer @@ -37439,26 +37135,10 @@ Fehler: %5 Calls Aufrufe - - Details - Details - - - Mean Time - Durchschnittsdauer - In Percent In Prozent - - Location - Ort - - - Allocations - Allokationen - Memory Speicher @@ -39120,35 +38800,11 @@ Bitte aktualisieren Sie Ihr Kit (%3) oder wählen Sie eine mkspec für qmake, di - QmlProfiler::QmlProfilerStatisticsModel - - Painting - Zeichnen - - - Compiling - Kompilieren - - - Creating - Erstellen - - - Binding - Binding - + QmlProfiler Handling Signal Signalverarbeitung - - JavaScript - JavaScript - - - Could not re-read events from temporary trace file: %1 - Ereignisse konnten nicht erneut aus der temporären Trace-Datei eingelesen werden: %1 - Main program Hauptprogramm @@ -39157,26 +38813,6 @@ Bitte aktualisieren Sie Ihr Kit (%3) oder wählen Sie eine mkspec für qmake, di +%1 in recursive calls +%1 in rekursiven Aufrufen - - <bytecode> - <bytecode> - - - Source code not available - Kein Quellcode verfügbar - - - Calls - Aufrufe - - - Details - Details - - - Location - Ort - Longest Time Längste Dauer @@ -39201,14 +38837,6 @@ Bitte aktualisieren Sie Ihr Kit (%3) oder wählen Sie eine mkspec für qmake, di Time in Percent Dauer in Prozent - - Total Time - Gesamtdauer - - - Type - Typ - Median Time Mediandauer @@ -42002,34 +41630,19 @@ Was soll Qt Creator tun? - QmlProfiler::Internal::QmlProfilerActions + QmlProfiler The QML Profiler can be used to find performance bottlenecks in applications using QML. Der QML-Profiler kann zum Auffinden geschwindigkeitsrelevanter Engpässe in QML-Anwendungen verwendet werden. - - QML Profiler - QML-Profiler - QML Profiler (Attach to Waiting Application) QML-Profiler (mit wartender Anwendung verbinden) - - Load QML Trace - QML-Trace laden - - - Save QML Trace - QML-Trace speichern - QML Profiler Options Einstellungen des QML-Profilers - - - QmlProfilerEventStorage Cannot open temporary trace file to store events. Eine temporäre Trace-Datei kann nicht geöffnet werden um Ereignisse zu speichern. @@ -42054,13 +41667,6 @@ Was soll Qt Creator tun? Could not re-open temporary trace file. Eine temporäre Trace-Datei konnte nicht neu geöffnet werden. - - Read past end in temporary trace file. - Über das Ende der temporären Trace-Datei hinaus gelesen. - - - - QmlProfiler::QmlProfilerStatisticsRelativesModel Main Program Hauptprogramm @@ -42069,14 +41675,6 @@ Was soll Qt Creator tun? called recursively rekursiv aufgerufen - - <bytecode> - <bytecode> - - - Source code not available - Kein Quellcode verfügbar - Callee Aufgerufene Funktion @@ -42085,18 +41683,6 @@ Was soll Qt Creator tun? Caller Aufrufende Funktion - - Type - Typ - - - Total Time - Gesamtdauer - - - Calls - Aufrufe - Callee Description Bescheibung der aufgerufenen Funktion @@ -42105,9 +41691,6 @@ Was soll Qt Creator tun? Caller Description Beschreibung der aufrufenden Funktion - - - QmlProfiler::Internal::QmlProfilerTraceFile Error while parsing trace data file: %1 Fehler beim Auswerten der Trace-Datei: %1 diff --git a/share/qtcreator/translations/qtcreator_fr.ts b/share/qtcreator/translations/qtcreator_fr.ts index 0e64d081dc1..3e4c41f51f4 100644 --- a/share/qtcreator/translations/qtcreator_fr.ts +++ b/share/qtcreator/translations/qtcreator_fr.ts @@ -36308,12 +36308,6 @@ Do you want to retry? Error message shown after 'Could not connect ... debugger:" L'application n'est pas configurée pour du débogage QML/JS. - - Could not connect to the in-process QML debugger: -%1 - %1 is detailed error message - Impossible de se connecter au processus de débogage QML : %1 - Starting %1 %2 Démarrer %1 %2 @@ -38719,7 +38713,7 @@ if (a && - QmlProfiler::Internal::QmlProfilerAttachDialog + QmlProfiler Dialog Boîte de dialogue @@ -40744,20 +40738,12 @@ These files are preserved. - QmlProfiler::Internal::QmlProfilerEngine - - QML Profiler - Profileur QML - + QmlProfiler Application finished before loading profiled data. Please use the stop button instead. L'application s'est terminée avant le chargement des données de profilage. Veuillez utiliser le bouton d'arrêt à la place. - - No executable file to launch. - Pas de fichier d'exécutable à lancer. - The port seems to be in use. Error message shown after 'Could not connect ... debugger:" @@ -40778,36 +40764,10 @@ These files are preserved. %1 is detailed error message Impossible de se connecter au processus de débogage QML : %1 - - - QmlProfiler::Internal::QmlProfilerEventStatistics Source code not available Code source non disponible - - <bytecode> - <bytecode> - - - - QmlProfiler::Internal::QmlProfilerEventsView - - Location - Emplacement - - - Type - Type - - - Time in Percent - Temps en pourcent - - - Total Time - Temps total - Calls Appels @@ -40816,60 +40776,6 @@ These files are preserved. Time per Call Temps par appel - - Mean Time - Temps moyen - - - Median Time - Temps médian - - - Longest Time - Plus long temps - - - Shortest Time - Plus court temps - - - Details - Détails - - - Paint - Peindre - - - Compile - Compiler - - - Create - Créer - - - Binding - Lier - - - Signal - Signal - - - - QmlProfiler::Internal::QmlProfilerRunControlFactory - - QML Profiler - Profileur QML - - - - QmlProfiler::Internal::QmlProfilerTool - - QML Profiler - Profileur QML - The QML Profiler can be used to find performance bottlenecks in applications using QML. Le profileur QML peut être utilisé pour trouver les goulots d'étranglement des applications QML. @@ -40896,30 +40802,6 @@ Please use the stop button instead. L'application s'est terminée avant le chargement des données de profilage. Veuillez utiliser le bouton d'arrêt à la place. - - Copy Row - Copier la ligne - - - Copy Table - Copier la table - - - Extended Event Statistics - Statistiques d'événements étendues - - - Limit Events Pane to Current Range - Limiter le panneau d'événements à la portée actuelle - - - Reset Events Pane - Réinitialisé le panneau d'événements - - - Reset Zoom - Réinitialiser le zoom - The QML profiler requires Qt 4.7.4 or newer. The Qt version configured in your active build configuration is too old. @@ -40928,18 +40810,6 @@ Do you want to continue? La version de Qt configurée dans votre configuration de compilation active est trop ancienne. Voulez vous continuer ? - - Events - Événements - - - Timeline - Ligne du temps - - - JavaScript - JavaScript - %1 s %1 s @@ -40980,10 +40850,6 @@ Voulez vous continuer ? Elapsed: %1 s Écoulé : %1 s - - Qt Creator - Qt Creator - Could not connect to the in-process QML profiler. Do you want to retry? @@ -40998,9 +40864,6 @@ Souhaitez-vous réessayer ? Detach Détacher - - - QmlProfiler::Internal::RemoteLinuxQmlProfilerRunner Gathering ports failed: %1 Échec de la récupération des ports : %1 @@ -41031,7 +40894,7 @@ Souhaitez-vous réessayer ? - QmlProfiler::Internal::TraceWindow + Tracing Jump to previous event Sauter à l'événement précédent @@ -43052,7 +42915,7 @@ Pour compiler l'observateur QML, allez à la page des versions de Qt, séle - MainView + QmlProfiler Painting Dessin @@ -43065,10 +42928,6 @@ Pour compiler l'observateur QML, allez à la page des versions de Qt, séle Creating Création - - Binding - Liaison - Handling Signal Gestion du signal @@ -47438,7 +47297,7 @@ Voulez-vous la tuer ? - QmlProfiler::Internal::QmlProfilerEventsWidget + QmlProfiler Trace information from the v8 JavaScript engine. Available only in Qt5 based applications Suivre les informations à partir du moteur JavaScript V8. Disponible uniquement dans les applications basées sur Qt5 @@ -47467,9 +47326,6 @@ Voulez-vous la tuer ? Reset Events Pane Réinitialiser le panneau d'événements - - - QmlProfiler::Internal::QmlProfilerStatisticsMainView Location Emplacement @@ -47496,10 +47352,6 @@ Voulez-vous la tuer ? Contexte de "self" ? Temps interne - - Calls - Appels - Mean Time Temps moyen @@ -47562,10 +47414,6 @@ des références à des éléments dans d'autres fichiers, des boucles, etc Paint Peindre - - Compile - Compiler - Create Créer @@ -47579,9 +47427,6 @@ des références à des éléments dans d'autres fichiers, des boucles, etc Signal Signal - - - QmlProfiler::Internal::QmlProfilerEventsParentsAndChildrenView Part of binding loop Partie de boucle de liaison @@ -47598,18 +47443,6 @@ des références à des éléments dans d'autres fichiers, des boucles, etc Caller Appelant - - Type - Type - - - Total Time - Temps total - - - Calls - Appels - Callee Description Description de l'appelé @@ -52220,24 +52053,7 @@ pour donner un indice à Qt Creator à propos d'une URI probable. - QmlProfiler::Internal::QmlProfilerClientManager - - Qt Creator - Qt Creator - - - Could not connect to the in-process QML profiler. -Do you want to retry? - Impossible de connecter au profileur QML du processus. -Souhaitez-vous réessayer ? - - - - QmlProfiler::Internal::QmlProfilerDataModel - - Source code not available - Code source non disponible - + QmlProfiler Source code not available. Code source non disponible. @@ -52322,9 +52138,6 @@ Souhaitez-vous réessayer ? Trying to set unknown state in events list Tentative de définition d'état inconnu dans la liste d'évènements - - - QmlProfiler::Internal::QmlProfilerStateWidget Loading data Chargement des données @@ -52341,9 +52154,6 @@ Souhaitez-vous réessayer ? Application stopped before loading all data L'application a stoppé avant le chargement de toutes les données - - - QmlProfiler::Internal::QmlProfilerTraceView Jump to previous event Sauter à l'événement précédent @@ -52364,21 +52174,10 @@ Souhaitez-vous réessayer ? View event information on mouseover Afficher les informations sur l'événement lorsque du survol de la souris - - Limit Events Pane to Current Range - Limiter le panneau d'événements à la portée actuelle - - - Reset Events Pane - Réinitialiser le panneau d'événements - Reset Zoom Réinitialiser le zoom - - - QmlProfiler::Internal::QmlProfilerViewManager Events Événements @@ -59579,203 +59378,27 @@ Veuillez fermer toutes les instances de votre application en cours d'exécu - QmlProfiler::Internal::LocalQmlProfilerRunner + QmlProfiler No executable file to launch. Pas de fichier d'exécutable à lancer. - - - QmlProfiler::Internal::QmlProfilerRunControl - - Qt Creator - Qt Creator - - - Could not connect to the in-process QML debugger: -%1 - %1 is detailed error message - Impossible de se connecter au processus de débogage QML : -%1 - - - QML Profiler - Profileur QML - - - - QmlProfiler::Internal::QmlProfilerEventsModelProxy - - <program> - <programme> - - - Main Program - Programme principal - - - - QmlProfiler::Internal::QmlProfilerEventParentsModelProxy - - <program> - <programme> - - - Main Program - Programme principal - - - - QmlProfiler::Internal::QmlProfilerEventChildrenModelProxy - - <program> - <programme> - - - - QmlProfiler::Internal::QmlProfilerEventRelativesView - - Part of binding loop. - Partie d'une boucle de liaison. - - - - QmlProfiler::Internal::QmlProfilerDataState - - Trying to set unknown state in events list. - Tentative de définir un état inconnu dans la liste d'évènements. - - - - QmlProfiler::QmlProfilerModelManager - - Unexpected complete signal in data model. - Signal complet inattendu dans le modèle de données. - - - Could not open %1 for writing. - Impossible d'ouvrir %1 en écriture. - - - Could not open %1 for reading. - Impossible d'ouvrir %1 en lecture. - - - - QmlProfiler::Internal::PaintEventsModelProxy - - Painting - Dessin - - - µs - µs - - - ms - ms - - - s - s - - - - QmlProfiler::Internal::QmlProfilerPlugin - - QML Profiler - Profileur QML - QML Profiler (External) QML Profiler (externe) - - - QmlProfiler::Internal::QmlProfilerProcessedModel - - <bytecode> - <bytecode> - - - Source code not available. - Code source non disponible. - - - - QmlProfiler::QmlProfilerSimpleModel Animations Animations - - - QmlProfiler::Internal::BasicTimelineModel - - µs - µs - - - ms - ms - - - s - s - - - - QmlProfiler::Internal::QmlProfilerFileReader Error while parsing trace data file: %1 Erreur pendant l'analyse le fichier de données de traçage : %1 - - - QmlProfiler::Internal::QV8ProfilerDataModel - - <program> - <programme> - - - Main Program - Programme principal - - - - QmlProfiler::Internal::QV8ProfilerEventsMainView - - µs - µs - - - ms - ms - - - s - s - - - Paint - Peindre - Compile Compilation - - Create - Créer - - - Binding - Liaison - - - Signal - Signal - QmlProjectManager::QmlProjectFileFormat diff --git a/share/qtcreator/translations/qtcreator_hr.ts b/share/qtcreator/translations/qtcreator_hr.ts index f32b8a9b3e8..0c4a4ee38c4 100644 --- a/share/qtcreator/translations/qtcreator_hr.ts +++ b/share/qtcreator/translations/qtcreator_hr.ts @@ -7677,7 +7677,7 @@ Greška: %5 - QmlProfilerFlameGraphView + QmlProfiler Total Time Cjelokupno vrijeme @@ -7718,9 +7718,6 @@ Greška: %5 others ostali - - - QmlProfiler::Internal::QmlProfilerAttachDialog QML Profiler QML Profiler @@ -7753,9 +7750,6 @@ Greška: %5 Kit: Komplet: - - - QmlProfiler::Internal::QmlProfilerConfigWidget Flush data while profiling: @@ -28976,7 +28970,7 @@ Rok upotrebe: %3 - QmlProfilerEventStorage + QmlProfiler Failed to reset temporary trace file. Neuspjelo resetiranje privremene trace datoteke. @@ -35721,7 +35715,7 @@ ID oznake moraju započeti malim slovom. - DebugMessagesModel + QmlProfiler Debug Message @@ -35742,9 +35736,6 @@ ID oznake moraju započeti malim slovom. Info Message - - - QmlProfiler::Internal::DebugMessagesModel Unknown Message %1 Nepoznata poruka %1 @@ -35757,13 +35748,6 @@ ID oznake moraju započeti malim slovom. Message Poruka - - Location - Mjesto - - - - QmlProfiler::Internal::FlameGraphModel Could not re-read events from temporary trace file: %1 @@ -35792,9 +35776,6 @@ ID oznake moraju započeti malim slovom. Source code not available - - - QmlProfiler::Internal::FlameGraphView Flame Graph @@ -35807,9 +35788,6 @@ ID oznake moraju započeti malim slovom. Reset Flame Graph - - - QmlProfiler::Internal::InputEventsModel Mouse Events @@ -35818,10 +35796,6 @@ ID oznake moraju započeti malim slovom. Keyboard Events - - Timestamp - - Key Press @@ -35894,9 +35868,6 @@ ID oznake moraju započeti malim slovom. Unknown Nepoznato - - - QmlProfiler::Internal::MemoryUsageModel Memory Allocation Dodijeljivanje memorije @@ -35929,10 +35900,6 @@ ID oznake moraju započeti malim slovom. Allocated Dodijeljena - - Allocations - Dodijeljivanja - Deallocated @@ -35957,13 +35924,6 @@ ID oznake moraju započeti malim slovom. Type Vrsta - - Location - Mjesto - - - - QmlProfiler::Internal::PixmapCacheModel Cache Size @@ -35976,18 +35936,10 @@ ID oznake moraju započeti malim slovom. Image Loaded - - Result - Rezultat - Load Error - - Duration - Trajanje - File Datoteka @@ -36000,17 +35952,10 @@ ID oznake moraju započeti malim slovom. Height Visina - - - QmlProfiler::Internal::QmlProfilerActions The QML Profiler can be used to find performance bottlenecks in applications using QML. - - QML Profiler - - QML Profiler (Attach to Waiting Application) @@ -36027,9 +35972,6 @@ ID oznake moraju započeti malim slovom. QML Profiler Options - - - QmlProfiler::Internal::QmlProfilerAnimationsModel Animations @@ -36042,10 +35984,6 @@ ID oznake moraju započeti malim slovom. Render Thread - - Duration - Trajanje - Framerate @@ -36054,17 +35992,6 @@ ID oznake moraju započeti malim slovom. Context Sadržaj - - - MainView - - JavaScript - JavaScript - - - Memory Usage - - Pixmap Cache @@ -36073,10 +36000,6 @@ ID oznake moraju započeti malim slovom. Scene Graph - - Animations - - Painting @@ -36089,10 +36012,6 @@ ID oznake moraju započeti malim slovom. Creating - - Binding - - Handling Signal @@ -36105,14 +36024,6 @@ ID oznake moraju započeti malim slovom. Debug Messages - - GUI Thread - - - - Render Thread - - Render Thread Details @@ -36193,9 +36104,6 @@ ID oznake moraju započeti malim slovom. Texture Delete - - - QmlProfiler::QmlProfilerModelManager Failed to replay QML events from stash file. @@ -36208,46 +36116,18 @@ ID oznake moraju započeti malim slovom. anonymous function - - Read past end in temporary trace file. - - - - - QmlProfiler::Internal::QmlProfilerOptionsPage - - QML Profiler - - Analyzer - - - QmlProfiler::Internal::QmlProfilerRangeModel Duration Trajanje - - Details - Detalji - - - Location - Mjesto - - - - QmlProfilerRunConfiguration QML Profiler Settings - - - QmlProfiler::Internal::QmlProfilerStateWidget Profiling application: %n events @@ -36284,37 +36164,6 @@ ID oznake moraju započeti malim slovom. Waiting for data - - - QmlProfiler::QmlProfilerStatisticsModel - - Painting - - - - Compiling - - - - Creating - - - - Binding - - - - Handling Signal - - - - JavaScript - JavaScript - - - Could not re-read events from temporary trace file: %1 - - Main program @@ -36323,34 +36172,10 @@ ID oznake moraju započeti malim slovom. +%1 in recursive calls - - <bytecode> - - - - Source code not available - - - - Calls - Pozivi - - - Details - Detalji - - - Location - Mjesto - Longest Time - - Mean Time - Prosječno vrijeme - Self Time @@ -36367,21 +36192,10 @@ ID oznake moraju započeti malim slovom. Time in Percent - - Total Time - Cjelokupno vrijeme - - - Type - Vrsta - Median Time - - - QmlProfiler::QmlProfilerStatisticsRelativesModel Main Program @@ -36390,14 +36204,6 @@ ID oznake moraju započeti malim slovom. called recursively - - <bytecode> - - - - Source code not available - - Callee @@ -36406,18 +36212,6 @@ ID oznake moraju započeti malim slovom. Caller - - Type - Vrsta - - - Total Time - Cjelokupno vrijeme - - - Calls - Pozivi - Callee Description @@ -36426,9 +36220,6 @@ ID oznake moraju započeti malim slovom. Caller Description - - - QmlProfiler::Internal::QmlProfilerStatisticsView Statistics Statistika @@ -36445,13 +36236,6 @@ ID oznake moraju započeti malim slovom. Extended Event Statistics - - Show Full Range - - - - - QmlProfiler::Internal::QmlProfilerTool Discard data @@ -36501,14 +36285,6 @@ Do you want to retry and wait %2 s? Elapsed: %1 - - QML Profiler - - - - Save QML Trace - - QML traces (*%1 *%2) @@ -36517,10 +36293,6 @@ Do you want to retry and wait %2 s? Saving Trace Data - - Load QML Trace - - Loading Trace Data @@ -36539,9 +36311,6 @@ Please use the stop button instead. Do you want to save the data first? - - - QmlProfiler::Internal::QmlProfilerTraceFile Error while parsing trace data file: %1 @@ -36575,9 +36344,6 @@ Do you want to save the data first? Saving failed. - - - QmlProfiler::Internal::QmlProfilerTraceView Timeline @@ -36594,229 +36360,15 @@ Saving failed. Reset Zoom Resetiraj zumiranje - - - QmlProfiler::Internal::QmlProfilerViewManager - - QML Profiler - - - - - QmlProfiler::Internal::SceneGraphTimelineModel Stage - - Duration - Trajanje - Glyphs - - QmlProfiler::Internal::DebugMessagesModelTest - - Timestamp - - - - Message - Poruka - - - Location - Mjesto - - - - QmlProfiler::Internal::InputEventsModelTest - - Mouse Events - - - - Keyboard Events - - - - Timestamp - - - - Key Press - - - - Key - Ključ - - - Modifiers - - - - Key Release - - - - Keyboard Event - - - - Mouse Press - - - - Button - Gumb - - - Result - Rezultat - - - Mouse Release - - - - Mouse Move - - - - X - X - - - Y - Y - - - Double Click - - - - Mouse Wheel - - - - Angle X - - - - Angle Y - - - - Mouse Event - - - - Unknown - Nepoznato - - - - QmlProfiler::Internal::MemoryUsageModelTest - - Memory Allocation - - - - Memory Usage - - - - Memory Allocated - - - - Total - - - - %n byte(s) - - - - - - - - Allocated - - - - Allocations - - - - Type - Vrsta - - - Heap Allocation - - - - Location - Mjesto - - - Deallocated - - - - Deallocations - - - - Large Item Allocation - - - - Memory Freed - - - - Heap Usage - - - - - QmlProfiler::Internal::PixmapCacheModelTest - - Image Cached - - - - Cache Size - - - - Image Loaded - - - - Duration - Trajanje - - - File - Datoteka - - - Width - Širina - - - Height - Visina - - QmlProjectManager::QmlProjectFileFormat diff --git a/share/qtcreator/translations/qtcreator_ja.ts b/share/qtcreator/translations/qtcreator_ja.ts index 49ae3802b4c..3ae2208bb75 100644 --- a/share/qtcreator/translations/qtcreator_ja.ts +++ b/share/qtcreator/translations/qtcreator_ja.ts @@ -5976,7 +5976,7 @@ Add, modify, and remove document filters, which determine the documentation set - QmlProfiler::Internal::QmlProfilerAttachDialog + QmlProfiler QML Profiler QML プロファイラ @@ -29976,7 +29976,7 @@ the QML editor know about a likely URI. - QmlProfiler::Internal::QmlProfilerClientManager + QmlProfiler Qt Creator Qt Creator @@ -29999,9 +29999,6 @@ Do you want to retry? Failed to connect! 接続に失敗しました! - - - QmlProfiler::QmlProfilerModelManager Could not open %1 for writing. 書き込み用に %1 を開けません。 @@ -30034,9 +30031,6 @@ Do you want to retry? anonymous function 無名関数 - - - QmlProfiler::Internal::QmlProfilerTool The QML Profiler can be used to find performance bottlenecks in applications using QML. QML プロファイラは、QML を使っているアプリケーションの性能のボトルネックを探すのに使用する事ができます。 @@ -30075,10 +30069,6 @@ Do you want to retry and wait %2 s? Failed to connect. 接続に失敗しました。 - - QML Profiler - QML プロファイラ - A QML Profiler analysis is still in progress. QML プロファイラは既に実行されています。 @@ -30115,14 +30105,6 @@ Do you want to retry and wait %2 s? Elapsed: %1 経過: %1 - - Saving Trace Data - トレースデータの保存中 - - - Loading Trace Data - トレースデータの読込中 - You are about to discard the profiling data, including unsaved notes. Do you want to continue? 未保存のメモを含むプロファイリングデータを破棄しようとしています。継続しますか? @@ -30139,9 +30121,6 @@ Do you want to save the data first? 新しいプロファイリングセッションを開始すると未保存のメモを含む古いデータは破棄されます。 始めにデータを保存しますか? - - - QmlProfiler::Internal::QmlProfilerStateWidget Profiling application: %1 events アプリケーションのプロファイリング: %1 イベント @@ -30192,9 +30171,6 @@ Do you want to save the data first? Waiting for data データ待機中 - - - MainView Memory Usage メモリ使用量 @@ -30331,9 +30307,6 @@ Do you want to save the data first? Texture Delete テクスチャを削除する - - - QmlProfiler::Internal::QmlProfilerFileReader Error while parsing trace data file: %1 トレースデータファイルの解析中のエラー: %1 @@ -30354,9 +30327,6 @@ Do you want to save the data first? Corrupt data before position %1. 位置 %1 以前のデータが壊れています。 - - - QmlProfiler::Internal::QmlProfilerTraceView Timeline タイムライン @@ -30374,17 +30344,6 @@ Do you want to save the data first? 縮尺を戻す - - QmlProfiler::Internal::QmlProfilerViewManager - - Timeline - タイムライン - - - QML Profiler - QML プロファイラ - - QmlProjectManager::QmlProjectFileFormat @@ -35434,19 +35393,7 @@ kill しますか? - QmlProfiler::QmlProfilerDataModel - - <bytecode> - <バイトコード> - - - GUI Thread - GUI スレッド - - - anonymous function - 無名関数 - + QmlProfiler µs µs @@ -37547,7 +37494,7 @@ Android 5 ではローカルの Qt ライブラリをデプロイできません - QmlProfiler::Internal::QmlProfilerConfigWidget + QmlProfiler Flush data while profiling: プロファイル中にデータを送信する: @@ -37578,10 +37525,6 @@ the program. この手法では複数のプロファイル結果を一つのトレース結果にまとめることができます。 例えば単一のプログラム内で複数の QML エンジンを逐次実行する場合などに有効です。 - - QML Profiler - QML プロファイラ - Analyzer 解析 @@ -44539,19 +44482,7 @@ Android パッケージソースディレクトリのファイルはビルドデ - QmlProfiler::Internal::QmlProfilerAnimationsModel - - Animations - アニメーション - - - GUI Thread - GUI スレッド - - - Render Thread - 描画スレッド - + QmlProfiler Duration 持続時間 @@ -44564,24 +44495,6 @@ Android パッケージソースディレクトリのファイルはビルドデ Context コンテキスト - - - QmlProfiler::Internal::QmlProfilerOptionsPage - - QML Profiler - QML プロファイラ - - - Analyzer - 解析 - - - - QmlProfiler::Internal::QmlProfilerRangeModel - - Duration - 持続時間 - Details 詳細 @@ -44590,20 +44503,10 @@ Android パッケージソースディレクトリのファイルはビルドデ Location パス - - - QmlProfilerRunConfiguration QML Profiler Settings QML プロファイラの設定 - - - QmlProfiler::QmlProfilerRunControl - - Qt Creator - Qt Creator - Could not connect to the in-process QML debugger: %1 @@ -44611,16 +44514,10 @@ Android パッケージソースディレクトリのファイルはビルドデ プロセス内 QML デバッガに接続できませんでした。 %1 - - - QmlProfiler::Internal::QmlProfilerRunControlFactory No executable file to launch. 起動する実行ファイルがありません。 - - - QmlProfiler::Internal::QmlProfilerStatisticsMainView <program> <プログラム> @@ -44633,10 +44530,6 @@ Android パッケージソースディレクトリのファイルはビルドデ Binding loop detected. バインディングループが検出されました。 - - <bytecode> - <バイトコード> - Source code not available ソースコードが見つかりません @@ -44653,21 +44546,10 @@ Android パッケージソースディレクトリのファイルはビルドデ Create 生成 - - Binding - バインディング - Signal シグナル - - JavaScript - JavaScript - - - - QmlProfiler::Internal::QmlProfilerStatisticsView Statistics 統計 @@ -44688,24 +44570,10 @@ Android パッケージソースディレクトリのファイルはビルドデ Show Full Range 全体を表示 - - - QmlProfiler::Internal::QmlProfilerStatisticsRelativesView - - <bytecode> - <バイトコード> - - - Source code not available - ソースコードが見つかりません - Part of binding loop. バインディングループの一部です。 - - - DebugMessagesModel Debug Message デバッグメッセージ @@ -44726,9 +44594,6 @@ Android パッケージソースディレクトリのファイルはビルドデ Info Message インフォメーション - - - QmlProfiler::Internal::DebugMessagesModel Unknown Message %1 未知のメッセージ %1 @@ -44741,28 +44606,6 @@ Android パッケージソースディレクトリのファイルはビルドデ Message メッセージ - - Location - パス - - - - QmlProfiler::Internal::DebugMessagesModelTest - - Timestamp - タイムスタンプ - - - Message - メッセージ - - - Location - パス - - - - QmlProfiler::Internal::InputEventsModelTest Mouse Events マウスイベント @@ -44771,10 +44614,6 @@ Android パッケージソースディレクトリのファイルはビルドデ Keyboard Events キーボードイベント - - Timestamp - タイムスタンプ - Key Press キープレス @@ -44843,17 +44682,10 @@ Android パッケージソースディレクトリのファイルはビルドデ Mouse Event マウスイベント - - - QmlProfiler::Internal::MemoryUsageModelTest Memory Allocation メモリ確保 - - Memory Usage - メモリ使用 - Memory Allocated 確保済みメモリ @@ -44882,10 +44714,6 @@ Android パッケージソースディレクトリのファイルはビルドデ Heap Allocation ヒープメモリ - - Location - パス - Deallocated 解放済み @@ -44906,9 +44734,6 @@ Android パッケージソースディレクトリのファイルはビルドデ Heap Usage ヒープ使用 - - - QmlProfiler::Internal::PixmapCacheModelTest Image Cached キャッシュ済み画像 @@ -44917,10 +44742,6 @@ Android パッケージソースディレクトリのファイルはビルドデ Image Loaded 読込済み画像 - - Duration - 持続時間 - Cache Size キャッシュサイズ @@ -44937,17 +44758,10 @@ Android パッケージソースディレクトリのファイルはビルドデ Height 高さ - - - QmlProfiler::Internal::SceneGraphTimelineModel Stage ステージ - - Duration - 持続時間 - Glyphs グリフ @@ -46444,42 +46258,11 @@ Output: - QmlProfiler::Internal::FlameGraphModel + QmlProfiler Could not re-read events from temporary trace file: %1 一時的なトレース・ファイルからイベントを再読み取りできませんでした: %1 - - Compile - コンパイル - - - Create - 生成 - - - Binding - バインディング - - - Signal - シグナル - - - JavaScript - JavaScript - - - Source code not available - ソースコードが見つかりません - - - - QmlProfiler::Internal::FlameGraphView - - Show Full Range - 全体を表示 - Flame Graph フレームグラフ @@ -46488,195 +46271,14 @@ Output: Reset Flame Graph フレームグラフをリセットする - - - QmlProfiler::Internal::InputEventsModel - - Mouse Events - マウスイベント - - - Keyboard Events - キーボードイベント - - - Timestamp - タイムスタンプ - - - Key Press - キープレス - - - Key Release - キーリリース - - - Key - キー - - - Modifiers - 修飾キー - - - Double Click - ダブルクリック - - - Mouse Press - マウスプレス - - - Mouse Release - マウスリリース - - - Button - ボタン - - - Result - 結果 - - - Mouse Move - マウス移動 - - - X - X - - - Y - Y - - - Mouse Wheel - マウスホイール - - - Angle X - X軸角度 - - - Angle Y - Y軸角度 - - - Keyboard Event - キーボードイベント - - - Mouse Event - マウスイベント - Unknown 不明 - - - QmlProfiler::Internal::MemoryUsageModel - - Memory Allocation - メモリ確保 - - - Memory Usage - メモリ使用 - - - Memory Allocated - 確保済みメモリ - - - Memory Freed - 解放済みメモリ - - - Total - トータル - - - %1 bytes - %1 バイト - - - Allocated - 確保済み - - - Allocations - 確保 - - - Deallocated - 解放済み - - - Deallocations - 解放 - - - Heap Allocation - ヒープメモリ - - - Large Item Allocation - 巨大アイテム用メモリ - - - Heap Usage - ヒープ使用 - - - Type - - - - Location - パス - - - - QmlProfiler::Internal::PixmapCacheModel - - Cache Size - キャッシュサイズ - - - Image Cached - キャッシュ済み画像 - - - Image Loaded - 読込済み画像 - - - Result - 結果 - Load Error 読込エラー - - Duration - 持続時間 - - - File - ファイル - - - Width - - - - Height - 高さ - AddImport @@ -47907,7 +47509,7 @@ Output: - QmlProfilerFlameGraphView + QmlProfiler Total Time 合計時間 @@ -47916,10 +47518,6 @@ Output: Calls 呼出回数 - - Details - 詳細 - Mean Time 平均時間 @@ -47928,14 +47526,6 @@ Output: In Percent 割合 - - Location - パス - - - Allocations - 確保 - Various Events 各種イベント @@ -55013,101 +54603,7 @@ Stepping into the module or setting breakpoints by file and line is expected to - QmlProfiler::Internal::QmlProfilerActions - - The QML Profiler can be used to find performance bottlenecks in applications using QML. - QML プロファイラは、QML を使っているアプリケーションの性能のボトルネックを探すのに使用する事ができます。 - - - QML Profiler - QML プロファイラ - - - Load QML Trace - QML トレースを読み込む - - - Save QML Trace - QML トレースを保存 - - - QML Profiler Options - QML プロファイラオプション - - - - QmlProfiler::QmlProfilerStatisticsModel - - Painting - 描画 - - - Compiling - コンパイル - - - Creating - 生成 - - - Binding - バインディング - - - Handling Signal - ハンドリング中のシグナル - - - JavaScript - JavaScript - - - Could not re-read events from temporary trace file: %1 - 一時的なトレース・ファイルからイベントを再読み取りできませんでした: %1 - - - <bytecode> - <バイトコード> - - - Source code not available - ソースコードが見つかりません - - - Calls - 呼出回数 - - - Details - 詳細 - - - Location - パス - - - Mean Time - 平均時間 - - - Total Time - 合計時間 - - - - QmlProfiler::QmlProfilerStatisticsRelativesModel - - Main Program - メインプログラム - - - <bytecode> - <バイトコード> - - - Source code not available - ソースコードが見つかりません - + QmlProfiler Callee 呼び出し先 @@ -55116,37 +54612,6 @@ Stepping into the module or setting breakpoints by file and line is expected to Caller 呼び出し元 - - Total Time - 合計時間 - - - Calls - 呼出回数 - - - - QmlProfiler::Internal::QmlProfilerTraceFile - - Error while parsing trace data file: %1 - トレースデータファイルの解析中のエラー: %1 - - - Invalid magic: %1 - 無効なマジック: %1 - - - Unknown data stream version: %1 - 未知のデータストリームバージョン: %1 - - - Invalid type index %1 - 無効なタイプインデックス: %1 - - - Corrupt data before position %1. - 位置 %1 以前のデータが壊れています。 - QmlProjectManager::QmlMainFileAspect diff --git a/share/qtcreator/translations/qtcreator_pl.ts b/share/qtcreator/translations/qtcreator_pl.ts index 2aaee2fc266..ebeeb81cce4 100644 --- a/share/qtcreator/translations/qtcreator_pl.ts +++ b/share/qtcreator/translations/qtcreator_pl.ts @@ -16659,7 +16659,7 @@ if (a && - QmlProfiler::Internal::QmlProfilerAttachDialog + QmlProfiler QML Profiler Profiler QML @@ -17711,11 +17711,7 @@ With cache simulation, further event counters are enabled: - QmlProfiler::Internal::QmlProfilerTool - - QML Profiler - Profiler QML - + QmlProfiler The QML Profiler can be used to find performance bottlenecks in applications using QML. Profiler QML może być używany do znajdowania wąskich gardeł w wydajności aplikacji QML. @@ -18452,7 +18448,7 @@ Dodatkowo, przetestowane zostanie połączenie z urządzeniem. - MainView + QmlProfiler Memory Usage Zajętość pamięci @@ -22683,7 +22679,7 @@ poinstruuje Qt Creatora o URI. - QmlProfiler::Internal::QmlProfilerClientManager + QmlProfiler Debug connection opened Otwarto połączenie debugowe @@ -22696,9 +22692,6 @@ poinstruuje Qt Creatora o URI. Debug connection failed Błąd połączenia debugowego - - - QmlProfiler::Internal::QmlProfilerStateWidget Profiling application: %n events @@ -22743,9 +22736,6 @@ poinstruuje Qt Creatora o URI. Waiting for data Oczekiwanie na dane - - - QmlProfiler::Internal::QmlProfilerTraceView Timeline Oś czasu @@ -22763,13 +22753,6 @@ poinstruuje Qt Creatora o URI. Zresetuj powiększenie - - QmlProfiler::Internal::QmlProfilerViewManager - - QML Profiler - Profiler QML - - Qnx @@ -28474,7 +28457,7 @@ Proszę zamknąć wszystkie instancje tej aplikacji przed uruchomieniem budowani - QmlProfiler::QmlProfilerModelManager + QmlProfiler Cannot open temporary trace file to store events. @@ -28487,10 +28470,6 @@ Proszę zamknąć wszystkie instancje tej aplikacji przed uruchomieniem budowani anonymous function anonimowa funkcja - - GUI Thread - Wątek GUI - Could not open %1 for writing. Nie można otworzyć "%1" do zapisu. @@ -28515,9 +28494,6 @@ Proszę zamknąć wszystkie instancje tej aplikacji przed uruchomieniem budowani Could not re-read events from temporary trace file. The trace data is lost. - - - QmlProfiler::Internal::QmlProfilerFileReader Error while parsing trace data file: %1 Błąd parsowania pliku z danymi stosu: %1 @@ -35228,19 +35204,7 @@ Ustawianie pułapek w liniach plików może się nie udać. - QmlProfiler::Internal::QmlProfilerAnimationsModel - - Animations - Animacje - - - GUI Thread - Wątek GUI - - - Render Thread - Wątek renderingu - + QmlProfiler Duration Czas trwania @@ -35253,13 +35217,6 @@ Ustawianie pułapek w liniach plików może się nie udać. Context Kontekst - - - QmlProfiler::Internal::QmlProfilerRangeModel - - Duration - Czas trwania - Details Szczegóły @@ -36087,7 +36044,7 @@ Ustawianie pułapek w liniach plików może się nie udać. - QmlProfiler::Internal::QmlProfilerConfigWidget + QmlProfiler Flush data while profiling: Przepychaj dane podczas profilowania: @@ -37174,18 +37131,11 @@ Te pliki są zabezpieczone. - QmlProfiler::Internal::QmlProfilerOptionsPage - - QML Profiler - Profiler QML - + QmlProfiler Analyzer Analizator - - - QmlProfilerRunConfiguration QML Profiler Settings Ustawienia profilera QML @@ -38630,7 +38580,7 @@ Czy nadpisać go? - QmlProfiler::Internal::QmlProfilerStatisticsMainView + QmlProfiler <program> <program> @@ -38639,45 +38589,14 @@ Czy nadpisać go? Main Program Główny program - - <bytecode> - <kod bajtowy> - Source code not available Kod źródłowy nie jest dostępny - - Painting - Rysowanie - - - Compiling - Kompilacja - - - Creating - Tworzenie - - - Handling Signal - Obsługa sygnałów - - - Binding - Wiązanie - +%1 in recursive calls +%1 w wywołaniach rekurencyjnych - - JavaScript - JavaScript - - - - QmlProfiler::Internal::QmlProfilerStatisticsView Statistics Statystyki @@ -38698,24 +38617,10 @@ Czy nadpisać go? Show Full Range Pokaż pełen zakres - - - QmlProfiler::Internal::QmlProfilerStatisticsRelativesView - - <bytecode> - <kod bajtowy> - - - Source code not available - Kod źródłowy nie jest dostępny - called recursively wywołany rekurencyjnie - - - DebugMessagesModel Debug Message Komunikat debugowy @@ -39746,7 +39651,7 @@ w ścieżce. - QmlProfiler::Internal::DebugMessagesModel + QmlProfiler Unknown Message %1 Nieznany komunikat %1 @@ -39759,13 +39664,6 @@ w ścieżce. Message Komunikat - - Location - Położenie - - - - QmlProfiler::Internal::FlameGraphModel Could not re-read events from temporary trace file. @@ -39778,36 +39676,14 @@ w ścieżce. Create Tworzenie - - Binding - Wiązanie - Signal Sygnalizowanie - - JavaScript - JavaScript - - - Source code not available - Kod źródłowy nie jest dostępny - - - - QmlProfiler::Internal::FlameGraphView Flame Graph - - Show Full Range - Pokaż pełen zakres - - - - QmlProfiler::Internal::InputEventsModel Mouse Events Zdarzenia myszy @@ -39816,10 +39692,6 @@ w ścieżce. Keyboard Events Zdarzenia klawiatury - - Timestamp - Znacznik czasu - Key Press Naciśnięcie klawisza @@ -39888,17 +39760,10 @@ w ścieżce. Mouse Event Zdarzenie myszy - - - QmlProfiler::Internal::MemoryUsageModel Memory Allocation Alokacja pamięci - - Memory Usage - Zajętość pamięci - Memory Allocated Przydzielona pamięć @@ -39955,13 +39820,6 @@ w ścieżce. Type Typ - - Location - Położenie - - - - QmlProfiler::Internal::PixmapCacheModel Cache Size Rozmiar cache'a @@ -39974,18 +39832,10 @@ w ścieżce. Image Loaded Załadowano plik graficzny - - Result - Wynik - Load Error Błąd ładowania - - Duration - Czas trwania - File Plik @@ -39998,214 +39848,15 @@ w ścieżce. Height Wysokość - - - QmlProfiler::Internal::SceneGraphTimelineModel Stage - - Duration - Czas trwania - Glyphs Glify - - QmlProfiler::Internal::DebugMessagesModelTest - - Timestamp - Znacznik czasu - - - Message - Komunikat - - - Location - Położenie - - - - QmlProfiler::Internal::InputEventsModelTest - - Mouse Events - Zdarzenia myszy - - - Keyboard Events - Zdarzenia klawiatury - - - Timestamp - Znacznik czasu - - - Key Press - Naciśnięcie klawisza - - - Key - Klucz - - - Modifiers - Modyfikatory - - - Key Release - Zwolnienie klawisza - - - Keyboard Event - Zdarzenie klawiatury - - - Mouse Press - Naciśnięcie przycisku myszy - - - Button - Przycisk - - - Result - Wynik - - - Mouse Release - Zwolnienie przycisku myszy - - - Mouse Move - Ruch myszy - - - X - X - - - Y - Y - - - Double Click - Podwójne kliknięcie - - - Mouse Wheel - Obrót kółka myszy - - - Angle X - Kąt X - - - Angle Y - Kąt Y - - - Mouse Event - Zdarzenie myszy - - - - QmlProfiler::Internal::MemoryUsageModelTest - - Memory Allocation - Alokacja pamięci - - - Memory Usage - Zajętość pamięci - - - Memory Allocated - Przydzielona pamięć - - - Total - Łącznie - - - %1 bytes - %1 bajtów - - - Allocated - Przydzielone - - - Allocations - Liczba przydziałów pamięci - - - Type - Typ - - - Heap Allocation - Alokacja na stercie - - - Location - Położenie - - - Deallocated - Zwolnione - - - Deallocations - Liczba zwolnień pamięci - - - Large Item Allocation - Alokacja wielkiego elementu - - - Memory Freed - Zwolniona pamięć - - - Heap Usage - Zajętość sterty - - - - QmlProfiler::Internal::PixmapCacheModelTest - - Image Cached - Plik graficzny włożono do cache - - - Image Loaded - Załadowano plik graficzny - - - Duration - Czas trwania - - - Cache Size - Rozmiar cache'a - - - File - Plik - - - Width - Szerokość - - - Height - Wysokość - - Qnx @@ -40386,7 +40037,7 @@ Uwaga: podczas używania zwykłego formatu tekstowego może brakować niektóryc - QmlProfilerFlameGraphView + QmlProfiler Total Time Czas całkowity @@ -40395,10 +40046,6 @@ Uwaga: podczas używania zwykłego formatu tekstowego może brakować niektóryc Calls Wywołania - - Details - Szczegóły - Mean Time Czas średni @@ -40407,14 +40054,6 @@ Uwaga: podczas używania zwykłego formatu tekstowego może brakować niektóryc In Percent W procentach - - Location - Położenie - - - Allocations - Liczba przydziałów pamięci - Memory Pamięć @@ -43111,14 +42750,7 @@ Termin wygaśnięcia: %3 - QmlProfiler::QmlProfilerStatisticsModel - - Could not re-read events from temporary trace file. - - - - - QmlProfiler::Internal::QmlProfilerFileWriter + QmlProfiler Could not re-read events from temporary trace file. Saving failed. diff --git a/share/qtcreator/translations/qtcreator_ru.ts b/share/qtcreator/translations/qtcreator_ru.ts index fc65c8f4b2d..af5a3edba40 100644 --- a/share/qtcreator/translations/qtcreator_ru.ts +++ b/share/qtcreator/translations/qtcreator_ru.ts @@ -14404,7 +14404,7 @@ Do you want to display them anyway? - DebugMessagesModel + QmlProfiler Debug Message Отладочное сообщение @@ -26620,7 +26620,7 @@ Error: %5 - MainView + QmlProfiler Memory Usage Использование памяти @@ -42395,7 +42395,7 @@ the QML editor know about a likely URI. - QmlProfiler::Internal::DebugMessagesModel + QmlProfiler Unknown Message %1 Неизвестное сообщение %1 @@ -42412,24 +42412,6 @@ the QML editor know about a likely URI. Location Размещение - - - QmlProfiler::Internal::DebugMessagesModelTest - - Timestamp - Время - - - Message - Сообщение - - - Location - Размещение - - - - QmlProfiler::Internal::FlameGraphModel Could not re-read events from temporary trace file: %1 Не удалось перечитать события из временного файла трассировки: %1 @@ -42442,25 +42424,14 @@ the QML editor know about a likely URI. Create Создание - - Binding - Привязка - Signal Сигналы - - JavaScript - JavaScript - Source code not available Исходники недоступны - - - QmlProfiler::Internal::FlameGraphView Flame Graph непереводимый термин @@ -42474,9 +42445,6 @@ the QML editor know about a likely URI. Reset Flame Graph Сбросить Flame Graph - - - QmlProfiler::Internal::InputEventsModel Mouse Events События мыши @@ -42485,10 +42453,6 @@ the QML editor know about a likely URI. Keyboard Events События клавиатуры - - Timestamp - Время - Key Press Нажатие клавиши @@ -42561,104 +42525,10 @@ the QML editor know about a likely URI. Unknown Неизвестное - - - QmlProfiler::Internal::InputEventsModelTest - - Mouse Events - События мыши - - - Keyboard Events - События клавиатуры - - - Timestamp - Время - - - Key Press - Нажатие клавиши - - - Key - Клавиша - - - Modifiers - Модификатор - - - Key Release - Отжатие клавиши - - - Keyboard Event - Событие клавиатуры - - - Mouse Press - Нажатие мыши - - - Button - Кнопка - - - Result - Результат - - - Mouse Release - Отпускание мыши - - - Mouse Move - Движение мыши - - - X - X - - - Y - Y - - - Double Click - Двойной щелчок - - - Mouse Wheel - Колесо мыши - - - Angle X - Угол X - - - Angle Y - Угол Y - - - Mouse Event - Событие мыши - - - Unknown - Неизвестное - - - - QmlProfiler::Internal::MemoryUsageModel Memory Allocation Выделение памяти - - Memory Usage - Использование памяти - Memory Allocated Памяти выделено @@ -42711,80 +42581,6 @@ the QML editor know about a likely URI. Type Тип - - Location - Размещение - - - - QmlProfiler::Internal::MemoryUsageModelTest - - Memory Allocation - Выделение памяти - - - Memory Usage - Использование памяти - - - Memory Allocated - Памяти выделено - - - Total - Всего - - - %n byte(s) - - %n байт - %n байта - %n байт - - - - Allocated - Выделено - - - Allocations - Выделений - - - Type - Тип - - - Heap Allocation - Выделение в куче - - - Location - Размещение - - - Deallocated - Освобождено - - - Deallocations - Освобождений - - - Large Item Allocation - Выделение под большие объекты - - - Memory Freed - Памяти освобождено - - - Heap Usage - Использование кучи - - - - QmlProfiler::Internal::PixmapCacheModel Cache Size Размер кэша @@ -42797,10 +42593,6 @@ the QML editor know about a likely URI. Image Loaded Изображение загружено - - Result - Результат - Load Error Ошибка загрузки @@ -42821,40 +42613,6 @@ the QML editor know about a likely URI. Height Высота - - - QmlProfiler::Internal::PixmapCacheModelTest - - Image Cached - Изображение закэшировано - - - Image Loaded - Изображение загружено - - - Duration - Продолжительность - - - Cache Size - Размер кэша - - - File - Файл - - - Width - Ширина - - - Height - Высота - - - - QmlProfiler::Internal::QmlProfilerActions The QML Profiler can be used to find performance bottlenecks in applications using QML. QML Profiler предназначен для поиска узких мест в приложениях использующих QML. @@ -42879,25 +42637,6 @@ the QML editor know about a likely URI. QML Profiler Options Настройки профайлера QML - - - QmlProfiler::Internal::QmlProfilerAnimationsModel - - Animations - Анимации - - - GUI Thread - Поток GUI - - - Render Thread - Поток рендера - - - Duration - Продолжительность - Framerate Частота кадров @@ -42906,13 +42645,6 @@ the QML editor know about a likely URI. Context Контекст - - - QmlProfiler::Internal::QmlProfilerAttachDialog - - QML Profiler - Профайлер QML - &Host: &Сервер: @@ -42941,9 +42673,6 @@ the QML editor know about a likely URI. Kit: Комплект: - - - QmlProfiler::Internal::QmlProfilerConfigWidget Flush data while profiling: Передавать данные при профилировании: @@ -42974,32 +42703,14 @@ itself takes time. задержку при загрузке данных и объём используемой приложением памяти, но портит профилирование, так как сброс данных занимает время. - - QML Profiler - Профайлер QML - Analyzer Анализатор - - - QmlProfiler::Internal::QmlProfilerRangeModel - - Duration - Продолжительность - Details Подробнее - - Location - Размещение - - - - QmlProfiler::Internal::QmlProfilerStateWidget Profiling application: %n events @@ -43036,9 +42747,6 @@ itself takes time. Waiting for data Ожидание данных - - - QmlProfiler::Internal::QmlProfilerStatisticsView Statistics Статистика @@ -43055,25 +42763,6 @@ itself takes time. Extended Event Statistics Расширенная статистика событий - - Show Full Range - Показать весь диапазон - - - - QmlProfiler::Internal::QmlProfilerTool - - QML Profiler - Профайлер QML - - - Load QML Trace - Загрузить трассировку QML - - - Save QML Trace - Сохранить трассировку QML - A QML Profiler analysis is still in progress. Выполняется профилирование QML. @@ -43152,9 +42841,6 @@ Do you want to save the data first? Hide or show event categories. Показ или скрытие категорий событий. - - - QmlProfiler::Internal::QmlProfilerTraceFile Error while parsing trace data file: %1 Ошибка разбора файла данных трассировки: %1 @@ -43189,9 +42875,6 @@ Saving failed. Не удалось перечитать события из временного файла трассировки: %1 Сохранение не удалось. - - - QmlProfiler::Internal::QmlProfilerTraceView Timeline Временная шкала @@ -43208,31 +42891,14 @@ Saving failed. Reset Zoom Сбросить масштаб - - - QmlProfiler::Internal::QmlProfilerViewManager - - QML Profiler - Профайлер QML - - - - QmlProfiler::Internal::SceneGraphTimelineModel Stage Этап - - Duration - Продолжительность - Glyphs Глифы - - - QmlProfiler::QmlProfilerModelManager Failed to replay QML events from stash file. Не удалось проиграть события QML из файла stash. @@ -43249,37 +42915,6 @@ Saving failed. Read past end in temporary trace file. Чтение за концом временного файла трассировки. - - - QmlProfiler::QmlProfilerStatisticsModel - - Painting - Отрисовка - - - Compiling - Компиляция - - - Creating - Создание - - - Binding - Привязка - - - Handling Signal - Обработка сигнала - - - JavaScript - JavaScript - - - Could not re-read events from temporary trace file: %1 - Не удалось перечитать события из временного файла трассировки: %1 - Main program Основная программа @@ -43288,26 +42923,10 @@ Saving failed. +%1 in recursive calls +%1 в рекурсивных вызовах - - <bytecode> - <байтовый код> - - - Source code not available - Исходники недоступны - Calls Вызовы - - Details - Подробности - - - Location - Размещение - Longest Time Наибольшее время @@ -43336,17 +42955,10 @@ Saving failed. Total Time Общее время - - Type - Тип - Median Time Медианное время - - - QmlProfiler::QmlProfilerStatisticsRelativesModel Main Program Основная программа @@ -43355,14 +42967,6 @@ Saving failed. called recursively вызывается рекурсивно - - <bytecode> - <байтовый код> - - - Source code not available - Исходники недоступны - Callee Вызываемое @@ -43371,18 +42975,6 @@ Saving failed. Caller Вызывающее - - Type - Тип - - - Total Time - Общее время - - - Calls - Вызовы - Callee Description Описание вызываемого @@ -43391,9 +42983,6 @@ Saving failed. Caller Description Описание вызывающего - - - QmlProfilerEventStorage Cannot open temporary trace file to store events. Не удалось открыть временный файл для хранения событий. @@ -43418,41 +43007,10 @@ Saving failed. Could not re-open temporary trace file. Не удалось переоткрыть временный файл трассировки. - - Read past end in temporary trace file. - Чтение за концом временного файла трассировки. - - - - QmlProfilerFlameGraphView - - Total Time - Общее время - - - Calls - Вызовы - - - Details - Подробнее - - - Mean Time - Среднее время - In Percent В процентах - - Location - Размещение - - - Allocations - Выделений - Memory Память @@ -43465,9 +43023,6 @@ Saving failed. others другие - - - QmlProfilerRunConfiguration QML Profiler Settings Настройки профайлера QML diff --git a/share/qtcreator/translations/qtcreator_sl.ts b/share/qtcreator/translations/qtcreator_sl.ts index 5fc69500f62..0afcdb8812f 100644 --- a/share/qtcreator/translations/qtcreator_sl.ts +++ b/share/qtcreator/translations/qtcreator_sl.ts @@ -20091,7 +20091,7 @@ GDB omogoča navedbo zaporedja ukazov, ki so ločeni z »\n«. - QmlProfiler::Internal::QmlProfilerAttachDialog + QmlProfiler Dialog Pogovorno okno @@ -26069,7 +26069,7 @@ S strani z možnostmi za različice Qt zgradite razhroščevalne pomočnike. - QmlProfiler::Internal::QmlProfilerEngine + QmlProfiler QML Profiler QML Profiler @@ -26104,9 +26104,6 @@ Raje uporabite gumb za ustavitev. Z razhroščevalnikom QML znotraj procesa se ni bilo moč povezati: %1 - - - QmlProfiler::Internal::QmlProfilerEventStatistics Source code not available Izvorna koda ni na voljo @@ -26115,9 +26112,6 @@ Raje uporabite gumb za ustavitev. <bytecode> <bajtna koda> - - - QmlProfiler::Internal::QmlProfilerEventsView Location Mesto @@ -26174,20 +26168,6 @@ Raje uporabite gumb za ustavitev. Signal Signaliziranje - - - QmlProfiler::Internal::QmlProfilerRunControlFactory - - QML Profiler - QML Profiler - - - - QmlProfiler::Internal::QmlProfilerTool - - QML Profiler - QML Profiler - The QML Profiler can be used to find performance bottlenecks in applications using QML. QML Profiler lahko uporabljate za odkrivanje zmogljivostnih ozkih grl v programih, ki uporabljajo QML. @@ -26236,9 +26216,6 @@ Raje uporabite gumb za ustavitev. Detach Odklopi - - - QmlProfiler::Internal::RemoteLinuxQmlProfilerRunner Not enough free ports on device for analyzing. @@ -26257,9 +26234,6 @@ Raje uporabite gumb za ustavitev. Poganjanje oddaljenega procesa se je zaključilo. Izhodna koda je bila %1. - - - QmlProfiler::Internal::TraceWindow Jump to previous event Skoči na predhodni dogodek diff --git a/share/qtcreator/translations/qtcreator_uk.ts b/share/qtcreator/translations/qtcreator_uk.ts index 087019b2257..1e7323d9672 100644 --- a/share/qtcreator/translations/qtcreator_uk.ts +++ b/share/qtcreator/translations/qtcreator_uk.ts @@ -12638,7 +12638,7 @@ To do this, you type this shortcut and a space in the Locator entry field, and t - MainView + QmlProfiler Memory Usage Вживання пам'яті @@ -18476,7 +18476,7 @@ For qmlproject projects, use the importPaths property to add import paths. - QmlProfiler::Internal::QmlProfilerAttachDialog + QmlProfiler QML Profiler Профайлер QML @@ -18505,30 +18505,6 @@ For qmlproject projects, use the importPaths property to add import paths.Kit: Комплект: - - - QmlProfiler::Internal::QmlProfilerEngine - - Qt Creator - Qt Creator - - - Could not connect to the in-process QML debugger: -%1 - Не вдалось підключитись до вбудованого в процес зневаджувача QML: -%1 - - - QML Profiler - Профайлер QML - - - - QmlProfiler::Internal::QmlProfilerTool - - QML Profiler - Профайлер QML - The QML Profiler can be used to find performance bottlenecks in applications using QML. @@ -28036,31 +28012,7 @@ Do you want to kill it? - QmlProfiler::Internal::QmlProfilerStatisticsMainView - - Location - Розташування - - - Type - Тип - - - Details - Деталі - - - µs - мкс - - - ms - мс - - - s - с - + QmlProfiler <program> <програма> @@ -28069,25 +28021,9 @@ Do you want to kill it? Main Program Основна програма - - <bytecode> - <байт-код> - - - Source code not available - Код не доступний - - - Compile - Компіляція - Create - Створити - - - JavaScript - JavaScript + Створити @@ -33240,7 +33176,7 @@ Qt Creator know about a likely URI. - QmlProfiler::Internal::QmlProfilerClientManager + QmlProfiler Qt Creator Qt Creator @@ -33262,20 +33198,10 @@ Do you want to retry? Failed to connect! - - - QmlProfiler::Internal::QmlProfilerDataModel - - <bytecode> - <байт-код> - Error while parsing %1. Помилка під час розбору %1. - - - QmlProfiler::Internal::QmlProfilerStateWidget Profiling application @@ -33304,9 +33230,6 @@ Do you want to retry? Waiting for data - - - QmlProfiler::Internal::QmlProfilerTraceView Analyze Current Range @@ -33319,9 +33242,6 @@ Do you want to retry? Reset Zoom - - - QmlProfiler::Internal::QmlProfilerViewManager Events Події @@ -33334,14 +33254,6 @@ Do you want to retry? Timeline Часова лінія - - QML Profiler - Профайлер QML - - - JavaScript - JavaScript - QmlProjectManager::Internal::QmlProjectRunConfigurationFactory @@ -40391,72 +40303,7 @@ Please close all running instances of your application before starting a build.< - QmlProfiler::Internal::LocalQmlProfilerRunner - - No executable file to launch. - Немає виконуваного модуля для запуску. - - - - QmlProfiler::Internal::QmlProfilerRunControl - - Qt Creator - Qt Creator - - - Could not connect to the in-process QML debugger: -%1 - %1 is detailed error message - Не вдалось підключитись до вбудованого в процес зневаджувача QML: -%1 - - - QML Profiler - Профайлер QML - - - - QmlProfiler::Internal::QmlProfilerEventsModelProxy - - <program> - <програма> - - - Main Program - Основна програма - - - - QmlProfiler::Internal::QmlProfilerEventParentsModelProxy - - <program> - <програма> - - - Main Program - Основна програма - - - - QmlProfiler::Internal::QmlProfilerEventChildrenModelProxy - - <program> - <програма> - - - - QmlProfiler::Internal::QmlProfilerEventRelativesView - - <bytecode> - <байт-код> - - - Source code not available - Код не доступний - - - - QmlProfiler::QmlProfilerModelManager + QmlProfiler Could not open %1 for writing. Не вдалось відкрити %1 для запису. @@ -40477,115 +40324,15 @@ Please close all running instances of your application before starting a build.< Trying to set unknown state in events list. - - - QmlProfiler::Internal::PaintEventsModelProxy - - Animations - Анімації - - - Duration - Тривалість - - - µs - мкс - - - ms - мс - - - s - с - - - - QmlProfiler::Internal::QmlProfilerPlugin - - QML Profiler - Профайлер QML - - - QML Profiler (External) - Профайлер QML (зовнішній) - - - - QmlProfiler::Internal::QmlProfilerProcessedModel - - <bytecode> - <байт-код> - Source code not available. Код не доступний. - - - QmlProfiler::QmlProfilerSimpleModel - - Animations - Анімації - - - - QmlProfiler::Internal::BasicTimelineModel - - µs - мкс - - - ms - мс - - - s - с - - - - QmlProfiler::Internal::QmlProfilerFileReader Error while parsing trace data file: %1 - - QmlProfiler::Internal::QV8ProfilerDataModel - - <program> - <програма> - - - Main Program - Основна програма - - - - QmlProfiler::Internal::QV8ProfilerEventsMainView - - µs - мкс - - - ms - мс - - - s - с - - - Compile - Компіляція - - - Create - Створити - - QmlProjectManager::QmlProjectFileFormat @@ -42517,30 +42264,11 @@ These files are preserved. - QmlProfiler::QmlProfilerBaseModel - - µs - мкс - - - ms - мс - - - s - с - - - - QmlProfiler::QmlProfilerDataModel + QmlProfiler <bytecode> <байт-код> - - GUI Thread - Нитка GUI - µs мкс @@ -42553,26 +42281,11 @@ These files are preserved. s с - - Source code not available. - Код не доступний. - anonymous function анонімна функція - - QmlProfiler::QV8ProfilerDataModel - - <program> - <програма> - - - Main Program - Основна програма - - Qnx @@ -47907,19 +47620,7 @@ The files in the Android package source directory are copied to the build direct - QmlProfiler::Internal::RangeTimelineModel - - Duration - Тривалість - - - Details - Деталі - - - Location - Розташування - + QmlProfiler ResourceEditor @@ -49326,19 +49027,7 @@ Setting breakpoints by file name and line number may fail. - QmlProfiler::Internal::QmlProfilerAnimationsModel - - Animations - Анімації - - - GUI Thread - Нитка GUI - - - Render Thread - - + QmlProfiler Duration Тривалість @@ -49351,13 +49040,6 @@ Setting breakpoints by file name and line number may fail. Context Контекст - - - QmlProfiler::Internal::QmlProfilerRangeModel - - Duration - Тривалість - Details Деталі @@ -50299,18 +49981,7 @@ Setting breakpoints by file name and line number may fail. - QmlProfiler::LocalQmlProfilerRunner - - No executable file to launch. - Немає виконуваного модуля для запуску. - - - - QmlProfiler::QmlProfilerRunControl - - Qt Creator - Qt Creator - + QmlProfiler Could not connect to the in-process QML debugger: %1 @@ -50318,10 +49989,6 @@ Setting breakpoints by file name and line number may fail. Не вдалось підключитись до вбудованого в процес зневаджувача QML: %1 - - QML Profiler - Профайлер QML - QObject @@ -50825,7 +50492,7 @@ Output: - QmlProfiler::Internal::QmlProfilerConfigWidget + QmlProfiler Flush data while profiling: @@ -51866,18 +51533,11 @@ the program. - QmlProfiler::Internal::QmlProfilerOptionsPage - - QML Profiler - Профайлер QML - + QmlProfiler Analyzer Аналізатор - - - QmlProfilerRunConfiguration QML Profiler Settings Налаштування профайлера QML @@ -53421,14 +53081,11 @@ These files are preserved. - QmlProfiler::Internal::QmlProfilerRunControlFactory + QmlProfiler No executable file to launch. Немає виконуваного модуля для запуску. - - - QmlProfiler::Internal::QmlProfilerStatisticsMainView Binding loop detected. @@ -53450,17 +53107,10 @@ references to elements in other files, loops, and so on.) Paint - - Binding - Зв'язування - Signal - - - QmlProfiler::Internal::QmlProfilerStatisticsView Statistics @@ -53481,13 +53131,6 @@ references to elements in other files, loops, and so on.) Show Full Range - - - QmlProfiler::Internal::QmlProfilerStatisticsRelativesView - - <bytecode> - <байт-код> - Source code not available Код не доступний @@ -53496,9 +53139,6 @@ references to elements in other files, loops, and so on.) Part of binding loop. - - - DebugMessagesModel Debug Message Зневаджувальне повідомлення @@ -53519,9 +53159,6 @@ references to elements in other files, loops, and so on.) Info Message Інформаційне повідомлення - - - QmlProfilerExtension::Internal::DebugMessagesModel Unknown Message %1 @@ -53534,51 +53171,10 @@ references to elements in other files, loops, and so on.) Message Повідомлення - - Location - Розташування - - - - QmlProfilerExtension::Internal::FlameGraphModel - - Paint - - Compile Компіляція - - Create - - - - Binding - Зв'язування - - - Signal - - - - JavaScript - JavaScript - - - Source code not available - Код не доступний - - - - QmlProfilerExtension::Internal::FlameGraphView - - Show Full Range - - - - - QmlProfilerExtension::Internal::InputEventsModel Mouse Events @@ -53587,10 +53183,6 @@ references to elements in other files, loops, and so on.) Keyboard Events - - Timestamp - - Key Press @@ -53659,17 +53251,10 @@ references to elements in other files, loops, and so on.) Mouse Event - - - QmlProfilerExtension::Internal::MemoryUsageModel Memory Allocation - - Memory Usage - Вживання пам'яті - Memory Allocated @@ -53702,10 +53287,6 @@ references to elements in other files, loops, and so on.) Type Тип - - Location - Розташування - Heap Allocation @@ -53722,9 +53303,6 @@ references to elements in other files, loops, and so on.) Unknown Невідомо - - - QmlProfilerExtension::Internal::PixmapCacheModel Image Cached @@ -53733,18 +53311,10 @@ references to elements in other files, loops, and so on.) Image Loaded - - Result - Результат - Load Error - - Duration - Тривалість - Cache Size @@ -53761,9 +53331,6 @@ references to elements in other files, loops, and so on.) Height Висота - - - QmlProfilerExtension::Internal::QmlProfilerExtensionPlugin Action Triggered @@ -53772,17 +53339,10 @@ references to elements in other files, loops, and so on.) This is an action from QML Profiler Extension. - - - QmlProfilerExtension::Internal::SceneGraphTimelineModel Stage - - Duration - Тривалість - Glyphs diff --git a/share/qtcreator/translations/qtcreator_zh_CN.ts b/share/qtcreator/translations/qtcreator_zh_CN.ts index 3e281d9cb94..46c86107a24 100644 --- a/share/qtcreator/translations/qtcreator_zh_CN.ts +++ b/share/qtcreator/translations/qtcreator_zh_CN.ts @@ -36256,7 +36256,7 @@ if (a && - QmlProfiler::Internal::QmlProfilerAttachDialog + QmlProfiler Dialog 对话框 @@ -37560,11 +37560,7 @@ These files are preserved. - QmlProfiler::Internal::QmlProfilerEngine - - QML Profiler - QML 分析器(Profiler) - + QmlProfiler Application finished before loading profiled data. Please use the stop button instead. @@ -37596,102 +37592,14 @@ These files are preserved. 无法连接到进程内(in-process)QML 调试器: %1 - - - QmlProfiler::Internal::QmlProfilerEventStatistics - - Source code not available - 源代码不可用 - - - <bytecode> - <字节码> - - - - QmlProfiler::Internal::QmlProfilerEventsView - - Location - 位置 - - - Type - 类型 - - - Time in Percent - 时间百分比 - - - Total Time - 总时间 - - - Calls - 呼叫 - Time per Call 呼叫时间比 - - Mean Time - 平均时间 - - - Median Time - 中间时间 - - - Longest Time - 最长时间 - - - Shortest Time - 最短时间 - - - Details - 详情 - - - Paint - - - - Compile - 编译 - - - Create - 创建 - - - Binding - 绑定 - - - Signal - 信号 - - - - QmlProfiler::Internal::QmlProfilerRunControlFactory - - QML Profiler - QML审查 - - - - QmlProfiler::Internal::QmlProfilerTool QML Profiler Options QML 分析器选项 - - QML Profiler - QML 分析器 - The QML Profiler can be used to find performance bottlenecks in applications using QML. QML分析器可被用于找到使用QML的应用程序的性能瓶颈。 @@ -37726,14 +37634,6 @@ Please use the stop button instead. Save QML Trace 保存 QML 追踪文件 - - Copy Row - 复制行 - - - Copy Table - 复制表格 - The QML profiler requires Qt 4.7.4 or newer. The Qt version configured in your active build configuration is too old. @@ -37742,14 +37642,6 @@ Do you want to continue? 您在构建配置中设置的Qt 版本太旧。 您想要继续吗? - - Events - - - - Timeline - 时间轴 - Callees 被叫 @@ -37778,10 +37670,6 @@ Do you want to continue? Elapsed: %1 s 逝去: %1 s - - Qt Creator - Qt Creator - QML traces (%1) QML 踪迹(%1) @@ -37790,9 +37678,6 @@ Do you want to continue? Detach 分离 - - - QmlProfiler::Internal::RemoteLinuxQmlProfilerRunner Gathering ports failed: %1 搜集端口失败:%1 @@ -37824,17 +37709,6 @@ Do you want to continue? 远程进程运行结束.返回值%1. - - - QmlProfiler::Internal::TraceWindow - - Jump to previous event - 跳到上一个事件 - - - Jump to next event - 跳到下一个事件 - Zoom in 10% 放大 10% @@ -40611,7 +40485,7 @@ To compile QML Observer, go to the Qt Versions page, select the current Qt versi - MainView + QmlProfiler Painting 绘制中 @@ -40624,10 +40498,6 @@ To compile QML Observer, go to the Qt Versions page, select the current Qt versi Creating 创建中 - - Binding - 绑定 - Signal Handler 信号处理 @@ -40983,10 +40853,6 @@ To compile QML Observer, go to the Qt Versions page, select the current Qt versi QmlJsDebugClient::QmlProfilerEventList - - <bytecode> - <字节码> - Source code not available 源代码不可用 @@ -48487,20 +48353,13 @@ Qt Creator 知道一个相似的URI。 - QmlProfiler::Internal::QmlProfilerClientManager - - Qt Creator - Qt Creator - + QmlProfiler Could not connect to the in-process QML profiler. Do you want to retry? 无法连接到进程内的QML分析器。 您想重试吗? - - - QmlProfiler::Internal::QmlProfilerDataModel Source code not available 源代码不可用 @@ -48549,9 +48408,6 @@ Do you want to retry? Invalid version of QML Trace file. QML追踪文件的版本无效。 - - - QmlProfiler::Internal::QmlProfilerEventsWidget Trace information from the v8 JavaScript engine. Available only in Qt5 based applications. 从v8 JavaScript引擎中追踪信息。仅在基于Qt5的应用程序中可用。 @@ -48576,9 +48432,6 @@ Do you want to retry? Reset Events Pane 重置事件窗口 - - - QmlProfiler::Internal::QmlProfilerStatisticsMainView Location 路径 @@ -48677,9 +48530,6 @@ references to elements in other files, loops, etc.) Signal 信号 - - - QmlProfiler::Internal::QmlProfilerEventsParentsAndChildrenView Part of binding loop. 循环绑定的一部分。 @@ -48692,18 +48542,6 @@ references to elements in other files, loops, etc.) Caller 调用者 - - Type - 类型 - - - Total Time - 总时间 - - - Calls - 调用 - Callee Description 被调用者的说明 @@ -48712,9 +48550,6 @@ references to elements in other files, loops, etc.) Caller Description 调用者的说明 - - - QmlProfiler::Internal::QmlProfilerStateWidget Loading data 正在载入数据 @@ -48731,9 +48566,6 @@ references to elements in other files, loops, etc.) Application stopped before loading all data 在载入数据之前应用程序停止 - - - QmlProfiler::Internal::QmlProfilerTraceView Jump to previous event 跳到上一个事件 @@ -48754,21 +48586,10 @@ references to elements in other files, loops, etc.) View event information on mouseover 在鼠标悬停时查看事件信息 - - Limit Events Pane to Current Range - 限制事件窗口为当前的范围 - - - Reset Events Pane - 重置事件窗口 - Reset Zoom 重置缩放 - - - QmlProfiler::Internal::QmlProfilerViewManager Events 事件 diff --git a/share/qtcreator/translations/qtcreator_zh_TW.ts b/share/qtcreator/translations/qtcreator_zh_TW.ts index 48437bf84c6..d4174ba723d 100644 --- a/share/qtcreator/translations/qtcreator_zh_TW.ts +++ b/share/qtcreator/translations/qtcreator_zh_TW.ts @@ -22407,7 +22407,7 @@ if (a && - QmlProfiler::Internal::QmlProfilerAttachDialog + QmlProfiler QML Profiler QML 效能分析器 @@ -23317,11 +23317,7 @@ These files are preserved. - QmlProfiler::Internal::QmlProfilerEngine - - QML Profiler - QML 效能分析器 - + QmlProfiler Application finished before loading profiled data. Please use the stop button instead. @@ -23343,13 +23339,6 @@ These files are preserved. 無法連線到執行中的 QML 除錯工具: %1 - - - QmlProfiler::Internal::QmlProfilerTool - - QML Profiler - QML 效能分析器 - The QML Profiler can be used to find performance bottlenecks in applications using QML. QML 效能分析器可以用於找到使用 QML 應用程式的效能瓶頸。 @@ -23371,29 +23360,25 @@ These files are preserved. Please use the stop button instead. - - Copy Row - 複製列 - Copy Table - 複製表格 + 複製表格 Extended Event Statistics - 延伸事件統計 + 延伸事件統計 Limit Events Pane to Current Range - 限制事件窗格到目前的範圍 + 限制事件窗格到目前的範圍 Reset Events Pane - 重置事件窗格 + 重置事件窗格 Reset Zoom - 重置縮放 + 重置縮放 The QML profiler requires Qt 4.7.4 or newer. @@ -23405,15 +23390,11 @@ Do you want to continue? Events - 事件 - - - Timeline - 時間線 + 事件 JavaScript - JavaScript + JavaScript %1 s @@ -23439,19 +23420,12 @@ Do you want to continue? Enable profiling 開啟效能分析 - - Qt Creator - Qt Creator - Could not connect to the in-process QML profiler. Do you want to retry? - 無法連線到進行中的 QML 效能分析器。 + 無法連線到進行中的 QML 效能分析器。 您要重試嗎? - - - QmlProfiler::Internal::RemoteLinuxQmlProfilerRunner Gathering ports failed: %1 @@ -23484,28 +23458,21 @@ Do you want to retry? 遠端行程執行結束。離開代碼為 %1。 - - - QmlProfiler::Internal::TraceWindow Jump to previous event - 跳到前一個事件 + 跳到前一個事件 Jump to next event - 跳到下一個事件 + 跳到下一個事件 Show zoom slider - 顯示縮放滑動器 + 顯示縮放滑動器 Select range - 選擇範圍 - - - View event information on mouseover - 在滑鼠置於上時檢視事件資訊 + 選擇範圍 @@ -25307,7 +25274,7 @@ To compile QML Observer, go to the Qt Versions page, select the current Qt versi - MainView + QmlProfiler Painting 繪製中 @@ -29357,7 +29324,7 @@ Do you want to kill it? - QmlProfiler::Internal::QmlProfilerStatisticsMainView + QmlProfiler Location 位置 @@ -29451,17 +29418,10 @@ references to elements in other files, loops, etc.) Create 建立 - - Binding - 綁定 - Signal 信號 - - - QmlProfiler::Internal::QmlProfilerEventsParentsAndChildrenView Part of binding loop 綁定迴圈的部份 @@ -29478,18 +29438,6 @@ references to elements in other files, loops, etc.) Caller 呼叫者 - - Type - 型態 - - - Total Time - 總時間 - - - Calls - 呼叫 - Callee Description 被呼叫者描述 @@ -33449,20 +33397,7 @@ Qt Creator 知道一個相似的URI. - QmlProfiler::Internal::QmlProfilerClientManager - - Qt Creator - Qt Creator - - - Could not connect to the in-process QML profiler. -Do you want to retry? - 無法連線到進行中的 QML 效能分析器。 -您要重試嗎? - - - - QmlProfiler::Internal::QmlProfilerDataModel + QmlProfiler Source code not available 無法使用源碼 @@ -33511,36 +33446,14 @@ Do you want to retry? Invalid version of QML Trace file. 無效的 QML 追蹤檔版本。 - - - QmlProfiler::Internal::QmlProfilerEventsWidget Trace information from the v8 JavaScript engine. Available only in Qt5 based applications. Copy Row - 複製列 + 複製列 - - Copy Table - 複製表格 - - - Extended Event Statistics - 延伸事件統計 - - - Limit Events Pane to Current Range - 限制事件窗格到目前的範圍 - - - Reset Events Pane - 重置事件窗格 - - - - QmlProfiler::Internal::QmlProfilerStateWidget Loading data 載入資料中 @@ -33557,55 +33470,13 @@ Do you want to retry? Application stopped before loading all data 載入所有資料前應用程式已停止 - - - QmlProfiler::Internal::QmlProfilerTraceView - - Jump to previous event - 跳到前一個事件 - - - Jump to next event - 跳到下一個事件 - - - Show zoom slider - 顯示縮放滑動器 - - - Select range - 選擇範圍 - View event information on mouseover - 在滑鼠置於上時檢視事件資訊 - - - Limit Events Pane to Current Range - 限制事件窗格到目前的範圍 - - - Reset Events Pane - 重置事件窗格 - - - Reset Zoom - 重置縮放 - - - - QmlProfiler::Internal::QmlProfilerViewManager - - Events - 事件 + 在滑鼠置於上時檢視事件資訊 Timeline - 時間線 - - - JavaScript - JavaScript + 時間線 diff --git a/src/plugins/qmlprofiler/debugmessagesmodel.cpp b/src/plugins/qmlprofiler/debugmessagesmodel.cpp index 7f65eb65a03..60234005917 100644 --- a/src/plugins/qmlprofiler/debugmessagesmodel.cpp +++ b/src/plugins/qmlprofiler/debugmessagesmodel.cpp @@ -3,6 +3,7 @@ #include "debugmessagesmodel.h" #include "qmlprofilerconstants.h" +#include "qmlprofilertr.h" #include namespace QmlProfiler { @@ -26,17 +27,17 @@ QRgb DebugMessagesModel::color(int index) const } static const char *messageTypes[] = { - QT_TRANSLATE_NOOP("DebugMessagesModel", "Debug Message"), - QT_TRANSLATE_NOOP("DebugMessagesModel", "Warning Message"), - QT_TRANSLATE_NOOP("DebugMessagesModel", "Critical Message"), - QT_TRANSLATE_NOOP("DebugMessagesModel", "Fatal Message"), - QT_TRANSLATE_NOOP("DebugMessagesModel", "Info Message"), + QT_TRANSLATE_NOOP("QmlProfiler", "Debug Message"), + QT_TRANSLATE_NOOP("QmlProfiler", "Warning Message"), + QT_TRANSLATE_NOOP("QmlProfiler", "Critical Message"), + QT_TRANSLATE_NOOP("QmlProfiler", "Fatal Message"), + QT_TRANSLATE_NOOP("QmlProfiler", "Info Message"), }; QString DebugMessagesModel::messageType(uint i) { - return i < sizeof(messageTypes) / sizeof(char *) ? tr(messageTypes[i]) : - tr("Unknown Message %1").arg(i); + return i < sizeof(messageTypes) / sizeof(char *) ? Tr::tr(messageTypes[i]) : + Tr::tr("Unknown Message %1").arg(i); } QVariantList DebugMessagesModel::labels() const @@ -59,10 +60,10 @@ QVariantMap DebugMessagesModel::details(int index) const QVariantMap result; result.insert(QLatin1String("displayName"), messageType(type.detailType())); - result.insert(tr("Timestamp"), Timeline::formatTime(startTime(index), + result.insert(Tr::tr("Timestamp"), Timeline::formatTime(startTime(index), manager->traceDuration())); - result.insert(tr("Message"), m_data[index].text); - result.insert(tr("Location"), type.displayName()); + result.insert(Tr::tr("Message"), m_data[index].text); + result.insert(Tr::tr("Location"), type.displayName()); return result; } diff --git a/src/plugins/qmlprofiler/flamegraphmodel.cpp b/src/plugins/qmlprofiler/flamegraphmodel.cpp index 0316b5cf093..87b5947d89f 100644 --- a/src/plugins/qmlprofiler/flamegraphmodel.cpp +++ b/src/plugins/qmlprofiler/flamegraphmodel.cpp @@ -2,8 +2,8 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 #include "flamegraphmodel.h" - #include "qmlprofilermodelmanager.h" +#include "qmlprofilertr.h" #include #include @@ -149,7 +149,7 @@ void FlameGraphModel::restrictToFeatures(quint64 visibleFeatures) std::bind(&FlameGraphModel::finalize, this), [this](const QString &message) { if (!message.isEmpty()) { - emit m_modelManager->error(tr("Could not re-read events from temporary trace file: %1") + emit m_modelManager->error(Tr::tr("Could not re-read events from temporary trace file: %1") .arg(message)); } endResetModel(); @@ -160,11 +160,11 @@ void FlameGraphModel::restrictToFeatures(quint64 visibleFeatures) static QString nameForType(RangeType typeNumber) { switch (typeNumber) { - case Compiling: return FlameGraphModel::tr("Compile"); - case Creating: return FlameGraphModel::tr("Create"); - case Binding: return FlameGraphModel::tr("Binding"); - case HandlingSignal: return FlameGraphModel::tr("Signal"); - case Javascript: return FlameGraphModel::tr("JavaScript"); + case Compiling: return Tr::tr("Compile"); + case Creating: return Tr::tr("Create"); + case Binding: return Tr::tr("Binding"); + case HandlingSignal: return Tr::tr("Signal"); + case Javascript: return Tr::tr("JavaScript"); default: Q_UNREACHABLE(); } } @@ -205,7 +205,7 @@ QVariant FlameGraphModel::lookup(const FlameGraphData &stats, int role) const case TypeRole: return nameForType(type.rangeType()); case RangeTypeRole: return type.rangeType(); case DetailsRole: return type.data().isEmpty() ? - FlameGraphModel::tr("Source code not available") : type.data(); + Tr::tr("Source code not available") : type.data(); case LocationRole: return type.displayName(); default: return QVariant(); } diff --git a/src/plugins/qmlprofiler/flamegraphview.cpp b/src/plugins/qmlprofiler/flamegraphview.cpp index fd379841854..ca23da5ac8a 100644 --- a/src/plugins/qmlprofiler/flamegraphview.cpp +++ b/src/plugins/qmlprofiler/flamegraphview.cpp @@ -4,6 +4,7 @@ #include "flamegraphview.h" #include "qmlprofilerconstants.h" #include "qmlprofilertool.h" +#include "qmlprofilertr.h" #include #include @@ -22,7 +23,7 @@ FlameGraphView::FlameGraphView(QmlProfilerModelManager *manager, QWidget *parent m_model(new FlameGraphModel(manager, this)) { setObjectName("QmlProfiler.FlameGraph.Dock"); - setWindowTitle(tr("Flame Graph")); + setWindowTitle(Tr::tr("Flame Graph")); m_content->engine()->addImportPath(":/qt/qml/"); Timeline::TimelineTheme::setupTheme(m_content->engine()); @@ -63,9 +64,9 @@ void FlameGraphView::contextMenuEvent(QContextMenuEvent *ev) menu.addActions(QmlProfilerTool::profilerContextMenuActions()); menu.addSeparator(); - QAction *getGlobalStatsAction = menu.addAction(tr("Show Full Range")); + QAction *getGlobalStatsAction = menu.addAction(Tr::tr("Show Full Range")); getGlobalStatsAction->setEnabled(m_model->modelManager()->isRestrictedToRange()); - QAction *resetAction = menu.addAction(tr("Reset Flame Graph")); + QAction *resetAction = menu.addAction(Tr::tr("Reset Flame Graph")); resetAction->setEnabled(m_content->rootObject()->property("zoomed").toBool()); const QAction *selected = menu.exec(position); diff --git a/src/plugins/qmlprofiler/inputeventsmodel.cpp b/src/plugins/qmlprofiler/inputeventsmodel.cpp index 5f220f2ab34..267e6c2d98d 100644 --- a/src/plugins/qmlprofiler/inputeventsmodel.cpp +++ b/src/plugins/qmlprofiler/inputeventsmodel.cpp @@ -2,8 +2,9 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 #include "inputeventsmodel.h" -#include "qmlprofilermodelmanager.h" #include "qmlprofilereventtypes.h" +#include "qmlprofilermodelmanager.h" +#include "qmlprofilertr.h" #include @@ -36,12 +37,12 @@ QVariantList InputEventsModel::labels() const QVariantList result; QVariantMap element; - element.insert(QLatin1String("description"), QVariant(tr("Mouse Events"))); + element.insert(QLatin1String("description"), QVariant(Tr::tr("Mouse Events"))); element.insert(QLatin1String("id"), QVariant(Mouse)); result << element; element.clear(); - element.insert(QLatin1String("description"), QVariant(tr("Keyboard Events"))); + element.insert(QLatin1String("description"), QVariant(Tr::tr("Keyboard Events"))); element.insert(QLatin1String("id"), QVariant(Key)); result << element; @@ -56,56 +57,56 @@ QMetaEnum InputEventsModel::metaEnum(const char *name) QVariantMap InputEventsModel::details(int index) const { QVariantMap result; - result.insert(tr("Timestamp"), Timeline::formatTime(startTime(index), + result.insert(Tr::tr("Timestamp"), Timeline::formatTime(startTime(index), modelManager()->traceDuration())); QString type; const Item &event = m_data[index]; switch (event.type) { case InputKeyPress: - type = tr("Key Press"); + type = Tr::tr("Key Press"); Q_FALLTHROUGH(); case InputKeyRelease: if (type.isEmpty()) - type = tr("Key Release"); + type = Tr::tr("Key Release"); if (event.a != 0) { - result.insert(tr("Key"), QLatin1String(metaEnum("Key").valueToKey(event.a))); + result.insert(Tr::tr("Key"), QLatin1String(metaEnum("Key").valueToKey(event.a))); } if (event.b != 0) { - result.insert(tr("Modifiers"), + result.insert(Tr::tr("Modifiers"), QLatin1String(metaEnum("KeyboardModifiers").valueToKeys(event.b))); } break; case InputMouseDoubleClick: - type = tr("Double Click"); + type = Tr::tr("Double Click"); Q_FALLTHROUGH(); case InputMousePress: if (type.isEmpty()) - type = tr("Mouse Press"); + type = Tr::tr("Mouse Press"); Q_FALLTHROUGH(); case InputMouseRelease: if (type.isEmpty()) - type = tr("Mouse Release"); - result.insert(tr("Button"), QLatin1String(metaEnum("MouseButtons").valueToKey(event.a))); - result.insert(tr("Result"), QLatin1String(metaEnum("MouseButtons").valueToKeys(event.b))); + type = Tr::tr("Mouse Release"); + result.insert(Tr::tr("Button"), QLatin1String(metaEnum("MouseButtons").valueToKey(event.a))); + result.insert(Tr::tr("Result"), QLatin1String(metaEnum("MouseButtons").valueToKeys(event.b))); break; case InputMouseMove: - type = tr("Mouse Move"); - result.insert(tr("X"), QString::number(event.a)); - result.insert(tr("Y"), QString::number(event.b)); + type = Tr::tr("Mouse Move"); + result.insert(Tr::tr("X"), QString::number(event.a)); + result.insert(Tr::tr("Y"), QString::number(event.b)); break; case InputMouseWheel: - type = tr("Mouse Wheel"); - result.insert(tr("Angle X"), QString::number(event.a)); - result.insert(tr("Angle Y"), QString::number(event.b)); + type = Tr::tr("Mouse Wheel"); + result.insert(Tr::tr("Angle X"), QString::number(event.a)); + result.insert(Tr::tr("Angle Y"), QString::number(event.b)); break; case InputKeyUnknown: - type = tr("Keyboard Event"); + type = Tr::tr("Keyboard Event"); break; case InputMouseUnknown: - type = tr("Mouse Event"); + type = Tr::tr("Mouse Event"); break; default: - type = tr("Unknown"); + type = Tr::tr("Unknown"); break; } diff --git a/src/plugins/qmlprofiler/memoryusagemodel.cpp b/src/plugins/qmlprofiler/memoryusagemodel.cpp index 847dc9b97ef..a713626c5d1 100644 --- a/src/plugins/qmlprofiler/memoryusagemodel.cpp +++ b/src/plugins/qmlprofiler/memoryusagemodel.cpp @@ -2,8 +2,9 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 #include "memoryusagemodel.h" -#include "qmlprofilermodelmanager.h" #include "qmlprofilereventtypes.h" +#include "qmlprofilermodelmanager.h" +#include "qmlprofilertr.h" #include @@ -63,12 +64,12 @@ QVariantList MemoryUsageModel::labels() const QVariantList result; QVariantMap element; - element.insert(QLatin1String("description"), tr("Memory Allocation")); + element.insert(QLatin1String("description"), Tr::tr("Memory Allocation")); element.insert(QLatin1String("id"), HeapPage); result << element; element.clear(); - element.insert(QLatin1String("description"), tr("Memory Usage")); + element.insert(QLatin1String("description"), Tr::tr("Memory Usage")); element.insert(QLatin1String("id"), SmallItem); result << element; @@ -90,30 +91,30 @@ QVariantMap MemoryUsageModel::details(int index) const const Item *ev = &m_data[index]; if (ev->allocated >= -ev->deallocated) - result.insert(QLatin1String("displayName"), tr("Memory Allocated")); + result.insert(QLatin1String("displayName"), Tr::tr("Memory Allocated")); else - result.insert(QLatin1String("displayName"), tr("Memory Freed")); + result.insert(QLatin1String("displayName"), Tr::tr("Memory Freed")); - result.insert(tr("Total"), tr("%n byte(s)", nullptr, toSameSignedInt(ev->size))); + result.insert(Tr::tr("Total"), Tr::tr("%n byte(s)", nullptr, toSameSignedInt(ev->size))); if (ev->allocations > 0) { - result.insert(tr("Allocated"), tr("%n byte(s)", nullptr, toSameSignedInt(ev->allocated))); - result.insert(tr("Allocations"), ev->allocations); + result.insert(Tr::tr("Allocated"), Tr::tr("%n byte(s)", nullptr, toSameSignedInt(ev->allocated))); + result.insert(Tr::tr("Allocations"), ev->allocations); } if (ev->deallocations > 0) { - result.insert(tr("Deallocated"), - tr("%n byte(s)", nullptr, toSameSignedInt(-ev->deallocated))); - result.insert(tr("Deallocations"), ev->deallocations); + result.insert(Tr::tr("Deallocated"), + Tr::tr("%n byte(s)", nullptr, toSameSignedInt(-ev->deallocated))); + result.insert(Tr::tr("Deallocations"), ev->deallocations); } QString memoryTypeName; switch (selectionId(index)) { - case HeapPage: memoryTypeName = tr("Heap Allocation"); break; - case LargeItem: memoryTypeName = tr("Large Item Allocation"); break; - case SmallItem: memoryTypeName = tr("Heap Usage"); break; + case HeapPage: memoryTypeName = Tr::tr("Heap Allocation"); break; + case LargeItem: memoryTypeName = Tr::tr("Large Item Allocation"); break; + case SmallItem: memoryTypeName = Tr::tr("Heap Usage"); break; default: Q_UNREACHABLE(); } - result.insert(tr("Type"), memoryTypeName); + result.insert(Tr::tr("Type"), memoryTypeName); - result.insert(tr("Location"), modelManager()->eventType(ev->typeId).displayName()); + result.insert(Tr::tr("Location"), modelManager()->eventType(ev->typeId).displayName()); return result; } diff --git a/src/plugins/qmlprofiler/pixmapcachemodel.cpp b/src/plugins/qmlprofiler/pixmapcachemodel.cpp index 087613a6a74..532ec9b2992 100644 --- a/src/plugins/qmlprofiler/pixmapcachemodel.cpp +++ b/src/plugins/qmlprofiler/pixmapcachemodel.cpp @@ -2,8 +2,9 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 #include "pixmapcachemodel.h" -#include "qmlprofilermodelmanager.h" #include "qmlprofilereventtypes.h" +#include "qmlprofilermodelmanager.h" +#include "qmlprofilertr.h" #include @@ -71,7 +72,7 @@ QVariantList PixmapCacheModel::labels() const // Cache Size QVariantMap element; - element.insert(QLatin1String("description"), tr("Cache Size")); + element.insert(QLatin1String("description"), Tr::tr("Cache Size")); element.insert(QLatin1String("id"), 0); result << element; @@ -95,19 +96,19 @@ QVariantMap PixmapCacheModel::details(int index) const const Item *ev = &m_data[index]; if (ev->pixmapEventType == PixmapCacheCountChanged) { - result.insert(QLatin1String("displayName"), tr("Image Cached")); - result.insert(tr("Cache Size"), QString::fromLatin1("%1 px").arg(ev->cacheSize)); + result.insert(QLatin1String("displayName"), Tr::tr("Image Cached")); + result.insert(Tr::tr("Cache Size"), QString::fromLatin1("%1 px").arg(ev->cacheSize)); } else { - result.insert(QLatin1String("displayName"), tr("Image Loaded")); + result.insert(QLatin1String("displayName"), Tr::tr("Image Loaded")); if (m_pixmaps[ev->urlIndex].sizes[ev->sizeIndex].loadState != Finished) - result.insert(tr("Result"), tr("Load Error")); - result.insert(tr("Duration"), Timeline::formatTime(duration(index))); + result.insert(Tr::tr("Result"), Tr::tr("Load Error")); + result.insert(Tr::tr("Duration"), Timeline::formatTime(duration(index))); } - result.insert(tr("File"), getFilenameOnly(m_pixmaps[ev->urlIndex].url)); - result.insert(tr("Width"), QString::fromLatin1("%1 px") + result.insert(Tr::tr("File"), getFilenameOnly(m_pixmaps[ev->urlIndex].url)); + result.insert(Tr::tr("Width"), QString::fromLatin1("%1 px") .arg(m_pixmaps[ev->urlIndex].sizes[ev->sizeIndex].size.width())); - result.insert(tr("Height"), QString::fromLatin1("%1 px") + result.insert(Tr::tr("Height"), QString::fromLatin1("%1 px") .arg(m_pixmaps[ev->urlIndex].sizes[ev->sizeIndex].size.height())); return result; } diff --git a/src/plugins/qmlprofiler/qml/QmlProfilerFlameGraphView.qml b/src/plugins/qmlprofiler/qml/QmlProfilerFlameGraphView.qml index d46903ac4a4..9926ce460b1 100644 --- a/src/plugins/qmlprofiler/qml/QmlProfilerFlameGraphView.qml +++ b/src/plugins/qmlprofiler/qml/QmlProfilerFlameGraphView.qml @@ -24,21 +24,21 @@ FlameGraphView { ] trRoleNames: [ - QmlProfilerFlameGraphModel.DurationRole, qsTr("Total Time"), - QmlProfilerFlameGraphModel.CallCountRole, qsTr("Calls"), - QmlProfilerFlameGraphModel.DetailsRole, qsTr("Details"), - QmlProfilerFlameGraphModel.TimePerCallRole, qsTr("Mean Time"), - QmlProfilerFlameGraphModel.TimeInPercentRole, qsTr("In Percent"), - QmlProfilerFlameGraphModel.LocationRole, qsTr("Location"), - QmlProfilerFlameGraphModel.AllocationsRole, qsTr("Allocations"), - QmlProfilerFlameGraphModel.MemoryRole, qsTr("Memory") + QmlProfilerFlameGraphModel.DurationRole, qsTranslate("QmlProfiler", "Total Time"), + QmlProfilerFlameGraphModel.CallCountRole, qsTranslate("QmlProfiler", "Calls"), + QmlProfilerFlameGraphModel.DetailsRole, qsTranslate("QmlProfiler", "Details"), + QmlProfilerFlameGraphModel.TimePerCallRole, qsTranslate("QmlProfiler", "Mean Time"), + QmlProfilerFlameGraphModel.TimeInPercentRole, qsTranslate("QmlProfiler", "In Percent"), + QmlProfilerFlameGraphModel.LocationRole, qsTranslate("QmlProfiler", "Location"), + QmlProfilerFlameGraphModel.AllocationsRole, qsTranslate("QmlProfiler", "Allocations"), + QmlProfilerFlameGraphModel.MemoryRole, qsTranslate("QmlProfiler", "Memory") ].reduce(toMap, {}) details: function(flameGraph) { var model = []; if (!flameGraph.dataValid) { model.push(trRoleNames[QmlProfilerFlameGraphModel.DetailsRole]); - model.push(qsTr("Various Events")); + model.push(qsTranslate("QmlProfiler", "Various Events")); } else { function addDetail(role, format) { root.addDetail(role, format, model, flameGraph); } @@ -55,7 +55,7 @@ FlameGraphView { summary: function(attached) { if (!attached.dataValid) - return qsTr("others"); + return qsTranslate("QmlProfiler", "others"); return attached.data(QmlProfilerFlameGraphModel.DetailsRole) + " (" + attached.data(QmlProfilerFlameGraphModel.TypeRole) + ", " diff --git a/src/plugins/qmlprofiler/qmlprofileractions.cpp b/src/plugins/qmlprofiler/qmlprofileractions.cpp index 23d41805a0b..a92a98c73e8 100644 --- a/src/plugins/qmlprofiler/qmlprofileractions.cpp +++ b/src/plugins/qmlprofiler/qmlprofileractions.cpp @@ -3,9 +3,10 @@ #include "qmlprofileractions.h" #include "qmlprofilerconstants.h" -#include "qmlprofilertool.h" -#include "qmlprofilerstatemanager.h" #include "qmlprofilermodelmanager.h" +#include "qmlprofilerstatemanager.h" +#include "qmlprofilertool.h" +#include "qmlprofilertr.h" #include @@ -25,10 +26,10 @@ QmlProfilerActions::QmlProfilerActions(QObject *parent) : QObject(parent) void QmlProfilerActions::attachToTool(QmlProfilerTool *tool) { - const QString description = tr("The QML Profiler can be used to find performance " - "bottlenecks in applications using QML."); + const QString description = Tr::tr("The QML Profiler can be used to find performance " + "bottlenecks in applications using QML."); - m_runAction = std::make_unique(tr("QML Profiler")); + m_runAction = std::make_unique(Tr::tr("QML Profiler")); m_runAction->setToolTip(description); QObject::connect(m_runAction.get(), &QAction::triggered, tool, &QmlProfilerTool::profileStartupProject); @@ -38,16 +39,16 @@ void QmlProfilerActions::attachToTool(QmlProfilerTool *tool) m_runAction->setEnabled(toolStartAction->isEnabled()); }); - m_attachAction = std::make_unique(tr("QML Profiler (Attach to Waiting Application)")); + m_attachAction = std::make_unique(Tr::tr("QML Profiler (Attach to Waiting Application)")); m_attachAction->setToolTip(description); QObject::connect(m_attachAction.get(), &QAction::triggered, tool, &QmlProfilerTool::attachToWaitingApplication); - m_loadQmlTrace = std::make_unique(tr("Load QML Trace")); + m_loadQmlTrace = std::make_unique(Tr::tr("Load QML Trace")); connect(m_loadQmlTrace.get(), &QAction::triggered, tool, &QmlProfilerTool::showLoadDialog, Qt::QueuedConnection); - m_saveQmlTrace = std::make_unique(tr("Save QML Trace")); + m_saveQmlTrace = std::make_unique(Tr::tr("Save QML Trace")); connect(m_saveQmlTrace.get(), &QAction::triggered, tool, &QmlProfilerTool::showSaveDialog, Qt::QueuedConnection); @@ -69,7 +70,7 @@ void QmlProfilerActions::attachToTool(QmlProfilerTool *tool) void QmlProfilerActions::registerActions() { m_options.reset(ActionManager::createMenu("Analyzer.Menu.QMLOptions")); - m_options->menu()->setTitle(tr("QML Profiler Options")); + m_options->menu()->setTitle(Tr::tr("QML Profiler Options")); m_options->menu()->setEnabled(true); ActionContainer *menu = ActionManager::actionContainer(M_DEBUG_ANALYZER); diff --git a/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp b/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp index a2260879264..8c43af70cda 100644 --- a/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp @@ -3,6 +3,7 @@ #include "qmlprofileranimationsmodel.h" #include "qmlprofilermodelmanager.h" +#include "qmlprofilertr.h" #include #include @@ -133,16 +134,16 @@ QVariantList QmlProfilerAnimationsModel::labels() const if (m_maxGuiThreadAnimations > 0) { QVariantMap element; - element.insert(QLatin1String("displayName"), tr("Animations")); - element.insert(QLatin1String("description"), tr("GUI Thread")); + element.insert(QLatin1String("displayName"), Tr::tr("Animations")); + element.insert(QLatin1String("description"), Tr::tr("GUI Thread")); element.insert(QLatin1String("id"), GuiThread); result << element; } if (m_maxRenderThreadAnimations > 0) { QVariantMap element; - element.insert(QLatin1String("displayName"), tr("Animations")); - element.insert(QLatin1String("description"), tr("Render Thread")); + element.insert(QLatin1String("displayName"), Tr::tr("Animations")); + element.insert(QLatin1String("description"), Tr::tr("Render Thread")); element.insert(QLatin1String("id"), RenderThread); result << element; } @@ -155,11 +156,11 @@ QVariantMap QmlProfilerAnimationsModel::details(int index) const QVariantMap result; result.insert(QStringLiteral("displayName"), displayName()); - result.insert(tr("Duration"), Timeline::formatTime(duration(index))); - result.insert(tr("Framerate"), QString::fromLatin1("%1 FPS").arg(m_data[index].framerate)); - result.insert(tr("Animations"), QString::number(m_data[index].animationcount)); - result.insert(tr("Context"), selectionId(index) == GuiThread ? tr("GUI Thread") : - tr("Render Thread")); + result.insert(Tr::tr("Duration"), Timeline::formatTime(duration(index))); + result.insert(Tr::tr("Framerate"), QString::fromLatin1("%1 FPS").arg(m_data[index].framerate)); + result.insert(Tr::tr("Animations"), QString::number(m_data[index].animationcount)); + result.insert(Tr::tr("Context"), selectionId(index) == GuiThread ? Tr::tr("GUI Thread") : + Tr::tr("Render Thread")); return result; } diff --git a/src/plugins/qmlprofiler/qmlprofilerattachdialog.cpp b/src/plugins/qmlprofiler/qmlprofilerattachdialog.cpp index 6ce47ffca6d..20cc793dc14 100644 --- a/src/plugins/qmlprofiler/qmlprofilerattachdialog.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerattachdialog.cpp @@ -2,6 +2,7 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 #include "qmlprofilerattachdialog.h" +#include "qmlprofilertr.h" #include #include @@ -28,7 +29,7 @@ QmlProfilerAttachDialog::QmlProfilerAttachDialog(QWidget *parent) : QDialog(parent), d(new QmlProfilerAttachDialogPrivate) { - setWindowTitle(tr("Start QML Profiler")); + setWindowTitle(Tr::tr("Start QML Profiler")); d->kitChooser = new KitChooser(this); d->kitChooser->setKitPredicate([](const Kit *kit) { @@ -47,14 +48,14 @@ QmlProfilerAttachDialog::QmlProfilerAttachDialog(QWidget *parent) : auto hint = new QLabel(this); hint->setWordWrap(true); hint->setTextFormat(Qt::RichText); - hint->setText(tr("Select an externally started QML-debug enabled application.

" - "Commonly used command-line arguments are:") + hint->setText(Tr::tr("Select an externally started QML-debug enabled application.

" + "Commonly used command-line arguments are:") + "

-qmljsdebugger=port:<port>,block,
" "  services:CanvasFrameRate,EngineControl,DebugMessages
"); auto formLayout = new QFormLayout; - formLayout->addRow(tr("Kit:"), d->kitChooser); - formLayout->addRow(tr("&Port:"), d->portSpinBox); + formLayout->addRow(Tr::tr("Kit:"), d->kitChooser); + formLayout->addRow(Tr::tr("&Port:"), d->portSpinBox); auto verticalLayout = new QVBoxLayout(this); verticalLayout->addWidget(hint); diff --git a/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp b/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp index a1aab1d883e..695685a0660 100644 --- a/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp +++ b/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp @@ -1,11 +1,12 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 -#include "qmlprofilermodelmanager.h" #include "qmlprofilerconstants.h" -#include "qmlprofilertracefile.h" -#include "qmlprofilernotesmodel.h" #include "qmlprofilerdetailsrewriter.h" +#include "qmlprofilermodelmanager.h" +#include "qmlprofilernotesmodel.h" +#include "qmlprofilertr.h" +#include "qmlprofilertracefile.h" #include #include @@ -23,19 +24,19 @@ namespace QmlProfiler { static const char *ProfileFeatureNames[] = { - QT_TRANSLATE_NOOP("MainView", "JavaScript"), - QT_TRANSLATE_NOOP("MainView", "Memory Usage"), - QT_TRANSLATE_NOOP("MainView", "Pixmap Cache"), - QT_TRANSLATE_NOOP("MainView", "Scene Graph"), - QT_TRANSLATE_NOOP("MainView", "Animations"), - QT_TRANSLATE_NOOP("MainView", "Painting"), - QT_TRANSLATE_NOOP("MainView", "Compiling"), - QT_TRANSLATE_NOOP("MainView", "Creating"), - QT_TRANSLATE_NOOP("MainView", "Binding"), - QT_TRANSLATE_NOOP("MainView", "Handling Signal"), - QT_TRANSLATE_NOOP("MainView", "Input Events"), - QT_TRANSLATE_NOOP("MainView", "Debug Messages"), - QT_TRANSLATE_NOOP("MainView", "Quick3D") + QT_TRANSLATE_NOOP("QmlProfiler", "JavaScript"), + QT_TRANSLATE_NOOP("QmlProfiler", "Memory Usage"), + QT_TRANSLATE_NOOP("QmlProfiler", "Pixmap Cache"), + QT_TRANSLATE_NOOP("QmlProfiler", "Scene Graph"), + QT_TRANSLATE_NOOP("QmlProfiler", "Animations"), + QT_TRANSLATE_NOOP("QmlProfiler", "Painting"), + QT_TRANSLATE_NOOP("QmlProfiler", "Compiling"), + QT_TRANSLATE_NOOP("QmlProfiler", "Creating"), + QT_TRANSLATE_NOOP("QmlProfiler", "Binding"), + QT_TRANSLATE_NOOP("QmlProfiler", "Handling Signal"), + QT_TRANSLATE_NOOP("QmlProfiler", "Input Events"), + QT_TRANSLATE_NOOP("QmlProfiler", "Debug Messages"), + QT_TRANSLATE_NOOP("QmlProfiler", "Quick3D") }; Q_STATIC_ASSERT(sizeof(ProfileFeatureNames) == sizeof(char *) * MaximumProfileFeature); @@ -176,7 +177,7 @@ void QmlProfilerModelManager::replayQmlEvents(QmlEventLoader loader, if (!result && errorHandler) { errorHandler(future.isCanceled() ? QString() - : tr("Failed to replay QML events from stash file.")); + : Tr::tr("Failed to replay QML events from stash file.")); } else if (result && finalizer) { finalizer(); } @@ -203,7 +204,7 @@ void QmlProfilerModelManager::clearTypeStorage() static QString getDisplayName(const QmlEventType &event) { if (event.location().filename().isEmpty()) { - return QmlProfilerModelManager::tr(""); + return Tr::tr(""); } else { const QString filePath = QUrl(event.location().filename()).path(); return filePath.mid(filePath.lastIndexOf(QLatin1Char('/')) + 1) + QLatin1Char(':') + @@ -219,7 +220,7 @@ static QString getInitialDetails(const QmlEventType &event) details = details.replace(QLatin1Char('\n'),QLatin1Char(' ')).simplified(); if (details.isEmpty()) { if (event.rangeType() == Javascript) - details = QmlProfilerModelManager::tr("anonymous function"); + details = Tr::tr("anonymous function"); } else { QRegularExpression rewrite(QLatin1String("^\\(function \\$(\\w+)\\(\\) \\{ (return |)(.+) \\}\\)$")); QRegularExpressionMatch match = rewrite.match(details); @@ -483,7 +484,7 @@ QmlProfilerEventStorage::QmlProfilerEventStorage( : m_file("qmlprofiler-data"), m_errorHandler(errorHandler) { if (!m_file.open()) - errorHandler(tr("Cannot open temporary trace file to store events.")); + errorHandler(Tr::tr("Cannot open temporary trace file to store events.")); } int QmlProfilerEventStorage::append(Timeline::TraceEvent &&event) @@ -503,13 +504,13 @@ void QmlProfilerEventStorage::clear() m_size = 0; m_file.clear(); if (!m_file.open()) - m_errorHandler(tr("Failed to reset temporary trace file.")); + m_errorHandler(Tr::tr("Failed to reset temporary trace file.")); } void QmlProfilerEventStorage::finalize() { if (!m_file.flush()) - m_errorHandler(tr("Failed to flush temporary trace file.")); + m_errorHandler(Tr::tr("Failed to flush temporary trace file.")); } QmlProfilerEventStorage::ErrorHandler QmlProfilerEventStorage::errorHandler() const @@ -530,13 +531,13 @@ bool QmlProfilerEventStorage::replay( case Timeline::TraceStashFile::ReplaySuccess: return true; case Timeline::TraceStashFile::ReplayOpenFailed: - m_errorHandler(tr("Could not re-open temporary trace file.")); + m_errorHandler(Tr::tr("Could not re-open temporary trace file.")); break; case Timeline::TraceStashFile::ReplayLoadFailed: // Happens if the loader rejects an event. Not an actual error break; case Timeline::TraceStashFile::ReplayReadPastEnd: - m_errorHandler(tr("Read past end in temporary trace file.")); + m_errorHandler(Tr::tr("Read past end in temporary trace file.")); break; } return false; diff --git a/src/plugins/qmlprofiler/qmlprofilerrangemodel.cpp b/src/plugins/qmlprofiler/qmlprofilerrangemodel.cpp index cc2c59f2f4d..ff4dfb8a7ac 100644 --- a/src/plugins/qmlprofiler/qmlprofilerrangemodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerrangemodel.cpp @@ -1,9 +1,10 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 -#include "qmlprofilerrangemodel.h" -#include "qmlprofilermodelmanager.h" #include "qmlprofilerbindingloopsrenderpass.h" +#include "qmlprofilermodelmanager.h" +#include "qmlprofilerrangemodel.h" +#include "qmlprofilertr.h" #include #include @@ -202,12 +203,12 @@ QVariantMap QmlProfilerRangeModel::details(int index) const int id = selectionId(index); result.insert(QStringLiteral("displayName"), - tr(QmlProfilerModelManager::featureName(mainFeature()))); - result.insert(tr("Duration"), Timeline::formatTime(duration(index))); + Tr::tr(QmlProfilerModelManager::featureName(mainFeature()))); + result.insert(Tr::tr("Duration"), Timeline::formatTime(duration(index))); const QmlEventType &type = modelManager()->eventType(id); - result.insert(tr("Details"), type.data()); - result.insert(tr("Location"), type.displayName()); + result.insert(Tr::tr("Details"), type.data()); + result.insert(Tr::tr("Location"), type.displayName()); return result; } diff --git a/src/plugins/qmlprofiler/qmlprofilerrunconfigurationaspect.cpp b/src/plugins/qmlprofiler/qmlprofilerrunconfigurationaspect.cpp index 5c38dd0bbea..ecf15b0e0fb 100644 --- a/src/plugins/qmlprofiler/qmlprofilerrunconfigurationaspect.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerrunconfigurationaspect.cpp @@ -1,10 +1,11 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 +#include "qmlprofilerconstants.h" +#include "qmlprofilerplugin.h" #include "qmlprofilerrunconfigurationaspect.h" #include "qmlprofilersettings.h" -#include "qmlprofilerplugin.h" -#include "qmlprofilerconstants.h" +#include "qmlprofilertr.h" #include @@ -16,7 +17,7 @@ QmlProfilerRunConfigurationAspect::QmlProfilerRunConfigurationAspect(ProjectExpl setProjectSettings(new QmlProfilerSettings); setGlobalSettings(QmlProfilerPlugin::globalSettings()); setId(Constants::SETTINGS); - setDisplayName(QCoreApplication::translate("QmlProfilerRunConfiguration", "QML Profiler Settings")); + setDisplayName(Tr::tr("QML Profiler Settings")); setUsingGlobalSettings(true); resetProjectToGlobalSettings(); setConfigWidgetCreator([this] { return new Debugger::AnalyzerRunConfigWidget(this); }); diff --git a/src/plugins/qmlprofiler/qmlprofilersettings.cpp b/src/plugins/qmlprofiler/qmlprofilersettings.cpp index a9f1d292f0a..d49200d2fcd 100644 --- a/src/plugins/qmlprofiler/qmlprofilersettings.cpp +++ b/src/plugins/qmlprofiler/qmlprofilersettings.cpp @@ -1,10 +1,10 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 -#include "qmlprofilersettings.h" - #include "qmlprofilerconstants.h" #include "qmlprofilerplugin.h" +#include "qmlprofilersettings.h" +#include "qmlprofilertr.h" #include @@ -40,8 +40,8 @@ QmlProfilerSettings::QmlProfilerSettings() registerAspect(&flushEnabled); flushEnabled.setSettingsKey("Analyzer.QmlProfiler.FlushEnabled"); flushEnabled.setLabelPlacement(BoolAspect::LabelPlacement::InExtraLabel); - flushEnabled.setLabelText(tr("Flush data while profiling:")); - flushEnabled.setToolTip(tr( + flushEnabled.setLabelText(Tr::tr("Flush data while profiling:")); + flushEnabled.setToolTip(Tr::tr( "Periodically flush pending data to the profiler. This reduces the delay when loading the\n" "data and the memory usage in the application. It distorts the profile as the flushing\n" "itself takes time.")); @@ -50,7 +50,7 @@ QmlProfilerSettings::QmlProfilerSettings() flushInterval.setSettingsKey("Analyzer.QmlProfiler.FlushInterval"); flushInterval.setRange(1, 10000000); flushInterval.setDefaultValue(1000); - flushInterval.setLabelText(tr("Flush interval (ms):")); + flushInterval.setLabelText(Tr::tr("Flush interval (ms):")); flushInterval.setEnabler(&flushEnabled); registerAspect(&lastTraceFile); @@ -59,8 +59,8 @@ QmlProfilerSettings::QmlProfilerSettings() registerAspect(&aggregateTraces); aggregateTraces.setSettingsKey("Analyzer.QmlProfiler.AggregateTraces"); aggregateTraces.setLabelPlacement(BoolAspect::LabelPlacement::InExtraLabel); - aggregateTraces.setLabelText(tr("Process data only when process ends:")); - aggregateTraces.setToolTip(tr( + aggregateTraces.setLabelText(Tr::tr("Process data only when process ends:")); + aggregateTraces.setToolTip(Tr::tr( "Only process data when the process being profiled ends, not when the current recording\n" "session ends. This way multiple recording sessions can be aggregated in a single trace,\n" "for example if multiple QML engines start and stop sequentially during a single run of\n" @@ -80,9 +80,9 @@ void QmlProfilerSettings::writeGlobalSettings() const QmlProfilerOptionsPage::QmlProfilerOptionsPage() { setId(Constants::SETTINGS); - setDisplayName(QmlProfilerSettings::tr("QML Profiler")); + setDisplayName(Tr::tr("QML Profiler")); setCategory("T.Analyzer"); - setDisplayCategory(QmlProfilerSettings::tr("Analyzer")); + setDisplayCategory(Tr::tr("Analyzer")); setCategoryIconPath(Analyzer::Icons::SETTINGSCATEGORY_ANALYZER); } diff --git a/src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp b/src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp index d0a1b530665..ab3f6e0b918 100644 --- a/src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp @@ -2,6 +2,7 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 #include "qmlprofilerstatewidget.h" +#include "qmlprofilertr.h" #include #include @@ -114,24 +115,24 @@ void QmlProfilerStateWidget::updateDisplay() // Heuristic to not show the number if the application will only send the events when it // stops. The number is still > 0 then because we get some StartTrace etc. const int numEvents = d->m_modelManager->numEvents(); - showText(numEvents > 256 ? tr("Profiling application: %n events", nullptr, numEvents) : - tr("Profiling application")); + showText(numEvents > 256 ? Tr::tr("Profiling application: %n events", nullptr, numEvents) : + Tr::tr("Profiling application")); } else if (d->m_modelManager->traceDuration() > 0 && d->m_modelManager->isEmpty()) { // After profiling, there is an empty trace - showText(tr("No QML events recorded")); + showText(Tr::tr("No QML events recorded")); } else if (!d->m_modelManager->isEmpty()) { // When datamodel is acquiring data if (d->m_profilerState->currentState() != QmlProfilerStateManager::Idle) { // we don't know how much more, so progress numbers are strange here - showText(tr("Loading buffered data: %n events", nullptr, - d->m_modelManager->numEvents())); + showText(Tr::tr("Loading buffered data: %n events", nullptr, + d->m_modelManager->numEvents())); } else { // Application died before all data could be read - showText(tr("Loading offline data: %n events", nullptr, - d->m_modelManager->numEvents())); + showText(Tr::tr("Loading offline data: %n events", nullptr, + d->m_modelManager->numEvents())); } } else { - showText(tr("Waiting for data")); + showText(Tr::tr("Waiting for data")); } } diff --git a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp index af6995e005d..b618af27b8f 100644 --- a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp @@ -1,8 +1,9 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 -#include "qmlprofilerstatisticsmodel.h" #include "qmlprofilermodelmanager.h" +#include "qmlprofilerstatisticsmodel.h" +#include "qmlprofilertr.h" #include #include @@ -15,12 +16,12 @@ namespace QmlProfiler { QString nameForType(RangeType typeNumber) { switch (typeNumber) { - case Painting: return QmlProfilerStatisticsModel::tr("Painting"); - case Compiling: return QmlProfilerStatisticsModel::tr("Compiling"); - case Creating: return QmlProfilerStatisticsModel::tr("Creating"); - case Binding: return QmlProfilerStatisticsModel::tr("Binding"); - case HandlingSignal: return QmlProfilerStatisticsModel::tr("Handling Signal"); - case Javascript: return QmlProfilerStatisticsModel::tr("JavaScript"); + case Painting: return Tr::tr("Painting"); + case Compiling: return Tr::tr("Compiling"); + case Creating: return Tr::tr("Creating"); + case Binding: return Tr::tr("Binding"); + case HandlingSignal: return Tr::tr("Handling Signal"); + case Javascript: return Tr::tr("JavaScript"); default: return QString(); } } @@ -91,7 +92,7 @@ void QmlProfilerStatisticsModel::restrictToFeatures(quint64 features) }, [this](const QString &message) { endResetModel(); if (!message.isEmpty()) { - emit m_modelManager->error(tr("Could not re-read events from temporary trace file: %1") + emit m_modelManager->error(Tr::tr("Could not re-read events from temporary trace file: %1") .arg(message)); } clear(); @@ -239,7 +240,7 @@ QVariant QmlProfilerStatisticsModel::dataForMainEntry(const QModelIndex &index, case MainMinTime: return Timeline::formatTime(m_rootDuration); case MainDetails: - return tr("Main program"); + return Tr::tr("Main program"); default: break; } @@ -274,7 +275,7 @@ QVariant QmlProfilerStatisticsModel::data(const QModelIndex &index, int role) co return type.location().column(); case Qt::ToolTipRole: if (stats.recursive > 0) { - return (tr("+%1 in recursive calls") + return (Tr::tr("+%1 in recursive calls") .arg(Timeline::formatTime(stats.recursive))); } else { auto it = m_notes.constFind(typeIndex); @@ -313,7 +314,7 @@ QVariant QmlProfilerStatisticsModel::data(const QModelIndex &index, int role) co case Qt::DisplayRole: switch (index.column()) { case MainLocation: - return type.displayName().isEmpty() ? tr("") : type.displayName(); + return type.displayName().isEmpty() ? Tr::tr("") : type.displayName(); case MainType: return nameForType(type.rangeType()); case MainTimeInPercent: @@ -335,7 +336,7 @@ QVariant QmlProfilerStatisticsModel::data(const QModelIndex &index, int role) co case MainMinTime: return Timeline::formatTime(stats.minimum); case MainDetails: - return type.data().isEmpty() ? tr("Source code not available") + return type.data().isEmpty() ? Tr::tr("Source code not available") : type.data(); default: QTC_CHECK(false); @@ -353,18 +354,18 @@ QVariant QmlProfilerStatisticsModel::headerData(int section, Qt::Orientation ori return QAbstractTableModel::headerData(section, orientation, role); switch (section) { - case MainCallCount: return tr("Calls"); - case MainDetails: return tr("Details"); - case MainLocation: return tr("Location"); - case MainMaxTime: return tr("Longest Time"); - case MainTimePerCall: return tr("Mean Time"); - case MainSelfTime: return tr("Self Time"); - case MainSelfTimeInPercent: return tr("Self Time in Percent"); - case MainMinTime: return tr("Shortest Time"); - case MainTimeInPercent: return tr("Time in Percent"); - case MainTotalTime: return tr("Total Time"); - case MainType: return tr("Type"); - case MainMedianTime: return tr("Median Time"); + case MainCallCount: return Tr::tr("Calls"); + case MainDetails: return Tr::tr("Details"); + case MainLocation: return Tr::tr("Location"); + case MainMaxTime: return Tr::tr("Longest Time"); + case MainTimePerCall: return Tr::tr("Mean Time"); + case MainSelfTime: return Tr::tr("Self Time"); + case MainSelfTimeInPercent: return Tr::tr("Self Time in Percent"); + case MainMinTime: return Tr::tr("Shortest Time"); + case MainTimeInPercent: return Tr::tr("Time in Percent"); + case MainTotalTime: return Tr::tr("Total Time"); + case MainType: return Tr::tr("Type"); + case MainMedianTime: return Tr::tr("Median Time"); case MaxMainField: default: QTC_ASSERT(false, return QString()); } @@ -560,7 +561,7 @@ QVariant QmlProfilerStatisticsRelativesModel::dataForMainEntry(qint64 totalDurat case RelativeLocation: return ""; case RelativeTotalTime: return Timeline::formatTime(totalDuration); case RelativeCallCount: return 1; - case RelativeDetails: return tr("Main Program"); + case RelativeDetails: return Tr::tr("Main Program"); } } return QVariant(); @@ -598,7 +599,7 @@ QVariant QmlProfilerStatisticsRelativesModel::data(const QModelIndex &index, int case ColumnRole: return type.location().column(); case Qt::ToolTipRole: - return stats.isRecursive ? tr("called recursively") : QString(); + return stats.isRecursive ? Tr::tr("called recursively") : QString(); case Qt::ForegroundRole: return stats.isRecursive ? Utils::creatorTheme()->color(Utils::Theme::Timeline_HighlightColor) @@ -617,7 +618,7 @@ QVariant QmlProfilerStatisticsRelativesModel::data(const QModelIndex &index, int case Qt::DisplayRole: switch (index.column()) { case RelativeLocation: - return type.displayName().isEmpty() ? tr("") : type.displayName(); + return type.displayName().isEmpty() ? Tr::tr("") : type.displayName(); case RelativeType: return nameForType(type.rangeType()); case RelativeTotalTime: @@ -625,7 +626,7 @@ QVariant QmlProfilerStatisticsRelativesModel::data(const QModelIndex &index, int case RelativeCallCount: return stats.calls; case RelativeDetails: - return type.data().isEmpty() ? tr("Source code not available") + return type.data().isEmpty() ? Tr::tr("Source code not available") : type.data(); default: QTC_CHECK(false); @@ -644,16 +645,16 @@ QVariant QmlProfilerStatisticsRelativesModel::headerData(int section, Qt::Orient switch (section) { case RelativeLocation: - return m_relation == QmlProfilerStatisticsCallees ? tr("Callee") : tr("Caller"); + return m_relation == QmlProfilerStatisticsCallees ? Tr::tr("Callee") : Tr::tr("Caller"); case RelativeType: - return tr("Type"); + return Tr::tr("Type"); case RelativeTotalTime: - return tr("Total Time"); + return Tr::tr("Total Time"); case RelativeCallCount: - return tr("Calls"); + return Tr::tr("Calls"); case RelativeDetails: - return m_relation == QmlProfilerStatisticsCallees ? tr("Callee Description") - : tr("Caller Description"); + return m_relation == QmlProfilerStatisticsCallees ? Tr::tr("Callee Description") + : Tr::tr("Caller Description"); case MaxRelativeField: default: QTC_ASSERT(false, return QString()); diff --git a/src/plugins/qmlprofiler/qmlprofilerstatisticsview.cpp b/src/plugins/qmlprofiler/qmlprofilerstatisticsview.cpp index 0e5143e1075..d1c84852367 100644 --- a/src/plugins/qmlprofiler/qmlprofilerstatisticsview.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerstatisticsview.cpp @@ -3,6 +3,7 @@ #include "qmlprofilerstatisticsview.h" #include "qmlprofilertool.h" +#include "qmlprofilertr.h" #include #include @@ -46,7 +47,7 @@ QmlProfilerStatisticsView::QmlProfilerStatisticsView(QmlProfilerModelManager *pr : QmlProfilerEventsView(parent) { setObjectName(QLatin1String("QmlProfiler.Statistics.Dock")); - setWindowTitle(tr("Statistics")); + setWindowTitle(Tr::tr("Statistics")); auto model = new QmlProfilerStatisticsModel(profilerModelManager); m_mainView.reset(new QmlProfilerStatisticsMainView(model)); @@ -122,16 +123,16 @@ void QmlProfilerStatisticsView::contextMenuEvent(QContextMenuEvent *ev) if (mouseOnTable(position)) { menu.addSeparator(); if (m_mainView->selectedModelIndex().isValid()) - copyRowAction = menu.addAction(tr("Copy Row")); - copyTableAction = menu.addAction(tr("Copy Table")); + copyRowAction = menu.addAction(Tr::tr("Copy Row")); + copyTableAction = menu.addAction(Tr::tr("Copy Table")); - showExtendedStatsAction = menu.addAction(tr("Extended Event Statistics")); + showExtendedStatsAction = menu.addAction(Tr::tr("Extended Event Statistics")); showExtendedStatsAction->setCheckable(true); showExtendedStatsAction->setChecked(m_mainView->showExtendedStatistics()); } menu.addSeparator(); - getGlobalStatsAction = menu.addAction(tr("Show Full Range")); + getGlobalStatsAction = menu.addAction(Tr::tr("Show Full Range")); if (!m_mainView->isRestrictedToRange()) getGlobalStatsAction->setEnabled(false); diff --git a/src/plugins/qmlprofiler/qmlprofilertimelinemodel.cpp b/src/plugins/qmlprofiler/qmlprofilertimelinemodel.cpp index aeeccd87659..2dc1eb48894 100644 --- a/src/plugins/qmlprofiler/qmlprofilertimelinemodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertimelinemodel.cpp @@ -2,6 +2,7 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 #include "qmlprofilertimelinemodel.h" +#include "qmlprofilertr.h" namespace QmlProfiler { @@ -12,7 +13,7 @@ QmlProfilerTimelineModel::QmlProfilerTimelineModel(QmlProfilerModelManager *mode TimelineModel(parent), m_message(message), m_rangeType(rangeType), m_mainFeature(mainFeature), m_modelManager(modelManager) { - setDisplayName(tr(QmlProfilerModelManager::featureName(mainFeature))); + setDisplayName(Tr::tr(QmlProfilerModelManager::featureName(mainFeature))); connect(modelManager, &QmlProfilerModelManager::typeDetailsFinished, this, &Timeline::TimelineModel::labelsChanged); connect(modelManager, &QmlProfilerModelManager::typeDetailsFinished, diff --git a/src/plugins/qmlprofiler/qmlprofilertool.cpp b/src/plugins/qmlprofiler/qmlprofilertool.cpp index 2f92f9347b9..c74e85638ef 100644 --- a/src/plugins/qmlprofiler/qmlprofilertool.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertool.cpp @@ -1,18 +1,19 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 -#include "qmlprofilertool.h" -#include "qmlprofilerstatemanager.h" -#include "qmlprofilerruncontrol.h" -#include "qmlprofilerconstants.h" #include "qmlprofilerattachdialog.h" -#include "qmlprofilerviewmanager.h" #include "qmlprofilerclientmanager.h" +#include "qmlprofilerconstants.h" #include "qmlprofilermodelmanager.h" -#include "qmlprofilerrunconfigurationaspect.h" -#include "qmlprofilersettings.h" #include "qmlprofilerplugin.h" +#include "qmlprofilerrunconfigurationaspect.h" +#include "qmlprofilerruncontrol.h" +#include "qmlprofilersettings.h" +#include "qmlprofilerstatemanager.h" #include "qmlprofilertextmark.h" +#include "qmlprofilertool.h" +#include "qmlprofilertr.h" +#include "qmlprofilerviewmanager.h" #include @@ -170,7 +171,7 @@ QmlProfilerTool::QmlProfilerTool() d->m_clearButton = new QToolButton; d->m_clearButton->setIcon(Utils::Icons::CLEAN_TOOLBAR.icon()); - d->m_clearButton->setToolTip(tr("Discard data")); + d->m_clearButton->setToolTip(Tr::tr("Discard data")); connect(d->m_clearButton, &QAbstractButton::clicked, [this](){ if (checkForUnsavedNotes()) @@ -179,7 +180,7 @@ QmlProfilerTool::QmlProfilerTool() d->m_searchButton = new QToolButton; d->m_searchButton->setIcon(Utils::Icons::ZOOM_TOOLBAR.icon()); - d->m_searchButton->setToolTip(tr("Search timeline event notes.")); + d->m_searchButton->setToolTip(Tr::tr("Search timeline event notes.")); d->m_searchButton->setEnabled(false); connect(d->m_searchButton, &QToolButton::clicked, this, &QmlProfilerTool::showTimeLineSearch); @@ -189,7 +190,7 @@ QmlProfilerTool::QmlProfilerTool() d->m_displayFeaturesButton = new QToolButton; d->m_displayFeaturesButton->setIcon(Utils::Icons::FILTER.icon()); - d->m_displayFeaturesButton->setToolTip(tr("Hide or show event categories.")); + d->m_displayFeaturesButton->setToolTip(Tr::tr("Hide or show event categories.")); d->m_displayFeaturesButton->setPopupMode(QToolButton::InstantPopup); d->m_displayFeaturesButton->setProperty("noArrow", true); d->m_displayFeaturesMenu = new QMenu(d->m_displayFeaturesButton); @@ -245,7 +246,7 @@ QmlProfilerTool::QmlProfilerTool() const static QIcon recordOff = Debugger::Icons::RECORD_OFF.icon(); // update display - d->m_recordButton->setToolTip(recording ? tr("Disable Profiling") : tr("Enable Profiling")); + d->m_recordButton->setToolTip(recording ? Tr::tr("Disable Profiling") : Tr::tr("Enable Profiling")); d->m_recordButton->setIcon(recording ? recordOn : recordOff); d->m_recordButton->setChecked(recording); }; @@ -275,10 +276,10 @@ void QmlProfilerTool::updateRunActions() { if (d->m_toolBusy) { d->m_startAction->setEnabled(false); - d->m_startAction->setToolTip(tr("A QML Profiler analysis is still in progress.")); + d->m_startAction->setToolTip(Tr::tr("A QML Profiler analysis is still in progress.")); d->m_stopAction->setEnabled(true); } else { - QString tooltip = tr("Start QML Profiler analysis."); + QString tooltip = Tr::tr("Start QML Profiler analysis."); bool canRun = ProjectExplorerPlugin::canRunStartupProject (ProjectExplorer::Constants::QML_PROFILER_RUN_MODE, &tooltip); d->m_startAction->setToolTip(tooltip); @@ -306,7 +307,7 @@ void QmlProfilerTool::finalizeRunControl(QmlProfilerRunner *runWorker) // If we're still trying to connect, stop now. if (d->m_profilerConnections->isConnecting()) { - showNonmodalWarning(tr("The application finished before a connection could be " + showNonmodalWarning(Tr::tr("The application finished before a connection could be " "established. No data was loaded.")); } d->m_profilerConnections->disconnectFromServer(); @@ -338,9 +339,9 @@ void QmlProfilerTool::finalizeRunControl(QmlProfilerRunner *runWorker) const int interval = d->m_profilerConnections->retryInterval(); const int retries = d->m_profilerConnections->maximumRetries(); - infoBox->setText(QmlProfilerTool::tr("Could not connect to the in-process QML profiler " - "within %1 s.\n" - "Do you want to retry and wait %2 s?") + infoBox->setText(Tr::tr("Could not connect to the in-process QML profiler " + "within %1 s.\n" + "Do you want to retry and wait %2 s?") .arg(interval * retries / 1000.0) .arg(interval * 2 * retries / 1000.0)); infoBox->setStandardButtons(QMessageBox::Retry | QMessageBox::Cancel | QMessageBox::Help); @@ -359,7 +360,7 @@ void QmlProfilerTool::finalizeRunControl(QmlProfilerRunner *runWorker) Q_FALLTHROUGH(); case QMessageBox::Cancel: // The actual error message has already been logged. - QmlProfilerTool::logState(QmlProfilerTool::tr("Failed to connect.")); + QmlProfilerTool::logState(Tr::tr("Failed to connect.")); runWorker->cancelProcess(); break; } @@ -432,8 +433,8 @@ void QmlProfilerTool::updateTimeDisplay() break; } QString timeString = QString::number(seconds,'f',1); - QString profilerTimeStr = QmlProfilerTool::tr("%1 s").arg(timeString, 6); - d->m_timeLabel->setText(tr("Elapsed: %1").arg(profilerTimeStr)); + QString profilerTimeStr = Tr::tr("%1 s").arg(timeString, 6); + d->m_timeLabel->setText(Tr::tr("Elapsed: %1").arg(profilerTimeStr)); } void QmlProfilerTool::showTimeLineSearch() @@ -560,7 +561,7 @@ void QmlProfilerTool::showErrorDialog(const QString &error) { auto errorDialog = new QMessageBox(ICore::dialogParent()); errorDialog->setIcon(QMessageBox::Warning); - errorDialog->setWindowTitle(tr("QML Profiler")); + errorDialog->setWindowTitle(Tr::tr("QML Profiler")); errorDialog->setText(error); errorDialog->setStandardButtons(QMessageBox::Ok); errorDialog->setDefaultButton(QMessageBox::Ok); @@ -582,16 +583,16 @@ void QmlProfilerTool::showSaveDialog() QLatin1String tFile(QtdFileExtension); QLatin1String zFile(QztFileExtension); FilePath filePath = FileUtils::getSaveFilePath( - nullptr, tr("Save QML Trace"), + nullptr, Tr::tr("Save QML Trace"), QmlProfilerPlugin::globalSettings()->lastTraceFile.filePath(), - tr("QML traces (*%1 *%2)").arg(zFile).arg(tFile)); + Tr::tr("QML traces (*%1 *%2)").arg(zFile).arg(tFile)); if (!filePath.isEmpty()) { if (!filePath.endsWith(zFile) && !filePath.endsWith(tFile)) filePath = filePath + zFile; saveLastTraceFile(filePath); Debugger::enableMainWindow(false); Core::ProgressManager::addTask(d->m_profilerModelManager->save(filePath.toString()), - tr("Saving Trace Data"), TASK_SAVE, + Tr::tr("Saving Trace Data"), TASK_SAVE, Core::ProgressManager::ShowInApplicationIcon); } } @@ -606,9 +607,9 @@ void QmlProfilerTool::showLoadDialog() QLatin1String tFile(QtdFileExtension); QLatin1String zFile(QztFileExtension); FilePath filePath = FileUtils::getOpenFilePath( - nullptr, tr("Load QML Trace"), + nullptr, Tr::tr("Load QML Trace"), QmlProfilerPlugin::globalSettings()->lastTraceFile.filePath(), - tr("QML traces (*%1 *%2)").arg(zFile).arg(tFile)); + Tr::tr("QML traces (*%1 *%2)").arg(zFile).arg(tFile)); if (!filePath.isEmpty()) { saveLastTraceFile(filePath); @@ -617,7 +618,7 @@ void QmlProfilerTool::showLoadDialog() this, &QmlProfilerTool::setRecordedFeatures); d->m_profilerModelManager->populateFileFinder(); Core::ProgressManager::addTask(d->m_profilerModelManager->load(filePath.toString()), - tr("Loading Trace Data"), TASK_LOAD); + Tr::tr("Loading Trace Data"), TASK_LOAD); } } @@ -656,8 +657,8 @@ bool QmlProfilerTool::checkForUnsavedNotes() { if (!d->m_profilerModelManager->notesModel()->isModified()) return true; - return QMessageBox::warning(QApplication::activeWindow(), tr("QML Profiler"), - tr("You are about to discard the profiling data, including unsaved " + return QMessageBox::warning(QApplication::activeWindow(), Tr::tr("QML Profiler"), + Tr::tr("You are about to discard the profiling data, including unsaved " "notes. Do you want to continue?"), QMessageBox::Yes, QMessageBox::No) == QMessageBox::Yes; } @@ -670,7 +671,7 @@ void QmlProfilerTool::clientsDisconnected() } else if (d->m_profilerState->serverRecording()) { // If the application stopped by itself, check if we have all the data if (d->m_profilerState->currentState() != QmlProfilerStateManager::AppStopRequested) { - showNonmodalWarning(tr("Application finished before loading profiled data.\n" + showNonmodalWarning(Tr::tr("Application finished before loading profiled data.\n" "Please use the stop button instead.")); } } @@ -687,7 +688,7 @@ void QmlProfilerTool::clientsDisconnected() void addFeatureToMenu(QMenu *menu, ProfileFeature feature, quint64 enabledFeatures) { QAction *action = - menu->addAction(QmlProfilerTool::tr(QmlProfilerModelManager::featureName(feature))); + menu->addAction(Tr::tr(QmlProfilerModelManager::featureName(feature))); action->setCheckable(true); action->setData(static_cast(feature)); action->setChecked(enabledFeatures & (1ULL << (feature))); @@ -754,7 +755,7 @@ void QmlProfilerTool::showNonmodalWarning(const QString &warningMsg) { auto noExecWarning = new QMessageBox(ICore::dialogParent()); noExecWarning->setIcon(QMessageBox::Warning); - noExecWarning->setWindowTitle(tr("QML Profiler")); + noExecWarning->setWindowTitle(Tr::tr("QML Profiler")); noExecWarning->setText(warningMsg); noExecWarning->setStandardButtons(QMessageBox::Ok); noExecWarning->setDefaultButton(QMessageBox::Ok); @@ -814,8 +815,8 @@ void QmlProfilerTool::serverRecordingChanged() // We cannot stop it here, so we cannot give the usual yes/no dialog. Show a dialog // offering to immediately save the data instead. if (d->m_profilerModelManager->notesModel()->isModified() && - QMessageBox::warning(QApplication::activeWindow(), tr("QML Profiler"), - tr("Starting a new profiling session will discard the " + QMessageBox::warning(QApplication::activeWindow(), Tr::tr("QML Profiler"), + Tr::tr("Starting a new profiling session will discard the " "previous data, including unsaved notes.\nDo you want " "to save the data first?"), QMessageBox::Save, QMessageBox::Discard) == diff --git a/src/plugins/qmlprofiler/qmlprofilertracefile.cpp b/src/plugins/qmlprofiler/qmlprofilertracefile.cpp index 84159abfe9d..629d692124e 100644 --- a/src/plugins/qmlprofiler/qmlprofilertracefile.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertracefile.cpp @@ -1,9 +1,10 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 -#include "qmlprofilertracefile.h" -#include "qmlprofilernotesmodel.h" #include "qmlprofilerconstants.h" +#include "qmlprofilernotesmodel.h" +#include "qmlprofilertr.h" +#include "qmlprofilertracefile.h" #include @@ -169,7 +170,7 @@ void QmlProfilerTraceFile::loadQtd(QIODevice *device) } if (stream.hasError()) - fail(tr("Error while parsing trace data file: %1").arg(stream.errorString())); + fail(Tr::tr("Error while parsing trace data file: %1").arg(stream.errorString())); else finish(); } @@ -182,7 +183,7 @@ void QmlProfilerTraceFile::loadQzt(QIODevice *device) QByteArray magic; stream >> magic; if (magic != QByteArray("QMLPROFILER")) { - fail(tr("Invalid magic: %1").arg(QLatin1String(magic))); + fail(Tr::tr("Invalid magic: %1").arg(QLatin1String(magic))); return; } @@ -190,7 +191,7 @@ void QmlProfilerTraceFile::loadQzt(QIODevice *device) stream >> dataStreamVersion; if (dataStreamVersion > QDataStream::Qt_DefaultCompiledVersion) { - fail(tr("Unknown data stream version: %1").arg(dataStreamVersion)); + fail(Tr::tr("Unknown data stream version: %1").arg(dataStreamVersion)); return; } stream.setVersion(dataStreamVersion); @@ -214,7 +215,7 @@ void QmlProfilerTraceFile::loadQzt(QIODevice *device) quint32 numEventTypes; bufferStream >> numEventTypes; if (numEventTypes > quint32(std::numeric_limits::max())) { - fail(tr("Excessive number of event types: %1").arg(numEventTypes)); + fail(Tr::tr("Excessive number of event types: %1").arg(numEventTypes)); return; } @@ -247,7 +248,7 @@ void QmlProfilerTraceFile::loadQzt(QIODevice *device) bufferStream >> event; if (bufferStream.status() == QDataStream::Ok) { if (event.typeIndex() >= traceManager()->numEventTypes()) { - fail(tr("Invalid type index %1").arg(event.typeIndex())); + fail(Tr::tr("Invalid type index %1").arg(event.typeIndex())); return; } addFeature(manager->eventType(event.typeIndex()).feature()); @@ -256,7 +257,7 @@ void QmlProfilerTraceFile::loadQzt(QIODevice *device) } else if (bufferStream.status() == QDataStream::ReadPastEnd) { break; // Apparently EOF is a character so we end up here after the last event. } else if (bufferStream.status() == QDataStream::ReadCorruptData) { - fail(tr("Corrupt data before position %1.").arg(device->pos())); + fail(Tr::tr("Corrupt data before position %1.").arg(device->pos())); return; } else { Q_UNREACHABLE(); @@ -766,9 +767,9 @@ void QmlProfilerTraceFile::saveQtd(QIODevice *device) stream.writeEndDocument(); if (stream.hasError()) - fail(tr("Error writing trace file.")); + fail(Tr::tr("Error writing trace file.")); }, [this](const QString &message) { - fail(tr("Could not re-read events from temporary trace file: %1\nSaving failed.") + fail(Tr::tr("Could not re-read events from temporary trace file: %1\nSaving failed.") .arg(message)); }, future()); } @@ -836,7 +837,7 @@ void QmlProfilerTraceFile::saveQzt(QIODevice *device) addEventsProgress(traceEnd() - lastProgressTimestamp); } }, [this](const QString &message) { - fail(tr("Could not re-read events from temporary trace file: %1\nSaving failed.") + fail(Tr::tr("Could not re-read events from temporary trace file: %1\nSaving failed.") .arg(message)); }, future()); } diff --git a/src/plugins/qmlprofiler/qmlprofilertraceview.cpp b/src/plugins/qmlprofiler/qmlprofilertraceview.cpp index 2d8ee1848c5..68ea86cb955 100644 --- a/src/plugins/qmlprofiler/qmlprofilertraceview.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertraceview.cpp @@ -1,14 +1,15 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 -#include "qmlprofilertraceview.h" -#include "qmlprofilertool.h" -#include "qmlprofilerstatemanager.h" +#include "qmlprofileranimationsmodel.h" #include "qmlprofilermodelmanager.h" #include "qmlprofilernotesmodel.h" -#include "qmlprofileranimationsmodel.h" -#include "qmlprofilerrangemodel.h" #include "qmlprofilerplugin.h" +#include "qmlprofilerrangemodel.h" +#include "qmlprofilerstatemanager.h" +#include "qmlprofilertool.h" +#include "qmlprofilertr.h" +#include "qmlprofilertraceview.h" #include "quick3dmodel.h" #include "inputeventsmodel.h" @@ -70,7 +71,7 @@ QmlProfilerTraceView::QmlProfilerTraceView(QWidget *parent, QmlProfilerViewManag QmlProfilerModelManager *modelManager) : QWidget(parent), d(new QmlProfilerTraceViewPrivate(this)) { - setWindowTitle(tr("Timeline")); + setWindowTitle(Tr::tr("Timeline")); setObjectName("QmlProfiler.Timeline.Dock"); d->m_zoomControl = new Timeline::TimelineZoomControl(this); @@ -238,17 +239,17 @@ void QmlProfilerTraceView::showContextMenu(QPoint position) menu.addActions(QmlProfilerTool::profilerContextMenuActions()); menu.addSeparator(); - QAction *getLocalStatsAction = menu.addAction(tr("Analyze Current Range")); + QAction *getLocalStatsAction = menu.addAction(Tr::tr("Analyze Current Range")); if (!hasValidSelection()) getLocalStatsAction->setEnabled(false); - QAction *getGlobalStatsAction = menu.addAction(tr("Analyze Full Range")); + QAction *getGlobalStatsAction = menu.addAction(Tr::tr("Analyze Full Range")); if (!d->m_modelManager->isRestrictedToRange()) getGlobalStatsAction->setEnabled(false); if (d->m_zoomControl->traceDuration() > 0) { menu.addSeparator(); - viewAllAction = menu.addAction(tr("Reset Zoom")); + viewAllAction = menu.addAction(Tr::tr("Reset Zoom")); } QAction *selectedAction = menu.exec(position); diff --git a/src/plugins/qmlprofiler/qmlprofilerviewmanager.cpp b/src/plugins/qmlprofiler/qmlprofilerviewmanager.cpp index fafa7fdb069..f4b3492d10f 100644 --- a/src/plugins/qmlprofiler/qmlprofilerviewmanager.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerviewmanager.cpp @@ -1,10 +1,10 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 -#include "qmlprofilerviewmanager.h" - #include "qmlprofilerconstants.h" #include "qmlprofilerstatewidget.h" +#include "qmlprofilertr.h" +#include "qmlprofilerviewmanager.h" #include @@ -32,7 +32,7 @@ QmlProfilerViewManager::QmlProfilerViewManager(QObject *parent, QTC_ASSERT(m_profilerModelManager, return); QTC_ASSERT(m_profilerState, return); - m_perspective = new Perspective(Constants::QmlProfilerPerspectiveId, tr("QML Profiler")); + m_perspective = new Perspective(Constants::QmlProfilerPerspectiveId, Tr::tr("QML Profiler")); m_perspective->setAboutToActivateCallback([this]() { createViews(); }); } diff --git a/src/plugins/qmlprofiler/quick3dmodel.cpp b/src/plugins/qmlprofiler/quick3dmodel.cpp index 75bfd619d76..48f6409fe17 100644 --- a/src/plugins/qmlprofiler/quick3dmodel.cpp +++ b/src/plugins/qmlprofiler/quick3dmodel.cpp @@ -1,10 +1,11 @@ // Copyright (C) 2022 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 -#include "quick3dmodel.h" #include "qmlprofilerconstants.h" -#include +#include "qmlprofilertr.h" +#include "quick3dmodel.h" +#include namespace QmlProfiler { namespace Internal { @@ -22,43 +23,43 @@ QRgb Quick3DModel::color(int index) const } static const char *messageTypes[] = { - QT_TRANSLATE_NOOP("Quick3DModel", "Render Frame"), - QT_TRANSLATE_NOOP("Quick3DModel", "Synchronize Frame"), - QT_TRANSLATE_NOOP("Quick3DModel", "Prepare Frame"), - QT_TRANSLATE_NOOP("Quick3DModel", "Mesh Load"), - QT_TRANSLATE_NOOP("Quick3DModel", "Custom Mesh Load"), - QT_TRANSLATE_NOOP("Quick3DModel", "Texture Load"), - QT_TRANSLATE_NOOP("Quick3DModel", "Generate Shader"), - QT_TRANSLATE_NOOP("Quick3DModel", "Load Shader"), - QT_TRANSLATE_NOOP("Quick3DModel", "Particle Update"), + QT_TRANSLATE_NOOP("QmlProfiler", "Render Frame"), + QT_TRANSLATE_NOOP("QmlProfiler", "Synchronize Frame"), + QT_TRANSLATE_NOOP("QmlProfiler", "Prepare Frame"), + QT_TRANSLATE_NOOP("QmlProfiler", "Mesh Load"), + QT_TRANSLATE_NOOP("QmlProfiler", "Custom Mesh Load"), + QT_TRANSLATE_NOOP("QmlProfiler", "Texture Load"), + QT_TRANSLATE_NOOP("QmlProfiler", "Generate Shader"), + QT_TRANSLATE_NOOP("QmlProfiler", "Load Shader"), + QT_TRANSLATE_NOOP("QmlProfiler", "Particle Update"), - QT_TRANSLATE_NOOP("Quick3DModel", "Mesh Memory consumption"), - QT_TRANSLATE_NOOP("Quick3DModel", "Texture Memory consumption"), + QT_TRANSLATE_NOOP("QmlProfiler", "Mesh Memory consumption"), + QT_TRANSLATE_NOOP("QmlProfiler", "Texture Memory consumption"), }; static const char *unloadMessageTypes[] = { - QT_TRANSLATE_NOOP("Quick3DModel", "Mesh Unload"), - QT_TRANSLATE_NOOP("Quick3DModel", "Custom Mesh Unload"), - QT_TRANSLATE_NOOP("Quick3DModel", "Texture Unload"), + QT_TRANSLATE_NOOP("QmlProfiler", "Mesh Unload"), + QT_TRANSLATE_NOOP("QmlProfiler", "Custom Mesh Unload"), + QT_TRANSLATE_NOOP("QmlProfiler", "Texture Unload"), }; QString Quick3DModel::messageType(uint i) { - return i < sizeof(messageTypes) / sizeof(char *) ? tr(messageTypes[i]) : - tr("Unknown Message %1").arg(i); + return i < sizeof(messageTypes) / sizeof(char *) ? Tr::tr(messageTypes[i]) : + Tr::tr("Unknown Message %1").arg(i); } QString Quick3DModel::unloadMessageType(uint i) { switch (i) { case MeshLoad: - return tr(unloadMessageTypes[0]); + return Tr::tr(unloadMessageTypes[0]); case CustomMeshLoad: - return tr(unloadMessageTypes[1]); + return Tr::tr(unloadMessageTypes[1]); case TextureLoad: - return tr(unloadMessageTypes[2]); + return Tr::tr(unloadMessageTypes[2]); } - return tr("Unknown Unload Message %1").arg(i); + return Tr::tr("Unknown Unload Message %1").arg(i); } QVariantList Quick3DModel::labels() const @@ -67,7 +68,7 @@ QVariantList Quick3DModel::labels() const for (int i = 0; i <= m_maximumMsgType; ++i) { QVariantMap element; element.insert(QLatin1String("displayName"), - i != ParticleUpdate ? tr("Render Thread") : tr("GUI Thread")); + i != ParticleUpdate ? Tr::tr("Render Thread") : Tr::tr("GUI Thread")); element.insert(QLatin1String("description"), messageType(i)); element.insert(QLatin1String("id"), i); result << element; @@ -101,22 +102,22 @@ QVariantMap Quick3DModel::details(int index) const bool unload = m_data[index].unload; QVariantMap result; result.insert(QLatin1String("displayName"), - detailType != ParticleUpdate ? tr("Render Thread") : tr("GUI Thread")); - result.insert(tr("Description"), + detailType != ParticleUpdate ? Tr::tr("Render Thread") : Tr::tr("GUI Thread")); + result.insert(Tr::tr("Description"), !unload ? messageType(detailType) : unloadMessageType(detailType)); if (detailType < MeshMemoryConsumption) - result.insert(tr("Duration"), Timeline::formatTime(duration(index))); + result.insert(Tr::tr("Duration"), Timeline::formatTime(duration(index))); if (detailType == ParticleUpdate) - result.insert(tr("Count"), m_data[index].data); + result.insert(Tr::tr("Count"), m_data[index].data); if (detailType == RenderFrame) { quint32 calls = m_data[index].data & 0xffffffff; quint32 passes = m_data[index].data >> 32; - result.insert(tr("Draw Calls"), calls); - result.insert(tr("Render Passes"), passes); + result.insert(Tr::tr("Draw Calls"), calls); + result.insert(Tr::tr("Render Passes"), passes); } if ((detailType >= MeshLoad && detailType <= TextureLoad) || (detailType >= MeshMemoryConsumption && detailType <= TextureMemoryConsumption)) { - result.insert(tr("Total Memory Usage"), m_data[index].data); + result.insert(Tr::tr("Total Memory Usage"), m_data[index].data); } return result; } diff --git a/src/plugins/qmlprofiler/scenegraphtimelinemodel.cpp b/src/plugins/qmlprofiler/scenegraphtimelinemodel.cpp index e16284fed66..d6ddc9ed5c4 100644 --- a/src/plugins/qmlprofiler/scenegraphtimelinemodel.cpp +++ b/src/plugins/qmlprofiler/scenegraphtimelinemodel.cpp @@ -1,9 +1,10 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 -#include "scenegraphtimelinemodel.h" -#include "qmlprofilermodelmanager.h" #include "qmlprofilereventtypes.h" +#include "qmlprofilermodelmanager.h" +#include "qmlprofilertr.h" +#include "scenegraphtimelinemodel.h" #include @@ -14,32 +15,32 @@ namespace QmlProfiler { namespace Internal { static const char *ThreadLabels[] = { - QT_TRANSLATE_NOOP("MainView", "GUI Thread"), - QT_TRANSLATE_NOOP("MainView", "Render Thread"), - QT_TRANSLATE_NOOP("MainView", "Render Thread Details") + QT_TRANSLATE_NOOP("QmlProfiler", "GUI Thread"), + QT_TRANSLATE_NOOP("QmlProfiler", "Render Thread"), + QT_TRANSLATE_NOOP("QmlProfiler", "Render Thread Details") }; static const char *StageLabels[] = { - QT_TRANSLATE_NOOP("MainView", "Polish"), - QT_TRANSLATE_NOOP("MainView", "Wait"), - QT_TRANSLATE_NOOP("MainView", "GUI Thread Sync"), - QT_TRANSLATE_NOOP("MainView", "Animations"), - QT_TRANSLATE_NOOP("MainView", "Render Thread Sync"), - QT_TRANSLATE_NOOP("MainView", "Render"), - QT_TRANSLATE_NOOP("MainView", "Swap"), - QT_TRANSLATE_NOOP("MainView", "Render Preprocess"), - QT_TRANSLATE_NOOP("MainView", "Render Update"), - QT_TRANSLATE_NOOP("MainView", "Render Bind"), - QT_TRANSLATE_NOOP("MainView", "Render Render"), - QT_TRANSLATE_NOOP("MainView", "Material Compile"), - QT_TRANSLATE_NOOP("MainView", "Glyph Render"), - QT_TRANSLATE_NOOP("MainView", "Glyph Upload"), - QT_TRANSLATE_NOOP("MainView", "Texture Bind"), - QT_TRANSLATE_NOOP("MainView", "Texture Convert"), - QT_TRANSLATE_NOOP("MainView", "Texture Swizzle"), - QT_TRANSLATE_NOOP("MainView", "Texture Upload"), - QT_TRANSLATE_NOOP("MainView", "Texture Mipmap"), - QT_TRANSLATE_NOOP("MainView", "Texture Delete") + QT_TRANSLATE_NOOP("QmlProfiler", "Polish"), + QT_TRANSLATE_NOOP("QmlProfiler", "Wait"), + QT_TRANSLATE_NOOP("QmlProfiler", "GUI Thread Sync"), + QT_TRANSLATE_NOOP("QmlProfiler", "Animations"), + QT_TRANSLATE_NOOP("QmlProfiler", "Render Thread Sync"), + QT_TRANSLATE_NOOP("QmlProfiler", "Render"), + QT_TRANSLATE_NOOP("QmlProfiler", "Swap"), + QT_TRANSLATE_NOOP("QmlProfiler", "Render Preprocess"), + QT_TRANSLATE_NOOP("QmlProfiler", "Render Update"), + QT_TRANSLATE_NOOP("QmlProfiler", "Render Bind"), + QT_TRANSLATE_NOOP("QmlProfiler", "Render Render"), + QT_TRANSLATE_NOOP("QmlProfiler", "Material Compile"), + QT_TRANSLATE_NOOP("QmlProfiler", "Glyph Render"), + QT_TRANSLATE_NOOP("QmlProfiler", "Glyph Upload"), + QT_TRANSLATE_NOOP("QmlProfiler", "Texture Bind"), + QT_TRANSLATE_NOOP("QmlProfiler", "Texture Convert"), + QT_TRANSLATE_NOOP("QmlProfiler", "Texture Swizzle"), + QT_TRANSLATE_NOOP("QmlProfiler", "Texture Upload"), + QT_TRANSLATE_NOOP("QmlProfiler", "Texture Mipmap"), + QT_TRANSLATE_NOOP("QmlProfiler", "Texture Delete") }; enum SceneGraphCategoryType { @@ -86,8 +87,8 @@ QVariantList SceneGraphTimelineModel::labels() const for (SceneGraphStage i = MinimumSceneGraphStage; i < MaximumSceneGraphStage; i = static_cast(i + 1)) { QVariantMap element; - element.insert(QLatin1String("displayName"), tr(threadLabel(i))); - element.insert(QLatin1String("description"), tr(StageLabels[i])); + element.insert(QLatin1String("displayName"), Tr::tr(threadLabel(i))); + element.insert(QLatin1String("description"), Tr::tr(StageLabels[i])); element.insert(QLatin1String("id"), i); result << element; } @@ -100,13 +101,13 @@ QVariantMap SceneGraphTimelineModel::details(int index) const QVariantMap result; const SceneGraphStage stage = static_cast(selectionId(index)); - result.insert(QLatin1String("displayName"), tr(threadLabel(stage))); - result.insert(tr("Stage"), tr(StageLabels[stage])); - result.insert(tr("Duration"), Timeline::formatTime(duration(index))); + result.insert(QLatin1String("displayName"), Tr::tr(threadLabel(stage))); + result.insert(Tr::tr("Stage"), Tr::tr(StageLabels[stage])); + result.insert(Tr::tr("Duration"), Timeline::formatTime(duration(index))); const int glyphCount = m_data[index].glyphCount; if (glyphCount >= 0) - result.insert(tr("Glyphs"), QString::number(glyphCount)); + result.insert(Tr::tr("Glyphs"), QString::number(glyphCount)); return result; } diff --git a/src/plugins/qmlprofiler/tests/debugmessagesmodel_test.cpp b/src/plugins/qmlprofiler/tests/debugmessagesmodel_test.cpp index eea2f371586..9d702e24e0a 100644 --- a/src/plugins/qmlprofiler/tests/debugmessagesmodel_test.cpp +++ b/src/plugins/qmlprofiler/tests/debugmessagesmodel_test.cpp @@ -2,6 +2,7 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 #include "debugmessagesmodel_test.h" +#include "qmlprofilertr.h" #include @@ -49,11 +50,11 @@ void DebugMessagesModelTest::testColor() } static const char *messageTypes[] = { - QT_TRANSLATE_NOOP("DebugMessagesModel", "Debug Message"), - QT_TRANSLATE_NOOP("DebugMessagesModel", "Warning Message"), - QT_TRANSLATE_NOOP("DebugMessagesModel", "Critical Message"), - QT_TRANSLATE_NOOP("DebugMessagesModel", "Fatal Message"), - QT_TRANSLATE_NOOP("DebugMessagesModel", "Info Message"), + QT_TRANSLATE_NOOP("QmlProfiler", "Debug Message"), + QT_TRANSLATE_NOOP("QmlProfiler", "Warning Message"), + QT_TRANSLATE_NOOP("QmlProfiler", "Critical Message"), + QT_TRANSLATE_NOOP("QmlProfiler", "Fatal Message"), + QT_TRANSLATE_NOOP("QmlProfiler", "Info Message"), }; void DebugMessagesModelTest::testLabels() @@ -61,7 +62,7 @@ void DebugMessagesModelTest::testLabels() QVariantList labels = model.labels(); for (int i = 0; i <= QtMsgType::QtInfoMsg; ++i) { QVariantMap element = labels[i].toMap(); - QCOMPARE(element[QLatin1String("description")].toString(), model.tr(messageTypes[i])); + QCOMPARE(element[QLatin1String("description")].toString(), Tr::tr(messageTypes[i])); QCOMPARE(element[QLatin1String("id")].toInt(), i); } } @@ -71,12 +72,12 @@ void DebugMessagesModelTest::testDetails() for (int i = 0; i < 10; ++i) { QVariantMap details = model.details(i); QCOMPARE(details.value(QLatin1String("displayName")).toString(), - model.tr(messageTypes[i % (QtMsgType::QtInfoMsg + 1)])); - QCOMPARE(details.value(model.tr("Timestamp")).toString(), + Tr::tr(messageTypes[i % (QtMsgType::QtInfoMsg + 1)])); + QCOMPARE(details.value(Tr::tr("Timestamp")).toString(), Timeline::formatTime(i)); - QCOMPARE(details.value(model.tr("Message")).toString(), + QCOMPARE(details.value(Tr::tr("Message")).toString(), QString::fromLatin1("message %1").arg(i)); - QCOMPARE(details.value(model.tr("Location")).toString(), + QCOMPARE(details.value(Tr::tr("Location")).toString(), QString::fromLatin1("somefile.js:%1").arg(i)); } } diff --git a/src/plugins/qmlprofiler/tests/flamegraphmodel_test.cpp b/src/plugins/qmlprofiler/tests/flamegraphmodel_test.cpp index 9f6c81a355d..dfa7e02ea17 100644 --- a/src/plugins/qmlprofiler/tests/flamegraphmodel_test.cpp +++ b/src/plugins/qmlprofiler/tests/flamegraphmodel_test.cpp @@ -2,6 +2,7 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 #include "flamegraphmodel_test.h" +#include "qmlprofilertr.h" #include @@ -111,10 +112,10 @@ void FlameGraphModelTest::testCounts() void FlameGraphModelTest::testData() { const QVector typeRoles({ - FlameGraphModel::tr("JavaScript"), - FlameGraphModel::tr("Signal"), - FlameGraphModel::tr("Binding"), - FlameGraphModel::tr("Create") + Tr::tr("JavaScript"), + Tr::tr("Signal"), + Tr::tr("Binding"), + Tr::tr("Create") }); QModelIndex index = model.index(0, 0); @@ -122,9 +123,9 @@ void FlameGraphModelTest::testData() QCOMPARE(model.data(index, FlameGraphModel::TypeIdRole).toInt(), 0); QCOMPARE(model.data(index2, FlameGraphModel::TypeIdRole).toInt(), 4); QCOMPARE(model.data(index, FlameGraphModel::TypeRole).toString(), - FlameGraphModel::tr("JavaScript")); + Tr::tr("JavaScript")); QCOMPARE(model.data(index2, FlameGraphModel::TypeRole).toString(), - FlameGraphModel::tr("Compile")); + Tr::tr("Compile")); QCOMPARE(model.data(index, FlameGraphModel::DurationRole).toLongLong(), 21); QCOMPARE(model.data(index2, FlameGraphModel::DurationRole).toLongLong(), 13); QCOMPARE(model.data(index, FlameGraphModel::CallCountRole).toInt(), 1); @@ -172,7 +173,7 @@ void FlameGraphModelTest::testData() index2 = model.index(0, 0, index2); QCOMPARE(model.data(index2, FlameGraphModel::TypeRole).toString(), - FlameGraphModel::tr("Compile")); + Tr::tr("Compile")); QCOMPARE(model.data(index2, FlameGraphModel::NoteRole).toString(), QString()); QCOMPARE(model.data(index2, FlameGraphModel::CallCountRole).toInt(), 1); } diff --git a/src/plugins/qmlprofiler/tests/inputeventsmodel_test.cpp b/src/plugins/qmlprofiler/tests/inputeventsmodel_test.cpp index 78d64cc90c8..3a98aee3cc0 100644 --- a/src/plugins/qmlprofiler/tests/inputeventsmodel_test.cpp +++ b/src/plugins/qmlprofiler/tests/inputeventsmodel_test.cpp @@ -2,6 +2,7 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 #include "inputeventsmodel_test.h" +#include "qmlprofilertr.h" #include #include @@ -70,11 +71,11 @@ void InputEventsModelTest::testLabels() { QVariantList labels = model.labels(); QVariantMap mouseLabel = labels[0].toMap(); - QCOMPARE(mouseLabel[QString("description")].toString(), model.tr("Mouse Events")); + QCOMPARE(mouseLabel[QString("description")].toString(), Tr::tr("Mouse Events")); QCOMPARE(mouseLabel[QString("id")].toInt(), static_cast(Mouse)); QVariantMap keyLabel = labels[1].toMap(); - QCOMPARE(keyLabel[QString("description")].toString(), model.tr("Keyboard Events")); + QCOMPARE(keyLabel[QString("description")].toString(), Tr::tr("Keyboard Events")); QCOMPARE(keyLabel[QString("id")].toInt(), static_cast(Key)); } @@ -82,75 +83,75 @@ void InputEventsModelTest::testDetails() { for (int i = 0; i < 10; ++i) { const QVariantMap details = model.details(i); - QCOMPARE(details[model.tr("Timestamp")].toString(), Timeline::formatTime(i)); + QCOMPARE(details[Tr::tr("Timestamp")].toString(), Timeline::formatTime(i)); QString displayName = details[QString("displayName")].toString(); QVERIFY(!displayName.isEmpty()); switch (inputType(i)) { case InputKeyPress: - QCOMPARE(displayName, model.tr("Key Press")); + QCOMPARE(displayName, Tr::tr("Key Press")); if (i == 0) { // all the numbers are 0 here, so no other members - QVERIFY(!details.contains(model.tr("Key"))); - QVERIFY(!details.contains(model.tr("Modifiers"))); + QVERIFY(!details.contains(Tr::tr("Key"))); + QVERIFY(!details.contains(Tr::tr("Modifiers"))); } else { - QCOMPARE(details[model.tr("Key")].toString(), QString("Key_Space")); - QCOMPARE(details[model.tr("Modifiers")].toString(), + QCOMPARE(details[Tr::tr("Key")].toString(), QString("Key_Space")); + QCOMPARE(details[Tr::tr("Modifiers")].toString(), QString("ShiftModifier|MetaModifier")); } break; case InputKeyRelease: - QCOMPARE(displayName, model.tr("Key Release")); - QCOMPARE(details[model.tr("Modifiers")].toString(), QString("ShiftModifier")); - QCOMPARE(details[model.tr("Key")].toString(), QString("Key_Space")); + QCOMPARE(displayName, Tr::tr("Key Release")); + QCOMPARE(details[Tr::tr("Modifiers")].toString(), QString("ShiftModifier")); + QCOMPARE(details[Tr::tr("Key")].toString(), QString("Key_Space")); break; case InputKeyUnknown: - QCOMPARE(displayName, model.tr("Keyboard Event")); - QVERIFY(!details.contains(model.tr("Key"))); - QVERIFY(!details.contains(model.tr("Modifiers"))); + QCOMPARE(displayName, Tr::tr("Keyboard Event")); + QVERIFY(!details.contains(Tr::tr("Key"))); + QVERIFY(!details.contains(Tr::tr("Modifiers"))); break; case InputMousePress: - QCOMPARE(displayName, model.tr("Mouse Press")); + QCOMPARE(displayName, Tr::tr("Mouse Press")); // 0x60 is not a valid mouse button - QVERIFY(details.contains(model.tr("Button"))); - QVERIFY(details[model.tr("Button")].toString().isEmpty()); + QVERIFY(details.contains(Tr::tr("Button"))); + QVERIFY(details[Tr::tr("Button")].toString().isEmpty()); - QCOMPARE(details[model.tr("Result")].toString(), + QCOMPARE(details[Tr::tr("Result")].toString(), QString("ExtraButton23|MaxMouseButton")); break; case InputMouseRelease: - QCOMPARE(displayName, model.tr("Mouse Release")); - QCOMPARE(details[model.tr("Button")].toString(), QString("ExtraButton5")); - QVERIFY(details.contains(model.tr("Result"))); - QVERIFY(details[model.tr("Result")].toString().isEmpty()); + QCOMPARE(displayName, Tr::tr("Mouse Release")); + QCOMPARE(details[Tr::tr("Button")].toString(), QString("ExtraButton5")); + QVERIFY(details.contains(Tr::tr("Result"))); + QVERIFY(details[Tr::tr("Result")].toString().isEmpty()); break; case InputMouseMove: - QCOMPARE(displayName, model.tr("Mouse Move")); - QCOMPARE(details[model.tr("X")].toString(), QString("160")); - QCOMPARE(details[model.tr("Y")].toString(), QString("167772160")); + QCOMPARE(displayName, Tr::tr("Mouse Move")); + QCOMPARE(details[Tr::tr("X")].toString(), QString("160")); + QCOMPARE(details[Tr::tr("Y")].toString(), QString("167772160")); break; case InputMouseDoubleClick: - QCOMPARE(displayName, model.tr("Double Click")); - QVERIFY(details.contains(model.tr("Button"))); - QVERIFY(details[model.tr("Button")].toString().isEmpty()); - QCOMPARE(details[model.tr("Result")].toString(), QString("MaxMouseButton")); + QCOMPARE(displayName, Tr::tr("Double Click")); + QVERIFY(details.contains(Tr::tr("Button"))); + QVERIFY(details[Tr::tr("Button")].toString().isEmpty()); + QCOMPARE(details[Tr::tr("Result")].toString(), QString("MaxMouseButton")); break; case InputMouseWheel: - QCOMPARE(displayName, model.tr("Mouse Wheel")); - QCOMPARE(details[model.tr("Angle X")].toString(), QString("224")); - QCOMPARE(details[model.tr("Angle Y")].toString(), QString("234881024")); + QCOMPARE(displayName, Tr::tr("Mouse Wheel")); + QCOMPARE(details[Tr::tr("Angle X")].toString(), QString("224")); + QCOMPARE(details[Tr::tr("Angle Y")].toString(), QString("234881024")); break; case InputMouseUnknown: - QCOMPARE(displayName, model.tr("Mouse Event")); - QVERIFY(!details.contains(model.tr("X"))); - QVERIFY(!details.contains(model.tr("Y"))); - QVERIFY(!details.contains(model.tr("Angle X"))); - QVERIFY(!details.contains(model.tr("Angle Y"))); - QVERIFY(!details.contains(model.tr("Button"))); - QVERIFY(!details.contains(model.tr("Result"))); + QCOMPARE(displayName, Tr::tr("Mouse Event")); + QVERIFY(!details.contains(Tr::tr("X"))); + QVERIFY(!details.contains(Tr::tr("Y"))); + QVERIFY(!details.contains(Tr::tr("Angle X"))); + QVERIFY(!details.contains(Tr::tr("Angle Y"))); + QVERIFY(!details.contains(Tr::tr("Button"))); + QVERIFY(!details.contains(Tr::tr("Result"))); break; default: - QCOMPARE(displayName, model.tr("Unknown")); + QCOMPARE(displayName, Tr::tr("Unknown")); break; } } diff --git a/src/plugins/qmlprofiler/tests/memoryusagemodel_test.cpp b/src/plugins/qmlprofiler/tests/memoryusagemodel_test.cpp index 1d0dba4171e..ca25338ad1d 100644 --- a/src/plugins/qmlprofiler/tests/memoryusagemodel_test.cpp +++ b/src/plugins/qmlprofiler/tests/memoryusagemodel_test.cpp @@ -2,6 +2,7 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 #include "memoryusagemodel_test.h" +#include "qmlprofilertr.h" #include namespace QmlProfiler { @@ -115,52 +116,52 @@ void MemoryUsageModelTest::testLabels() const QVariantList labels = model.labels(); const QVariantMap allocations = labels[0].toMap(); - QCOMPARE(allocations[QString("description")].toString(), model.tr("Memory Allocation")); + QCOMPARE(allocations[QString("description")].toString(), Tr::tr("Memory Allocation")); QCOMPARE(allocations[QString("id")].toInt(), static_cast(HeapPage)); const QVariantMap usages = labels[1].toMap(); - QCOMPARE(usages[QString("description")].toString(), model.tr("Memory Usage")); + QCOMPARE(usages[QString("description")].toString(), Tr::tr("Memory Usage")); QCOMPARE(usages[QString("id")].toInt(), static_cast(SmallItem)); } void MemoryUsageModelTest::testDetails() { const QVariantMap allocated = model.details(0); - QCOMPARE(allocated[QString("displayName")].toString(), model.tr("Memory Allocated")); - QCOMPARE(allocated[model.tr("Total")].toString(), - model.tr("%n byte(s)", nullptr, 4096)); - QCOMPARE(allocated[model.tr("Allocated")].toString(), - model.tr("%n byte(s)", nullptr, 4096)); - QCOMPARE(allocated[model.tr("Allocations")].toString(), QString::number(2)); - QCOMPARE(allocated[model.tr("Type")].toString(), model.tr("Heap Allocation")); - QCOMPARE(allocated[model.tr("Location")].toString(), QmlProfilerModelManager::tr("")); + QCOMPARE(allocated[QString("displayName")].toString(), Tr::tr("Memory Allocated")); + QCOMPARE(allocated[Tr::tr("Total")].toString(), + Tr::tr("%n byte(s)", nullptr, 4096)); + QCOMPARE(allocated[Tr::tr("Allocated")].toString(), + Tr::tr("%n byte(s)", nullptr, 4096)); + QCOMPARE(allocated[Tr::tr("Allocations")].toString(), QString::number(2)); + QCOMPARE(allocated[Tr::tr("Type")].toString(), Tr::tr("Heap Allocation")); + QCOMPARE(allocated[Tr::tr("Location")].toString(), Tr::tr("")); - QVERIFY(!allocated.contains(model.tr("Deallocated"))); - QVERIFY(!allocated.contains(model.tr("Deallocations"))); + QVERIFY(!allocated.contains(Tr::tr("Deallocated"))); + QVERIFY(!allocated.contains(Tr::tr("Deallocations"))); const QVariantMap large = model.details(2); - QCOMPARE(large[QString("displayName")].toString(), model.tr("Memory Allocated")); - QCOMPARE(large[model.tr("Total")].toString(), - model.tr("%n byte(s)", nullptr, 5120)); - QCOMPARE(large[model.tr("Allocated")].toString(), - model.tr("%n byte(s)", nullptr, 1024)); - QCOMPARE(large[model.tr("Allocations")].toString(), QString::number(1)); - QCOMPARE(large[model.tr("Type")].toString(), model.tr("Large Item Allocation")); - QCOMPARE(large[model.tr("Location")].toString(), QmlProfilerModelManager::tr("")); + QCOMPARE(large[QString("displayName")].toString(), Tr::tr("Memory Allocated")); + QCOMPARE(large[Tr::tr("Total")].toString(), + Tr::tr("%n byte(s)", nullptr, 5120)); + QCOMPARE(large[Tr::tr("Allocated")].toString(), + Tr::tr("%n byte(s)", nullptr, 1024)); + QCOMPARE(large[Tr::tr("Allocations")].toString(), QString::number(1)); + QCOMPARE(large[Tr::tr("Type")].toString(), Tr::tr("Large Item Allocation")); + QCOMPARE(large[Tr::tr("Location")].toString(), Tr::tr("")); - QVERIFY(!large.contains(model.tr("Deallocated"))); - QVERIFY(!large.contains(model.tr("Deallocations"))); + QVERIFY(!large.contains(Tr::tr("Deallocated"))); + QVERIFY(!large.contains(Tr::tr("Deallocations"))); const QVariantMap freed = model.details(9); - QCOMPARE(freed[QString("displayName")].toString(), model.tr("Memory Freed")); - QCOMPARE(freed[model.tr("Total")].toString(), model.tr("%n byte(s)", nullptr, 2048)); - QCOMPARE(freed[model.tr("Deallocated")].toString(), model.tr("%n byte(s)", nullptr, 1024)); - QCOMPARE(freed[model.tr("Deallocations")].toString(), QString::number(1)); - QCOMPARE(freed[model.tr("Type")].toString(), model.tr("Heap Usage")); - QCOMPARE(freed[model.tr("Location")].toString(), QmlProfilerModelManager::tr("")); + QCOMPARE(freed[QString("displayName")].toString(), Tr::tr("Memory Freed")); + QCOMPARE(freed[Tr::tr("Total")].toString(), Tr::tr("%n byte(s)", nullptr, 2048)); + QCOMPARE(freed[Tr::tr("Deallocated")].toString(), Tr::tr("%n byte(s)", nullptr, 1024)); + QCOMPARE(freed[Tr::tr("Deallocations")].toString(), QString::number(1)); + QCOMPARE(freed[Tr::tr("Type")].toString(), Tr::tr("Heap Usage")); + QCOMPARE(freed[Tr::tr("Location")].toString(), Tr::tr("")); - QVERIFY(!freed.contains(model.tr("Allocated"))); - QVERIFY(!freed.contains(model.tr("Allocations"))); + QVERIFY(!freed.contains(Tr::tr("Allocated"))); + QVERIFY(!freed.contains(Tr::tr("Allocations"))); } void MemoryUsageModelTest::testExpandedRow() diff --git a/src/plugins/qmlprofiler/tests/pixmapcachemodel_test.cpp b/src/plugins/qmlprofiler/tests/pixmapcachemodel_test.cpp index f6e8dfd0c1d..8f5f05797e2 100644 --- a/src/plugins/qmlprofiler/tests/pixmapcachemodel_test.cpp +++ b/src/plugins/qmlprofiler/tests/pixmapcachemodel_test.cpp @@ -2,6 +2,7 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 #include "pixmapcachemodel_test.h" +#include "qmlprofilertr.h" #include #include @@ -218,25 +219,25 @@ void PixmapCacheModelTest::testConsistency() break; case 1: QCOMPARE(collapsedRow, 1); - QVERIFY(details[QLatin1String("displayName")].toString() == model.tr("Image Cached")); - QVERIFY(details.contains(model.tr("Cache Size"))); + QVERIFY(details[QLatin1String("displayName")].toString() == Tr::tr("Image Cached")); + QVERIFY(details.contains(Tr::tr("Cache Size"))); break; default: QVERIFY(collapsedRow > 1); QCOMPARE(model.relativeHeight(i), 1.0f); QVERIFY(expandedRow < model.expandedRowCount()); - QVERIFY(details[QLatin1String("displayName")].toString() == model.tr("Image Loaded")); - QCOMPARE(details[model.tr("Duration")].toString(), + QVERIFY(details[QLatin1String("displayName")].toString() == Tr::tr("Image Loaded")); + QCOMPARE(details[Tr::tr("Duration")].toString(), Timeline::formatTime(model.duration(i))); // In expanded view pixmaps of the same URL but different sizes are allowed to overlap. // It looks bad, but that should be a rare thing. break; } - QString filename = details[PixmapCacheModel::tr("File")].toString(); + QString filename = details[Tr::tr("File")].toString(); QVERIFY(filename == QString("dings.png") || filename == QString("blah.png")); - QVERIFY(details.contains(PixmapCacheModel::tr("Width"))); - QVERIFY(details.contains(PixmapCacheModel::tr("Height"))); + QVERIFY(details.contains(Tr::tr("Width"))); + QVERIFY(details.contains(Tr::tr("Height"))); } } @@ -275,7 +276,7 @@ void PixmapCacheModelTest::testLabels() const QVariantMap countRow = labels[0].toMap(); - QCOMPARE(countRow[QString("description")].toString(), model.tr("Cache Size")); + QCOMPARE(countRow[QString("description")].toString(), Tr::tr("Cache Size")); QCOMPARE(countRow[QString("id")].toInt(), 0); const QVariantMap dingsRow = labels[1].toMap(); diff --git a/src/plugins/qmlprofiler/tests/qmlprofileranimationsmodel_test.cpp b/src/plugins/qmlprofiler/tests/qmlprofileranimationsmodel_test.cpp index 7c54547b357..2003dff8260 100644 --- a/src/plugins/qmlprofiler/tests/qmlprofileranimationsmodel_test.cpp +++ b/src/plugins/qmlprofiler/tests/qmlprofileranimationsmodel_test.cpp @@ -2,6 +2,7 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 #include "qmlprofileranimationsmodel_test.h" +#include "qmlprofilertr.h" #include #include @@ -81,13 +82,13 @@ void QmlProfilerAnimationsModelTest::testLabels() QCOMPARE(labels.length(), 2); QVariantMap label0 = labels[0].toMap(); - QCOMPARE(label0["displayName"].toString(), QmlProfilerAnimationsModel::tr("Animations")); - QCOMPARE(label0["description"].toString(), QmlProfilerAnimationsModel::tr("GUI Thread")); + QCOMPARE(label0["displayName"].toString(), Tr::tr("Animations")); + QCOMPARE(label0["description"].toString(), Tr::tr("GUI Thread")); QCOMPARE(label0["id"].toInt(), static_cast(GuiThread)); QVariantMap label1 = labels[1].toMap(); - QCOMPARE(label1["displayName"].toString(), QmlProfilerAnimationsModel::tr("Animations")); - QCOMPARE(label1["description"].toString(), QmlProfilerAnimationsModel::tr("Render Thread")); + QCOMPARE(label1["displayName"].toString(), Tr::tr("Animations")); + QCOMPARE(label1["description"].toString(), Tr::tr("Render Thread")); QCOMPARE(label1["id"].toInt(), static_cast(RenderThread)); } @@ -96,15 +97,15 @@ void QmlProfilerAnimationsModelTest::testDetails() for (int i = 0; i < 10; ++i) { QVariantMap details = model.details(i); QCOMPARE(details["displayName"].toString(), model.displayName()); - QCOMPARE(details[QmlProfilerAnimationsModel::tr("Duration")].toString(), + QCOMPARE(details[Tr::tr("Duration")].toString(), Timeline::formatTime(1)); - QCOMPARE(details[QmlProfilerAnimationsModel::tr("Framerate")].toString(), + QCOMPARE(details[Tr::tr("Framerate")].toString(), QString::fromLatin1("%1 FPS").arg(frameRate(i))); - QCOMPARE(details[QmlProfilerAnimationsModel::tr("Animations")].toString(), + QCOMPARE(details[Tr::tr("Animations")].toString(), QString::number(9 - i)); - QCOMPARE(details[QmlProfilerAnimationsModel::tr("Context")].toString(), i % 2 ? - QmlProfilerAnimationsModel::tr("Render Thread") : - QmlProfilerAnimationsModel::tr("GUI Thread")); + QCOMPARE(details[Tr::tr("Context")].toString(), i % 2 ? + Tr::tr("Render Thread") : + Tr::tr("GUI Thread")); } } diff --git a/src/plugins/qmlprofiler/tests/qmlprofilertraceclient_test.cpp b/src/plugins/qmlprofiler/tests/qmlprofilertraceclient_test.cpp index 71e3fabcc04..7afa6ff7127 100644 --- a/src/plugins/qmlprofiler/tests/qmlprofilertraceclient_test.cpp +++ b/src/plugins/qmlprofiler/tests/qmlprofilertraceclient_test.cpp @@ -1,6 +1,7 @@ // Copyright (C) 2017 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 +#include "qmlprofilertr.h" #include "qmlprofilertraceclient_test.h" #include #include @@ -66,7 +67,7 @@ void QmlProfilerTraceClientTest::testMessageReceived() traceClient.clear(); }, [this, &lastError](const QString &message) { QVERIFY(!message.isEmpty()); - if (lastError == QmlProfilerModelManager::tr("Read past end in temporary trace file.")) { + if (lastError == Tr::tr("Read past end in temporary trace file.")) { // Ignore read-past-end errors: Our test traces are somewhat dirty and don't end on // packet boundaries modelManager.clearAll();