CppEditor: Convert to Tr::tr

Change-Id: Ic4025e06e17c45eb6dc2162fb7f21f5b8aebe84d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Alessandro Portale
2023-01-11 20:43:10 +01:00
committed by hjk
parent 85d067af91
commit f7bcd4f574
57 changed files with 664 additions and 1677 deletions

View File

@@ -2196,15 +2196,11 @@ Chcete je nechat přepsat?</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CPPEditor</name> <name>CppEditor</name>
<message> <message>
<source>Sort alphabetically</source> <source>Sort alphabetically</source>
<translation type="obsolete">Roztřídit podle abecedy</translation> <translation type="obsolete">Roztřídit podle abecedy</translation>
</message> </message>
<message>
<source>Sort Alphabetically</source>
<translation type="obsolete">Roztřídit podle abecedy</translation>
</message>
<message> <message>
<source>This change cannot be undone.</source> <source>This change cannot be undone.</source>
<translation type="obsolete">Tuto změnu nelze vrátit zpět.</translation> <translation type="obsolete">Tuto změnu nelze vrátit zpět.</translation>
@@ -2213,13 +2209,6 @@ Chcete je nechat přepsat?</translation>
<source>Yes, I know what I am doing.</source> <source>Yes, I know what I am doing.</source>
<translation type="obsolete">Ano, vím, co dělám.</translation> <translation type="obsolete">Ano, vím, co dělám.</translation>
</message> </message>
<message>
<source>Unused variable</source>
<translation type="obsolete">Nepoužívaná proměnná</translation>
</message>
</context>
<context>
<name>CppEditor::Internal::ClassNamePage</name>
<message> <message>
<source>Enter class name</source> <source>Enter class name</source>
<translation type="obsolete">Zadejte název třídy</translation> <translation type="obsolete">Zadejte název třídy</translation>
@@ -2236,16 +2225,10 @@ Chcete je nechat přepsat?</translation>
<source>Configure...</source> <source>Configure...</source>
<translation type="obsolete">Nastavení...</translation> <translation type="obsolete">Nastavení...</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppClassWizard</name>
<message> <message>
<source>Error while generating file contents.</source> <source>Error while generating file contents.</source>
<translation>Chyba při vytváření souboru.</translation> <translation>Chyba při vytváření souboru.</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppClassWizardDialog</name>
<message> <message>
<source>C++ Class Wizard</source> <source>C++ Class Wizard</source>
<translation>Průvodce pro novou třídu C++</translation> <translation>Průvodce pro novou třídu C++</translation>
@@ -2254,24 +2237,10 @@ Chcete je nechat přepsat?</translation>
<source>Details</source> <source>Details</source>
<translation>Podrobnosti</translation> <translation>Podrobnosti</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppHoverHandler</name>
<message> <message>
<source>Unfiltered</source> <source>Unfiltered</source>
<translation type="obsolete">Nezpracovaný</translation> <translation type="obsolete">Nezpracovaný</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppPlugin</name>
<message>
<source>C++</source>
<translation type="obsolete">C++</translation>
</message>
<message>
<source>C++ Header File</source>
<translation type="obsolete">Hlavičkový soubor C++</translation>
</message>
<message> <message>
<source>Creates a C++ header file.</source> <source>Creates a C++ header file.</source>
<translation type="obsolete">Vytvoří nový hlavičkový soubor C++.</translation> <translation type="obsolete">Vytvoří nový hlavičkový soubor C++.</translation>
@@ -2280,14 +2249,6 @@ Chcete je nechat přepsat?</translation>
<source>Creates a C++ source file.</source> <source>Creates a C++ source file.</source>
<translation type="obsolete">Vytvoří nový zdrojový soubor C++.</translation> <translation type="obsolete">Vytvoří nový zdrojový soubor C++.</translation>
</message> </message>
<message>
<source>C++ Source File</source>
<translation type="obsolete">Zdrojový soubor C++</translation>
</message>
<message>
<source>C++ Class</source>
<translation type="obsolete">Třída C++</translation>
</message>
<message> <message>
<source>Creates a header and a source file for a new class.</source> <source>Creates a header and a source file for a new class.</source>
<translation type="obsolete">Vytvoří nový hlavičkový a zdrojový soubor C++ pro novou třídu.</translation> <translation type="obsolete">Vytvoří nový hlavičkový a zdrojový soubor C++ pro novou třídu.</translation>
@@ -2300,70 +2261,10 @@ Chcete je nechat přepsat?</translation>
<source>Switch between Method Declaration/Definition</source> <source>Switch between Method Declaration/Definition</source>
<translation type="obsolete">Přepínání mezi prohlášením a vymezením postupu</translation> <translation type="obsolete">Přepínání mezi prohlášením a vymezením postupu</translation>
</message> </message>
<message>
<source>Creates a C++ header and a source file for a new class that you can add to a C++ project.</source>
<translation type="obsolete">Vytvoří hlavičku C++ a zdrojový soubor pro novou třídu, který můžete přidat do projektu C++.</translation>
</message>
<message>
<source>Creates a C++ source file that you can add to a C++ project.</source>
<translation type="obsolete">Vytvoří zdrojový soubor pro novou třídu, který můžete přidat do projektu C++.</translation>
</message>
<message>
<source>Creates a C++ header file that you can add to a C++ project.</source>
<translation type="obsolete">Vytvoří hlavičkový soubor C++, který můžete přidat do projektu C++.</translation>
</message>
<message> <message>
<source>Follow Symbol Under Cursor</source> <source>Follow Symbol Under Cursor</source>
<translation type="obsolete">Následovat symbol pod ukazovátkem</translation> <translation type="obsolete">Následovat symbol pod ukazovátkem</translation>
</message> </message>
<message>
<source>Switch Between Method Declaration/Definition</source>
<translation type="obsolete">Přepínání mezi deklarací a definicí metody</translation>
</message>
<message>
<source>Shift+F2</source>
<translation type="obsolete">Shift+F2</translation>
</message>
<message>
<source>Open Method Declaration/Definition in Next Split</source>
<translation type="obsolete">Otevřít deklaraci/definici metody v dalším rozdělení</translation>
</message>
<message>
<source>Ctrl+E, Shift+F2</source>
<translation type="obsolete">Ctrl+E, Shift+F2</translation>
</message>
<message>
<source>Find Usages</source>
<translation type="obsolete">Najít použití</translation>
</message>
<message>
<source>Ctrl+Shift+U</source>
<translation type="obsolete">Ctrl+Shift+U</translation>
</message>
<message>
<source>Open Type Hierarchy</source>
<translation type="obsolete">Otevřít hierarchii tříd</translation>
</message>
<message>
<source>Ctrl+Shift+T</source>
<translation type="obsolete">Ctrl+Shift+T</translation>
</message>
<message>
<source>Meta+Shift+T</source>
<translation type="obsolete">Meta+Shift+T</translation>
</message>
<message>
<source>Rename Symbol Under Cursor</source>
<translation type="obsolete">Přejmenovat symbol pod ukazovátkem</translation>
</message>
<message>
<source>CTRL+SHIFT+R</source>
<translation type="obsolete">Ctrl+Shift+R</translation>
</message>
<message>
<source>Update Code Model</source>
<translation type="obsolete">Obnovit model kódu</translation>
</message>
<message> <message>
<source>Rename Symbol under Cursor</source> <source>Rename Symbol under Cursor</source>
<translation type="obsolete">Přejmenovat symbol pod ukazovátkem</translation> <translation type="obsolete">Přejmenovat symbol pod ukazovátkem</translation>
@@ -33119,7 +33020,7 @@ správy verzí (%2)</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CPPEditorWidget</name> <name>CppEditor</name>
<message> <message>
<source>Sort Alphabetically</source> <source>Sort Alphabetically</source>
<translation>Roztřídit podle abecedy</translation> <translation>Roztřídit podle abecedy</translation>
@@ -33132,16 +33033,10 @@ správy verzí (%2)</translation>
<source>Unused variable</source> <source>Unused variable</source>
<translation>Nepoužívaná proměnná</translation> <translation>Nepoužívaná proměnná</translation>
</message> </message>
</context>
<context>
<name>CppEditor::InsertDeclOperation</name>
<message> <message>
<source>Add %1 Declaration</source> <source>Add %1 Declaration</source>
<translation>Přidat deklaraci pro %1</translation> <translation>Přidat deklaraci pro %1</translation>
</message> </message>
</context>
<context>
<name>CppEditor::InsertDefOperation</name>
<message> <message>
<source>Add Definition in %1</source> <source>Add Definition in %1</source>
<translation>Přidat definici v %1</translation> <translation>Přidat definici v %1</translation>
@@ -33158,9 +33053,6 @@ správy verzí (%2)</translation>
<source>Add Definition Outside Class</source> <source>Add Definition Outside Class</source>
<translation>Přidat definici vně třídy</translation> <translation>Přidat definici vně třídy</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::InsertQtPropertyMembers</name>
<message> <message>
<source>Generate missing Q_PROPERTY members...</source> <source>Generate missing Q_PROPERTY members...</source>
<translation type="obsolete">Doplnit chybějící prvky Q_PROPERTY...</translation> <translation type="obsolete">Doplnit chybějící prvky Q_PROPERTY...</translation>
@@ -33169,9 +33061,6 @@ správy verzí (%2)</translation>
<source>Generate Missing Q_PROPERTY Members...</source> <source>Generate Missing Q_PROPERTY Members...</source>
<translation type="obsolete">Doplnit chybějící prvky Q_PROPERTY...</translation> <translation type="obsolete">Doplnit chybějící prvky Q_PROPERTY...</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppOutlineTreeView</name>
<message> <message>
<source>Expand All</source> <source>Expand All</source>
<translation>Rozbalit vše</translation> <translation>Rozbalit vše</translation>
@@ -33180,16 +33069,6 @@ správy verzí (%2)</translation>
<source>Collapse All</source> <source>Collapse All</source>
<translation>Složit vše</translation> <translation>Složit vše</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppSnippetProvider</name>
<message>
<source>C++</source>
<translation>C++</translation>
</message>
</context>
<context>
<name>CppEditor::Internal::CppTypeHierarchyWidget</name>
<message> <message>
<source>No type hierarchy available</source> <source>No type hierarchy available</source>
<translation>Není dostupná žádná hierarchie tříd</translation> <translation>Není dostupná žádná hierarchie tříd</translation>
@@ -33202,9 +33081,6 @@ správy verzí (%2)</translation>
<source>Derived</source> <source>Derived</source>
<translation>Odvozené</translation> <translation>Odvozené</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppTypeHierarchyFactory</name>
<message> <message>
<source>Type Hierarchy</source> <source>Type Hierarchy</source>
<translation>Hierarchie tříd</translation> <translation>Hierarchie tříd</translation>
@@ -46967,7 +46843,7 @@ Pro přidání verzí Qt vyberte Volby -&gt; Sestavení a spuštění -&gt; Verz
</message> </message>
</context> </context>
<context> <context>
<name>QuickFix::ExtractFunction</name> <name>CppEditor</name>
<message> <message>
<source>Extract Function</source> <source>Extract Function</source>
<translation>Vytáhnout funkci</translation> <translation>Vytáhnout funkci</translation>
@@ -49989,7 +49865,7 @@ Nainstalujte, prosím, alespoň jedno SDK.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::FunctionDeclDefLink</name> <name>CppEditor</name>
<message> <message>
<source>Target file was changed, could not apply changes</source> <source>Target file was changed, could not apply changes</source>
<translation>Změny se nepodařilo použít, protože cílový soubor byl změněn</translation> <translation>Změny se nepodařilo použít, protože cílový soubor byl změněn</translation>
@@ -53315,7 +53191,7 @@ nelze najít v cestě.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CPlusPlus::CheckSymbols</name> <name>CppEditor</name>
<message> <message>
<source>Only virtual methods can be marked &apos;final&apos;</source> <source>Only virtual methods can be marked &apos;final&apos;</source>
<translation>Jen virtuální metody lze označit jako &apos;final&apos;</translation> <translation>Jen virtuální metody lze označit jako &apos;final&apos;</translation>
@@ -55559,7 +55435,7 @@ Lze používat části jmen, pokud jsou jednoznačné.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppEditorPlugin</name> <name>CppEditor</name>
<message> <message>
<source>C++ Class</source> <source>C++ Class</source>
<translation>Třída C++</translation> <translation>Třída C++</translation>
@@ -55689,7 +55565,7 @@ Lze používat části jmen, pokud jsou jednoznačné.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::QuickFix</name> <name>CppEditor</name>
<message> <message>
<source>Move Definition Outside Class</source> <source>Move Definition Outside Class</source>
<translation>Přesunout definice vně třídy</translation> <translation>Přesunout definice vně třídy</translation>
@@ -55706,9 +55582,6 @@ Lze používat části jmen, pokud jsou jednoznačné.</translation>
<source>Insert Virtual Functions of Base Classes</source> <source>Insert Virtual Functions of Base Classes</source>
<translation>Vložit virtuální funkce základních tříd</translation> <translation>Vložit virtuální funkce základních tříd</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::InsertVirtualMethodsDialog</name>
<message> <message>
<source>Insert Virtual Functions</source> <source>Insert Virtual Functions</source>
<translation>Vložit virtuální funkce</translation> <translation>Vložit virtuální funkce</translation>
@@ -56700,7 +56573,7 @@ monitor reset</source>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppPreProcessorDialog</name> <name>CppEditor</name>
<message> <message>
<source>Additional C++ Preprocessor Directives</source> <source>Additional C++ Preprocessor Directives</source>
<translation>Dodatečné příkazy pro preprocesor</translation> <translation>Dodatečné příkazy pro preprocesor</translation>
@@ -57675,21 +57548,15 @@ Soubory ve zdrojovém adresáři balíčku pro Android jsou zkopírovány do adr
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppIncludeHierarchyWidget</name> <name>CppEditor</name>
<message> <message>
<source>No include hierarchy available</source> <source>No include hierarchy available</source>
<translation>Není dostupná žádná hierarchie hlavičkových souborů</translation> <translation>Není dostupná žádná hierarchie hlavičkových souborů</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppIncludeHierarchyFactory</name>
<message> <message>
<source>Include Hierarchy</source> <source>Include Hierarchy</source>
<translation>Hierarchie hlavičkových souborů</translation> <translation>Hierarchie hlavičkových souborů</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppIncludeHierarchyModel</name>
<message> <message>
<source>Includes</source> <source>Includes</source>
<translation>Hlavičkové soubory</translation> <translation>Hlavičkové soubory</translation>
@@ -57719,7 +57586,7 @@ Soubory ve zdrojovém adresáři balíčku pro Android jsou zkopírovány do adr
</message> </message>
</context> </context>
<context> <context>
<name>VirtualFunctionsAssistProcessor</name> <name>CppEditor</name>
<message> <message>
<source>...searching overrides</source> <source>...searching overrides</source>
<translation>...Hledají se přepsání</translation> <translation>...Hledají se přepsání</translation>

View File

@@ -4600,7 +4600,7 @@ F.eks., vil &quot;Revision: 15&quot; efterlade grenen ved revision 15.</translat
</message> </message>
</context> </context>
<context> <context>
<name>CPlusPlus::CheckSymbols</name> <name>CppEditor</name>
<message> <message>
<source>Only virtual functions can be marked &apos;final&apos;</source> <source>Only virtual functions can be marked &apos;final&apos;</source>
<translation>Kun virtuelle funktioner kan mærkes &apos;final&apos;</translation> <translation>Kun virtuelle funktioner kan mærkes &apos;final&apos;</translation>
@@ -4749,7 +4749,7 @@ Men brug af de afslappede og udvidet regler betyder også at der ikke kan levere
</message> </message>
</context> </context>
<context> <context>
<name>ClangDiagnosticConfigsModel</name> <name>CppEditor</name>
<message> <message>
<source>Clang-only checks for questionable constructs</source> <source>Clang-only checks for questionable constructs</source>
<translation>Clang-kun tjek for tvivlsomme constructs</translation> <translation>Clang-kun tjek for tvivlsomme constructs</translation>
@@ -8629,21 +8629,15 @@ til versionsstyring (%2)
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::CppIncludeHierarchy</name> <name>CppEditor</name>
<message> <message>
<source>No include hierarchy available</source> <source>No include hierarchy available</source>
<translation>Intet tilgængeligt inkluderhierarki</translation> <translation>Intet tilgængeligt inkluderhierarki</translation>
</message> </message>
</context>
<context>
<name>CppEditor::InsertDeclOperation</name>
<message> <message>
<source>Add %1 Declaration</source> <source>Add %1 Declaration</source>
<translation>Tilføj %1 erklæring</translation> <translation>Tilføj %1 erklæring</translation>
</message> </message>
</context>
<context>
<name>CppEditor::InsertDefOperation</name>
<message> <message>
<source>Add Definition in %1</source> <source>Add Definition in %1</source>
<translation>Tilføj definition i %1</translation> <translation>Tilføj definition i %1</translation>
@@ -8660,16 +8654,10 @@ til versionsstyring (%2)
<source>Add Definition Outside Class</source> <source>Add Definition Outside Class</source>
<translation>Tilføj definition udenfor klasse</translation> <translation>Tilføj definition udenfor klasse</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppEditorDocument</name>
<message> <message>
<source>Note: Multiple parse contexts are available for this file. Choose the preferred one from the editor toolbar.</source> <source>Note: Multiple parse contexts are available for this file. Choose the preferred one from the editor toolbar.</source>
<translation>Bemærk: Flere parse-kontekster er tilgængelige for denne fil. Vælg den foretrukne fra redigeringsværktøjslinjen.</translation> <translation>Bemærk: Flere parse-kontekster er tilgængelige for denne fil. Vælg den foretrukne fra redigeringsværktøjslinjen.</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppEditorPlugin</name>
<message> <message>
<source>C++</source> <source>C++</source>
<comment>SnippetProvider</comment> <comment>SnippetProvider</comment>
@@ -8755,23 +8743,14 @@ til versionsstyring (%2)
<source>Ctrl+Shift+F12</source> <source>Ctrl+Shift+F12</source>
<translation>Ctrl+Skift+F12</translation> <translation>Ctrl+Skift+F12</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppEditorWidget</name>
<message> <message>
<source>&amp;Refactor</source> <source>&amp;Refactor</source>
<translation>&amp;Genfaktor</translation> <translation>&amp;Genfaktor</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppIncludeHierarchyFactory</name>
<message> <message>
<source>Include Hierarchy</source> <source>Include Hierarchy</source>
<translation>Inkluderhierarki</translation> <translation>Inkluderhierarki</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppIncludeHierarchyModel</name>
<message> <message>
<source>Includes</source> <source>Includes</source>
<translation>Inkluderer</translation> <translation>Inkluderer</translation>
@@ -8788,9 +8767,6 @@ til versionsstyring (%2)
<source>(cyclic)</source> <source>(cyclic)</source>
<translation>(cyklisk)</translation> <translation>(cyklisk)</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppOutlineTreeView</name>
<message> <message>
<source>Expand All</source> <source>Expand All</source>
<translation>Udfold alle</translation> <translation>Udfold alle</translation>
@@ -8799,9 +8775,6 @@ til versionsstyring (%2)
<source>Collapse All</source> <source>Collapse All</source>
<translation>Sammenfold alle</translation> <translation>Sammenfold alle</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppPreProcessorDialog</name>
<message> <message>
<source>Additional C++ Preprocessor Directives</source> <source>Additional C++ Preprocessor Directives</source>
<translation>Yderligere C++ præprocessor-direktiver</translation> <translation>Yderligere C++ præprocessor-direktiver</translation>
@@ -8810,16 +8783,10 @@ til versionsstyring (%2)
<source>Additional C++ Preprocessor Directives for %1:</source> <source>Additional C++ Preprocessor Directives for %1:</source>
<translation>Yderligere C++ præprocessor-direktiver for %1:</translation> <translation>Yderligere C++ præprocessor-direktiver for %1:</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppTypeHierarchyFactory</name>
<message> <message>
<source>Type Hierarchy</source> <source>Type Hierarchy</source>
<translation>Typehierarki</translation> <translation>Typehierarki</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppTypeHierarchyWidget</name>
<message> <message>
<source>No type hierarchy available</source> <source>No type hierarchy available</source>
<translation>Intet tilgængeligt typehierarki</translation> <translation>Intet tilgængeligt typehierarki</translation>
@@ -8832,9 +8799,6 @@ til versionsstyring (%2)
<source>Derived</source> <source>Derived</source>
<translation>Afledt</translation> <translation>Afledt</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::FunctionDeclDefLink</name>
<message> <message>
<source>Target file was changed, could not apply changes</source> <source>Target file was changed, could not apply changes</source>
<translation>Mål-fil blev ændret, kunne ikke anvende ændringer</translation> <translation>Mål-fil blev ændret, kunne ikke anvende ændringer</translation>
@@ -8851,9 +8815,6 @@ til versionsstyring (%2)
<source>Apply Function Signature Changes</source> <source>Apply Function Signature Changes</source>
<translation>Anvend funktion-signatur ændringer</translation> <translation>Anvend funktion-signatur ændringer</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::InsertVirtualMethodsDialog</name>
<message> <message>
<source>Insert Virtual Functions</source> <source>Insert Virtual Functions</source>
<translation>Indsæt virtuelle funktioner</translation> <translation>Indsæt virtuelle funktioner</translation>
@@ -8902,9 +8863,6 @@ til versionsstyring (%2)
<source>Clear Added &quot;override&quot; Equivalents</source> <source>Clear Added &quot;override&quot; Equivalents</source>
<translation>Ryd tilføjet &quot;tilsidesæt&quot;-tilsvarender</translation> <translation>Ryd tilføjet &quot;tilsidesæt&quot;-tilsvarender</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::MinimizableInfoBars</name>
<message> <message>
<source>File is not part of any project.</source> <source>File is not part of any project.</source>
<translation>Filen er ikke en del af noget projekt.</translation> <translation>Filen er ikke en del af noget projekt.</translation>
@@ -8925,23 +8883,14 @@ til versionsstyring (%2)
<source>&lt;b&gt;Warning&lt;/b&gt;: The code model could not parse an included file, which might lead to incorrect code completion and highlighting, for example.</source> <source>&lt;b&gt;Warning&lt;/b&gt;: The code model could not parse an included file, which might lead to incorrect code completion and highlighting, for example.</source>
<translation>&lt;b&gt;Advarsel&lt;/b&gt;: Kodemodellen kunne ikke parse en inkluderet fil, hvilket f.eks. kan lede til ukorrekt kodefuldførsel og -fremhævning.</translation> <translation>&lt;b&gt;Advarsel&lt;/b&gt;: Kodemodellen kunne ikke parse en inkluderet fil, hvilket f.eks. kan lede til ukorrekt kodefuldførsel og -fremhævning.</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::ParseContextModel</name>
<message> <message>
<source>&lt;p&gt;&lt;b&gt;Active Parse Context&lt;/b&gt;:&lt;br/&gt;%1&lt;/p&gt;&lt;p&gt;Multiple parse contexts (set of defines, include paths, and so on) are available for this file.&lt;/p&gt;&lt;p&gt;Choose a parse context to set it as the preferred one. Clear the preference from the context menu.&lt;/p&gt;</source> <source>&lt;p&gt;&lt;b&gt;Active Parse Context&lt;/b&gt;:&lt;br/&gt;%1&lt;/p&gt;&lt;p&gt;Multiple parse contexts (set of defines, include paths, and so on) are available for this file.&lt;/p&gt;&lt;p&gt;Choose a parse context to set it as the preferred one. Clear the preference from the context menu.&lt;/p&gt;</source>
<translation>&lt;p&gt;&lt;b&gt;Aktive parse-kontekst&lt;/b&gt;:&lt;br/&gt;%1&lt;/p&gt;&lt;p&gt;Flere parse-kontekster (sæt af defines, inkluder-sti osv.) er tilgængelige for denne fil.&lt;/p&gt;&lt;p&gt;Vælg en parse-kontekst for at sætte den som den foretrukne . Ryd præferencen fra genvejsmenuen.&lt;/p&gt;</translation> <translation>&lt;p&gt;&lt;b&gt;Aktive parse-kontekst&lt;/b&gt;:&lt;br/&gt;%1&lt;/p&gt;&lt;p&gt;Flere parse-kontekster (sæt af defines, inkluder-sti osv.) er tilgængelige for denne fil.&lt;/p&gt;&lt;p&gt;Vælg en parse-kontekst for at sætte den som den foretrukne . Ryd præferencen fra genvejsmenuen.&lt;/p&gt;</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::ParseContextWidget</name>
<message> <message>
<source>Clear Preferred Parse Context</source> <source>Clear Preferred Parse Context</source>
<translation>Ryd foretrukne parse-kontekst</translation> <translation>Ryd foretrukne parse-kontekst</translation>
</message> </message>
</context>
<context>
<name>CppEditor::QuickFix</name>
<message> <message>
<source>Insert Virtual Functions of Base Classes</source> <source>Insert Virtual Functions of Base Classes</source>
<translation>Indsæt virtuelle funktioner af grundklasser</translation> <translation>Indsæt virtuelle funktioner af grundklasser</translation>
@@ -8966,16 +8915,10 @@ til versionsstyring (%2)
<source>Move Definition to Class</source> <source>Move Definition to Class</source>
<translation>Flyt definition til klasse</translation> <translation>Flyt definition til klasse</translation>
</message> </message>
</context>
<context>
<name>CppIndexer</name>
<message> <message>
<source>C++ Indexer: Skipping file &quot;%1&quot; because it is too big.</source> <source>C++ Indexer: Skipping file &quot;%1&quot; because it is too big.</source>
<translation>C++-indekser: Spring over filen &quot;%1&quot; fordi den er for stor.</translation> <translation>C++-indekser: Spring over filen &quot;%1&quot; fordi den er for stor.</translation>
</message> </message>
</context>
<context>
<name>CppSourceProcessor</name>
<message> <message>
<source>%1: No such file or directory</source> <source>%1: No such file or directory</source>
<translation>%1: ingen sådan fil eller mappe</translation> <translation>%1: ingen sådan fil eller mappe</translation>
@@ -9115,7 +9058,7 @@ til versionsstyring (%2)
</message> </message>
</context> </context>
<context> <context>
<name>CppTools::CppEditorOutline</name> <name>CppTools</name>
<message> <message>
<source>Sort Alphabetically</source> <source>Sort Alphabetically</source>
<translation>Sortér alfabetisk</translation> <translation>Sortér alfabetisk</translation>
@@ -33077,7 +33020,7 @@ For flere detaljer, se /etc/sysctl.d/10-ptrace.conf
</message> </message>
</context> </context>
<context> <context>
<name>QuickFix::ExtractFunction</name> <name>CppEditor</name>
<message> <message>
<source>Extract Function</source> <source>Extract Function</source>
<translation>Udtræk funktion</translation> <translation>Udtræk funktion</translation>
@@ -40801,7 +40744,7 @@ skal være et repository krævet SSH-autentifikation (se dokumentation på SSH o
</message> </message>
</context> </context>
<context> <context>
<name>VirtualFunctionsAssistProcessor</name> <name>CppEditor</name>
<message> <message>
<source>...searching overrides</source> <source>...searching overrides</source>
<translation>...søger blandt tilsidesætninger</translation> <translation>...søger blandt tilsidesætninger</translation>
@@ -42510,7 +42453,7 @@ Kopiér stien til kildefilerne til udklipsholderen?</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::CppQuickFixFactory</name> <name>CppEditor</name>
<message> <message>
<source>Create Getter and Setter Member Functions</source> <source>Create Getter and Setter Member Functions</source>
<translation>Opret henter- og sætter-medlemsfunktioner</translation> <translation>Opret henter- og sætter-medlemsfunktioner</translation>

View File

@@ -16103,7 +16103,7 @@ Möchten Sie sie überschreiben?</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppTypeHierarchyWidget</name> <name>CppEditor</name>
<message> <message>
<source>No type hierarchy available</source> <source>No type hierarchy available</source>
<translation>Keine Klassenhierarchie verfügbar</translation> <translation>Keine Klassenhierarchie verfügbar</translation>
@@ -16124,9 +16124,6 @@ Möchten Sie sie überschreiben?</translation>
<source>Evaluating type hierarchy...</source> <source>Evaluating type hierarchy...</source>
<translation>Werte Typ-Hierarchie aus...</translation> <translation>Werte Typ-Hierarchie aus...</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppTypeHierarchyFactory</name>
<message> <message>
<source>Type Hierarchy</source> <source>Type Hierarchy</source>
<translation>Klassenhierarchie</translation> <translation>Klassenhierarchie</translation>
@@ -16373,7 +16370,7 @@ Möchten Sie sie überschreiben?</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::InsertDefOperation</name> <name>CppEditor</name>
<message> <message>
<source>Add Definition in %1</source> <source>Add Definition in %1</source>
<translation>Definition in %1 hinzufügen</translation> <translation>Definition in %1 hinzufügen</translation>
@@ -16390,9 +16387,6 @@ Möchten Sie sie überschreiben?</translation>
<source>Add Definition Outside Class</source> <source>Add Definition Outside Class</source>
<translation>Definition außerhalb der Klasse erstellen</translation> <translation>Definition außerhalb der Klasse erstellen</translation>
</message> </message>
</context>
<context>
<name>CppEditor::InsertDeclOperation</name>
<message> <message>
<source>Add %1 Declaration</source> <source>Add %1 Declaration</source>
<translation>Deklaration für %1 hinzufügen</translation> <translation>Deklaration für %1 hinzufügen</translation>
@@ -16761,7 +16755,7 @@ konnte nicht unter Versionsverwaltung (%2) gestellt werden
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppOutlineTreeView</name> <name>CppEditor</name>
<message> <message>
<source>Expand All</source> <source>Expand All</source>
<translation>Alle aufklappen</translation> <translation>Alle aufklappen</translation>
@@ -25054,7 +25048,7 @@ the manifest file by overriding your settings. Allow override?</source>
</message> </message>
</context> </context>
<context> <context>
<name>QuickFix::ExtractFunction</name> <name>CppEditor</name>
<message> <message>
<source>Extract Function</source> <source>Extract Function</source>
<translation>Funktion herausziehen</translation> <translation>Funktion herausziehen</translation>
@@ -25688,7 +25682,7 @@ wirklich löschen?</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::FunctionDeclDefLink</name> <name>CppEditor</name>
<message> <message>
<source>Target file was changed, could not apply changes</source> <source>Target file was changed, could not apply changes</source>
<translation>Die Änderungen konnten nicht vorgenommen werden, da die Zieldatei geändert wurde</translation> <translation>Die Änderungen konnten nicht vorgenommen werden, da die Zieldatei geändert wurde</translation>
@@ -26615,7 +26609,7 @@ wirklich löschen?</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CPlusPlus::CheckSymbols</name> <name>CppEditor</name>
<message> <message>
<source>Only virtual functions can be marked &apos;final&apos;</source> <source>Only virtual functions can be marked &apos;final&apos;</source>
<translation>Nur virtuelle Funktionen können als &apos;final&apos; gekennzeichnet werden</translation> <translation>Nur virtuelle Funktionen können als &apos;final&apos; gekennzeichnet werden</translation>
@@ -28435,7 +28429,7 @@ The affected files are:
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::QuickFix</name> <name>CppEditor</name>
<message> <message>
<source>Rewrite Using %1</source> <source>Rewrite Using %1</source>
<translation>Unter Verwendung von %1 umschreiben</translation> <translation>Unter Verwendung von %1 umschreiben</translation>
@@ -28596,9 +28590,6 @@ The affected files are:
<source>Insert Virtual Functions of Base Classes</source> <source>Insert Virtual Functions of Base Classes</source>
<translation>Virtuelle Funktionen der Basisklasse einfügen</translation> <translation>Virtuelle Funktionen der Basisklasse einfügen</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppEditorPlugin</name>
<message> <message>
<source>Shift+F2</source> <source>Shift+F2</source>
<translation>Shift+F2</translation> <translation>Shift+F2</translation>
@@ -28751,9 +28742,6 @@ The affected files are:
<source>Clangd</source> <source>Clangd</source>
<translation>Clangd</translation> <translation>Clangd</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::InsertVirtualMethodsDialog</name>
<message> <message>
<source>Insert Virtual Functions</source> <source>Insert Virtual Functions</source>
<translation>Virtuelle Funktionen einfügen</translation> <translation>Virtuelle Funktionen einfügen</translation>
@@ -29956,14 +29944,11 @@ benötigt wird, was meist die Geschwindigkeit erhöht.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppIncludeHierarchyFactory</name> <name>CppEditor</name>
<message> <message>
<source>Include Hierarchy</source> <source>Include Hierarchy</source>
<translation>Include-Hierarchie</translation> <translation>Include-Hierarchie</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppIncludeHierarchyModel</name>
<message> <message>
<source>Includes</source> <source>Includes</source>
<translation>Include-Dateien</translation> <translation>Include-Dateien</translation>
@@ -29980,9 +29965,6 @@ benötigt wird, was meist die Geschwindigkeit erhöht.</translation>
<source>(cyclic)</source> <source>(cyclic)</source>
<translation>(zyklisch)</translation> <translation>(zyklisch)</translation>
</message> </message>
</context>
<context>
<name>VirtualFunctionsAssistProcessor</name>
<message> <message>
<source>collecting overrides ...</source> <source>collecting overrides ...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -30619,7 +30601,7 @@ das beim Drücken unter dem Zeiger oder Berührungspunkt war, unter diesem Punkt
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppPreProcessorDialog</name> <name>CppEditor</name>
<message> <message>
<source>Additional C++ Preprocessor Directives for %1:</source> <source>Additional C++ Preprocessor Directives for %1:</source>
<translation>Zusätzliche Präprozessor-Anweisungen für %1:</translation> <translation>Zusätzliche Präprozessor-Anweisungen für %1:</translation>
@@ -31761,7 +31743,7 @@ Möchten Sie es beenden?</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppSourceProcessor</name> <name>CppEditor</name>
<message> <message>
<source>%1: No such file or directory</source> <source>%1: No such file or directory</source>
<translation>%1: Es existiert keine Datei oder kein Verzeichnis dieses Namens</translation> <translation>%1: Es existiert keine Datei oder kein Verzeichnis dieses Namens</translation>
@@ -38724,7 +38706,7 @@ Siehe auch die Einstellungen für Google Test.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>ClangDiagnosticConfigsModel</name> <name>CppEditor</name>
<message> <message>
<source>Checks for questionable constructs</source> <source>Checks for questionable constructs</source>
<translation>Prüft auf fragwürdige Konstrukte</translation> <translation>Prüft auf fragwürdige Konstrukte</translation>
@@ -40704,7 +40686,7 @@ Zeile: %4, Spalte: %5
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppEditorDocument</name> <name>CppEditor</name>
<message> <message>
<source>&lt;b&gt;Warning&lt;/b&gt;: This file is not part of any project. The code model might have issues parsing this file properly.</source> <source>&lt;b&gt;Warning&lt;/b&gt;: This file is not part of any project. The code model might have issues parsing this file properly.</source>
<translation>&lt;b&gt;Warnung&lt;/b&gt;: Diese Datei ist in keinem Projekt enthalten. Das Codemodell könnte Probleme haben, die Datei korrekt auszuwerten.</translation> <translation>&lt;b&gt;Warnung&lt;/b&gt;: Diese Datei ist in keinem Projekt enthalten. Das Codemodell könnte Probleme haben, die Datei korrekt auszuwerten.</translation>
@@ -40713,23 +40695,14 @@ Zeile: %4, Spalte: %5
<source>Note: Multiple parse contexts are available for this file. Choose the preferred one from the editor toolbar.</source> <source>Note: Multiple parse contexts are available for this file. Choose the preferred one from the editor toolbar.</source>
<translation>Hinweis: Für diese Datei sind mehrere Auswertungskontexte verfügbar. Wählen Sie den bevorzugten in der Editorwerkzeugleiste aus.</translation> <translation>Hinweis: Für diese Datei sind mehrere Auswertungskontexte verfügbar. Wählen Sie den bevorzugten in der Editorwerkzeugleiste aus.</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::ParseContextModel</name>
<message> <message>
<source>&lt;p&gt;&lt;b&gt;Active Parse Context&lt;/b&gt;:&lt;br/&gt;%1&lt;/p&gt;&lt;p&gt;Multiple parse contexts (set of defines, include paths, and so on) are available for this file.&lt;/p&gt;&lt;p&gt;Choose a parse context to set it as the preferred one. Clear the preference from the context menu.&lt;/p&gt;</source> <source>&lt;p&gt;&lt;b&gt;Active Parse Context&lt;/b&gt;:&lt;br/&gt;%1&lt;/p&gt;&lt;p&gt;Multiple parse contexts (set of defines, include paths, and so on) are available for this file.&lt;/p&gt;&lt;p&gt;Choose a parse context to set it as the preferred one. Clear the preference from the context menu.&lt;/p&gt;</source>
<translation>&lt;p&gt;&lt;b&gt;Aktiver Auswertungskontext&lt;/b&gt;:&lt;br/&gt;%1&lt;/p&gt;&lt;p&gt;Für diese Datei sind mehrere Auswertungskontexte (Kombinationen aus Defines, Include-Verzeichnissen usw.) verfügbar.&lt;/p&gt;&lt;p&gt;Wählen Sie einen bevorzugten Auswertungskontext aus. Sie können diese Einstellung über das Kontextmenü zurücksetzen.&lt;/p&gt;</translation> <translation>&lt;p&gt;&lt;b&gt;Aktiver Auswertungskontext&lt;/b&gt;:&lt;br/&gt;%1&lt;/p&gt;&lt;p&gt;Für diese Datei sind mehrere Auswertungskontexte (Kombinationen aus Defines, Include-Verzeichnissen usw.) verfügbar.&lt;/p&gt;&lt;p&gt;Wählen Sie einen bevorzugten Auswertungskontext aus. Sie können diese Einstellung über das Kontextmenü zurücksetzen.&lt;/p&gt;</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::ParseContextWidget</name>
<message> <message>
<source>Clear Preferred Parse Context</source> <source>Clear Preferred Parse Context</source>
<translation>Bevorzugten Auswertungskontext aufheben</translation> <translation>Bevorzugten Auswertungskontext aufheben</translation>
</message> </message>
</context>
<context>
<name>CppIndexer</name>
<message> <message>
<source>C++ Indexer: Skipping file &quot;%1&quot; because it is too big.</source> <source>C++ Indexer: Skipping file &quot;%1&quot; because it is too big.</source>
<translation>C++-Indexer: Überspringe Datei &quot;%1&quot;, weil sie zu groß ist.</translation> <translation>C++-Indexer: Überspringe Datei &quot;%1&quot;, weil sie zu groß ist.</translation>
@@ -42272,7 +42245,7 @@ Are you sure?</source>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::CppQuickFixFactory</name> <name>CppEditor</name>
<message> <message>
<source>Create Getter and Setter Member Functions</source> <source>Create Getter and Setter Member Functions</source>
<translation>Getter- und Setter-Funktionen erzeugen</translation> <translation>Getter- und Setter-Funktionen erzeugen</translation>
@@ -44321,7 +44294,7 @@ You might find further explanations in the Application Output view.</source>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppIncludeHierarchyWidget</name> <name>CppEditor</name>
<message> <message>
<source>No include hierarchy available</source> <source>No include hierarchy available</source>
<translation>Keine Include-Hierarchie verfügbar</translation> <translation>Keine Include-Hierarchie verfügbar</translation>
@@ -51245,7 +51218,7 @@ benötigt wird, was meist die Geschwindigkeit erhöht.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppCodeStyleSettingsPage</name> <name>CppEditor</name>
<message> <message>
<source>General</source> <source>General</source>
<translation>Allgemein</translation> <translation>Allgemein</translation>
@@ -51471,9 +51444,6 @@ ausgerichtet werden würden</translation>
<source>Right const/volatile</source> <source>Right const/volatile</source>
<translation>Rechtes const/volatile</translation> <translation>Rechtes const/volatile</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppFileSettingsPage</name>
<message> <message>
<source>Headers</source> <source>Headers</source>
<translation>Header-Dateien</translation> <translation>Header-Dateien</translation>
@@ -53132,7 +53102,7 @@ in &quot;%2&quot; aus.
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::AbstractEditorSupport</name> <name>CppEditor</name>
<message> <message>
<source>The file name.</source> <source>The file name.</source>
<translation>Der Dateiname.</translation> <translation>Der Dateiname.</translation>
@@ -53141,23 +53111,14 @@ in &quot;%2&quot; aus.
<source>The class name.</source> <source>The class name.</source>
<translation>Der Klassenname.</translation> <translation>Der Klassenname.</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::BuiltinIndexingSupport</name>
<message> <message>
<source>Parsing C/C++ Files</source> <source>Parsing C/C++ Files</source>
<translation>Werte C/C++-Dateien aus</translation> <translation>Werte C/C++-Dateien aus</translation>
</message> </message>
</context>
<context>
<name>CppEditor::ClangDiagnosticConfigsSelectionWidget</name>
<message> <message>
<source>Diagnostic configuration:</source> <source>Diagnostic configuration:</source>
<translation>Diagnosekonfiguration:</translation> <translation>Diagnosekonfiguration:</translation>
</message> </message>
</context>
<context>
<name>CppEditor::ClangDiagnosticConfigsWidget</name>
<message> <message>
<source>Diagnostic Configurations</source> <source>Diagnostic Configurations</source>
<translation>Diagnosekonfigurationen</translation> <translation>Diagnosekonfigurationen</translation>
@@ -53215,9 +53176,6 @@ in &quot;%2&quot; aus.
<source>%1</source> <source>%1</source>
<translation>%1</translation> <translation>%1</translation>
</message> </message>
</context>
<context>
<name>CppEditor::ConfigsModel</name>
<message> <message>
<source>Built-in</source> <source>Built-in</source>
<translation>Integriert</translation> <translation>Integriert</translation>
@@ -53226,9 +53184,6 @@ in &quot;%2&quot; aus.
<source>Custom</source> <source>Custom</source>
<translation>Benutzerdefiniert</translation> <translation>Benutzerdefiniert</translation>
</message> </message>
</context>
<context>
<name>CppEditor::ClangBaseChecks</name>
<message> <message>
<source>For appropriate options, consult the GCC or Clang manual pages or the &lt;a href=&quot;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html&quot;&gt;GCC online documentation&lt;/a&gt;.</source> <source>For appropriate options, consult the GCC or Clang manual pages or the &lt;a href=&quot;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html&quot;&gt;GCC online documentation&lt;/a&gt;.</source>
<translation>Für passende Optionen lesen Sie das GCC- oder Clang-Handbuch oder auch die &lt;a href=&quot;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html&quot;&gt;GCC-Onlinedokumentation&lt;/a&gt;.</translation> <translation>Für passende Optionen lesen Sie das GCC- oder Clang-Handbuch oder auch die &lt;a href=&quot;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html&quot;&gt;GCC-Onlinedokumentation&lt;/a&gt;.</translation>
@@ -53237,9 +53192,6 @@ in &quot;%2&quot; aus.
<source>Use diagnostic flags from build system</source> <source>Use diagnostic flags from build system</source>
<translation>Diagnose-Flags des Build-Systems verwenden</translation> <translation>Diagnose-Flags des Build-Systems verwenden</translation>
</message> </message>
</context>
<context>
<name>CppEditor</name>
<message> <message>
<source>Follow Symbol to Type is only available when using clangd</source> <source>Follow Symbol to Type is only available when using clangd</source>
<translation>Symbol unter Einfügemarke zum Typ verfolgen steht nur mit Clangd zur Verfügung</translation> <translation>Symbol unter Einfügemarke zum Typ verfolgen steht nur mit Clangd zur Verfügung</translation>
@@ -53260,10 +53212,6 @@ in &quot;%2&quot; aus.
<source>File Naming</source> <source>File Naming</source>
<translation>Namenskonventionen für Dateien</translation> <translation>Namenskonventionen für Dateien</translation>
</message> </message>
<message>
<source>Diagnostic Configurations</source>
<translation>Diagnosekonfigurationen</translation>
</message>
<message> <message>
<source>C++ Symbols in Current Document</source> <source>C++ Symbols in Current Document</source>
<translation>C++-Symbole im aktuellen Dokument</translation> <translation>C++-Symbole im aktuellen Dokument</translation>
@@ -53322,9 +53270,6 @@ in &quot;%2&quot; aus.
<source>The project contains C++ source files, but the currently active kit has no C++ compiler. The code model will not be fully functional.</source> <source>The project contains C++ source files, but the currently active kit has no C++ compiler. The code model will not be fully functional.</source>
<translation>Das Projekt enthält C++-Quelldateien, aber das aktive Kit hat keinen C++-Compiler. Das Codemodell wird nur eingeschränkt funktionieren.</translation> <translation>Das Projekt enthält C++-Quelldateien, aber das aktive Kit hat keinen C++-Compiler. Das Codemodell wird nur eingeschränkt funktionieren.</translation>
</message> </message>
</context>
<context>
<name>CppEditor::ClangdSettings</name>
<message> <message>
<source>Background Priority</source> <source>Background Priority</source>
<translation>Hintergrund-Priorität</translation> <translation>Hintergrund-Priorität</translation>
@@ -53341,9 +53286,6 @@ in &quot;%2&quot; aus.
<source>Off</source> <source>Off</source>
<translation>Aus</translation> <translation>Aus</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppCodeModelSettingsWidget</name>
<message> <message>
<source>Interpret ambiguous headers as C headers</source> <source>Interpret ambiguous headers as C headers</source>
<translation>Mehrdeutige Header als C-Header behandeln</translation> <translation>Mehrdeutige Header als C-Header behandeln</translation>
@@ -53372,17 +53314,10 @@ in &quot;%2&quot; aus.
<source>Uncheck this to invoke the actual compiler to show a pre-processed source file in the editor.</source> <source>Uncheck this to invoke the actual compiler to show a pre-processed source file in the editor.</source>
<translation>Wählen Sie dies ab, um den Compiler zum Anzeigen von vorverarbeiteten Dateien zu benutzen.</translation> <translation>Wählen Sie dies ab, um den Compiler zum Anzeigen von vorverarbeiteten Dateien zu benutzen.</translation>
</message> </message>
<message>
<source>General</source>
<translation>Allgemein</translation>
</message>
<message> <message>
<source>Code Model</source> <source>Code Model</source>
<translation>Codemodell</translation> <translation>Codemodell</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::ClangdSettingsWidget</name>
<message> <message>
<source>If background indexing is enabled, global symbol searches will yield <source>If background indexing is enabled, global symbol searches will yield
more accurate results, at the cost of additional CPU load when more accurate results, at the cost of additional CPU load when
@@ -53484,10 +53419,6 @@ die vom selben Clangd-Prozess verwaltet werden sollen, fügen Sie diese hier hin
<source>Add ...</source> <source>Add ...</source>
<translation>Hinzufügen...</translation> <translation>Hinzufügen...</translation>
</message> </message>
<message>
<source>Remove</source>
<translation>Entfernen</translation>
</message>
<message> <message>
<source>Choose a session:</source> <source>Choose a session:</source>
<translation>Sitzung wählen:</translation> <translation>Sitzung wählen:</translation>
@@ -53504,28 +53435,15 @@ die vom selben Clangd-Prozess verwaltet werden sollen, fügen Sie diese hier hin
<source>The clangd version is %1, but %2 or greater is required.</source> <source>The clangd version is %1, but %2 or greater is required.</source>
<translation>Die Clangd-Version ist %1, aber %2 oder neuer wird benötigt.</translation> <translation>Die Clangd-Version ist %1, aber %2 oder neuer wird benötigt.</translation>
</message> </message>
<message>
<source>Clangd</source>
<translation>Clangd</translation>
</message>
</context>
<context>
<name>CppEditor::Internal::CppEditorOutline</name>
<message> <message>
<source>Sort Alphabetically</source> <source>Sort Alphabetically</source>
<translation>Alphabetisch sortieren</translation> <translation>Alphabetisch sortieren</translation>
</message> </message>
</context>
<context>
<name>CppEditor::CppEditorWidget</name>
<message> <message>
<source>&amp;Refactor</source> <source>&amp;Refactor</source>
<translatorcomment>https://de.wikipedia.org/wiki/Refactoring</translatorcomment> <translatorcomment>https://de.wikipedia.org/wiki/Refactoring</translatorcomment>
<translation>&amp;Refactoring</translation> <translation>&amp;Refactoring</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppFileSettingsWidget</name>
<message> <message>
<source>/************************************************************************** <source>/**************************************************************************
** %1 license header template ** %1 license header template
@@ -53550,9 +53468,6 @@ die vom selben Clangd-Prozess verwaltet werden sollen, fügen Sie diese hier hin
<source>Choose Location for New License Template File</source> <source>Choose Location for New License Template File</source>
<translation>Dateiname für eine neue Lizenzvorlage</translation> <translation>Dateiname für eine neue Lizenzvorlage</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppFindReferences</name>
<message> <message>
<source>Reads</source> <source>Reads</source>
<translation>Lesezugriffe</translation> <translation>Lesezugriffe</translation>
@@ -53594,16 +53509,10 @@ die vom selben Clangd-Prozess verwaltet werden sollen, fügen Sie diese hier hin
<source>C++ Macro Usages:</source> <source>C++ Macro Usages:</source>
<translation>C++ Macro-Referenzen:</translation> <translation>C++ Macro-Referenzen:</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppIncludesFilter</name>
<message> <message>
<source>Matches all files that are included by all C++ files in all projects. Append &quot;+&lt;number&gt;&quot; or &quot;:&lt;number&gt;&quot; to jump to the given line number. Append another &quot;+&lt;number&gt;&quot; or &quot;:&lt;number&gt;&quot; to jump to the column number as well.</source> <source>Matches all files that are included by all C++ files in all projects. Append &quot;+&lt;number&gt;&quot; or &quot;:&lt;number&gt;&quot; to jump to the given line number. Append another &quot;+&lt;number&gt;&quot; or &quot;:&lt;number&gt;&quot; to jump to the column number as well.</source>
<translation>Filtert alle Dateien die von allen C++-Dateien aller Projekte eingebunden werden. Fügen Sie &quot;+&lt;Zahl&gt;&quot; oder &quot;:&lt;Zahl&gt;&quot; an, um zur angegebenen Zeile zu springen. Fügen Sie noch einmal &quot;+&lt;Zahl&gt;&quot; oder &quot;:&lt;Zahl&gt;&quot; an, um auch zur angegebenen Spalte zu springen.</translation> <translation>Filtert alle Dateien die von allen C++-Dateien aller Projekte eingebunden werden. Fügen Sie &quot;+&lt;Zahl&gt;&quot; oder &quot;:&lt;Zahl&gt;&quot; an, um zur angegebenen Zeile zu springen. Fügen Sie noch einmal &quot;+&lt;Zahl&gt;&quot; oder &quot;:&lt;Zahl&gt;&quot; an, um auch zur angegebenen Spalte zu springen.</translation>
</message> </message>
</context>
<context>
<name>CppEditor::OverviewModel</name>
<message> <message>
<source>&lt;Select Symbol&gt;</source> <source>&lt;Select Symbol&gt;</source>
<translation>&lt;Symbol auswählen&gt;</translation> <translation>&lt;Symbol auswählen&gt;</translation>
@@ -53612,16 +53521,10 @@ die vom selben Clangd-Prozess verwaltet werden sollen, fügen Sie diese hier hin
<source>&lt;No Symbols&gt;</source> <source>&lt;No Symbols&gt;</source>
<translation>&lt;Keine Symbole&gt;</translation> <translation>&lt;Keine Symbole&gt;</translation>
</message> </message>
</context>
<context>
<name>CppEditor::CppProjectUpdater</name>
<message> <message>
<source>Preparing C++ Code Model</source> <source>Preparing C++ Code Model</source>
<translation>Bereite das C++-Codemodell vor</translation> <translation>Bereite das C++-Codemodell vor</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Quickfix</name>
<message> <message>
<source>Add Class Member &quot;%1&quot;</source> <source>Add Class Member &quot;%1&quot;</source>
<translation>Klassen-Member &quot;%1&quot; hinzufügen</translation> <translation>Klassen-Member &quot;%1&quot; hinzufügen</translation>
@@ -53714,7 +53617,7 @@ die vom selben Clangd-Prozess verwaltet werden sollen, fügen Sie diese hier hin
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::ConstructorParams</name> <name>CppEditor</name>
<message> <message>
<source>Initialize in Constructor</source> <source>Initialize in Constructor</source>
<translation>Im Konstruktor initialisieren</translation> <translation>Im Konstruktor initialisieren</translation>
@@ -53758,7 +53661,7 @@ Use drag and drop to change the order of the parameters.</source>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppQuickFixProjectsSettings</name> <name>CppEditor</name>
<message> <message>
<source>Quick Fix settings are saved in a file. Existing settings file &quot;%1&quot; found. Should this file be used or a new one be created?</source> <source>Quick Fix settings are saved in a file. Existing settings file &quot;%1&quot; found. Should this file be used or a new one be created?</source>
<translation>Einstellungen für Quick Fixes werden in einer Datei gespeichert. Es wurde eine existierende Einstellungs-Datei &quot;%1&quot; gefunden. Soll diese Datei benutzt, oder eine neue Datei erstellt werden?</translation> <translation>Einstellungen für Quick Fixes werden in einer Datei gespeichert. Es wurde eine existierende Einstellungs-Datei &quot;%1&quot; gefunden. Soll diese Datei benutzt, oder eine neue Datei erstellt werden?</translation>
@@ -53775,9 +53678,6 @@ Use drag and drop to change the order of the parameters.</source>
<source>Create New</source> <source>Create New</source>
<translation>Neue erstellen</translation> <translation>Neue erstellen</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppQuickFixProjectSettingsWidget</name>
<message> <message>
<source>Custom settings are saved in a file. If you use the global settings, you can delete that file.</source> <source>Custom settings are saved in a file. If you use the global settings, you can delete that file.</source>
<translation>Benutzerdefinierte Einstellungen werden in einer Datei gespeichert. Wenn Sie die globalen Einstellungen benutzen, können Sie diese Datei löschen.</translation> <translation>Benutzerdefinierte Einstellungen werden in einer Datei gespeichert. Wenn Sie die globalen Einstellungen benutzen, können Sie diese Datei löschen.</translation>
@@ -53794,9 +53694,6 @@ Use drag and drop to change the order of the parameters.</source>
<source>Reset to Global</source> <source>Reset to Global</source>
<translation>Auf globale Einstellungen zurücksetzen</translation> <translation>Auf globale Einstellungen zurücksetzen</translation>
</message> </message>
</context>
<context>
<name>CppEditor::CppToolsSettings</name>
<message> <message>
<source>Global</source> <source>Global</source>
<comment>Settings</comment> <comment>Settings</comment>
@@ -53835,7 +53732,7 @@ Use drag and drop to change the order of the parameters.</source>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::SymbolsFindFilter</name> <name>CppEditor</name>
<message> <message>
<source>Searching for Symbol</source> <source>Searching for Symbol</source>
<translation>Suche nach Symbol</translation> <translation>Suche nach Symbol</translation>
@@ -53856,10 +53753,6 @@ Use drag and drop to change the order of the parameters.</source>
<source>Enums</source> <source>Enums</source>
<translation>Enumerationen</translation> <translation>Enumerationen</translation>
</message> </message>
<message>
<source>Declarations</source>
<translation>Deklarationen</translation>
</message>
<message> <message>
<source>Scope: %1 <source>Scope: %1
Types: %2 Types: %2
@@ -53876,29 +53769,10 @@ Flags: %3</translation>
<source>Projects</source> <source>Projects</source>
<translation>Projekte</translation> <translation>Projekte</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::SymbolsFindFilterConfigWidget</name>
<message> <message>
<source>Types:</source> <source>Types:</source>
<translation>Typen:</translation> <translation>Typen:</translation>
</message> </message>
<message>
<source>Classes</source>
<translation>Klassen</translation>
</message>
<message>
<source>Functions</source>
<translation>Funktionen</translation>
</message>
<message>
<source>Enums</source>
<translation>Enumerationen</translation>
</message>
<message>
<source>Declarations</source>
<translation>Deklarationen</translation>
</message>
<message> <message>
<source>Projects only</source> <source>Projects only</source>
<translation>Nur Projekte</translation> <translation>Nur Projekte</translation>

View File

@@ -2127,7 +2127,7 @@ Would you like to overwrite them?</source>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CPPEditor</name> <name>CppEditor</name>
<message> <message>
<source>Sort alphabetically</source> <source>Sort alphabetically</source>
<translation>Ordenar alfabeticamente</translation> <translation>Ordenar alfabeticamente</translation>
@@ -2148,9 +2148,6 @@ Would you like to overwrite them?</source>
<source>Reformat Document</source> <source>Reformat Document</source>
<translation type="obsolete">Reformatear documento</translation> <translation type="obsolete">Reformatear documento</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::ClassNamePage</name>
<message> <message>
<source>Enter class name</source> <source>Enter class name</source>
<translation>Introduzca nombre de clase</translation> <translation>Introduzca nombre de clase</translation>
@@ -2163,30 +2160,18 @@ Would you like to overwrite them?</source>
<source>Configure...</source> <source>Configure...</source>
<translation>Configurar...</translation> <translation>Configurar...</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppClassWizard</name>
<message> <message>
<source>Error while generating file contents.</source> <source>Error while generating file contents.</source>
<translation>Error generando el contenido del archivo.</translation> <translation>Error generando el contenido del archivo.</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppClassWizardDialog</name>
<message> <message>
<source>C++ Class Wizard</source> <source>C++ Class Wizard</source>
<translation>Asistente de Clases C++</translation> <translation>Asistente de Clases C++</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppHoverHandler</name>
<message> <message>
<source>Unfiltered</source> <source>Unfiltered</source>
<translation>Sin filtro</translation> <translation>Sin filtro</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppPlugin</name>
<message> <message>
<source>C++</source> <source>C++</source>
<translation></translation> <translation></translation>

View File

@@ -2866,15 +2866,11 @@ Voulez vous les écraser ?</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CPPEditor</name> <name>CppEditor</name>
<message> <message>
<source>Sort alphabetically</source> <source>Sort alphabetically</source>
<translation type="obsolete">Trier par ordre alphabétique</translation> <translation type="obsolete">Trier par ordre alphabétique</translation>
</message> </message>
<message>
<source>Sort Alphabetically</source>
<translation type="obsolete">Trier par ordre alphabétique</translation>
</message>
<message> <message>
<source>This change cannot be undone.</source> <source>This change cannot be undone.</source>
<translation type="obsolete">Ce changement ne peut être annulé.</translation> <translation type="obsolete">Ce changement ne peut être annulé.</translation>
@@ -2883,17 +2879,10 @@ Voulez vous les écraser ?</translation>
<source>Yes, I know what I am doing.</source> <source>Yes, I know what I am doing.</source>
<translation type="obsolete">Simplifier les déclarations.</translation> <translation type="obsolete">Simplifier les déclarations.</translation>
</message> </message>
<message>
<source>Unused variable</source>
<translation type="obsolete">Variable non utilisée</translation>
</message>
<message> <message>
<source>Simplify Declarations</source> <source>Simplify Declarations</source>
<translation type="obsolete">Simplifier les déclarations</translation> <translation type="obsolete">Simplifier les déclarations</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::ClassNamePage</name>
<message> <message>
<source>Enter class name</source> <source>Enter class name</source>
<translation type="obsolete">Entrer le nom de la classe</translation> <translation type="obsolete">Entrer le nom de la classe</translation>
@@ -2910,16 +2899,10 @@ Voulez vous les écraser ?</translation>
<source>Configure...</source> <source>Configure...</source>
<translation type="obsolete">Configurer...</translation> <translation type="obsolete">Configurer...</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppClassWizard</name>
<message> <message>
<source>Error while generating file contents.</source> <source>Error while generating file contents.</source>
<translation>Erreur a la génération du contenu du fichier.</translation> <translation>Erreur a la génération du contenu du fichier.</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppClassWizardDialog</name>
<message> <message>
<source>C++ Class Wizard</source> <source>C++ Class Wizard</source>
<translation>Assistant de création de classe C++</translation> <translation>Assistant de création de classe C++</translation>
@@ -2928,40 +2911,18 @@ Voulez vous les écraser ?</translation>
<source>Details</source> <source>Details</source>
<translation>Détails</translation> <translation>Détails</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppHoverHandler</name>
<message> <message>
<source>Unfiltered</source> <source>Unfiltered</source>
<translation type="obsolete">Sans filtre</translation> <translation type="obsolete">Sans filtre</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppPlugin</name>
<message>
<source>C++</source>
<translation type="obsolete">C++</translation>
</message>
<message> <message>
<source>Creates a C++ header file.</source> <source>Creates a C++ header file.</source>
<translation type="obsolete">Créer un fichier header C++.</translation> <translation type="obsolete">Créer un fichier header C++.</translation>
</message> </message>
<message>
<source>C++ Header File</source>
<translation type="obsolete">Fichier header C++</translation>
</message>
<message> <message>
<source>Creates a C++ source file.</source> <source>Creates a C++ source file.</source>
<translation type="obsolete">Créer un fichier source C++.</translation> <translation type="obsolete">Créer un fichier source C++.</translation>
</message> </message>
<message>
<source>C++ Source File</source>
<translation type="obsolete">Fichier source C++</translation>
</message>
<message>
<source>C++ Class</source>
<translation type="obsolete">Classe C++</translation>
</message>
<message> <message>
<source>Creates a header and a source file for a new class.</source> <source>Creates a header and a source file for a new class.</source>
<translation type="obsolete">Créer un header et un fichier source pour une nouvelle classe.</translation> <translation type="obsolete">Créer un header et un fichier source pour une nouvelle classe.</translation>
@@ -2974,62 +2935,10 @@ Voulez vous les écraser ?</translation>
<source>Switch between Method Declaration/Definition</source> <source>Switch between Method Declaration/Definition</source>
<translation type="obsolete">Changer entre la définition et déclaration de la méthode</translation> <translation type="obsolete">Changer entre la définition et déclaration de la méthode</translation>
</message> </message>
<message>
<source>Creates a C++ header and a source file for a new class that you can add to a C++ project.</source>
<translation type="obsolete">Crée les fichier d&apos;en-tête et fichier source C++ pour une nouvelle classe que vous pouvez ajouter a votre projet C++.</translation>
</message>
<message>
<source>Creates a C++ source file that you can add to a C++ project.</source>
<translation type="obsolete">Crée un fichier source C++ que vous pouvez ajouter a votre projet C++.</translation>
</message>
<message>
<source>Creates a C++ header file that you can add to a C++ project.</source>
<translation type="obsolete">Crée un fichier d&apos;en-tête C++ que vous pouvez ajouter a votre projet C++.</translation>
</message>
<message> <message>
<source>Follow Symbol Under Cursor</source> <source>Follow Symbol Under Cursor</source>
<translation type="obsolete">Suivre le symbole sous le curseur</translation> <translation type="obsolete">Suivre le symbole sous le curseur</translation>
</message> </message>
<message>
<source>Switch Between Method Declaration/Definition</source>
<translation type="obsolete">Changer entre la définition et déclaration de la méthode</translation>
</message>
<message>
<source>Shift+F2</source>
<translation type="obsolete">Shift+F2</translation>
</message>
<message>
<source>Find Usages</source>
<translation type="obsolete">Trouver les utilisations</translation>
</message>
<message>
<source>Ctrl+Shift+U</source>
<translation type="obsolete">Ctrl+Shift+U</translation>
</message>
<message>
<source>Open Type Hierarchy</source>
<translation type="obsolete">Ouvrir la hiérarchie de type</translation>
</message>
<message>
<source>Ctrl+Shift+T</source>
<translation type="obsolete">Ctrl+Maj+T</translation>
</message>
<message>
<source>Meta+Shift+T</source>
<translation type="obsolete">Meta+Shift+T</translation>
</message>
<message>
<source>Rename Symbol Under Cursor</source>
<translation type="obsolete">Renommer le symbole sous le curseur</translation>
</message>
<message>
<source>CTRL+SHIFT+R</source>
<translation type="obsolete">Ctrl+Shift+R</translation>
</message>
<message>
<source>Update Code Model</source>
<translation type="obsolete">Mettre à jour le modèle de code</translation>
</message>
<message> <message>
<source>Rename Symbol under Cursor</source> <source>Rename Symbol under Cursor</source>
<translation type="obsolete">Renommer le symbole sous le curseur</translation> <translation type="obsolete">Renommer le symbole sous le curseur</translation>
@@ -28820,14 +28729,11 @@ La liste du serveur était %2.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::InsertDeclOperation</name> <name>CppEditor</name>
<message> <message>
<source>Add %1 Declaration</source> <source>Add %1 Declaration</source>
<translation>Ajouter la déclaration %1</translation> <translation>Ajouter la déclaration %1</translation>
</message> </message>
</context>
<context>
<name>CppEditor::InsertDefOperation</name>
<message> <message>
<source>Add Definition in %1</source> <source>Add Definition in %1</source>
<translation>Ajouter la définition dans %1</translation> <translation>Ajouter la définition dans %1</translation>
@@ -28844,9 +28750,6 @@ La liste du serveur était %2.</translation>
<source>Add Definition Outside Class</source> <source>Add Definition Outside Class</source>
<translation>Ajouter une définition en dehors de la classe</translation> <translation>Ajouter une définition en dehors de la classe</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppTypeHierarchyWidget</name>
<message> <message>
<source>No type hierarchy available</source> <source>No type hierarchy available</source>
<translation>Aucune hiérarchie de type disponible</translation> <translation>Aucune hiérarchie de type disponible</translation>
@@ -28859,9 +28762,6 @@ La liste du serveur était %2.</translation>
<source>Derived</source> <source>Derived</source>
<translation>Dérivé</translation> <translation>Dérivé</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppTypeHierarchyFactory</name>
<message> <message>
<source>Type Hierarchy</source> <source>Type Hierarchy</source>
<translation>Hiérarchie de type</translation> <translation>Hiérarchie de type</translation>
@@ -34028,19 +33928,11 @@ au gestionnaire de version (%2)</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CPPEditorWidget</name> <name>CppEditor</name>
<message> <message>
<source>Sort Alphabetically</source> <source>Sort Alphabetically</source>
<translation>Trier par ordre alphabétique</translation> <translation>Trier par ordre alphabétique</translation>
</message> </message>
<message>
<source>This change cannot be undone.</source>
<translation type="obsolete">Ce changement ne peut être annulé.</translation>
</message>
<message>
<source>Yes, I know what I am doing.</source>
<translation type="obsolete">Simplifier les déclarations.</translation>
</message>
<message> <message>
<source>&amp;Refactor</source> <source>&amp;Refactor</source>
<translation>&amp;Refactoriser</translation> <translation>&amp;Refactoriser</translation>
@@ -34049,9 +33941,6 @@ au gestionnaire de version (%2)</translation>
<source>Unused variable</source> <source>Unused variable</source>
<translation>Variable non utilisée</translation> <translation>Variable non utilisée</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::InsertQtPropertyMembers</name>
<message> <message>
<source>Generate missing Q_PROPERTY members...</source> <source>Generate missing Q_PROPERTY members...</source>
<translation type="obsolete">Générer les membre Q_PROPERTY manquant... </translation> <translation type="obsolete">Générer les membre Q_PROPERTY manquant... </translation>
@@ -34060,9 +33949,6 @@ au gestionnaire de version (%2)</translation>
<source>Generate Missing Q_PROPERTY Members...</source> <source>Generate Missing Q_PROPERTY Members...</source>
<translation type="obsolete">Générer les membre Q_PROPERTY manquants...</translation> <translation type="obsolete">Générer les membre Q_PROPERTY manquants...</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppOutlineTreeView</name>
<message> <message>
<source>Expand All</source> <source>Expand All</source>
<translation>Développer tout</translation> <translation>Développer tout</translation>
@@ -34072,13 +33958,6 @@ au gestionnaire de version (%2)</translation>
<translation>Réduire tout</translation> <translation>Réduire tout</translation>
</message> </message>
</context> </context>
<context>
<name>CppEditor::Internal::CppSnippetProvider</name>
<message>
<source>C++</source>
<translation>C++</translation>
</message>
</context>
<context> <context>
<name>Debugger</name> <name>Debugger</name>
<message> <message>
@@ -44820,7 +44699,7 @@ si un dépôt requiert une authentification SSH (voir la documentation sur SSH e
</message> </message>
</context> </context>
<context> <context>
<name>QuickFix::ExtractFunction</name> <name>CppEditor</name>
<message> <message>
<source>Extract Function</source> <source>Extract Function</source>
<translation>Extraire la fonction</translation> <translation>Extraire la fonction</translation>
@@ -47738,7 +47617,7 @@ Oui :)</translatorcomment>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::FunctionDeclDefLink</name> <name>CppEditor</name>
<message> <message>
<source>Target file was changed, could not apply changes</source> <source>Target file was changed, could not apply changes</source>
<translation>Le fichier cible a é modifié, impossible d&apos;appliquer les changements</translation> <translation>Le fichier cible a é modifié, impossible d&apos;appliquer les changements</translation>
@@ -47785,7 +47664,7 @@ Oui :)</translatorcomment>
</message> </message>
</context> </context>
<context> <context>
<name>CPlusPlus::CheckSymbols</name> <name>CppEditor</name>
<message> <message>
<source>Only virtual methods can be marked &apos;final&apos;</source> <source>Only virtual methods can be marked &apos;final&apos;</source>
<translation>Seules les méthodes virtuelles peuvent être marqués &quot;final&quot;</translation> <translation>Seules les méthodes virtuelles peuvent être marqués &quot;final&quot;</translation>
@@ -52484,7 +52363,7 @@ Les noms partiels peuvent êtres utilisé s&apos;ils ne sont pas ambigües.</tra
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppEditorPlugin</name> <name>CppEditor</name>
<message> <message>
<source>C++ Class</source> <source>C++ Class</source>
<translation>Classe C++</translation> <translation>Classe C++</translation>
@@ -52602,7 +52481,7 @@ Les noms partiels peuvent êtres utilisé s&apos;ils ne sont pas ambigües.</tra
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::QuickFix</name> <name>CppEditor</name>
<message> <message>
<source>Move Definition Outside Class</source> <source>Move Definition Outside Class</source>
<translation>Déplacer la définition en dehors de la classe</translation> <translation>Déplacer la définition en dehors de la classe</translation>
@@ -52619,9 +52498,6 @@ Les noms partiels peuvent êtres utilisé s&apos;ils ne sont pas ambigües.</tra
<source>Insert Virtual Functions of Base Classes</source> <source>Insert Virtual Functions of Base Classes</source>
<translation>Insérer les fonctions virtuelles des classes de bases</translation> <translation>Insérer les fonctions virtuelles des classes de bases</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::InsertVirtualMethodsDialog</name>
<message> <message>
<source>Insert Virtual Functions</source> <source>Insert Virtual Functions</source>
<translation>Insérer les fonctions virtuelles</translation> <translation>Insérer les fonctions virtuelles</translation>
@@ -54818,7 +54694,7 @@ réinitialisation du moniteur</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppPreProcessorDialog</name> <name>CppEditor</name>
<message> <message>
<source>Additional C++ Preprocessor Directives</source> <source>Additional C++ Preprocessor Directives</source>
<translation>Directives supplémentaires pour le préprocesseur C++</translation> <translation>Directives supplémentaires pour le préprocesseur C++</translation>
@@ -55733,21 +55609,15 @@ réinitialisation du moniteur</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppIncludeHierarchyWidget</name> <name>CppEditor</name>
<message> <message>
<source>No include hierarchy available</source> <source>No include hierarchy available</source>
<translation>Aucune hiérarchie d&apos;inclusion est disponible</translation> <translation>Aucune hiérarchie d&apos;inclusion est disponible</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppIncludeHierarchyFactory</name>
<message> <message>
<source>Include Hierarchy</source> <source>Include Hierarchy</source>
<translation>Hiérarchie d&apos;inclusion</translation> <translation>Hiérarchie d&apos;inclusion</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppIncludeHierarchyModel</name>
<message> <message>
<source>Includes</source> <source>Includes</source>
<translation>Inclusions</translation> <translation>Inclusions</translation>
@@ -55777,7 +55647,7 @@ réinitialisation du moniteur</translation>
</message> </message>
</context> </context>
<context> <context>
<name>VirtualFunctionsAssistProcessor</name> <name>CppEditor</name>
<message> <message>
<source>...searching overrides</source> <source>...searching overrides</source>
<translation>... recherche des surcharges</translation> <translation>... recherche des surcharges</translation>

View File

@@ -3027,7 +3027,7 @@ p, li { white-space: pre-wrap; }
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppPreProcessorDialog</name> <name>CppEditor</name>
<message> <message>
<source>Additional C++ Preprocessor Directives</source> <source>Additional C++ Preprocessor Directives</source>
<translation>Dodatne C++ predprocesorske direktive</translation> <translation>Dodatne C++ predprocesorske direktive</translation>
@@ -20233,14 +20233,11 @@ u kontrolu verzija (%2)
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppEditorDocument</name> <name>CppEditor</name>
<message> <message>
<source>Note: Multiple parse contexts are available for this file. Choose the preferred one from the editor toolbar.</source> <source>Note: Multiple parse contexts are available for this file. Choose the preferred one from the editor toolbar.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppEditorPlugin</name>
<message> <message>
<source>C++</source> <source>C++</source>
<comment>SnippetProvider</comment> <comment>SnippetProvider</comment>
@@ -20333,16 +20330,10 @@ u kontrolu verzija (%2)
<source>Ctrl+Shift+F12</source> <source>Ctrl+Shift+F12</source>
<translation>Ctrl+Shift+F12</translation> <translation>Ctrl+Shift+F12</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppEditorWidget</name>
<message> <message>
<source>&amp;Refactor</source> <source>&amp;Refactor</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::FunctionDeclDefLink</name>
<message> <message>
<source>Target file was changed, could not apply changes</source> <source>Target file was changed, could not apply changes</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -20359,9 +20350,6 @@ u kontrolu verzija (%2)
<source>Apply Function Signature Changes</source> <source>Apply Function Signature Changes</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppIncludeHierarchyModel</name>
<message> <message>
<source>(none)</source> <source>(none)</source>
<translation>(bez)</translation> <translation>(bez)</translation>
@@ -20378,9 +20366,6 @@ u kontrolu verzija (%2)
<source>Included by</source> <source>Included by</source>
<translation>Uključeno od</translation> <translation>Uključeno od</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppIncludeHierarchyWidget</name>
<message> <message>
<source>No include hierarchy available</source> <source>No include hierarchy available</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -20389,16 +20374,10 @@ u kontrolu verzija (%2)
<source>Synchronize with Editor</source> <source>Synchronize with Editor</source>
<translation>Sinkroniziraj s uređivačem</translation> <translation>Sinkroniziraj s uređivačem</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppIncludeHierarchyFactory</name>
<message> <message>
<source>Include Hierarchy</source> <source>Include Hierarchy</source>
<translation>Uključi hijerarhiju</translation> <translation>Uključi hijerarhiju</translation>
</message> </message>
</context>
<context>
<name>CppEditor::QuickFix</name>
<message> <message>
<source>Insert Virtual Functions of Base Classes</source> <source>Insert Virtual Functions of Base Classes</source>
<translation>Umetni virtualnu funkciju osnovnih klasa</translation> <translation>Umetni virtualnu funkciju osnovnih klasa</translation>
@@ -20423,9 +20402,6 @@ u kontrolu verzija (%2)
<source>Move Definition to Class</source> <source>Move Definition to Class</source>
<translation>Premjesti definiciju u klasu</translation> <translation>Premjesti definiciju u klasu</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::InsertVirtualMethodsDialog</name>
<message> <message>
<source>Insert Virtual Functions</source> <source>Insert Virtual Functions</source>
<translation>Umetni virtualnu funkciju</translation> <translation>Umetni virtualnu funkciju</translation>
@@ -20474,9 +20450,6 @@ u kontrolu verzija (%2)
<source>Clear Added &quot;override&quot; Equivalents</source> <source>Clear Added &quot;override&quot; Equivalents</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::MinimizableInfoBars</name>
<message> <message>
<source>File is not part of any project.</source> <source>File is not part of any project.</source>
<translation>Datoteka nije dio bilo kojeg projekta.</translation> <translation>Datoteka nije dio bilo kojeg projekta.</translation>
@@ -20497,9 +20470,6 @@ u kontrolu verzija (%2)
<source>&lt;b&gt;Warning&lt;/b&gt;: The code model could not parse an included file, which might lead to incorrect code completion and highlighting, for example.</source> <source>&lt;b&gt;Warning&lt;/b&gt;: The code model could not parse an included file, which might lead to incorrect code completion and highlighting, for example.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppOutlineTreeView</name>
<message> <message>
<source>Expand All</source> <source>Expand All</source>
<translation>Rasklopi sve</translation> <translation>Rasklopi sve</translation>
@@ -20508,16 +20478,10 @@ u kontrolu verzija (%2)
<source>Collapse All</source> <source>Collapse All</source>
<translation>Sklopi sve</translation> <translation>Sklopi sve</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::ParseContextModel</name>
<message> <message>
<source>&lt;p&gt;&lt;b&gt;Active Parse Context&lt;/b&gt;:&lt;br/&gt;%1&lt;/p&gt;&lt;p&gt;Multiple parse contexts (set of defines, include paths, and so on) are available for this file.&lt;/p&gt;&lt;p&gt;Choose a parse context to set it as the preferred one. Clear the preference from the context menu.&lt;/p&gt;</source> <source>&lt;p&gt;&lt;b&gt;Active Parse Context&lt;/b&gt;:&lt;br/&gt;%1&lt;/p&gt;&lt;p&gt;Multiple parse contexts (set of defines, include paths, and so on) are available for this file.&lt;/p&gt;&lt;p&gt;Choose a parse context to set it as the preferred one. Clear the preference from the context menu.&lt;/p&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::ParseContextWidget</name>
<message> <message>
<source>Clear Preferred Parse Context</source> <source>Clear Preferred Parse Context</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -20651,14 +20615,11 @@ u kontrolu verzija (%2)
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::InsertDeclOperation</name> <name>CppEditor</name>
<message> <message>
<source>Add %1 Declaration</source> <source>Add %1 Declaration</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::InsertDefOperation</name>
<message> <message>
<source>Add Definition in %1</source> <source>Add Definition in %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -20675,9 +20636,6 @@ u kontrolu verzija (%2)
<source>Add Definition Outside Class</source> <source>Add Definition Outside Class</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::CppQuickFixFactory</name>
<message> <message>
<source>Create Getter and Setter Member Functions</source> <source>Create Getter and Setter Member Functions</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -20702,9 +20660,6 @@ u kontrolu verzija (%2)
<source>Generate Missing Q_PROPERTY Members</source> <source>Generate Missing Q_PROPERTY Members</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>QuickFix::ExtractFunction</name>
<message> <message>
<source>Extract Function</source> <source>Extract Function</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -20721,9 +20676,6 @@ u kontrolu verzija (%2)
<source>Access</source> <source>Access</source>
<translation>Pristup</translation> <translation>Pristup</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppTypeHierarchyWidget</name>
<message> <message>
<source>No type hierarchy available</source> <source>No type hierarchy available</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -20736,9 +20688,6 @@ u kontrolu verzija (%2)
<source>Derived</source> <source>Derived</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppTypeHierarchyFactory</name>
<message> <message>
<source>Type Hierarchy</source> <source>Type Hierarchy</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -20763,7 +20712,7 @@ u kontrolu verzija (%2)
</message> </message>
</context> </context>
<context> <context>
<name>ClangDiagnosticConfigsModel</name> <name>CppEditor</name>
<message> <message>
<source>Clang-only checks for questionable constructs</source> <source>Clang-only checks for questionable constructs</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -20861,7 +20810,7 @@ u kontrolu verzija (%2)
</message> </message>
</context> </context>
<context> <context>
<name>CPlusPlus::CheckSymbols</name> <name>CppEditor</name>
<message> <message>
<source>Only virtual functions can be marked &apos;final&apos;</source> <source>Only virtual functions can be marked &apos;final&apos;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -20930,7 +20879,7 @@ u kontrolu verzija (%2)
</message> </message>
</context> </context>
<context> <context>
<name>CppTools::CppEditorOutline</name> <name>CppTools</name>
<message> <message>
<source>Sort Alphabetically</source> <source>Sort Alphabetically</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -20998,7 +20947,7 @@ u kontrolu verzija (%2)
</message> </message>
</context> </context>
<context> <context>
<name>CppSourceProcessor</name> <name>CppEditor</name>
<message> <message>
<source>%1: No such file or directory</source> <source>%1: No such file or directory</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -21044,7 +20993,7 @@ u kontrolu verzija (%2)
</message> </message>
</context> </context>
<context> <context>
<name>CppIndexer</name> <name>CppEditor</name>
<message> <message>
<source>C++ Indexer: Skipping file &quot;%1&quot; because it is too big.</source> <source>C++ Indexer: Skipping file &quot;%1&quot; because it is too big.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -21071,7 +21020,7 @@ u kontrolu verzija (%2)
</message> </message>
</context> </context>
<context> <context>
<name>VirtualFunctionsAssistProcessor</name> <name>CppEditor</name>
<message> <message>
<source>...searching overrides</source> <source>...searching overrides</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>

View File

@@ -3210,7 +3210,7 @@ p {
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::0</name> <name>CppEditor</name>
<message> <message>
<source>Sort alphabetically</source> <source>Sort alphabetically</source>
<translation type="obsolete">Rendezés betűrendbe</translation> <translation type="obsolete">Rendezés betűrendbe</translation>
@@ -3287,9 +3287,6 @@ p {
<source>Switch between Method Declaration/Definition</source> <source>Switch between Method Declaration/Definition</source>
<translation type="obsolete">Deklaráció/definíció közötti váltás.</translation> <translation type="obsolete">Deklaráció/definíció közötti váltás.</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CPPEditor</name>
<message> <message>
<source>Sort alphabetically</source> <source>Sort alphabetically</source>
<translation>Rendezés betűrendbe</translation> <translation>Rendezés betűrendbe</translation>
@@ -3302,9 +3299,6 @@ p {
<source>Yes, I know what I am doing.</source> <source>Yes, I know what I am doing.</source>
<translation>Igen, tudom, hogy mit csinálok.</translation> <translation>Igen, tudom, hogy mit csinálok.</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::ClassNamePage</name>
<message> <message>
<source>Enter class name</source> <source>Enter class name</source>
<translation>Osztály nevének bevitele</translation> <translation>Osztály nevének bevitele</translation>
@@ -3317,30 +3311,18 @@ p {
<source>Configure...</source> <source>Configure...</source>
<translation>Konfigurálás...</translation> <translation>Konfigurálás...</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppClassWizard</name>
<message> <message>
<source>Error while generating file contents.</source> <source>Error while generating file contents.</source>
<translation>Hiba történt a fájl tartalmak legenerálása közben.</translation> <translation>Hiba történt a fájl tartalmak legenerálása közben.</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppClassWizardDialog</name>
<message> <message>
<source>C++ Class Wizard</source> <source>C++ Class Wizard</source>
<translation>C++ osztály varázsló</translation> <translation>C++ osztály varázsló</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppHoverHandler</name>
<message> <message>
<source>Unfiltered</source> <source>Unfiltered</source>
<translation>Szűrés nélküli</translation> <translation>Szűrés nélküli</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppPlugin</name>
<message> <message>
<source>C++</source> <source>C++</source>
<translation>C++</translation> <translation>C++</translation>

View File

@@ -2146,7 +2146,7 @@ Vuoi sovrascriverli?</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CPPEditor</name> <name>CppEditor</name>
<message> <message>
<source>Sort alphabetically</source> <source>Sort alphabetically</source>
<translation>Ordine alfabetico</translation> <translation>Ordine alfabetico</translation>
@@ -2159,9 +2159,6 @@ Vuoi sovrascriverli?</translation>
<source>Yes, I know what I am doing.</source> <source>Yes, I know what I am doing.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::ClassNamePage</name>
<message> <message>
<source>Enter class name</source> <source>Enter class name</source>
<translation>Inserisci il nome della classe</translation> <translation>Inserisci il nome della classe</translation>
@@ -2174,30 +2171,18 @@ Vuoi sovrascriverli?</translation>
<source>Configure...</source> <source>Configure...</source>
<translation>Configura...</translation> <translation>Configura...</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppClassWizard</name>
<message> <message>
<source>Error while generating file contents.</source> <source>Error while generating file contents.</source>
<translation>Errore durante la generazione del contenuto dei file.</translation> <translation>Errore durante la generazione del contenuto dei file.</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppClassWizardDialog</name>
<message> <message>
<source>C++ Class Wizard</source> <source>C++ Class Wizard</source>
<translation>Assistente alla creazione Classe C++</translation> <translation>Assistente alla creazione Classe C++</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppHoverHandler</name>
<message> <message>
<source>Unfiltered</source> <source>Unfiltered</source>
<translation>Non filtrato</translation> <translation>Non filtrato</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppPlugin</name>
<message> <message>
<source>C++</source> <source>C++</source>
<translation>C++</translation> <translation>C++</translation>

View File

@@ -1913,7 +1913,7 @@ p, li { white-space: pre-wrap; }
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppPreProcessorDialog</name> <name>CppEditor</name>
<message> <message>
<source>Additional C++ Preprocessor Directives</source> <source>Additional C++ Preprocessor Directives</source>
<translation>C++</translation> <translation>C++</translation>
@@ -14672,7 +14672,7 @@ to version control (%2)
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppEditorPlugin</name> <name>CppEditor</name>
<message> <message>
<source>C++</source> <source>C++</source>
<comment>SnippetProvider</comment> <comment>SnippetProvider</comment>
@@ -14773,9 +14773,6 @@ to version control (%2)
<source>Ctrl+Shift+F12</source> <source>Ctrl+Shift+F12</source>
<translation>Ctrl+Shift+F12</translation> <translation>Ctrl+Shift+F12</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::FunctionDeclDefLink</name>
<message> <message>
<source>Target file was changed, could not apply changes</source> <source>Target file was changed, could not apply changes</source>
<translation></translation> <translation></translation>
@@ -14792,23 +14789,14 @@ to version control (%2)
<source>Apply Function Signature Changes</source> <source>Apply Function Signature Changes</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>CppEditor::CppIncludeHierarchy</name>
<message> <message>
<source>No include hierarchy available</source> <source>No include hierarchy available</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppIncludeHierarchyFactory</name>
<message> <message>
<source>Include Hierarchy</source> <source>Include Hierarchy</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppIncludeHierarchyModel</name>
<message> <message>
<source>Includes</source> <source>Includes</source>
<translation></translation> <translation></translation>
@@ -14825,9 +14813,6 @@ to version control (%2)
<source>(cyclic)</source> <source>(cyclic)</source>
<translation>()</translation> <translation>()</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppOutlineTreeView</name>
<message> <message>
<source>Expand All</source> <source>Expand All</source>
<translation></translation> <translation></translation>
@@ -14981,14 +14966,11 @@ to version control (%2)
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::InsertDeclOperation</name> <name>CppEditor</name>
<message> <message>
<source>Add %1 Declaration</source> <source>Add %1 Declaration</source>
<translation>%1 </translation> <translation>%1 </translation>
</message> </message>
</context>
<context>
<name>CppEditor::InsertDefOperation</name>
<message> <message>
<source>Add Definition in %1</source> <source>Add Definition in %1</source>
<translation>%1 </translation> <translation>%1 </translation>
@@ -15034,7 +15016,7 @@ to version control (%2)
</message> </message>
</context> </context>
<context> <context>
<name>QuickFix::ExtractFunction</name> <name>CppEditor</name>
<message> <message>
<source>Extract Function</source> <source>Extract Function</source>
<translation></translation> <translation></translation>
@@ -15051,9 +15033,6 @@ to version control (%2)
<source>Access</source> <source>Access</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>CppEditor::QuickFix</name>
<message> <message>
<source>Move Definition Outside Class</source> <source>Move Definition Outside Class</source>
<translation></translation> <translation></translation>
@@ -15078,9 +15057,6 @@ to version control (%2)
<source>Insert Virtual Functions of Base Classes</source> <source>Insert Virtual Functions of Base Classes</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::InsertVirtualMethodsDialog</name>
<message> <message>
<source>Insert Virtual Functions</source> <source>Insert Virtual Functions</source>
<translation></translation> <translation></translation>
@@ -15129,16 +15105,10 @@ to version control (%2)
<source>Filter</source> <source>Filter</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppSnippetProvider</name>
<message> <message>
<source>C++</source> <source>C++</source>
<translation>C++</translation> <translation>C++</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppTypeHierarchyWidget</name>
<message> <message>
<source>No type hierarchy available</source> <source>No type hierarchy available</source>
<translation></translation> <translation></translation>
@@ -15159,16 +15129,10 @@ to version control (%2)
<source>Evaluating type hierarchy...</source> <source>Evaluating type hierarchy...</source>
<translation>...</translation> <translation>...</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppTypeHierarchyFactory</name>
<message> <message>
<source>Type Hierarchy</source> <source>Type Hierarchy</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>VirtualFunctionsAssistProcessor</name>
<message> <message>
<source>...searching overrides</source> <source>...searching overrides</source>
<translation>...</translation> <translation>...</translation>
@@ -15189,7 +15153,7 @@ to version control (%2)
</message> </message>
</context> </context>
<context> <context>
<name>CPlusPlus::CheckSymbols</name> <name>CppEditor</name>
<message> <message>
<source>Only virtual functions can be marked &apos;final&apos;</source> <source>Only virtual functions can be marked &apos;final&apos;</source>
<translation> &apos;final&apos; </translation> <translation> &apos;final&apos; </translation>
@@ -34985,7 +34949,7 @@ API バージョンが %1 以上の SDK をインストールしてください
</message> </message>
</context> </context>
<context> <context>
<name>CppSourceProcessor</name> <name>CppEditor</name>
<message> <message>
<source>%1: No such file or directory</source> <source>%1: No such file or directory</source>
<translation>%1: そのようなファイルもしくはディレクトリはありません</translation> <translation>%1: そのようなファイルもしくはディレクトリはありません</translation>
@@ -39194,7 +39158,7 @@ Do you want to check them out now?</source>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppEditorWidget</name> <name>CppEditor</name>
<message> <message>
<source>&amp;Refactor</source> <source>&amp;Refactor</source>
<translation>(&amp;R)</translation> <translation>(&amp;R)</translation>
@@ -39212,7 +39176,7 @@ Do you want to check them out now?</source>
</message> </message>
</context> </context>
<context> <context>
<name>ClangDiagnosticConfigsModel</name> <name>CppEditor</name>
<message> <message>
<source>Warnings for questionable constructs</source> <source>Warnings for questionable constructs</source>
<translation></translation> <translation></translation>
@@ -39231,7 +39195,7 @@ Do you want to check them out now?</source>
</message> </message>
</context> </context>
<context> <context>
<name>CppTools::CppEditorOutline</name> <name>CppTools</name>
<message> <message>
<source>Sort Alphabetically</source> <source>Sort Alphabetically</source>
<translation></translation> <translation></translation>
@@ -45433,7 +45397,7 @@ Output:
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppQuickFixSettingsWidget</name> <name>CppEditor</name>
<message> <message>
<source>Form</source> <source>Form</source>
<translation type="vanished"></translation> <translation type="vanished"></translation>
@@ -48231,25 +48195,15 @@ Continue?</source>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppIncludeHierarchyWidget</name> <name>CppEditor</name>
<message>
<source>No include hierarchy available</source>
<translation></translation>
</message>
<message> <message>
<source>Synchronize with Editor</source> <source>Synchronize with Editor</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::MinimizableInfoBars</name>
<message> <message>
<source>Minimize</source> <source>Minimize</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>CppEditor::CppQuickFixFactory</name>
<message> <message>
<source>Create Getter and Setter Member Functions</source> <source>Create Getter and Setter Member Functions</source>
<translation></translation> <translation></translation>
@@ -48279,7 +48233,7 @@ Continue?</source>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::ConstructorParams</name> <name>CppEditor</name>
<message> <message>
<source>Initialize in Constructor</source> <source>Initialize in Constructor</source>
<translation></translation> <translation></translation>

View File

@@ -13034,7 +13034,7 @@ Lista serwera: %2.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppTypeHierarchyWidget</name> <name>CppEditor</name>
<message> <message>
<source>No type hierarchy available</source> <source>No type hierarchy available</source>
<translation>Brak dostępnej hierarchii typów</translation> <translation>Brak dostępnej hierarchii typów</translation>
@@ -13047,9 +13047,6 @@ Lista serwera: %2.</translation>
<source>Derived</source> <source>Derived</source>
<translation>Klasy pochodne</translation> <translation>Klasy pochodne</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppTypeHierarchyFactory</name>
<message> <message>
<source>Type Hierarchy</source> <source>Type Hierarchy</source>
<translation>Hierarchia typów</translation> <translation>Hierarchia typów</translation>
@@ -13865,14 +13862,11 @@ Adds the library and include paths to the .pro file.</source>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::InsertDeclOperation</name> <name>CppEditor</name>
<message> <message>
<source>Add %1 Declaration</source> <source>Add %1 Declaration</source>
<translation>Dodaj deklarację %1</translation> <translation>Dodaj deklarację %1</translation>
</message> </message>
</context>
<context>
<name>CppEditor::InsertDefOperation</name>
<message> <message>
<source>Add Definition in %1</source> <source>Add Definition in %1</source>
<translation>Dodaj definicję w %1</translation> <translation>Dodaj definicję w %1</translation>
@@ -15045,7 +15039,7 @@ do systemu kontroli wersji (%2)
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppOutlineTreeView</name> <name>CppEditor</name>
<message> <message>
<source>Expand All</source> <source>Expand All</source>
<translation>Rozwiń wszystko</translation> <translation>Rozwiń wszystko</translation>
@@ -21191,7 +21185,7 @@ Wersje Qt można dodać w: Opcje &gt; Budowanie i uruchamianie &gt; Wersje Qt.</
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::FunctionDeclDefLink</name> <name>CppEditor</name>
<message> <message>
<source>Target file was changed, could not apply changes</source> <source>Target file was changed, could not apply changes</source>
<translation>Plik docelowy uległ zmianie, nie można zastosować zmian</translation> <translation>Plik docelowy uległ zmianie, nie można zastosować zmian</translation>
@@ -21208,9 +21202,6 @@ Wersje Qt można dodać w: Opcje &gt; Budowanie i uruchamianie &gt; Wersje Qt.</
<source>Apply Function Signature Changes</source> <source>Apply Function Signature Changes</source>
<translation>Zastosuj zmiany w sygnaturze funkcji</translation> <translation>Zastosuj zmiany w sygnaturze funkcji</translation>
</message> </message>
</context>
<context>
<name>QuickFix::ExtractFunction</name>
<message> <message>
<source>Extract Function</source> <source>Extract Function</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -24804,7 +24795,7 @@ Więcej informacji w dokumentacji &quot;Checking Code Syntax&quot;.</translation
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppEditorPlugin</name> <name>CppEditor</name>
<message> <message>
<source>Shift+F2</source> <source>Shift+F2</source>
<translation>Shift+F2</translation> <translation>Shift+F2</translation>
@@ -24890,9 +24881,6 @@ Więcej informacji w dokumentacji &quot;Checking Code Syntax&quot;.</translation
<source>Ctrl+Shift+F12</source> <source>Ctrl+Shift+F12</source>
<translation>Ctrl+Shift+F12</translation> <translation>Ctrl+Shift+F12</translation>
</message> </message>
</context>
<context>
<name>CppEditor::QuickFix</name>
<message> <message>
<source>Move Definition Outside Class</source> <source>Move Definition Outside Class</source>
<translation>Przenieś definicję na zewnątrz klasy</translation> <translation>Przenieś definicję na zewnątrz klasy</translation>
@@ -24917,9 +24905,6 @@ Więcej informacji w dokumentacji &quot;Checking Code Syntax&quot;.</translation
<source>Insert Virtual Functions of Base Classes</source> <source>Insert Virtual Functions of Base Classes</source>
<translation>Wstaw wirtualne metody klas bazowych</translation> <translation>Wstaw wirtualne metody klas bazowych</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::InsertVirtualMethodsDialog</name>
<message> <message>
<source>Insert Virtual Functions</source> <source>Insert Virtual Functions</source>
<translation>Wstaw wirtualne metody</translation> <translation>Wstaw wirtualne metody</translation>
@@ -24984,7 +24969,7 @@ Więcej informacji w dokumentacji &quot;Checking Code Syntax&quot;.</translation
</message> </message>
</context> </context>
<context> <context>
<name>CPlusPlus::CheckSymbols</name> <name>CppEditor</name>
<message> <message>
<source>Only virtual functions can be marked &apos;final&apos;</source> <source>Only virtual functions can be marked &apos;final&apos;</source>
<translation>Jedynie funkcje wirtualne mogą być opatrzone &quot;final&quot;</translation> <translation>Jedynie funkcje wirtualne mogą być opatrzone &quot;final&quot;</translation>
@@ -26318,7 +26303,7 @@ Zdalny: %4</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppPreProcessorDialog</name> <name>CppEditor</name>
<message> <message>
<source>Additional C++ Preprocessor Directives</source> <source>Additional C++ Preprocessor Directives</source>
<translation>Dodatkowe dyrektywy preprocesora C++</translation> <translation>Dodatkowe dyrektywy preprocesora C++</translation>
@@ -27077,14 +27062,11 @@ Czy odinstalować istniejący pakiet?</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppIncludeHierarchyFactory</name> <name>CppEditor</name>
<message> <message>
<source>Include Hierarchy</source> <source>Include Hierarchy</source>
<translation>Hierarchia dołączeń</translation> <translation>Hierarchia dołączeń</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppIncludeHierarchyModel</name>
<message> <message>
<source>Includes</source> <source>Includes</source>
<translation>Dołączenia</translation> <translation>Dołączenia</translation>
@@ -27101,9 +27083,6 @@ Czy odinstalować istniejący pakiet?</translation>
<source>(cyclic)</source> <source>(cyclic)</source>
<translation>(cykl)</translation> <translation>(cykl)</translation>
</message> </message>
</context>
<context>
<name>VirtualFunctionsAssistProcessor</name>
<message> <message>
<source>...searching overrides</source> <source>...searching overrides</source>
<translation>...wyszukiwanie nadpisań</translation> <translation>...wyszukiwanie nadpisań</translation>
@@ -30448,14 +30427,11 @@ Do you want to check them out now?</source>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppEditorWidget</name> <name>CppEditor</name>
<message> <message>
<source>&amp;Refactor</source> <source>&amp;Refactor</source>
<translation>&amp;Refaktoryzacja</translation> <translation>&amp;Refaktoryzacja</translation>
</message> </message>
</context>
<context>
<name>CppSourceProcessor</name>
<message> <message>
<source>%1: No such file or directory</source> <source>%1: No such file or directory</source>
<translation>%1: Brak pliku lub katalogu</translation> <translation>%1: Brak pliku lub katalogu</translation>
@@ -33758,7 +33734,7 @@ Pliki z katalogu źródłowego pakietu Android są kopiowane do katalogu budowan
</message> </message>
</context> </context>
<context> <context>
<name>CppTools::CppEditorOutline</name> <name>CppTools</name>
<message> <message>
<source>Sort Alphabetically</source> <source>Sort Alphabetically</source>
<translation>Posortuj alfabetycznie</translation> <translation>Posortuj alfabetycznie</translation>
@@ -37332,7 +37308,7 @@ Ustaw prawdziwy plik wykonywalny Clang.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>ClangDiagnosticConfigsModel</name> <name>CppEditor</name>
<message> <message>
<source>Warnings for questionable constructs</source> <source>Warnings for questionable constructs</source>
<translation>Ostrzeżenia o niejasnych konstrukcjach</translation> <translation>Ostrzeżenia o niejasnych konstrukcjach</translation>
@@ -38448,7 +38424,7 @@ Komunikat:
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::CppIncludeHierarchy</name> <name>CppEditor</name>
<message> <message>
<source>No include hierarchy available</source> <source>No include hierarchy available</source>
<translation>Brak dostępnej hierarchii dołączeń</translation> <translation>Brak dostępnej hierarchii dołączeń</translation>
@@ -39408,7 +39384,7 @@ Uwaga: podczas używania zwykłego formatu tekstowego może brakować niektóryc
</message> </message>
</context> </context>
<context> <context>
<name>CppIndexer</name> <name>CppEditor</name>
<message> <message>
<source>C++ Indexer: Skipping file &quot;%1&quot; because it is too big.</source> <source>C++ Indexer: Skipping file &quot;%1&quot; because it is too big.</source>
<translation>Indekser C++: plik &quot;%1&quot; posiada zbyt duży rozmiar, zostanie on pominięty.</translation> <translation>Indekser C++: plik &quot;%1&quot; posiada zbyt duży rozmiar, zostanie on pominięty.</translation>
@@ -41229,14 +41205,11 @@ Błąd: %2</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppEditorDocument</name> <name>CppEditor</name>
<message> <message>
<source>Note: Multiple parse contexts are available for this file. Choose the preferred one from the editor toolbar.</source> <source>Note: Multiple parse contexts are available for this file. Choose the preferred one from the editor toolbar.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::MinimizableInfoBars</name>
<message> <message>
<source>File is not part of any project.</source> <source>File is not part of any project.</source>
<translation>Plik nie jest częścią żadnego projektu.</translation> <translation>Plik nie jest częścią żadnego projektu.</translation>
@@ -41257,16 +41230,10 @@ Błąd: %2</translation>
<source>&lt;b&gt;Warning&lt;/b&gt;: The code model could not parse an included file, which might lead to slow or incorrect code completion and highlighting, for example.</source> <source>&lt;b&gt;Warning&lt;/b&gt;: The code model could not parse an included file, which might lead to slow or incorrect code completion and highlighting, for example.</source>
<translation>&lt;b&gt;Ostrzeżenie&lt;/b&gt;: Model kodu nie mógł przeparsować dołączonego pliku, może to spowodować powolne lub niepoprawne działanie uzupełniania bądź podświetlania kodu.</translation> <translation>&lt;b&gt;Ostrzeżenie&lt;/b&gt;: Model kodu nie mógł przeparsować dołączonego pliku, może to spowodować powolne lub niepoprawne działanie uzupełniania bądź podświetlania kodu.</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::ParseContextModel</name>
<message> <message>
<source>&lt;p&gt;&lt;b&gt;Active Parse Context&lt;/b&gt;:&lt;br/&gt;%1&lt;/p&gt;&lt;p&gt;Multiple parse contexts (set of defines, include paths, and so on) are available for this file.&lt;/p&gt;&lt;p&gt;Choose a parse context to set it as the preferred one. Clear the preference from the context menu.&lt;/p&gt;</source> <source>&lt;p&gt;&lt;b&gt;Active Parse Context&lt;/b&gt;:&lt;br/&gt;%1&lt;/p&gt;&lt;p&gt;Multiple parse contexts (set of defines, include paths, and so on) are available for this file.&lt;/p&gt;&lt;p&gt;Choose a parse context to set it as the preferred one. Clear the preference from the context menu.&lt;/p&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::ParseContextWidget</name>
<message> <message>
<source>Clear Preferred Parse Context</source> <source>Clear Preferred Parse Context</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>

View File

@@ -6197,7 +6197,7 @@ For example, &quot;Revision: 15&quot; will leave the branch at revision 15.</sou
</message> </message>
</context> </context>
<context> <context>
<name>CPlusPlus::CheckSymbols</name> <name>CppEditor</name>
<message> <message>
<source>Only virtual functions can be marked &apos;final&apos;</source> <source>Only virtual functions can be marked &apos;final&apos;</source>
<translation>Только виртуальные функции могут иметь атрибут «final»</translation> <translation>Только виртуальные функции могут иметь атрибут «final»</translation>
@@ -6538,7 +6538,7 @@ However, using the relaxed and extended rules means also that no highlighting/co
</message> </message>
</context> </context>
<context> <context>
<name>ClangDiagnosticConfigsModel</name> <name>CppEditor</name>
<message> <message>
<source>Checks for questionable constructs</source> <source>Checks for questionable constructs</source>
<translation>Проверки на сомнительные конструкции</translation> <translation>Проверки на сомнительные конструкции</translation>
@@ -11639,7 +11639,7 @@ to version control (%2)
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::CppQuickFixFactory</name> <name>CppEditor</name>
<message> <message>
<source>Create Getter and Setter Member Functions</source> <source>Create Getter and Setter Member Functions</source>
<translation>Создать методы получения и установки значения</translation> <translation>Создать методы получения и установки значения</translation>
@@ -11664,16 +11664,10 @@ to version control (%2)
<source>Generate Missing Q_PROPERTY Members</source> <source>Generate Missing Q_PROPERTY Members</source>
<translation>Создание отсутствующих членов Q_PROPERTY</translation> <translation>Создание отсутствующих членов Q_PROPERTY</translation>
</message> </message>
</context>
<context>
<name>CppEditor::InsertDeclOperation</name>
<message> <message>
<source>Add %1 Declaration</source> <source>Add %1 Declaration</source>
<translation>Добавление объявления %1</translation> <translation>Добавление объявления %1</translation>
</message> </message>
</context>
<context>
<name>CppEditor::InsertDefOperation</name>
<message> <message>
<source>Add Definition in %1</source> <source>Add Definition in %1</source>
<translation>Добавить реализацию в %1</translation> <translation>Добавить реализацию в %1</translation>
@@ -11690,16 +11684,10 @@ to version control (%2)
<source>Add Definition Outside Class</source> <source>Add Definition Outside Class</source>
<translation>Добавить реализацию вне класса</translation> <translation>Добавить реализацию вне класса</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppEditorDocument</name>
<message> <message>
<source>Note: Multiple parse contexts are available for this file. Choose the preferred one from the editor toolbar.</source> <source>Note: Multiple parse contexts are available for this file. Choose the preferred one from the editor toolbar.</source>
<translation>Несколько контекстов разбора доступно для этого файла. Выберите предпочтительный в панели инструментов редактора.</translation> <translation>Несколько контекстов разбора доступно для этого файла. Выберите предпочтительный в панели инструментов редактора.</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppEditorPlugin</name>
<message> <message>
<source>Shift+F2</source> <source>Shift+F2</source>
<translation>Shift+F2</translation> <translation>Shift+F2</translation>
@@ -11784,23 +11772,14 @@ to version control (%2)
<source>Ctrl+Shift+F12</source> <source>Ctrl+Shift+F12</source>
<translation>Ctrl+Shift+F12</translation> <translation>Ctrl+Shift+F12</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppEditorWidget</name>
<message> <message>
<source>&amp;Refactor</source> <source>&amp;Refactor</source>
<translation>&amp;Рефакторинг</translation> <translation>&amp;Рефакторинг</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppIncludeHierarchyFactory</name>
<message> <message>
<source>Include Hierarchy</source> <source>Include Hierarchy</source>
<translation>Иерархия включений</translation> <translation>Иерархия включений</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppIncludeHierarchyModel</name>
<message> <message>
<source>Includes</source> <source>Includes</source>
<translation>Включения</translation> <translation>Включения</translation>
@@ -11817,9 +11796,6 @@ to version control (%2)
<source>(cyclic)</source> <source>(cyclic)</source>
<translation>(циклически)</translation> <translation>(циклически)</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppIncludeHierarchyWidget</name>
<message> <message>
<source>No include hierarchy available</source> <source>No include hierarchy available</source>
<translation>Нет доступных иерархий включений</translation> <translation>Нет доступных иерархий включений</translation>
@@ -11828,9 +11804,6 @@ to version control (%2)
<source>Synchronize with Editor</source> <source>Synchronize with Editor</source>
<translation>Согласовывать с редактором</translation> <translation>Согласовывать с редактором</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppOutlineTreeView</name>
<message> <message>
<source>Expand All</source> <source>Expand All</source>
<translation>Развернуть всё</translation> <translation>Развернуть всё</translation>
@@ -11839,9 +11812,6 @@ to version control (%2)
<source>Collapse All</source> <source>Collapse All</source>
<translation>Свернуть всё</translation> <translation>Свернуть всё</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppPreProcessorDialog</name>
<message> <message>
<source>Additional C++ Preprocessor Directives</source> <source>Additional C++ Preprocessor Directives</source>
<translation>Дополнительные директивы препроцессора C++</translation> <translation>Дополнительные директивы препроцессора C++</translation>
@@ -11850,16 +11820,10 @@ to version control (%2)
<source>Additional C++ Preprocessor Directives for %1:</source> <source>Additional C++ Preprocessor Directives for %1:</source>
<translation>Дополнительные директивы препроцессора C++ для %1:</translation> <translation>Дополнительные директивы препроцессора C++ для %1:</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppTypeHierarchyFactory</name>
<message> <message>
<source>Type Hierarchy</source> <source>Type Hierarchy</source>
<translation>Иерархия типов</translation> <translation>Иерархия типов</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppTypeHierarchyWidget</name>
<message> <message>
<source>No type hierarchy available</source> <source>No type hierarchy available</source>
<translation>Иерархия типов недоступна</translation> <translation>Иерархия типов недоступна</translation>
@@ -11872,9 +11836,6 @@ to version control (%2)
<source>Derived</source> <source>Derived</source>
<translation>Производные</translation> <translation>Производные</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::FunctionDeclDefLink</name>
<message> <message>
<source>Target file was changed, could not apply changes</source> <source>Target file was changed, could not apply changes</source>
<translation>Невозможно применить изменения, так как целевой файл изменился</translation> <translation>Невозможно применить изменения, так как целевой файл изменился</translation>
@@ -11891,9 +11852,6 @@ to version control (%2)
<source>Apply Function Signature Changes</source> <source>Apply Function Signature Changes</source>
<translation>Применить изменения сигнатуры функции</translation> <translation>Применить изменения сигнатуры функции</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::InsertVirtualMethodsDialog</name>
<message> <message>
<source>Insert Virtual Functions</source> <source>Insert Virtual Functions</source>
<translation>Вставка виртуальных методов</translation> <translation>Вставка виртуальных методов</translation>
@@ -11942,9 +11900,6 @@ to version control (%2)
<source>Clear Added &quot;override&quot; Equivalents</source> <source>Clear Added &quot;override&quot; Equivalents</source>
<translation>Удаление аналогов «override»</translation> <translation>Удаление аналогов «override»</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::MinimizableInfoBars</name>
<message> <message>
<source>File is not part of any project.</source> <source>File is not part of any project.</source>
<translation>Файл не является частью проекта.</translation> <translation>Файл не является частью проекта.</translation>
@@ -11965,23 +11920,14 @@ to version control (%2)
<source>&lt;b&gt;Warning&lt;/b&gt;: The code model could not parse an included file, which might lead to incorrect code completion and highlighting, for example.</source> <source>&lt;b&gt;Warning&lt;/b&gt;: The code model could not parse an included file, which might lead to incorrect code completion and highlighting, for example.</source>
<translation>&lt;b&gt;Внимание!&lt;/b&gt; Модель кода не сможет обрабатывать включённый файл, который, например, может приводить к неверному дополнению кода и подсветки.</translation> <translation>&lt;b&gt;Внимание!&lt;/b&gt; Модель кода не сможет обрабатывать включённый файл, который, например, может приводить к неверному дополнению кода и подсветки.</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::ParseContextModel</name>
<message> <message>
<source>&lt;p&gt;&lt;b&gt;Active Parse Context&lt;/b&gt;:&lt;br/&gt;%1&lt;/p&gt;&lt;p&gt;Multiple parse contexts (set of defines, include paths, and so on) are available for this file.&lt;/p&gt;&lt;p&gt;Choose a parse context to set it as the preferred one. Clear the preference from the context menu.&lt;/p&gt;</source> <source>&lt;p&gt;&lt;b&gt;Active Parse Context&lt;/b&gt;:&lt;br/&gt;%1&lt;/p&gt;&lt;p&gt;Multiple parse contexts (set of defines, include paths, and so on) are available for this file.&lt;/p&gt;&lt;p&gt;Choose a parse context to set it as the preferred one. Clear the preference from the context menu.&lt;/p&gt;</source>
<translation>&lt;p&gt;&lt;b&gt;Активный контекст разбора&lt;/b&gt;:&lt;br/&gt;%1&lt;/p&gt;&lt;p&gt;Для этого файла доступно несколько контекстов разбора (набор определений, путей включения и пр.).&lt;/p&gt;&lt;p&gt;Выберите контекст разбора и задайте его предпочтительным. Убрать предпочтение можно через контекстное меню.&lt;/p&gt;</translation> <translation>&lt;p&gt;&lt;b&gt;Активный контекст разбора&lt;/b&gt;:&lt;br/&gt;%1&lt;/p&gt;&lt;p&gt;Для этого файла доступно несколько контекстов разбора (набор определений, путей включения и пр.).&lt;/p&gt;&lt;p&gt;Выберите контекст разбора и задайте его предпочтительным. Убрать предпочтение можно через контекстное меню.&lt;/p&gt;</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::ParseContextWidget</name>
<message> <message>
<source>Clear Preferred Parse Context</source> <source>Clear Preferred Parse Context</source>
<translation>Убрать предпочтительный контекст разбора</translation> <translation>Убрать предпочтительный контекст разбора</translation>
</message> </message>
</context>
<context>
<name>CppEditor::QuickFix</name>
<message> <message>
<source>Move Definition Outside Class</source> <source>Move Definition Outside Class</source>
<translation>Вынести реализацию из класса</translation> <translation>Вынести реализацию из класса</translation>
@@ -12006,16 +11952,10 @@ to version control (%2)
<source>Insert Virtual Functions of Base Classes</source> <source>Insert Virtual Functions of Base Classes</source>
<translation>Вставить виртуальные методы базовых классов</translation> <translation>Вставить виртуальные методы базовых классов</translation>
</message> </message>
</context>
<context>
<name>CppIndexer</name>
<message> <message>
<source>C++ Indexer: Skipping file &quot;%1&quot; because it is too big.</source> <source>C++ Indexer: Skipping file &quot;%1&quot; because it is too big.</source>
<translation>Индексатор C++: Пропускается файл «%1», так как слишком большой.</translation> <translation>Индексатор C++: Пропускается файл «%1», так как слишком большой.</translation>
</message> </message>
</context>
<context>
<name>CppSourceProcessor</name>
<message> <message>
<source>%1: No such file or directory</source> <source>%1: No such file or directory</source>
<translation>%1: Нет такого файла или каталога</translation> <translation>%1: Нет такого файла или каталога</translation>
@@ -12180,7 +12120,7 @@ to version control (%2)
</message> </message>
</context> </context>
<context> <context>
<name>CppTools::CppEditorOutline</name> <name>CppTools</name>
<message> <message>
<source>Sort Alphabetically</source> <source>Sort Alphabetically</source>
<translation>Сортировать по алфавиту</translation> <translation>Сортировать по алфавиту</translation>
@@ -42543,7 +42483,7 @@ For more details, see /etc/sysctl.d/10-ptrace.conf
</message> </message>
</context> </context>
<context> <context>
<name>QuickFix::ExtractFunction</name> <name>CppEditor</name>
<message> <message>
<source>Extract Function</source> <source>Extract Function</source>
<translation>Извлечь функцию</translation> <translation>Извлечь функцию</translation>
@@ -51099,7 +51039,7 @@ What do you want to do?</source>
</message> </message>
</context> </context>
<context> <context>
<name>VirtualFunctionsAssistProcessor</name> <name>CppEditor</name>
<message> <message>
<source>...searching overrides</source> <source>...searching overrides</source>
<translation>... поиск переопределений</translation> <translation>... поиск переопределений</translation>

View File

@@ -1682,7 +1682,7 @@ Ali jih želite nadomestiti?</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::ClassNamePage</name> <name>CppEditor</name>
<message> <message>
<source>Enter Class Name</source> <source>Enter Class Name</source>
<translation>Vnesite ime razreda</translation> <translation>Vnesite ime razreda</translation>
@@ -1695,16 +1695,10 @@ Ali jih želite nadomestiti?</translation>
<source>Configure...</source> <source>Configure...</source>
<translation type="obsolete">Nastavi </translation> <translation type="obsolete">Nastavi </translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppClassWizard</name>
<message> <message>
<source>Error while generating file contents.</source> <source>Error while generating file contents.</source>
<translation>Napaka med ustvarjanjem vsebine datotek.</translation> <translation>Napaka med ustvarjanjem vsebine datotek.</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppClassWizardDialog</name>
<message> <message>
<source>C++ Class Wizard</source> <source>C++ Class Wizard</source>
<translation>Čarovnik razreda C++</translation> <translation>Čarovnik razreda C++</translation>
@@ -1713,9 +1707,6 @@ Ali jih želite nadomestiti?</translation>
<source>Details</source> <source>Details</source>
<translation>Podrobnosti</translation> <translation>Podrobnosti</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppPlugin</name>
<message> <message>
<source>C++ Header File</source> <source>C++ Header File</source>
<translation>Datoteka z glavo C++</translation> <translation>Datoteka z glavo C++</translation>
@@ -22930,7 +22921,7 @@ Vedite: to lahko odstrani krajevno datoteko.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CPPEditorWidget</name> <name>CppEditor</name>
<message> <message>
<source>Sort Alphabetically</source> <source>Sort Alphabetically</source>
<translation>Razvrsti po abecedi</translation> <translation>Razvrsti po abecedi</translation>
@@ -22943,30 +22934,18 @@ Vedite: to lahko odstrani krajevno datoteko.</translation>
<source>Unused variable</source> <source>Unused variable</source>
<translation>Neuporabljena spremenljivka</translation> <translation>Neuporabljena spremenljivka</translation>
</message> </message>
</context>
<context>
<name>CppEditor::InsertDeclOperation</name>
<message> <message>
<source>Add %1 Declaration</source> <source>Add %1 Declaration</source>
<translation>Dodaj deklaracijo za %1</translation> <translation>Dodaj deklaracijo za %1</translation>
</message> </message>
</context>
<context>
<name>CppEditor::InsertDefOperation</name>
<message> <message>
<source>Add Definition in %1</source> <source>Add Definition in %1</source>
<translation>Dodaj definicijo v %1</translation> <translation>Dodaj definicijo v %1</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::InsertQtPropertyMembers</name>
<message> <message>
<source>Generate missing Q_PROPERTY members...</source> <source>Generate missing Q_PROPERTY members...</source>
<translation>Ustvari manjkajoče člane Q_PROPERTY ...</translation> <translation>Ustvari manjkajoče člane Q_PROPERTY ...</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppOutlineTreeView</name>
<message> <message>
<source>Expand All</source> <source>Expand All</source>
<translation>Razširi vse</translation> <translation>Razširi vse</translation>
@@ -22975,23 +22954,10 @@ Vedite: to lahko odstrani krajevno datoteko.</translation>
<source>Collapse All</source> <source>Collapse All</source>
<translation>Skrči vse</translation> <translation>Skrči vse</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppSnippetProvider</name>
<message>
<source>C++</source>
<translation>C++</translation>
</message>
</context>
<context>
<name>CppEditor::Internal::CppTypeHierarchyWidget</name>
<message> <message>
<source>No type hierarchy available</source> <source>No type hierarchy available</source>
<translation>Hierarhija tipov ni na voljo</translation> <translation>Hierarhija tipov ni na voljo</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppTypeHierarchyFactory</name>
<message> <message>
<source>Type Hierarchy</source> <source>Type Hierarchy</source>
<translation>Hierarhija tipov</translation> <translation>Hierarhija tipov</translation>
@@ -29808,11 +29774,7 @@ Preverite pravice za dostop do mape.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CPPEditor</name> <name>CppEditor</name>
<message>
<source>Sort Alphabetically</source>
<translation type="obsolete">Razvrsti po abecedi</translation>
</message>
<message> <message>
<source>This change cannot be undone.</source> <source>This change cannot be undone.</source>
<translation type="obsolete">Te spremembe ni moč razveljaviti.</translation> <translation type="obsolete">Te spremembe ni moč razveljaviti.</translation>
@@ -29821,10 +29783,6 @@ Preverite pravice za dostop do mape.</translation>
<source>Yes, I know what I am doing.</source> <source>Yes, I know what I am doing.</source>
<translation type="obsolete">Da, vem kaj počnem.</translation> <translation type="obsolete">Da, vem kaj počnem.</translation>
</message> </message>
<message>
<source>Unused variable</source>
<translation type="obsolete">Neuporabljena spremenljivka</translation>
</message>
</context> </context>
<context> <context>
<name>CppTools::Internal::FunctionArgumentWidget</name> <name>CppTools::Internal::FunctionArgumentWidget</name>

View File

@@ -3649,20 +3649,10 @@ to version control (%2)
</context> </context>
<context> <context>
<name>CppEditor</name> <name>CppEditor</name>
<message>
<source>C++</source>
<translation type="vanished">C++</translation>
</message>
</context>
<context>
<name>CppEditor::InsertDeclOperation</name>
<message> <message>
<source>Add %1 Declaration</source> <source>Add %1 Declaration</source>
<translation>Додати оголошення %1</translation> <translation>Додати оголошення %1</translation>
</message> </message>
</context>
<context>
<name>CppEditor::InsertDefOperation</name>
<message> <message>
<source>Add Definition in %1</source> <source>Add Definition in %1</source>
<translation>Додати визначення %1</translation> <translation>Додати визначення %1</translation>
@@ -3679,24 +3669,14 @@ to version control (%2)
<source>Add Definition Outside Class</source> <source>Add Definition Outside Class</source>
<translation>Додати визначення поза класом</translation> <translation>Додати визначення поза класом</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CPPEditorWidget</name>
<message> <message>
<source>Sort Alphabetically</source> <source>Sort Alphabetically</source>
<translation type="vanished">Сортувати за абеткою</translation> <translation type="vanished">Сортувати за абеткою</translation>
</message> </message>
<message>
<source>&amp;Refactor</source>
<translation type="vanished">&amp;Рефакторинг</translation>
</message>
<message> <message>
<source>Unused variable</source> <source>Unused variable</source>
<translation type="vanished">Невикористана змінна</translation> <translation type="vanished">Невикористана змінна</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::ClassNamePage</name>
<message> <message>
<source>Enter Class Name</source> <source>Enter Class Name</source>
<translation type="vanished">Введіть назву класу</translation> <translation type="vanished">Введіть назву класу</translation>
@@ -3709,27 +3689,14 @@ to version control (%2)
<source>Details</source> <source>Details</source>
<translation type="vanished">Деталі</translation> <translation type="vanished">Деталі</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppClassWizard</name>
<message> <message>
<source>Error while generating file contents.</source> <source>Error while generating file contents.</source>
<translation type="vanished">Помилка під час генерування змісту файлу.</translation> <translation type="vanished">Помилка під час генерування змісту файлу.</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppClassWizardDialog</name>
<message> <message>
<source>C++ Class Wizard</source> <source>C++ Class Wizard</source>
<translation type="vanished">Майстер класу C++</translation> <translation type="vanished">Майстер класу C++</translation>
</message> </message>
<message>
<source>Details</source>
<translation type="vanished">Деталі</translation>
</message>
</context>
<context>
<name>CppEditor::Internal::CppOutlineTreeView</name>
<message> <message>
<source>Expand All</source> <source>Expand All</source>
<translation>Розгорнути все</translation> <translation>Розгорнути все</translation>
@@ -3738,23 +3705,14 @@ to version control (%2)
<source>Collapse All</source> <source>Collapse All</source>
<translation>Згорнути все</translation> <translation>Згорнути все</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppSnippetProvider</name>
<message> <message>
<source>C++</source> <source>C++</source>
<translation>C++</translation> <translation>C++</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppTypeHierarchyFactory</name>
<message> <message>
<source>Type Hierarchy</source> <source>Type Hierarchy</source>
<translation>Ієрархія типів</translation> <translation>Ієрархія типів</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppTypeHierarchyWidget</name>
<message> <message>
<source>No type hierarchy available</source> <source>No type hierarchy available</source>
<translation>Ієрархія типів не доступна</translation> <translation>Ієрархія типів не доступна</translation>
@@ -26278,7 +26236,7 @@ should a repository require SSH-authentication (see documentation on SSH and the
</message> </message>
</context> </context>
<context> <context>
<name>QuickFix::ExtractFunction</name> <name>CppEditor</name>
<message> <message>
<source>Extract Function</source> <source>Extract Function</source>
<translation>Виділити функцію</translation> <translation>Виділити функцію</translation>
@@ -29482,7 +29440,7 @@ To add the Qt versions, select Options &gt; Build &amp; Run &gt; Qt Versions.</s
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::FunctionDeclDefLink</name> <name>CppEditor</name>
<message> <message>
<source>Target file was changed, could not apply changes</source> <source>Target file was changed, could not apply changes</source>
<translation>Не вдалось застосувати зміни, оскільки цільовий файл було змінено</translation> <translation>Не вдалось застосувати зміни, оскільки цільовий файл було змінено</translation>
@@ -29512,7 +29470,7 @@ To add the Qt versions, select Options &gt; Build &amp; Run &gt; Qt Versions.</s
</message> </message>
</context> </context>
<context> <context>
<name>CPlusPlus::CheckSymbols</name> <name>CppEditor</name>
<message> <message>
<source>Only virtual methods can be marked &apos;final&apos;</source> <source>Only virtual methods can be marked &apos;final&apos;</source>
<translation type="vanished">Лише віртуальні методи можуть бути позначені як &apos;final&apos;</translation> <translation type="vanished">Лише віртуальні методи можуть бути позначені як &apos;final&apos;</translation>
@@ -35145,7 +35103,7 @@ Partial names can be used if they are unambiguous.</source>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppEditorPlugin</name> <name>CppEditor</name>
<message> <message>
<source>C++ Class</source> <source>C++ Class</source>
<translation type="vanished">Клас C++</translation> <translation type="vanished">Клас C++</translation>
@@ -35262,9 +35220,6 @@ Partial names can be used if they are unambiguous.</source>
<source>Update Code Model</source> <source>Update Code Model</source>
<translation type="vanished">Оновити модель коду</translation> <translation type="vanished">Оновити модель коду</translation>
</message> </message>
</context>
<context>
<name>CppEditor::QuickFix</name>
<message> <message>
<source>Move Definition Outside Class</source> <source>Move Definition Outside Class</source>
<translation>Перенести визначення поза клас</translation> <translation>Перенести визначення поза клас</translation>
@@ -35289,9 +35244,6 @@ Partial names can be used if they are unambiguous.</source>
<source>Insert Virtual Functions of Base Classes</source> <source>Insert Virtual Functions of Base Classes</source>
<translation>Вставка віртуальних функцій базових класів</translation> <translation>Вставка віртуальних функцій базових класів</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::InsertVirtualMethodsDialog</name>
<message> <message>
<source>Insert Virtual Functions</source> <source>Insert Virtual Functions</source>
<translation>Вставка віртуальних функцій</translation> <translation>Вставка віртуальних функцій</translation>
@@ -36358,7 +36310,7 @@ monitor reset</translation>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppPreProcessorDialog</name> <name>CppEditor</name>
<message> <message>
<source>Additional C++ Preprocessor Directives</source> <source>Additional C++ Preprocessor Directives</source>
<translation>Додаткові директиви препроцесора C++</translation> <translation>Додаткові директиви препроцесора C++</translation>
@@ -37417,21 +37369,15 @@ Do you want to uninstall the existing package next time?</source>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppIncludeHierarchyWidget</name> <name>CppEditor</name>
<message> <message>
<source>No include hierarchy available</source> <source>No include hierarchy available</source>
<translation>Ієрархія заголовків не доступна</translation> <translation>Ієрархія заголовків не доступна</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppIncludeHierarchyFactory</name>
<message> <message>
<source>Include Hierarchy</source> <source>Include Hierarchy</source>
<translation>Ієрархія заголовків</translation> <translation>Ієрархія заголовків</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppIncludeHierarchyModel</name>
<message> <message>
<source>Includes</source> <source>Includes</source>
<translation>Включає</translation> <translation>Включає</translation>
@@ -37448,9 +37394,6 @@ Do you want to uninstall the existing package next time?</source>
<source>(cyclic)</source> <source>(cyclic)</source>
<translation>(циклічно)</translation> <translation>(циклічно)</translation>
</message> </message>
</context>
<context>
<name>VirtualFunctionsAssistProcessor</name>
<message> <message>
<source>...searching overrides</source> <source>...searching overrides</source>
<translation>...пошук замін</translation> <translation>...пошук замін</translation>
@@ -41102,14 +41045,7 @@ Install an SDK of at least API version %1.</source>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppEditorOutline</name> <name>CppEditor</name>
<message>
<source>Sort Alphabetically</source>
<translation type="vanished">Сортувати за абеткою</translation>
</message>
</context>
<context>
<name>CppSourceProcessor</name>
<message> <message>
<source>%1: No such file or directory</source> <source>%1: No such file or directory</source>
<translation>%1: Файл чи тека не існують</translation> <translation>%1: Файл чи тека не існують</translation>
@@ -43305,7 +43241,7 @@ The statements may not contain &apos;{&apos; nor &apos;}&apos; characters.</sour
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CppEditorWidget</name> <name>CppEditor</name>
<message> <message>
<source>&amp;Refactor</source> <source>&amp;Refactor</source>
<translation>&amp;Рефакторинг</translation> <translation>&amp;Рефакторинг</translation>
@@ -46006,7 +45942,7 @@ Affected are breakpoints %1</source>
</message> </message>
</context> </context>
<context> <context>
<name>CppTools::CppEditorOutline</name> <name>CppTools</name>
<message> <message>
<source>Sort Alphabetically</source> <source>Sort Alphabetically</source>
<translation>Сортувати за абеткою</translation> <translation>Сортувати за абеткою</translation>
@@ -50198,7 +50134,7 @@ Please set a real Clang executable.</source>
</message> </message>
</context> </context>
<context> <context>
<name>ClangDiagnosticConfigsModel</name> <name>CppEditor</name>
<message> <message>
<source>Warnings for questionable constructs</source> <source>Warnings for questionable constructs</source>
<translation>Попередження про сумнівні конструкції</translation> <translation>Попередження про сумнівні конструкції</translation>

View File

@@ -6481,7 +6481,7 @@ Make sure that CMAKE_BUILD_TYPE variable matches the &quot;Build type&quot; fiel
</message> </message>
</context> </context>
<context> <context>
<name>CPlusPlus::CheckSymbols</name> <name>CppEditor</name>
<message> <message>
<source>Only virtual functions can be marked &apos;final&apos;</source> <source>Only virtual functions can be marked &apos;final&apos;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -7009,7 +7009,7 @@ However, using the relaxed and extended rules means also that no highlighting/co
</message> </message>
</context> </context>
<context> <context>
<name>ClangDiagnosticConfigsModel</name> <name>CppEditor</name>
<message> <message>
<source>Default Clang-Tidy and Clazy checks</source> <source>Default Clang-Tidy and Clazy checks</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -12342,9 +12342,6 @@ to version control (%2)
<source>The project contains C++ source files, but the currently active kit has no C++ compiler. The code model will not be fully functional.</source> <source>The project contains C++ source files, but the currently active kit has no C++ compiler. The code model will not be fully functional.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::AbstractEditorSupport</name>
<message> <message>
<source>The file name.</source> <source>The file name.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -12353,9 +12350,6 @@ to version control (%2)
<source>The class name.</source> <source>The class name.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::ClangBaseChecks</name>
<message> <message>
<source>For appropriate options, consult the GCC or Clang manual pages or the &lt;a href=&quot;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html&quot;&gt;GCC online documentation&lt;/a&gt;.</source> <source>For appropriate options, consult the GCC or Clang manual pages or the &lt;a href=&quot;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html&quot;&gt;GCC online documentation&lt;/a&gt;.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -12364,20 +12358,10 @@ to version control (%2)
<source>Use diagnostic flags from build system</source> <source>Use diagnostic flags from build system</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::ClangDiagnosticConfigsSelectionWidget</name>
<message> <message>
<source>Diagnostic configuration:</source> <source>Diagnostic configuration:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::ClangDiagnosticConfigsWidget</name>
<message>
<source>Diagnostic Configurations</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>Copy...</source> <source>Copy...</source>
<translation type="unfinished">...</translation> <translation type="unfinished">...</translation>
@@ -12430,9 +12414,6 @@ to version control (%2)
<source>%1</source> <source>%1</source>
<translation type="unfinished">%1</translation> <translation type="unfinished">%1</translation>
</message> </message>
</context>
<context>
<name>CppEditor::ClangdSettings</name>
<message> <message>
<source>Background Priority</source> <source>Background Priority</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -12449,9 +12430,6 @@ to version control (%2)
<source>Off</source> <source>Off</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::ConfigsModel</name>
<message> <message>
<source>Built-in</source> <source>Built-in</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -12460,23 +12438,14 @@ to version control (%2)
<source>Custom</source> <source>Custom</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::CppEditorWidget</name>
<message> <message>
<source>&amp;Refactor</source> <source>&amp;Refactor</source>
<translation type="unfinished">(&amp;R)</translation> <translation type="unfinished">(&amp;R)</translation>
</message> </message>
</context>
<context>
<name>CppEditor::CppProjectUpdater</name>
<message> <message>
<source>Preparing C++ Code Model</source> <source>Preparing C++ Code Model</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::CppQuickFixFactory</name>
<message> <message>
<source>Create Implementations for Member Functions</source> <source>Create Implementations for Member Functions</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -12529,9 +12498,6 @@ to version control (%2)
<source>Generate Constructor</source> <source>Generate Constructor</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::CppToolsSettings</name>
<message> <message>
<source>Global</source> <source>Global</source>
<comment>Settings</comment> <comment>Settings</comment>
@@ -12549,16 +12515,10 @@ to version control (%2)
<source>Old Creator</source> <source>Old Creator</source>
<translation type="unfinished"> Creator</translation> <translation type="unfinished"> Creator</translation>
</message> </message>
</context>
<context>
<name>CppEditor::InsertDeclOperation</name>
<message> <message>
<source>Add %1 Declaration</source> <source>Add %1 Declaration</source>
<translation>%1</translation> <translation>%1</translation>
</message> </message>
</context>
<context>
<name>CppEditor::InsertDefOperation</name>
<message> <message>
<source>Add Definition in %1</source> <source>Add Definition in %1</source>
<translation>%1</translation> <translation>%1</translation>
@@ -12575,16 +12535,10 @@ to version control (%2)
<source>Add Definition Outside Class</source> <source>Add Definition Outside Class</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::BuiltinIndexingSupport</name>
<message> <message>
<source>Parsing C/C++ Files</source> <source>Parsing C/C++ Files</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::ClangdSettingsWidget</name>
<message> <message>
<source>If background indexing is enabled, global symbol searches will yield <source>If background indexing is enabled, global symbol searches will yield
more accurate results, at the cost of additional CPU load when more accurate results, at the cost of additional CPU load when
@@ -12672,10 +12626,6 @@ managed by the same clangd process, add them here.</source>
<source>Add ...</source> <source>Add ...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Remove</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>Choose a session:</source> <source>Choose a session:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -12696,9 +12646,6 @@ managed by the same clangd process, add them here.</source>
<source>Clangd</source> <source>Clangd</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::ConstructorParams</name>
<message> <message>
<source>Initialize in Constructor</source> <source>Initialize in Constructor</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -12715,9 +12662,6 @@ managed by the same clangd process, add them here.</source>
<source>Default Value</source> <source>Default Value</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppCodeModelSettingsWidget</name>
<message> <message>
<source>Interpret ambiguous headers as C headers</source> <source>Interpret ambiguous headers as C headers</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -12754,13 +12698,6 @@ managed by the same clangd process, add them here.</source>
<source>Code Model</source> <source>Code Model</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppCodeStyleSettingsPage</name>
<message>
<source>General</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>Content</source> <source>Content</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -12973,9 +12910,6 @@ if they would align to the next line</source>
<source>Right const/volatile</source> <source>Right const/volatile</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppEditorDocument</name>
<message> <message>
<source>&lt;b&gt;Warning&lt;/b&gt;: This file is not part of any project. The code model might have issues parsing this file properly.</source> <source>&lt;b&gt;Warning&lt;/b&gt;: This file is not part of any project. The code model might have issues parsing this file properly.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -12984,16 +12918,10 @@ if they would align to the next line</source>
<source>Note: Multiple parse contexts are available for this file. Choose the preferred one from the editor toolbar.</source> <source>Note: Multiple parse contexts are available for this file. Choose the preferred one from the editor toolbar.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppEditorOutline</name>
<message> <message>
<source>Sort Alphabetically</source> <source>Sort Alphabetically</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppEditorPlugin</name>
<message> <message>
<source>&amp;C++</source> <source>&amp;C++</source>
<translation type="unfinished">C++(&amp;C)</translation> <translation type="unfinished">C++(&amp;C)</translation>
@@ -13142,13 +13070,6 @@ if they would align to the next line</source>
<source>Ctrl+Shift+F12</source> <source>Ctrl+Shift+F12</source>
<translation type="unfinished">Ctrl+Shift+F12</translation> <translation type="unfinished">Ctrl+Shift+F12</translation>
</message> </message>
<message>
<source>Clangd</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>CppEditor::Internal::CppFileSettingsPage</name>
<message> <message>
<source>Headers</source> <source>Headers</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -13229,9 +13150,6 @@ These prefixes are used in addition to current file name on Switch Header/Source
<source>License &amp;template:</source> <source>License &amp;template:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppFileSettingsWidget</name>
<message> <message>
<source>/************************************************************************** <source>/**************************************************************************
** %1 license header template ** %1 license header template
@@ -13250,9 +13168,6 @@ These prefixes are used in addition to current file name on Switch Header/Source
<source>Choose Location for New License Template File</source> <source>Choose Location for New License Template File</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppFindReferences</name>
<message> <message>
<source>Reads</source> <source>Reads</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -13292,16 +13207,10 @@ These prefixes are used in addition to current file name on Switch Header/Source
<source>C++ Macro Usages:</source> <source>C++ Macro Usages:</source>
<translation type="unfinished">C++ 使:</translation> <translation type="unfinished">C++ 使:</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppIncludeHierarchyFactory</name>
<message> <message>
<source>Include Hierarchy</source> <source>Include Hierarchy</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppIncludeHierarchyModel</name>
<message> <message>
<source>(none)</source> <source>(none)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -13318,9 +13227,6 @@ These prefixes are used in addition to current file name on Switch Header/Source
<source>Included by</source> <source>Included by</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppIncludeHierarchyWidget</name>
<message> <message>
<source>No include hierarchy available</source> <source>No include hierarchy available</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -13329,16 +13235,10 @@ These prefixes are used in addition to current file name on Switch Header/Source
<source>Synchronize with Editor</source> <source>Synchronize with Editor</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppIncludesFilter</name>
<message> <message>
<source>Matches all files that are included by all C++ files in all projects. Append &quot;+&lt;number&gt;&quot; or &quot;:&lt;number&gt;&quot; to jump to the given line number. Append another &quot;+&lt;number&gt;&quot; or &quot;:&lt;number&gt;&quot; to jump to the column number as well.</source> <source>Matches all files that are included by all C++ files in all projects. Append &quot;+&lt;number&gt;&quot; or &quot;:&lt;number&gt;&quot; to jump to the given line number. Append another &quot;+&lt;number&gt;&quot; or &quot;:&lt;number&gt;&quot; to jump to the column number as well.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppOutlineTreeView</name>
<message> <message>
<source>Expand All</source> <source>Expand All</source>
<translation></translation> <translation></translation>
@@ -13347,9 +13247,6 @@ These prefixes are used in addition to current file name on Switch Header/Source
<source>Collapse All</source> <source>Collapse All</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppPreProcessorDialog</name>
<message> <message>
<source>Additional C++ Preprocessor Directives</source> <source>Additional C++ Preprocessor Directives</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -13358,9 +13255,6 @@ These prefixes are used in addition to current file name on Switch Header/Source
<source>Additional C++ Preprocessor Directives for %1:</source> <source>Additional C++ Preprocessor Directives for %1:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppQuickFixProjectSettingsWidget</name>
<message> <message>
<source>Custom settings are saved in a file. If you use the global settings, you can delete that file.</source> <source>Custom settings are saved in a file. If you use the global settings, you can delete that file.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -13377,9 +13271,6 @@ These prefixes are used in addition to current file name on Switch Header/Source
<source>Reset to Global</source> <source>Reset to Global</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppQuickFixProjectsSettings</name>
<message> <message>
<source>Quick Fix settings are saved in a file. Existing settings file &quot;%1&quot; found. Should this file be used or a new one be created?</source> <source>Quick Fix settings are saved in a file. Existing settings file &quot;%1&quot; found. Should this file be used or a new one be created?</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -13396,16 +13287,10 @@ These prefixes are used in addition to current file name on Switch Header/Source
<source>Create New</source> <source>Create New</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppTypeHierarchyFactory</name>
<message> <message>
<source>Type Hierarchy</source> <source>Type Hierarchy</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppTypeHierarchyWidget</name>
<message> <message>
<source>No type hierarchy available</source> <source>No type hierarchy available</source>
<translation></translation> <translation></translation>
@@ -13426,9 +13311,6 @@ These prefixes are used in addition to current file name on Switch Header/Source
<source>Evaluating type hierarchy...</source> <source>Evaluating type hierarchy...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::FunctionDeclDefLink</name>
<message> <message>
<source>Target file was changed, could not apply changes</source> <source>Target file was changed, could not apply changes</source>
<translation>, </translation> <translation>, </translation>
@@ -13445,9 +13327,6 @@ These prefixes are used in addition to current file name on Switch Header/Source
<source>Apply Function Signature Changes</source> <source>Apply Function Signature Changes</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::InsertVirtualMethodsDialog</name>
<message> <message>
<source>Insert Virtual Functions</source> <source>Insert Virtual Functions</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -13496,23 +13375,14 @@ These prefixes are used in addition to current file name on Switch Header/Source
<source>Clear Added &quot;override&quot; Equivalents</source> <source>Clear Added &quot;override&quot; Equivalents</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::ParseContextModel</name>
<message> <message>
<source>&lt;p&gt;&lt;b&gt;Active Parse Context&lt;/b&gt;:&lt;br/&gt;%1&lt;/p&gt;&lt;p&gt;Multiple parse contexts (set of defines, include paths, and so on) are available for this file.&lt;/p&gt;&lt;p&gt;Choose a parse context to set it as the preferred one. Clear the preference from the context menu.&lt;/p&gt;</source> <source>&lt;p&gt;&lt;b&gt;Active Parse Context&lt;/b&gt;:&lt;br/&gt;%1&lt;/p&gt;&lt;p&gt;Multiple parse contexts (set of defines, include paths, and so on) are available for this file.&lt;/p&gt;&lt;p&gt;Choose a parse context to set it as the preferred one. Clear the preference from the context menu.&lt;/p&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::ParseContextWidget</name>
<message> <message>
<source>Clear Preferred Parse Context</source> <source>Clear Preferred Parse Context</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::SymbolsFindFilter</name>
<message> <message>
<source>Searching for Symbol</source> <source>Searching for Symbol</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -13533,10 +13403,6 @@ These prefixes are used in addition to current file name on Switch Header/Source
<source>Enums</source> <source>Enums</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Declarations</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>Scope: %1 <source>Scope: %1
Types: %2 Types: %2
@@ -13553,29 +13419,10 @@ Flags: %3</source>
<source>Projects</source> <source>Projects</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::SymbolsFindFilterConfigWidget</name>
<message> <message>
<source>Types:</source> <source>Types:</source>
<translation type="unfinished">:</translation> <translation type="unfinished">:</translation>
</message> </message>
<message>
<source>Classes</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Functions</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Enums</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Declarations</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>Projects only</source> <source>Projects only</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -13584,9 +13431,6 @@ Flags: %3</source>
<source>All files</source> <source>All files</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::OverviewModel</name>
<message> <message>
<source>&lt;Select Symbol&gt;</source> <source>&lt;Select Symbol&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -13595,9 +13439,6 @@ Flags: %3</source>
<source>&lt;No Symbols&gt;</source> <source>&lt;No Symbols&gt;</source>
<translation type="unfinished">&lt;&gt;</translation> <translation type="unfinished">&lt;&gt;</translation>
</message> </message>
</context>
<context>
<name>CppEditor::QuickFix</name>
<message> <message>
<source>Insert Virtual Functions of Base Classes</source> <source>Insert Virtual Functions of Base Classes</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -13758,9 +13599,6 @@ Flags: %3</source>
<source>Remove &quot;using namespace %1&quot; and Adjust Type Names Accordingly</source> <source>Remove &quot;using namespace %1&quot; and Adjust Type Names Accordingly</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Quickfix</name>
<message> <message>
<source>Add Class Member &quot;%1&quot;</source> <source>Add Class Member &quot;%1&quot;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -13773,9 +13611,6 @@ Flags: %3</source>
<source>Data type:</source> <source>Data type:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppIndexer</name>
<message> <message>
<source>C++ Indexer: Skipping file &quot;%1&quot; because it is too big.</source> <source>C++ Indexer: Skipping file &quot;%1&quot; because it is too big.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -13976,7 +13811,7 @@ e.g. name = &quot;m_test_foo_&quot;:
</message> </message>
</context> </context>
<context> <context>
<name>CppSourceProcessor</name> <name>CppEditor</name>
<message> <message>
<source>%1: No such file or directory</source> <source>%1: No such file or directory</source>
<translation type="unfinished">%1: 没有文件或者目录</translation> <translation type="unfinished">%1: 没有文件或者目录</translation>
@@ -41764,7 +41599,7 @@ For more details, see /etc/sysctl.d/10-ptrace.conf
</message> </message>
</context> </context>
<context> <context>
<name>QuickFix::ExtractFunction</name> <name>CppEditor</name>
<message> <message>
<source>Extract Function</source> <source>Extract Function</source>
<translation></translation> <translation></translation>
@@ -51018,7 +50853,7 @@ What do you want to do?</source>
</message> </message>
</context> </context>
<context> <context>
<name>VirtualFunctionsAssistProcessor</name> <name>CppEditor</name>
<message> <message>
<source>collecting overrides ...</source> <source>collecting overrides ...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>

View File

@@ -1746,7 +1746,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::ClassNamePage</name> <name>CppEditor</name>
<message> <message>
<source>Enter Class Name</source> <source>Enter Class Name</source>
<translation></translation> <translation></translation>
@@ -1755,16 +1755,10 @@
<source>The header and source file names will be derived from the class name</source> <source>The header and source file names will be derived from the class name</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppClassWizard</name>
<message> <message>
<source>Error while generating file contents.</source> <source>Error while generating file contents.</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppClassWizardDialog</name>
<message> <message>
<source>C++ Class Wizard</source> <source>C++ Class Wizard</source>
<translation>C++ </translation> <translation>C++ </translation>
@@ -1773,9 +1767,6 @@
<source>Details</source> <source>Details</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppPlugin</name>
<message> <message>
<source>C++ Header File</source> <source>C++ Header File</source>
<translation>C++ </translation> <translation>C++ </translation>
@@ -16001,21 +15992,15 @@ Server list was %2.</source>
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::InsertDeclOperation</name> <name>CppEditor</name>
<message> <message>
<source>Add %1 Declaration</source> <source>Add %1 Declaration</source>
<translation> %1 </translation> <translation> %1 </translation>
</message> </message>
</context>
<context>
<name>CppEditor::InsertDefOperation</name>
<message> <message>
<source>Add Definition in %1</source> <source>Add Definition in %1</source>
<translation> %1 </translation> <translation> %1 </translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppTypeHierarchyWidget</name>
<message> <message>
<source>No type hierarchy available</source> <source>No type hierarchy available</source>
<translation></translation> <translation></translation>
@@ -16028,9 +16013,6 @@ Server list was %2.</source>
<source>Derived</source> <source>Derived</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppTypeHierarchyFactory</name>
<message> <message>
<source>Type Hierarchy</source> <source>Type Hierarchy</source>
<translation></translation> <translation></translation>
@@ -19354,7 +19336,7 @@ to version control (%2)
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::CPPEditorWidget</name> <name>CppEditor</name>
<message> <message>
<source>Sort Alphabetically</source> <source>Sort Alphabetically</source>
<translation></translation> <translation></translation>
@@ -19367,9 +19349,6 @@ to version control (%2)
<source>Unused variable</source> <source>Unused variable</source>
<translation>使</translation> <translation>使</translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::InsertQtPropertyMembers</name>
<message> <message>
<source>Generate missing Q_PROPERTY members...</source> <source>Generate missing Q_PROPERTY members...</source>
<translation type="obsolete"> Q_PROPERTY ...</translation> <translation type="obsolete"> Q_PROPERTY ...</translation>
@@ -19378,9 +19357,6 @@ to version control (%2)
<source>Generate Missing Q_PROPERTY Members...</source> <source>Generate Missing Q_PROPERTY Members...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>CppEditor::Internal::CppOutlineTreeView</name>
<message> <message>
<source>Expand All</source> <source>Expand All</source>
<translation></translation> <translation></translation>
@@ -19390,13 +19366,6 @@ to version control (%2)
<translation></translation> <translation></translation>
</message> </message>
</context> </context>
<context>
<name>CppEditor::Internal::CppSnippetProvider</name>
<message>
<source>C++</source>
<translation>C++</translation>
</message>
</context>
<context> <context>
<name>Debugger</name> <name>Debugger</name>
<message> <message>
@@ -28204,7 +28173,7 @@ should a repository require SSH-authentication (see documentation on SSH and the
</message> </message>
</context> </context>
<context> <context>
<name>QuickFix::ExtractFunction</name> <name>CppEditor</name>
<message> <message>
<source>Extract Function</source> <source>Extract Function</source>
<translation></translation> <translation></translation>
@@ -30813,7 +30782,7 @@ Please choose a valid package name for your application (e.g. &quot;org.example.
</message> </message>
</context> </context>
<context> <context>
<name>CppEditor::Internal::FunctionDeclDefLink</name> <name>CppEditor</name>
<message> <message>
<source>Target file was changed, could not apply changes</source> <source>Target file was changed, could not apply changes</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>

View File

@@ -4,6 +4,7 @@
#include "abstracteditorsupport.h" #include "abstracteditorsupport.h"
#include "cppeditorplugin.h" #include "cppeditorplugin.h"
#include "cppeditortr.h"
#include "cppfilesettingspage.h" #include "cppfilesettingspage.h"
#include "cppmodelmanager.h" #include "cppmodelmanager.h"
@@ -42,9 +43,9 @@ QString AbstractEditorSupport::licenseTemplate(const FilePath &filePath, const Q
{ {
const QString license = Internal::CppFileSettings::licenseTemplate(); const QString license = Internal::CppFileSettings::licenseTemplate();
Utils::MacroExpander expander; Utils::MacroExpander expander;
expander.registerVariable("Cpp:License:FileName", tr("The file name."), expander.registerVariable("Cpp:License:FileName", Tr::tr("The file name."),
[filePath] { return filePath.fileName(); }); [filePath] { return filePath.fileName(); });
expander.registerVariable("Cpp:License:ClassName", tr("The class name."), expander.registerVariable("Cpp:License:ClassName", Tr::tr("The class name."),
[className] { return className; }); [className] { return className; });
return Utils::TemplateEngine::processText(&expander, license, nullptr); return Utils::TemplateEngine::processText(&expander, license, nullptr);

View File

@@ -28,7 +28,8 @@ namespace TextEditor { class TextDocument; }
namespace CppEditor { namespace CppEditor {
// For clang code model only, move? // For clang code model only, move?
struct CPPEDITOR_EXPORT ToolTipInfo { struct CPPEDITOR_EXPORT ToolTipInfo
{
QString text; QString text;
QString briefComment; QString briefComment;

View File

@@ -5,6 +5,7 @@
#include "clangdiagnosticconfigswidget.h" #include "clangdiagnosticconfigswidget.h"
#include "cppcodemodelsettings.h" #include "cppcodemodelsettings.h"
#include "cppeditortr.h"
#include "cpptoolsreuse.h" #include "cpptoolsreuse.h"
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
@@ -55,7 +56,7 @@ ClangDiagnosticConfigs ClangDiagnosticConfigsSelectionWidget::customConfigs() co
QString ClangDiagnosticConfigsSelectionWidget::label() const QString ClangDiagnosticConfigsSelectionWidget::label() const
{ {
return tr("Diagnostic configuration:"); return Tr::tr("Diagnostic configuration:");
} }
void ClangDiagnosticConfigsSelectionWidget::setUpUi(bool withLabel) void ClangDiagnosticConfigsSelectionWidget::setUpUi(bool withLabel)
@@ -80,7 +81,7 @@ void ClangDiagnosticConfigsSelectionWidget::onButtonClicked()
widget->layout()->setContentsMargins(0, 0, 0, 0); widget->layout()->setContentsMargins(0, 0, 0, 0);
QDialog dialog; QDialog dialog;
dialog.setWindowTitle(ClangDiagnosticConfigsWidget::tr("Diagnostic Configurations")); dialog.setWindowTitle(Tr::tr("Diagnostic Configurations"));
dialog.setLayout(new QVBoxLayout); dialog.setLayout(new QVBoxLayout);
dialog.layout()->addWidget(widget); dialog.layout()->addWidget(widget);
auto *buttonsBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); auto *buttonsBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);

View File

@@ -4,6 +4,7 @@
#include "clangdiagnosticconfigswidget.h" #include "clangdiagnosticconfigswidget.h"
#include "clangdiagnosticconfigsmodel.h" #include "clangdiagnosticconfigsmodel.h"
#include "cppeditortr.h"
#include "wrappablelineedit.h" #include "wrappablelineedit.h"
#include <utils/environment.h> #include <utils/environment.h>
@@ -65,13 +66,11 @@ public:
class ConfigsModel : public TreeModel<TreeItem, GroupNode, ConfigNode> class ConfigsModel : public TreeModel<TreeItem, GroupNode, ConfigNode>
{ {
Q_OBJECT
public: public:
ConfigsModel(const ClangDiagnosticConfigs &configs) ConfigsModel(const ClangDiagnosticConfigs &configs)
{ {
m_builtinRoot = new GroupNode(tr("Built-in")); m_builtinRoot = new GroupNode(Tr::tr("Built-in"));
m_customRoot = new GroupNode(tr("Custom")); m_customRoot = new GroupNode(Tr::tr("Custom"));
rootItem()->appendChild(m_builtinRoot); rootItem()->appendChild(m_builtinRoot);
rootItem()->appendChild(m_customRoot); rootItem()->appendChild(m_customRoot);
@@ -118,17 +117,15 @@ private:
class ClangBaseChecksWidget : public QWidget class ClangBaseChecksWidget : public QWidget
{ {
Q_DECLARE_TR_FUNCTIONS(CppEditor::ClangBaseChecks)
public: public:
ClangBaseChecksWidget() ClangBaseChecksWidget()
{ {
auto label = new QLabel(tr("For appropriate options, consult the GCC or Clang manual " auto label = new QLabel(Tr::tr("For appropriate options, consult the GCC or Clang manual "
"pages or the <a href=\"https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html\">" "pages or the %1 GCC online documentation</a>.")
"GCC online documentation</a>.")); .arg("<a href=\"https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html\">"));
label->setOpenExternalLinks(true); label->setOpenExternalLinks(true);
useFlagsFromBuildSystemCheckBox = new QCheckBox(tr("Use diagnostic flags from build system")); useFlagsFromBuildSystemCheckBox = new QCheckBox(Tr::tr("Use diagnostic flags from build system"));
diagnosticOptionsTextEdit = new WrappableLineEdit; diagnosticOptionsTextEdit = new WrappableLineEdit;
@@ -151,9 +148,9 @@ ClangDiagnosticConfigsWidget::ClangDiagnosticConfigsWidget(const ClangDiagnostic
: QWidget(parent) : QWidget(parent)
, m_configsModel(new ConfigsModel(configs)) , m_configsModel(new ConfigsModel(configs))
{ {
auto copyButton = new QPushButton(tr("Copy...")); auto copyButton = new QPushButton(Tr::tr("Copy..."));
m_renameButton = new QPushButton(tr("Rename...")); m_renameButton = new QPushButton(Tr::tr("Rename..."));
m_removeButton = new QPushButton(tr("Remove")); m_removeButton = new QPushButton(Tr::tr("Remove"));
m_infoLabel = new InfoLabel; m_infoLabel = new InfoLabel;
@@ -169,7 +166,7 @@ ClangDiagnosticConfigsWidget::ClangDiagnosticConfigsWidget(const ClangDiagnostic
m_clangBaseChecks = new ClangBaseChecksWidget; m_clangBaseChecks = new ClangBaseChecksWidget;
m_tabWidget = new QTabWidget; m_tabWidget = new QTabWidget;
m_tabWidget->addTab(m_clangBaseChecks, tr("Clang Warnings")); m_tabWidget->addTab(m_clangBaseChecks, Tr::tr("Clang Warnings"));
using namespace Layouting; using namespace Layouting;
@@ -206,10 +203,10 @@ void ClangDiagnosticConfigsWidget::onCopyButtonClicked()
const ClangDiagnosticConfig &config = currentConfig(); const ClangDiagnosticConfig &config = currentConfig();
bool dialogAccepted = false; bool dialogAccepted = false;
const QString newName = QInputDialog::getText(this, const QString newName = QInputDialog::getText(this,
tr("Copy Diagnostic Configuration"), Tr::tr("Copy Diagnostic Configuration"),
tr("Diagnostic configuration name:"), Tr::tr("Diagnostic configuration name:"),
QLineEdit::Normal, QLineEdit::Normal,
tr("%1 (Copy)").arg(config.displayName()), Tr::tr("%1 (Copy)").arg(config.displayName()),
&dialogAccepted); &dialogAccepted);
if (dialogAccepted) { if (dialogAccepted) {
const ClangDiagnosticConfig customConfig const ClangDiagnosticConfig customConfig
@@ -229,8 +226,8 @@ void ClangDiagnosticConfigsWidget::onRenameButtonClicked()
bool dialogAccepted = false; bool dialogAccepted = false;
const QString newName = QInputDialog::getText(this, const QString newName = QInputDialog::getText(this,
tr("Rename Diagnostic Configuration"), Tr::tr("Rename Diagnostic Configuration"),
tr("New name:"), Tr::tr("New name:"),
QLineEdit::Normal, QLineEdit::Normal,
config.displayName(), config.displayName(),
&dialogAccepted); &dialogAccepted);
@@ -280,7 +277,7 @@ static QString validateDiagnosticOptions(const QStringList &options)
for (const QString &option : options) { for (const QString &option : options) {
if (!isValidOption(option)) if (!isValidOption(option))
return ClangDiagnosticConfigsWidget::tr("Option \"%1\" is invalid.").arg(option); return Tr::tr("Option \"%1\" is invalid.").arg(option);
} }
return QString(); return QString();
@@ -343,7 +340,7 @@ void ClangDiagnosticConfigsWidget::sync()
if (config.isReadOnly()) { if (config.isReadOnly()) {
m_infoLabel->setType(InfoLabel::Information); m_infoLabel->setType(InfoLabel::Information);
m_infoLabel->setText(tr("Copy this configuration to customize it.")); m_infoLabel->setText(Tr::tr("Copy this configuration to customize it."));
m_infoLabel->setFilled(false); m_infoLabel->setFilled(false);
} }
@@ -369,11 +366,11 @@ void ClangDiagnosticConfigsWidget::updateValidityWidgets(const QString &errorMes
{ {
if (errorMessage.isEmpty()) { if (errorMessage.isEmpty()) {
m_infoLabel->setType(InfoLabel::Information); m_infoLabel->setType(InfoLabel::Information);
m_infoLabel->setText(tr("Configuration passes sanity checks.")); m_infoLabel->setText(Tr::tr("Configuration passes sanity checks."));
m_infoLabel->setFilled(false); m_infoLabel->setFilled(false);
} else { } else {
m_infoLabel->setType(InfoLabel::Error); m_infoLabel->setType(InfoLabel::Error);
m_infoLabel->setText(tr("%1").arg(errorMessage)); m_infoLabel->setText(Tr::tr("%1").arg(errorMessage));
m_infoLabel->setFilled(true); m_infoLabel->setFilled(true);
} }
} }
@@ -411,6 +408,4 @@ QTabWidget *ClangDiagnosticConfigsWidget::tabWidget() const
return m_tabWidget; return m_tabWidget;
} }
} // CppEditor namespace } // CppEditor
#include "clangdiagnosticconfigswidget.moc"

View File

@@ -5,10 +5,11 @@
#include "cpplocalsymbols.h" #include "cpplocalsymbols.h"
#include "cppeditortr.h"
#include <utils/algorithm.h> #include <utils/algorithm.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <QCoreApplication>
#include <QDebug> #include <QDebug>
// This is for experimeting highlighting ctors/dtors as functions (instead of types). // This is for experimeting highlighting ctors/dtors as functions (instead of types).
@@ -503,11 +504,9 @@ bool CheckSymbols::visit(SimpleDeclarationAST *ast)
// Add a diagnostic message if non-virtual function has override/final marker // Add a diagnostic message if non-virtual function has override/final marker
if ((_usages.back().kind != SemanticHighlighter::VirtualFunctionDeclarationUse)) { if ((_usages.back().kind != SemanticHighlighter::VirtualFunctionDeclarationUse)) {
if (funTy->isOverride()) if (funTy->isOverride())
warning(declrIdNameAST, QCoreApplication::translate( warning(declrIdNameAST, Tr::tr("Only virtual functions can be marked 'override'"));
"CPlusplus::CheckSymbols", "Only virtual functions can be marked 'override'"));
else if (funTy->isFinal()) else if (funTy->isFinal())
warning(declrIdNameAST, QCoreApplication::translate( warning(declrIdNameAST, Tr::tr("Only virtual functions can be marked 'final'"));
"CPlusPlus::CheckSymbols", "Only virtual functions can be marked 'final'"));
} }
} }
} }
@@ -776,8 +775,7 @@ void CheckSymbols::checkNamespace(NameAST *name)
const unsigned length = tokenAt(name->lastToken() - 1).utf16charsEnd() const unsigned length = tokenAt(name->lastToken() - 1).utf16charsEnd()
- tokenAt(name->firstToken()).utf16charsBegin(); - tokenAt(name->firstToken()).utf16charsBegin();
warning(line, column, QCoreApplication::translate("CPlusPlus::CheckSymbols", warning(line, column, Tr::tr( "Expected a namespace-name"), length);
"Expected a namespace-name"), length);
} }
bool CheckSymbols::hasVirtualDestructor(Class *klass) const bool CheckSymbols::hasVirtualDestructor(Class *klass) const
@@ -1398,9 +1396,9 @@ bool CheckSymbols::maybeAddFunction(const QList<LookupItem> &candidates, NameAST
// Add a diagnostic message if argument count does not match // Add a diagnostic message if argument count does not match
if (matchType == Match_TooFewArgs) if (matchType == Match_TooFewArgs)
warning(line, column, QCoreApplication::translate("CplusPlus::CheckSymbols", "Too few arguments"), length); warning(line, column, Tr::tr("Too few arguments"), length);
else if (matchType == Match_TooManyArgs) else if (matchType == Match_TooManyArgs)
warning(line, column, QCoreApplication::translate("CPlusPlus::CheckSymbols", "Too many arguments"), length); warning(line, column, Tr::tr("Too many arguments"), length);
const Result use(line, column, length, kind); const Result use(line, column, length, kind);
addUse(use); addUse(use);

View File

@@ -5,8 +5,9 @@
#include "baseeditordocumentprocessor.h" #include "baseeditordocumentprocessor.h"
#include "cppcodemodelinspectordumper.h" #include "cppcodemodelinspectordumper.h"
#include "cppeditorwidget.h"
#include "cppeditordocument.h" #include "cppeditordocument.h"
#include "cppeditorwidget.h"
#include "cppeditortr.h"
#include "cppmodelmanager.h" #include "cppmodelmanager.h"
#include "cpptoolsreuse.h" #include "cpptoolsreuse.h"
#include "cppworkingcopy.h" #include "cppworkingcopy.h"
@@ -1433,7 +1434,7 @@ CppCodeModelInspectorDialog::CppCodeModelInspectorDialog(QWidget *parent)
Row { Row {
m_partGeneralView, m_partGeneralView,
Column { Column {
tr("Compiler Flags"), Tr::tr("Compiler Flags"),
m_partGeneralCompilerFlagsEdit, m_partGeneralCompilerFlagsEdit,
}, },
} }

View File

@@ -5,6 +5,7 @@
#include "clangdiagnosticconfigsmodel.h" #include "clangdiagnosticconfigsmodel.h"
#include "cppeditorconstants.h" #include "cppeditorconstants.h"
#include "cppeditortr.h"
#include "cpptoolsreuse.h" #include "cpptoolsreuse.h"
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
@@ -218,10 +219,10 @@ QString ClangdSettings::priorityToString(const IndexingPriority &priority)
QString ClangdSettings::priorityToDisplayString(const IndexingPriority &priority) QString ClangdSettings::priorityToDisplayString(const IndexingPriority &priority)
{ {
switch (priority) { switch (priority) {
case IndexingPriority::Background: return tr("Background Priority"); case IndexingPriority::Background: return Tr::tr("Background Priority");
case IndexingPriority::Normal: return tr("Normal Priority"); case IndexingPriority::Normal: return Tr::tr("Normal Priority");
case IndexingPriority::Low: return tr("Low Priority"); case IndexingPriority::Low: return Tr::tr("Low Priority");
case IndexingPriority::Off: return tr("Off"); case IndexingPriority::Off: return Tr::tr("Off");
} }
return {}; return {};
} }

View File

@@ -6,6 +6,7 @@
#include "clangdiagnosticconfigsselectionwidget.h" #include "clangdiagnosticconfigsselectionwidget.h"
#include "clangdiagnosticconfigswidget.h" #include "clangdiagnosticconfigswidget.h"
#include "cppeditorconstants.h" #include "cppeditorconstants.h"
#include "cppeditortr.h"
#include "cpptoolsreuse.h" #include "cpptoolsreuse.h"
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
@@ -39,8 +40,6 @@ namespace CppEditor::Internal {
class CppCodeModelSettingsWidget final : public Core::IOptionsPageWidget class CppCodeModelSettingsWidget final : public Core::IOptionsPageWidget
{ {
Q_DECLARE_TR_FUNCTIONS(CppEditor::Internal::CppCodeModelSettingsWidget)
public: public:
CppCodeModelSettingsWidget(CppCodeModelSettings *s); CppCodeModelSettingsWidget(CppCodeModelSettings *s);
@@ -63,18 +62,18 @@ CppCodeModelSettingsWidget::CppCodeModelSettingsWidget(CppCodeModelSettings *s)
: m_settings(s) : m_settings(s)
{ {
m_interpretAmbiguousHeadersAsCHeaders m_interpretAmbiguousHeadersAsCHeaders
= new QCheckBox(tr("Interpret ambiguous headers as C headers")); = new QCheckBox(Tr::tr("Interpret ambiguous headers as C headers"));
m_skipIndexingBigFilesCheckBox = new QCheckBox(tr("Do not index files greater than")); m_skipIndexingBigFilesCheckBox = new QCheckBox(Tr::tr("Do not index files greater than"));
m_skipIndexingBigFilesCheckBox->setChecked(m_settings->skipIndexingBigFiles()); m_skipIndexingBigFilesCheckBox->setChecked(m_settings->skipIndexingBigFiles());
m_bigFilesLimitSpinBox = new QSpinBox; m_bigFilesLimitSpinBox = new QSpinBox;
m_bigFilesLimitSpinBox->setSuffix(tr("MB")); m_bigFilesLimitSpinBox->setSuffix(Tr::tr("MB"));
m_bigFilesLimitSpinBox->setRange(1, 500); m_bigFilesLimitSpinBox->setRange(1, 500);
m_bigFilesLimitSpinBox->setValue(m_settings->indexerFileSizeLimitInMb()); m_bigFilesLimitSpinBox->setValue(m_settings->indexerFileSizeLimitInMb());
m_ignoreFilesCheckBox = new QCheckBox(tr("Ignore files")); m_ignoreFilesCheckBox = new QCheckBox(Tr::tr("Ignore files"));
m_ignoreFilesCheckBox->setToolTip(tr( m_ignoreFilesCheckBox->setToolTip(Tr::tr(
"<html><head/><body><p>Ignore files that match these wildcard patterns, one wildcard per line.</p></body></html>")); "<html><head/><body><p>Ignore files that match these wildcard patterns, one wildcard per line.</p></body></html>"));
m_ignoreFilesCheckBox->setChecked(m_settings->ignoreFiles()); m_ignoreFilesCheckBox->setChecked(m_settings->ignoreFiles());
@@ -86,17 +85,17 @@ CppCodeModelSettingsWidget::CppCodeModelSettingsWidget(CppCodeModelSettings *s)
m_ignorePatternTextEdit->setEnabled(m_ignoreFilesCheckBox->isChecked()); m_ignorePatternTextEdit->setEnabled(m_ignoreFilesCheckBox->isChecked());
}); });
m_ignorePchCheckBox = new QCheckBox(tr("Ignore precompiled headers")); m_ignorePchCheckBox = new QCheckBox(Tr::tr("Ignore precompiled headers"));
m_ignorePchCheckBox->setToolTip(tr( m_ignorePchCheckBox->setToolTip(Tr::tr(
"<html><head/><body><p>When precompiled headers are not ignored, the parsing for code " "<html><head/><body><p>When precompiled headers are not ignored, the parsing for code "
"completion and semantic highlighting will process the precompiled header before " "completion and semantic highlighting will process the precompiled header before "
"processing any file.</p></body></html>")); "processing any file.</p></body></html>"));
m_useBuiltinPreprocessorCheckBox = new QCheckBox(tr("Use built-in preprocessor to show " m_useBuiltinPreprocessorCheckBox = new QCheckBox(Tr::tr("Use built-in preprocessor to show "
"pre-processed files")); "pre-processed files"));
m_useBuiltinPreprocessorCheckBox->setToolTip m_useBuiltinPreprocessorCheckBox->setToolTip
(tr("Uncheck this to invoke the actual compiler " (Tr::tr("Uncheck this to invoke the actual compiler "
"to show a pre-processed source file in the editor.")); "to show a pre-processed source file in the editor."));
m_interpretAmbiguousHeadersAsCHeaders->setChecked( m_interpretAmbiguousHeadersAsCHeaders->setChecked(
m_settings->interpretAmbigiousHeadersAsCHeaders()); m_settings->interpretAmbigiousHeadersAsCHeaders());
@@ -108,7 +107,7 @@ CppCodeModelSettingsWidget::CppCodeModelSettingsWidget(CppCodeModelSettings *s)
Column { Column {
Group { Group {
title(tr("General")), title(Tr::tr("General")),
Column { Column {
m_interpretAmbiguousHeadersAsCHeaders, m_interpretAmbiguousHeadersAsCHeaders,
m_ignorePchCheckBox, m_ignorePchCheckBox,
@@ -181,9 +180,9 @@ bool CppCodeModelSettingsWidget::applyGeneralWidgetsToSettings() const
CppCodeModelSettingsPage::CppCodeModelSettingsPage(CppCodeModelSettings *settings) CppCodeModelSettingsPage::CppCodeModelSettingsPage(CppCodeModelSettings *settings)
{ {
setId(Constants::CPP_CODE_MODEL_SETTINGS_ID); setId(Constants::CPP_CODE_MODEL_SETTINGS_ID);
setDisplayName(CppCodeModelSettingsWidget::tr("Code Model")); setDisplayName(Tr::tr("Code Model"));
setCategory(Constants::CPP_SETTINGS_CATEGORY); setCategory(Constants::CPP_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("CppEditor", "C++")); setDisplayCategory(Tr::tr("C++"));
setCategoryIconPath(":/projectexplorer/images/settingscategory_cpp.png"); setCategoryIconPath(":/projectexplorer/images/settingscategory_cpp.png");
setWidgetCreator([settings] { return new CppCodeModelSettingsWidget(settings); }); setWidgetCreator([settings] { return new CppCodeModelSettingsWidget(settings); });
} }
@@ -211,7 +210,7 @@ ClangdSettingsWidget::ClangdSettingsWidget(const ClangdSettings::Data &settingsD
: d(new Private) : d(new Private)
{ {
const ClangdSettings settings(settingsData); const ClangdSettings settings(settingsData);
const QString indexingToolTip = tr( const QString indexingToolTip = Tr::tr(
"If background indexing is enabled, global symbol searches will yield\n" "If background indexing is enabled, global symbol searches will yield\n"
"more accurate results, at the cost of additional CPU load when\n" "more accurate results, at the cost of additional CPU load when\n"
"the project is first opened.\n" "the project is first opened.\n"
@@ -225,22 +224,22 @@ ClangdSettingsWidget::ClangdSettingsWidget(const ClangdSettings::Data &settingsD
"unused.\n" "unused.\n"
"Normal Priority: Reduced priority compared to interactive work.\n" "Normal Priority: Reduced priority compared to interactive work.\n"
"Low Priority: Same priority as other clangd work."); "Low Priority: Same priority as other clangd work.");
const QString workerThreadsToolTip = tr( const QString workerThreadsToolTip = Tr::tr(
"Number of worker threads used by clangd. Background indexing also uses this many " "Number of worker threads used by clangd. Background indexing also uses this many "
"worker threads."); "worker threads.");
const QString autoIncludeToolTip = tr( const QString autoIncludeToolTip = Tr::tr(
"Controls whether clangd may insert header files as part of symbol completion."); "Controls whether clangd may insert header files as part of symbol completion.");
const QString documentUpdateToolTip = tr( const QString documentUpdateToolTip = Tr::tr(
"Defines the amount of time Qt Creator waits before sending document changes to the " "Defines the amount of time Qt Creator waits before sending document changes to the "
"server.\n" "server.\n"
"If the document changes again while waiting, this timeout resets."); "If the document changes again while waiting, this timeout resets.");
const QString sizeThresholdToolTip = tr( const QString sizeThresholdToolTip = Tr::tr(
"Files greater than this will not be opened as documents in clangd.\n" "Files greater than this will not be opened as documents in clangd.\n"
"The built-in code model will handle highlighting, completion and so on."); "The built-in code model will handle highlighting, completion and so on.");
const QString completionResultToolTip = tr( const QString completionResultToolTip = Tr::tr(
"The maximum number of completion results returned by clangd."); "The maximum number of completion results returned by clangd.");
d->useClangdCheckBox.setText(tr("Use clangd")); d->useClangdCheckBox.setText(Tr::tr("Use clangd"));
d->useClangdCheckBox.setChecked(settings.useClangd()); d->useClangdCheckBox.setChecked(settings.useClangd());
d->clangdChooser.setExpectedKind(Utils::PathChooser::ExistingCommand); d->clangdChooser.setExpectedKind(Utils::PathChooser::ExistingCommand);
d->clangdChooser.setFilePath(settings.clangdFilePath()); d->clangdChooser.setFilePath(settings.clangdFilePath());
@@ -253,7 +252,7 @@ ClangdSettingsWidget::ClangdSettingsWidget(const ClangdSettings::Data &settingsD
d->indexingComboBox.setCurrentIndex(d->indexingComboBox.count() - 1); d->indexingComboBox.setCurrentIndex(d->indexingComboBox.count() - 1);
} }
d->indexingComboBox.setToolTip(indexingToolTip); d->indexingComboBox.setToolTip(indexingToolTip);
d->autoIncludeHeadersCheckBox.setText(tr("Insert header files on completion")); d->autoIncludeHeadersCheckBox.setText(Tr::tr("Insert header files on completion"));
d->autoIncludeHeadersCheckBox.setChecked(settings.autoIncludeHeaders()); d->autoIncludeHeadersCheckBox.setChecked(settings.autoIncludeHeaders());
d->autoIncludeHeadersCheckBox.setToolTip(autoIncludeToolTip); d->autoIncludeHeadersCheckBox.setToolTip(autoIncludeToolTip);
d->threadLimitSpinBox.setValue(settings.workerThreadLimit()); d->threadLimitSpinBox.setValue(settings.workerThreadLimit());
@@ -265,7 +264,7 @@ ClangdSettingsWidget::ClangdSettingsWidget(const ClangdSettings::Data &settingsD
d->documentUpdateThreshold.setSingleStep(100); d->documentUpdateThreshold.setSingleStep(100);
d->documentUpdateThreshold.setSuffix(" ms"); d->documentUpdateThreshold.setSuffix(" ms");
d->documentUpdateThreshold.setToolTip(documentUpdateToolTip); d->documentUpdateThreshold.setToolTip(documentUpdateToolTip);
d->sizeThresholdCheckBox.setText(tr("Ignore files greater than")); d->sizeThresholdCheckBox.setText(Tr::tr("Ignore files greater than"));
d->sizeThresholdCheckBox.setChecked(settings.sizeThresholdEnabled()); d->sizeThresholdCheckBox.setChecked(settings.sizeThresholdEnabled());
d->sizeThresholdCheckBox.setToolTip(sizeThresholdToolTip); d->sizeThresholdCheckBox.setToolTip(sizeThresholdToolTip);
d->sizeThresholdSpinBox.setMinimum(1); d->sizeThresholdSpinBox.setMinimum(1);
@@ -274,34 +273,34 @@ ClangdSettingsWidget::ClangdSettingsWidget(const ClangdSettings::Data &settingsD
d->sizeThresholdSpinBox.setValue(settings.sizeThresholdInKb()); d->sizeThresholdSpinBox.setValue(settings.sizeThresholdInKb());
d->sizeThresholdSpinBox.setToolTip(sizeThresholdToolTip); d->sizeThresholdSpinBox.setToolTip(sizeThresholdToolTip);
const auto completionResultsLabel = new QLabel(tr("Completion results:")); const auto completionResultsLabel = new QLabel(Tr::tr("Completion results:"));
completionResultsLabel->setToolTip(completionResultToolTip); completionResultsLabel->setToolTip(completionResultToolTip);
d->completionResults.setMinimum(0); d->completionResults.setMinimum(0);
d->completionResults.setMaximum(std::numeric_limits<int>::max()); d->completionResults.setMaximum(std::numeric_limits<int>::max());
d->completionResults.setValue(settings.completionResults()); d->completionResults.setValue(settings.completionResults());
d->completionResults.setToolTip(completionResultToolTip); d->completionResults.setToolTip(completionResultToolTip);
d->completionResults.setSpecialValueText(tr("No limit")); d->completionResults.setSpecialValueText(Tr::tr("No limit"));
const auto layout = new QVBoxLayout(this); const auto layout = new QVBoxLayout(this);
layout->setContentsMargins(0, 0, 0, 0); layout->setContentsMargins(0, 0, 0, 0);
layout->addWidget(&d->useClangdCheckBox); layout->addWidget(&d->useClangdCheckBox);
const auto formLayout = new QFormLayout; const auto formLayout = new QFormLayout;
const auto chooserLabel = new QLabel(tr("Path to executable:")); const auto chooserLabel = new QLabel(Tr::tr("Path to executable:"));
formLayout->addRow(chooserLabel, &d->clangdChooser); formLayout->addRow(chooserLabel, &d->clangdChooser);
formLayout->addRow(QString(), &d->versionWarningLabel); formLayout->addRow(QString(), &d->versionWarningLabel);
const auto indexingPriorityLayout = new QHBoxLayout; const auto indexingPriorityLayout = new QHBoxLayout;
indexingPriorityLayout->addWidget(&d->indexingComboBox); indexingPriorityLayout->addWidget(&d->indexingComboBox);
indexingPriorityLayout->addStretch(1); indexingPriorityLayout->addStretch(1);
const auto indexingPriorityLabel = new QLabel(tr("Background indexing:")); const auto indexingPriorityLabel = new QLabel(Tr::tr("Background indexing:"));
indexingPriorityLabel->setToolTip(indexingToolTip); indexingPriorityLabel->setToolTip(indexingToolTip);
formLayout->addRow(indexingPriorityLabel, indexingPriorityLayout); formLayout->addRow(indexingPriorityLabel, indexingPriorityLayout);
const auto threadLimitLayout = new QHBoxLayout; const auto threadLimitLayout = new QHBoxLayout;
threadLimitLayout->addWidget(&d->threadLimitSpinBox); threadLimitLayout->addWidget(&d->threadLimitSpinBox);
threadLimitLayout->addStretch(1); threadLimitLayout->addStretch(1);
const auto threadLimitLabel = new QLabel(tr("Worker thread count:")); const auto threadLimitLabel = new QLabel(Tr::tr("Worker thread count:"));
threadLimitLabel->setToolTip(workerThreadsToolTip); threadLimitLabel->setToolTip(workerThreadsToolTip);
formLayout->addRow(threadLimitLabel, threadLimitLayout); formLayout->addRow(threadLimitLabel, threadLimitLayout);
@@ -314,7 +313,7 @@ ClangdSettingsWidget::ClangdSettingsWidget(const ClangdSettings::Data &settingsD
const auto documentUpdateThresholdLayout = new QHBoxLayout; const auto documentUpdateThresholdLayout = new QHBoxLayout;
documentUpdateThresholdLayout->addWidget(&d->documentUpdateThreshold); documentUpdateThresholdLayout->addWidget(&d->documentUpdateThreshold);
documentUpdateThresholdLayout->addStretch(1); documentUpdateThresholdLayout->addStretch(1);
const auto documentUpdateThresholdLabel = new QLabel(tr("Document update threshold:")); const auto documentUpdateThresholdLabel = new QLabel(Tr::tr("Document update threshold:"));
documentUpdateThresholdLabel->setToolTip(documentUpdateToolTip); documentUpdateThresholdLabel->setToolTip(documentUpdateToolTip);
formLayout->addRow(documentUpdateThresholdLabel, documentUpdateThresholdLayout); formLayout->addRow(documentUpdateThresholdLabel, documentUpdateThresholdLayout);
const auto sizeThresholdLayout = new QHBoxLayout; const auto sizeThresholdLayout = new QHBoxLayout;
@@ -334,18 +333,18 @@ ClangdSettingsWidget::ClangdSettingsWidget(const ClangdSettings::Data &settingsD
if (!isForProject) { if (!isForProject) {
d->sessionsModel.setStringList(settingsData.sessionsWithOneClangd); d->sessionsModel.setStringList(settingsData.sessionsWithOneClangd);
d->sessionsModel.sort(0); d->sessionsModel.sort(0);
d->sessionsGroupBox = new QGroupBox(tr("Sessions with a single clangd instance")); d->sessionsGroupBox = new QGroupBox(Tr::tr("Sessions with a single clangd instance"));
const auto sessionsView = new Utils::ListView; const auto sessionsView = new Utils::ListView;
sessionsView->setModel(&d->sessionsModel); sessionsView->setModel(&d->sessionsModel);
sessionsView->setToolTip( sessionsView->setToolTip(
tr("By default, Qt Creator runs one clangd process per project.\n" Tr::tr("By default, Qt Creator runs one clangd process per project.\n"
"If you have sessions with tightly coupled projects that should be\n" "If you have sessions with tightly coupled projects that should be\n"
"managed by the same clangd process, add them here.")); "managed by the same clangd process, add them here."));
const auto outerSessionsLayout = new QHBoxLayout; const auto outerSessionsLayout = new QHBoxLayout;
const auto innerSessionsLayout = new QHBoxLayout(d->sessionsGroupBox); const auto innerSessionsLayout = new QHBoxLayout(d->sessionsGroupBox);
const auto buttonsLayout = new QVBoxLayout; const auto buttonsLayout = new QVBoxLayout;
const auto addButton = new QPushButton(tr("Add ...")); const auto addButton = new QPushButton(Tr::tr("Add ..."));
const auto removeButton = new QPushButton(tr("Remove")); const auto removeButton = new QPushButton(Tr::tr("Remove"));
buttonsLayout->addWidget(addButton); buttonsLayout->addWidget(addButton);
buttonsLayout->addWidget(removeButton); buttonsLayout->addWidget(removeButton);
buttonsLayout->addStretch(1); buttonsLayout->addStretch(1);
@@ -380,7 +379,7 @@ ClangdSettingsWidget::ClangdSettingsWidget(const ClangdSettings::Data &settingsD
if (sessions.isEmpty()) if (sessions.isEmpty())
return; return;
sessions.sort(); sessions.sort();
dlg.setLabelText(tr("Choose a session:")); dlg.setLabelText(Tr::tr("Choose a session:"));
dlg.setComboBoxItems(sessions); dlg.setComboBoxItems(sessions);
if (dlg.exec() == QDialog::Accepted) { if (dlg.exec() == QDialog::Accepted) {
currentSessions << dlg.textValue(); currentSessions << dlg.textValue();
@@ -391,7 +390,7 @@ ClangdSettingsWidget::ClangdSettingsWidget(const ClangdSettings::Data &settingsD
} }
const auto configFilesHelpLabel = new QLabel; const auto configFilesHelpLabel = new QLabel;
configFilesHelpLabel->setText(tr("Additional settings are available via " configFilesHelpLabel->setText(Tr::tr("Additional settings are available via "
"<a href=\"https://clangd.llvm.org/config\"> clangd configuration files</a>.<br>" "<a href=\"https://clangd.llvm.org/config\"> clangd configuration files</a>.<br>"
"User-specific settings go <a href=\"%1\">here</a>, " "User-specific settings go <a href=\"%1\">here</a>, "
"project-specific settings can be configured by putting a .clangd file into " "project-specific settings can be configured by putting a .clangd file into "
@@ -444,12 +443,12 @@ ClangdSettingsWidget::ClangdSettingsWidget(const ClangdSettings::Data &settingsD
const Utils::FilePath clangdPath = d->clangdChooser.filePath(); const Utils::FilePath clangdPath = d->clangdChooser.filePath();
const QVersionNumber clangdVersion = ClangdSettings::clangdVersion(clangdPath); const QVersionNumber clangdVersion = ClangdSettings::clangdVersion(clangdPath);
if (clangdVersion.isNull()) { if (clangdVersion.isNull()) {
labelSetter.setWarning(tr("Failed to retrieve clangd version: " labelSetter.setWarning(Tr::tr("Failed to retrieve clangd version: "
"Unexpected clangd output.")); "Unexpected clangd output."));
return; return;
} }
if (clangdVersion < QVersionNumber(14)) { if (clangdVersion < QVersionNumber(14)) {
labelSetter.setWarning(tr("The clangd version is %1, but %2 or greater is required.") labelSetter.setWarning(Tr::tr("The clangd version is %1, but %2 or greater is required.")
.arg(clangdVersion.toString()).arg(14)); .arg(clangdVersion.toString()).arg(14));
return; return;
} }
@@ -505,8 +504,6 @@ ClangdSettings::Data ClangdSettingsWidget::settingsData() const
class ClangdSettingsPageWidget final : public Core::IOptionsPageWidget class ClangdSettingsPageWidget final : public Core::IOptionsPageWidget
{ {
Q_DECLARE_TR_FUNCTIONS(CppEditor::Internal::ClangdSettingsWidget)
public: public:
ClangdSettingsPageWidget() : m_widget(ClangdSettings::instance().data(), false) ClangdSettingsPageWidget() : m_widget(ClangdSettings::instance().data(), false)
{ {
@@ -523,7 +520,7 @@ private:
ClangdSettingsPage::ClangdSettingsPage() ClangdSettingsPage::ClangdSettingsPage()
{ {
setId(Constants::CPP_CLANGD_SETTINGS_ID); setId(Constants::CPP_CLANGD_SETTINGS_ID);
setDisplayName(ClangdSettingsWidget::tr("Clangd")); setDisplayName(Tr::tr("Clangd"));
setCategory(Constants::CPP_SETTINGS_CATEGORY); setCategory(Constants::CPP_SETTINGS_CATEGORY);
setWidgetCreator([] { return new ClangdSettingsPageWidget; }); setWidgetCreator([] { return new ClangdSettingsPageWidget; });
} }

View File

@@ -7,6 +7,7 @@
#include "cppcodestylepreferences.h" #include "cppcodestylepreferences.h"
#include "cppcodestylesnippets.h" #include "cppcodestylesnippets.h"
#include "cppeditorconstants.h" #include "cppeditorconstants.h"
#include "cppeditortr.h"
#include "cpppointerdeclarationformatter.h" #include "cpppointerdeclarationformatter.h"
#include "cpptoolssettings.h" #include "cpptoolssettings.h"
@@ -82,78 +83,84 @@ static void applyRefactorings(QTextDocument *textDocument, TextEditorWidget *edi
class CppCodeStylePreferencesWidgetPrivate class CppCodeStylePreferencesWidgetPrivate
{ {
Q_DECLARE_TR_FUNCTIONS(CppEditor::Internal::CppCodeStyleSettingsPage)
public: public:
CppCodeStylePreferencesWidgetPrivate(CppCodeStylePreferencesWidget *widget) CppCodeStylePreferencesWidgetPrivate(CppCodeStylePreferencesWidget *widget)
: q(widget) : q(widget)
, m_indentAccessSpecifiers(createCheckBox(tr("\"public\", \"protected\" and\n" , m_indentAccessSpecifiers(createCheckBox(Tr::tr("\"public\", \"protected\" and\n"
"\"private\" within class body"))) "\"private\" within class body")))
, m_indentDeclarationsRelativeToAccessSpecifiers( , m_indentDeclarationsRelativeToAccessSpecifiers(
createCheckBox(tr("Declarations relative to \"public\",\n" createCheckBox(Tr::tr("Declarations relative to \"public\",\n"
"\"protected\" and \"private\""))) "\"protected\" and \"private\"")))
, m_indentFunctionBody(createCheckBox(tr("Statements within function body"))) , m_indentFunctionBody(createCheckBox(Tr::tr("Statements within function body")))
, m_indentBlockBody(createCheckBox(tr("Statements within blocks"))) , m_indentBlockBody(createCheckBox(Tr::tr("Statements within blocks")))
, m_indentNamespaceBody(createCheckBox(tr("Declarations within\n" , m_indentNamespaceBody(createCheckBox(Tr::tr("Declarations within\n"
"\"namespace\" definition"))) "\"namespace\" definition")))
, m_indentClassBraces(createCheckBox(tr("Class declarations"))) , m_indentClassBraces(createCheckBox(Tr::tr("Class declarations")))
, m_indentNamespaceBraces(createCheckBox(tr("Namespace declarations"))) , m_indentNamespaceBraces(createCheckBox(Tr::tr("Namespace declarations")))
, m_indentEnumBraces(createCheckBox(tr("Enum declarations"))) , m_indentEnumBraces(createCheckBox(Tr::tr("Enum declarations")))
, m_indentFunctionBraces(createCheckBox(tr("Function declarations"))) , m_indentFunctionBraces(createCheckBox(Tr::tr("Function declarations")))
, m_indentBlockBraces(createCheckBox(tr("Blocks"))) , m_indentBlockBraces(createCheckBox(Tr::tr("Blocks")))
, m_indentSwitchLabels(createCheckBox(tr("\"case\" or \"default\""))) , m_indentSwitchLabels(createCheckBox(Tr::tr("\"case\" or \"default\"")))
, m_indentCaseStatements(createCheckBox(tr("Statements relative to\n" , m_indentCaseStatements(createCheckBox(Tr::tr("Statements relative to\n"
"\"case\" or \"default\""))) "\"case\" or \"default\"")))
, m_indentCaseBlocks(createCheckBox(tr("Blocks relative to\n" , m_indentCaseBlocks(createCheckBox(Tr::tr("Blocks relative to\n"
"\"case\" or \"default\""))) "\"case\" or \"default\"")))
, m_indentCaseBreak(createCheckBox(tr("\"break\" statement relative to\n" , m_indentCaseBreak(createCheckBox(Tr::tr("\"break\" statement relative to\n"
"\"case\" or \"default\""))) "\"case\" or \"default\"")))
, m_alignAssignments(createCheckBox(tr("Align after assignments"), , m_alignAssignments(createCheckBox(
tr("<html><head/><body>\n" Tr::tr("Align after assignments"),
"Enables alignment to tokens after =, += etc. When the option is disabled, regular continuation line indentation will be used.<br>\n" Tr::tr("<html><head/><body>\n"
"<br>\n" "Enables alignment to tokens after =, += etc. When the option is disabled, "
"With alignment:\n" "regular continuation line indentation will be used.<br>\n"
"<pre>\n" "<br>\n"
"a = a +\n" "With alignment:\n"
" b\n" "<pre>\n"
"</pre>\n" "a = a +\n"
"Without alignment:\n" " b\n"
"<pre>\n" "</pre>\n"
"a = a +\n" "Without alignment:\n"
" b\n" "<pre>\n"
"</pre>\n" "a = a +\n"
"</body></html>"))) " b\n"
, m_extraPaddingConditions(createCheckBox(tr("Add extra padding to conditions\n" "</pre>\n"
"if they would align to the next line"), "</body></html>")))
tr("<html><head/><body>\n" , m_extraPaddingConditions(createCheckBox(
"Adds an extra level of indentation to multiline conditions in the switch, if, while and foreach statements if they would otherwise have the same or less indentation than a nested statement.\n" Tr::tr("Add extra padding to conditions\n"
"\n" "if they would align to the next line"),
"For four-spaces indentation only if statement conditions are affected. Without extra padding:\n" Tr::tr("<html><head/><body>\n"
"<pre>\n" "Adds an extra level of indentation to multiline conditions in the switch, "
"if (a &&\n" "if, while and foreach statements if they would otherwise have the same or "
" b)\n" "less indentation than a nested statement.\n"
" c;\n" "\n"
"</pre>\n" "For four-spaces indentation only if statement conditions are affected. "
"With extra padding:\n" "Without extra padding:\n"
"<pre>\n" "<pre>\n"
"if (a &&\n" "if (a &&\n"
" b)\n" " b)\n"
" c;\n" " c;\n"
"</pre>\n" "</pre>\n"
"</body></html>"))) "With extra padding:\n"
, m_bindStarToIdentifier(createCheckBox(tr("Identifier"), "<pre>\n"
tr("<html><head/><body>This does not apply to the star and reference symbol in pointer/reference to functions and arrays, e.g.:\n" "if (a &&\n"
"<pre> int (&rf)() = ...;\n" " b)\n"
" int (*pf)() = ...;\n" " c;\n"
"\n" "</pre>\n"
" int (&ra)[2] = ...;\n" "</body></html>")))
" int (*pa)[2] = ...;\n" , m_bindStarToIdentifier(createCheckBox(
"\n" Tr::tr("Identifier"),
"</pre></body></html>"))) Tr::tr("<html><head/><body>This does not apply to the star and reference symbol "
, m_bindStarToTypeName(createCheckBox(tr("Type name"))) "in pointer/reference to functions and arrays, e.g.:\n"
, m_bindStarToLeftSpecifier(createCheckBox(tr("Left const/volatile"))) "<pre> int (&rf)() = ...;\n"
, m_bindStarToRightSpecifier(createCheckBox(tr("Right const/volatile"), " int (*pf)() = ...;\n"
tr("This does not apply to references."))) "\n"
" int (&ra)[2] = ...;\n"
" int (*pa)[2] = ...;\n"
"\n"
"</pre></body></html>")))
, m_bindStarToTypeName(createCheckBox(Tr::tr("Type name")))
, m_bindStarToLeftSpecifier(createCheckBox(Tr::tr("Left const/volatile")))
, m_bindStarToRightSpecifier(createCheckBox(Tr::tr("Right const/volatile"),
Tr::tr("This does not apply to references.")))
, m_categoryTab(new QTabWidget) , m_categoryTab(new QTabWidget)
, m_tabSettingsWidget(new TabSettingsWidget) , m_tabSettingsWidget(new TabSettingsWidget)
{ {
@@ -178,12 +185,12 @@ public:
}, },
createPreview(0) createPreview(0)
}.attachTo(generalTab); }.attachTo(generalTab);
m_categoryTab->addTab(generalTab, tr("General")); m_categoryTab->addTab(generalTab, Tr::tr("General"));
m_controllers.append(m_tabSettingsWidget); m_controllers.append(m_tabSettingsWidget);
QWidget *contentTab = new QWidget; QWidget *contentTab = new QWidget;
Group contentGroup { Group contentGroup {
title(tr("Indent")), title(Tr::tr("Indent")),
Column { Column {
m_indentAccessSpecifiers, m_indentAccessSpecifiers,
m_indentDeclarationsRelativeToAccessSpecifiers, m_indentDeclarationsRelativeToAccessSpecifiers,
@@ -197,12 +204,12 @@ public:
contentGroup, contentGroup,
createPreview(1) createPreview(1)
}.attachTo(contentTab); }.attachTo(contentTab);
m_categoryTab->addTab(contentTab, tr("Content")); m_categoryTab->addTab(contentTab, Tr::tr("Content"));
m_controllers.append(contentGroup.widget); m_controllers.append(contentGroup.widget);
QWidget *bracesTab = new QWidget; QWidget *bracesTab = new QWidget;
Group bracesGroup { Group bracesGroup {
title(tr("Indent Braces")), title(Tr::tr("Indent Braces")),
Column { Column {
m_indentClassBraces, m_indentClassBraces,
m_indentNamespaceBraces, m_indentNamespaceBraces,
@@ -216,12 +223,12 @@ public:
bracesGroup, bracesGroup,
createPreview(2) createPreview(2)
}.attachTo(bracesTab); }.attachTo(bracesTab);
m_categoryTab->addTab(bracesTab, tr("Braces")); m_categoryTab->addTab(bracesTab, Tr::tr("Braces"));
m_controllers.append(bracesGroup.widget); m_controllers.append(bracesGroup.widget);
QWidget *switchTab = new QWidget; QWidget *switchTab = new QWidget;
Group switchGroup { Group switchGroup {
title(tr("Indent within \"switch\"")), title(Tr::tr("Indent within \"switch\"")),
Column { Column {
m_indentSwitchLabels, m_indentSwitchLabels,
m_indentCaseStatements, m_indentCaseStatements,
@@ -234,12 +241,12 @@ public:
switchGroup, switchGroup,
createPreview(3) createPreview(3)
}.attachTo(switchTab); }.attachTo(switchTab);
m_categoryTab->addTab(switchTab, tr("\"switch\"")); m_categoryTab->addTab(switchTab, Tr::tr("\"switch\""));
m_controllers.append(switchGroup.widget); m_controllers.append(switchGroup.widget);
QWidget *alignmentTab = new QWidget; QWidget *alignmentTab = new QWidget;
Group alignmentGroup { Group alignmentGroup {
title(tr("Align")), title(Tr::tr("Align")),
Column { Column {
m_alignAssignments, m_alignAssignments,
m_extraPaddingConditions, m_extraPaddingConditions,
@@ -250,12 +257,12 @@ public:
alignmentGroup, alignmentGroup,
createPreview(4) createPreview(4)
}.attachTo(alignmentTab); }.attachTo(alignmentTab);
m_categoryTab->addTab(alignmentTab, tr("Alignment")); m_categoryTab->addTab(alignmentTab, Tr::tr("Alignment"));
m_controllers.append(alignmentGroup.widget); m_controllers.append(alignmentGroup.widget);
QWidget *typesTab = new QWidget; QWidget *typesTab = new QWidget;
Group typesGroup { Group typesGroup {
title(tr("Bind '*' and '&&' in types/declarations to")), title(Tr::tr("Bind '*' and '&&' in types/declarations to")),
Column { Column {
m_bindStarToIdentifier, m_bindStarToIdentifier,
m_bindStarToTypeName, m_bindStarToTypeName,
@@ -268,7 +275,7 @@ public:
typesGroup, typesGroup,
createPreview(5) createPreview(5)
}.attachTo(typesTab); }.attachTo(typesTab);
m_categoryTab->addTab(typesTab, tr("Pointers and References")); m_categoryTab->addTab(typesTab, Tr::tr("Pointers and References"));
m_controllers.append(typesGroup.widget); m_controllers.append(typesGroup.widget);
Row { m_categoryTab }.attachTo(q); Row { m_categoryTab }.attachTo(q);
@@ -574,7 +581,7 @@ void CppCodeStylePreferencesWidget::finish()
CppCodeStyleSettingsPage::CppCodeStyleSettingsPage() CppCodeStyleSettingsPage::CppCodeStyleSettingsPage()
{ {
setId(Constants::CPP_CODE_STYLE_SETTINGS_ID); setId(Constants::CPP_CODE_STYLE_SETTINGS_ID);
setDisplayName(QCoreApplication::translate("CppEditor", Constants::CPP_CODE_STYLE_SETTINGS_NAME)); setDisplayName(Tr::tr("Code Style"));
setCategory(Constants::CPP_SETTINGS_CATEGORY); setCategory(Constants::CPP_SETTINGS_CATEGORY);
} }

View File

@@ -11,7 +11,6 @@ namespace Constants {
const char M_CONTEXT[] = "CppEditor.ContextMenu"; const char M_CONTEXT[] = "CppEditor.ContextMenu";
const char G_CONTEXT_FIRST[] = "CppEditor.GFirst"; const char G_CONTEXT_FIRST[] = "CppEditor.GFirst";
const char CPPEDITOR_ID[] = "CppEditor.C++Editor"; const char CPPEDITOR_ID[] = "CppEditor.C++Editor";
const char CPPEDITOR_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("OpenWith::Editors", "C++ Editor");
const char SWITCH_DECLARATION_DEFINITION[] = "CppEditor.SwitchDeclarationDefinition"; const char SWITCH_DECLARATION_DEFINITION[] = "CppEditor.SwitchDeclarationDefinition";
const char OPEN_DECLARATION_DEFINITION_IN_NEXT_SPLIT[] = "CppEditor.OpenDeclarationDefinitionInNextSplit"; const char OPEN_DECLARATION_DEFINITION_IN_NEXT_SPLIT[] = "CppEditor.OpenDeclarationDefinitionInNextSplit";
const char FOLLOW_SYMBOL_TO_TYPE[] = "TextEditor.FollowSymbolToType"; const char FOLLOW_SYMBOL_TO_TYPE[] = "TextEditor.FollowSymbolToType";
@@ -96,12 +95,9 @@ const char CPP_CLANG_DIAG_CONFIG_QUESTIONABLE[] = "Builtin.Questionable";
const char CPP_CLANG_DIAG_CONFIG_BUILDSYSTEM[] = "Builtin.BuildSystem"; const char CPP_CLANG_DIAG_CONFIG_BUILDSYSTEM[] = "Builtin.BuildSystem";
const char CPP_CODE_STYLE_SETTINGS_ID[] = "A.Cpp.Code Style"; const char CPP_CODE_STYLE_SETTINGS_ID[] = "A.Cpp.Code Style";
const char CPP_CODE_STYLE_SETTINGS_NAME[] = QT_TRANSLATE_NOOP("CppEditor", "Code Style");
const char CPP_FILE_SETTINGS_ID[] = "B.Cpp.File Naming"; const char CPP_FILE_SETTINGS_ID[] = "B.Cpp.File Naming";
const char CPP_FILE_SETTINGS_NAME[] = QT_TRANSLATE_NOOP("CppEditor", "File Naming");
const char CPP_CODE_MODEL_SETTINGS_ID[] = "C.Cpp.Code Model"; const char CPP_CODE_MODEL_SETTINGS_ID[] = "C.Cpp.Code Model";
const char CPP_DIAGNOSTIC_CONFIG_SETTINGS_ID[] = "C.Cpp.Diagnostic Config"; const char CPP_DIAGNOSTIC_CONFIG_SETTINGS_ID[] = "C.Cpp.Diagnostic Config";
const char CPP_DIAGNOSTIC_CONFIG_SETTINGS_NAME[] = QT_TRANSLATE_NOOP("CppEditor", "Diagnostic Configurations");
const char CPP_CLANGD_SETTINGS_ID[] = "K.Cpp.Clangd"; const char CPP_CLANGD_SETTINGS_ID[] = "K.Cpp.Clangd";
const char CPP_SETTINGS_CATEGORY[] = "I.C++"; const char CPP_SETTINGS_CATEGORY[] = "I.C++";

View File

@@ -7,6 +7,7 @@
#include "cppcodeformatter.h" #include "cppcodeformatter.h"
#include "cppeditorconstants.h" #include "cppeditorconstants.h"
#include "cppeditorplugin.h" #include "cppeditorplugin.h"
#include "cppeditortr.h"
#include "cppmodelmanager.h" #include "cppmodelmanager.h"
#include "cppeditorconstants.h" #include "cppeditorconstants.h"
#include "cppeditorplugin.h" #include "cppeditorplugin.h"
@@ -110,8 +111,8 @@ CppEditorDocument::CppEditorDocument()
minimizableInfoBars()->setSettingsGroup(Constants::CPPEDITOR_SETTINGSGROUP); minimizableInfoBars()->setSettingsGroup(Constants::CPPEDITOR_SETTINGSGROUP);
minimizableInfoBars()->setPossibleInfoBarEntries( minimizableInfoBars()->setPossibleInfoBarEntries(
{{NO_PROJECT_CONFIGURATION, {{NO_PROJECT_CONFIGURATION,
tr("<b>Warning</b>: This file is not part of any project. " Tr::tr("<b>Warning</b>: This file is not part of any project. "
"The code model might have issues parsing this file properly.")}}); "The code model might have issues parsing this file properly.")}});
// See also onFilePathChanged() for more initialization // See also onFilePathChanged() for more initialization
} }
@@ -343,8 +344,8 @@ void CppEditorDocument::showHideInfoBarAboutMultipleParseContexts(bool show)
if (show) { if (show) {
InfoBarEntry info(id, InfoBarEntry info(id,
tr("Note: Multiple parse contexts are available for this file. " Tr::tr("Note: Multiple parse contexts are available for this file. "
"Choose the preferred one from the editor toolbar."), "Choose the preferred one from the editor toolbar."),
InfoBarEntry::GlobalSuppression::Enabled); InfoBarEntry::GlobalSuppression::Enabled);
info.removeCancelButton(); info.removeCancelButton();
if (infoBar()->canInfoBeAdded(id)) if (infoBar()->canInfoBeAdded(id))

View File

@@ -4,6 +4,7 @@
#include "cppeditoroutline.h" #include "cppeditoroutline.h"
#include "cppeditordocument.h" #include "cppeditordocument.h"
#include "cppeditortr.h"
#include "cppeditorwidget.h" #include "cppeditorwidget.h"
#include "cppmodelmanager.h" #include "cppmodelmanager.h"
#include "cppoutlinemodel.h" #include "cppoutlinemodel.h"
@@ -95,7 +96,7 @@ CppEditorOutline::CppEditorOutline(CppEditorWidget *editorWidget)
m_combo->setMaxVisibleItems(40); m_combo->setMaxVisibleItems(40);
m_combo->setContextMenuPolicy(Qt::ActionsContextMenu); m_combo->setContextMenuPolicy(Qt::ActionsContextMenu);
m_sortAction = new QAction(tr("Sort Alphabetically"), m_combo); m_sortAction = new QAction(Tr::tr("Sort Alphabetically"), m_combo);
m_sortAction->setCheckable(true); m_sortAction->setCheckable(true);
m_sortAction->setChecked(isSorted()); m_sortAction->setChecked(isSorted());
connect(m_sortAction, &QAction::toggled, connect(m_sortAction, &QAction::toggled,

View File

@@ -10,6 +10,7 @@
#include "cppcodestylesettingspage.h" #include "cppcodestylesettingspage.h"
#include "cppeditorconstants.h" #include "cppeditorconstants.h"
#include "cppeditordocument.h" #include "cppeditordocument.h"
#include "cppeditortr.h"
#include "cppeditorwidget.h" #include "cppeditorwidget.h"
#include "cppfilesettingspage.h" #include "cppfilesettingspage.h"
#include "cppincludehierarchy.h" #include "cppincludehierarchy.h"
@@ -124,7 +125,7 @@ public:
CppEditorFactory() CppEditorFactory()
{ {
setId(Constants::CPPEDITOR_ID); setId(Constants::CPPEDITOR_ID);
setDisplayName(QCoreApplication::translate("OpenWith::Editors", Constants::CPPEDITOR_DISPLAY_NAME)); setDisplayName(QCoreApplication::translate("OpenWith::Editors","C++ Editor"));
addMimeType(Constants::C_SOURCE_MIMETYPE); addMimeType(Constants::C_SOURCE_MIMETYPE);
addMimeType(Constants::C_HEADER_MIMETYPE); addMimeType(Constants::C_HEADER_MIMETYPE);
addMimeType(Constants::CPP_SOURCE_MIMETYPE); addMimeType(Constants::CPP_SOURCE_MIMETYPE);
@@ -237,53 +238,53 @@ bool CppEditorPlugin::initialize(const QStringList & /*arguments*/, QString *err
ActionContainer *mtools = ActionManager::actionContainer(Core::Constants::M_TOOLS); ActionContainer *mtools = ActionManager::actionContainer(Core::Constants::M_TOOLS);
ActionContainer *mcpptools = ActionManager::createMenu(Constants::M_TOOLS_CPP); ActionContainer *mcpptools = ActionManager::createMenu(Constants::M_TOOLS_CPP);
QMenu *menu = mcpptools->menu(); QMenu *menu = mcpptools->menu();
menu->setTitle(tr("&C++")); menu->setTitle(Tr::tr("&C++"));
menu->setEnabled(true); menu->setEnabled(true);
mtools->addMenu(mcpptools); mtools->addMenu(mcpptools);
// Actions // Actions
Context context(Constants::CPPEDITOR_ID); Context context(Constants::CPPEDITOR_ID);
QAction *switchAction = new QAction(tr("Switch Header/Source"), this); QAction *switchAction = new QAction(Tr::tr("Switch Header/Source"), this);
Command *command = ActionManager::registerAction(switchAction, Constants::SWITCH_HEADER_SOURCE, context, true); Command *command = ActionManager::registerAction(switchAction, Constants::SWITCH_HEADER_SOURCE, context, true);
command->setDefaultKeySequence(QKeySequence(Qt::Key_F4)); command->setDefaultKeySequence(QKeySequence(Qt::Key_F4));
mcpptools->addAction(command); mcpptools->addAction(command);
connect(switchAction, &QAction::triggered, connect(switchAction, &QAction::triggered,
this, [] { CppModelManager::switchHeaderSource(false); }); this, [] { CppModelManager::switchHeaderSource(false); });
QAction *openInNextSplitAction = new QAction(tr("Open Corresponding Header/Source in Next Split"), this); QAction *openInNextSplitAction = new QAction(Tr::tr("Open Corresponding Header/Source in Next Split"), this);
command = ActionManager::registerAction(openInNextSplitAction, Constants::OPEN_HEADER_SOURCE_IN_NEXT_SPLIT, context, true); command = ActionManager::registerAction(openInNextSplitAction, Constants::OPEN_HEADER_SOURCE_IN_NEXT_SPLIT, context, true);
command->setDefaultKeySequence(QKeySequence(HostOsInfo::isMacHost() command->setDefaultKeySequence(QKeySequence(HostOsInfo::isMacHost()
? tr("Meta+E, F4") ? Tr::tr("Meta+E, F4")
: tr("Ctrl+E, F4"))); : Tr::tr("Ctrl+E, F4")));
mcpptools->addAction(command); mcpptools->addAction(command);
connect(openInNextSplitAction, &QAction::triggered, connect(openInNextSplitAction, &QAction::triggered,
this, [] { CppModelManager::switchHeaderSource(true); }); this, [] { CppModelManager::switchHeaderSource(true); });
MacroExpander *expander = globalMacroExpander(); MacroExpander *expander = globalMacroExpander();
expander->registerVariable("Cpp:LicenseTemplate", expander->registerVariable("Cpp:LicenseTemplate",
tr("The license template."), Tr::tr("The license template."),
[]() { return CppEditorPlugin::licenseTemplate(); }); []() { return CppEditorPlugin::licenseTemplate(); });
expander->registerFileVariables("Cpp:LicenseTemplatePath", expander->registerFileVariables("Cpp:LicenseTemplatePath",
tr("The configured path to the license template"), Tr::tr("The configured path to the license template"),
[]() { return CppEditorPlugin::licenseTemplatePath(); }); []() { return CppEditorPlugin::licenseTemplatePath(); });
expander->registerVariable( expander->registerVariable(
"Cpp:PragmaOnce", "Cpp:PragmaOnce",
tr("Insert \"#pragma once\" instead of \"#ifndef\" include guards into header file"), Tr::tr("Insert \"#pragma once\" instead of \"#ifndef\" include guards into header file"),
[] { return usePragmaOnce() ? QString("true") : QString(); }); [] { return usePragmaOnce() ? QString("true") : QString(); });
const auto quickFixSettingsPanelFactory = new ProjectPanelFactory; const auto quickFixSettingsPanelFactory = new ProjectPanelFactory;
quickFixSettingsPanelFactory->setPriority(100); quickFixSettingsPanelFactory->setPriority(100);
quickFixSettingsPanelFactory->setId(Constants::QUICK_FIX_PROJECT_PANEL_ID); quickFixSettingsPanelFactory->setId(Constants::QUICK_FIX_PROJECT_PANEL_ID);
quickFixSettingsPanelFactory->setDisplayName( quickFixSettingsPanelFactory->setDisplayName(
QCoreApplication::translate("CppEditor", Constants::QUICK_FIX_SETTINGS_DISPLAY_NAME)); Tr::tr("CppEditor", Constants::QUICK_FIX_SETTINGS_DISPLAY_NAME));
quickFixSettingsPanelFactory->setCreateWidgetFunction([](Project *project) { quickFixSettingsPanelFactory->setCreateWidgetFunction([](Project *project) {
return new CppQuickFixProjectSettingsWidget(project); return new CppQuickFixProjectSettingsWidget(project);
}); });
ProjectPanelFactory::registerFactory(quickFixSettingsPanelFactory); ProjectPanelFactory::registerFactory(quickFixSettingsPanelFactory);
SnippetProvider::registerGroup(Constants::CPP_SNIPPETS_GROUP_ID, tr("C++", "SnippetProvider"), SnippetProvider::registerGroup(Constants::CPP_SNIPPETS_GROUP_ID, Tr::tr("C++", "SnippetProvider"),
&decorateCppEditor); &decorateCppEditor);
createCppQuickFixes(); createCppQuickFixes();
@@ -296,28 +297,28 @@ bool CppEditorPlugin::initialize(const QStringList & /*arguments*/, QString *err
ActionContainer *touchBar = ActionManager::actionContainer(Core::Constants::TOUCH_BAR); ActionContainer *touchBar = ActionManager::actionContainer(Core::Constants::TOUCH_BAR);
cmd = ActionManager::command(Constants::SWITCH_HEADER_SOURCE); cmd = ActionManager::command(Constants::SWITCH_HEADER_SOURCE);
cmd->setTouchBarText(tr("Header/Source", "text on macOS touch bar")); cmd->setTouchBarText(Tr::tr("Header/Source", "text on macOS touch bar"));
contextMenu->addAction(cmd, Constants::G_CONTEXT_FIRST); contextMenu->addAction(cmd, Constants::G_CONTEXT_FIRST);
touchBar->addAction(cmd, Core::Constants::G_TOUCHBAR_NAVIGATION); touchBar->addAction(cmd, Core::Constants::G_TOUCHBAR_NAVIGATION);
cmd = ActionManager::command(TextEditor::Constants::FOLLOW_SYMBOL_UNDER_CURSOR); cmd = ActionManager::command(TextEditor::Constants::FOLLOW_SYMBOL_UNDER_CURSOR);
cmd->setTouchBarText(tr("Follow", "text on macOS touch bar")); cmd->setTouchBarText(Tr::tr("Follow", "text on macOS touch bar"));
contextMenu->addAction(cmd, Constants::G_CONTEXT_FIRST); contextMenu->addAction(cmd, Constants::G_CONTEXT_FIRST);
cppToolsMenu->addAction(cmd); cppToolsMenu->addAction(cmd);
touchBar->addAction(cmd, Core::Constants::G_TOUCHBAR_NAVIGATION); touchBar->addAction(cmd, Core::Constants::G_TOUCHBAR_NAVIGATION);
QAction *openPreprocessorDialog = new QAction(tr("Additional Preprocessor Directives..."), this); QAction *openPreprocessorDialog = new QAction(Tr::tr("Additional Preprocessor Directives..."), this);
cmd = ActionManager::registerAction(openPreprocessorDialog, cmd = ActionManager::registerAction(openPreprocessorDialog,
Constants::OPEN_PREPROCESSOR_DIALOG, context); Constants::OPEN_PREPROCESSOR_DIALOG, context);
cmd->setDefaultKeySequence(QKeySequence()); cmd->setDefaultKeySequence(QKeySequence());
connect(openPreprocessorDialog, &QAction::triggered, this, &CppEditorPlugin::showPreProcessorDialog); connect(openPreprocessorDialog, &QAction::triggered, this, &CppEditorPlugin::showPreProcessorDialog);
cppToolsMenu->addAction(cmd); cppToolsMenu->addAction(cmd);
QAction *switchDeclarationDefinition = new QAction(tr("Switch Between Function Declaration/Definition"), this); QAction *switchDeclarationDefinition = new QAction(Tr::tr("Switch Between Function Declaration/Definition"), this);
cmd = ActionManager::registerAction(switchDeclarationDefinition, cmd = ActionManager::registerAction(switchDeclarationDefinition,
Constants::SWITCH_DECLARATION_DEFINITION, context, true); Constants::SWITCH_DECLARATION_DEFINITION, context, true);
cmd->setDefaultKeySequence(QKeySequence(tr("Shift+F2"))); cmd->setDefaultKeySequence(QKeySequence(Tr::tr("Shift+F2")));
cmd->setTouchBarText(tr("Decl/Def", "text on macOS touch bar")); cmd->setTouchBarText(Tr::tr("Decl/Def", "text on macOS touch bar"));
connect(switchDeclarationDefinition, &QAction::triggered, connect(switchDeclarationDefinition, &QAction::triggered,
this, &CppEditorPlugin::switchDeclarationDefinition); this, &CppEditorPlugin::switchDeclarationDefinition);
contextMenu->addAction(cmd, Constants::G_CONTEXT_FIRST); contextMenu->addAction(cmd, Constants::G_CONTEXT_FIRST);
@@ -328,21 +329,21 @@ bool CppEditorPlugin::initialize(const QStringList & /*arguments*/, QString *err
cppToolsMenu->addAction(cmd); cppToolsMenu->addAction(cmd);
QAction *openDeclarationDefinitionInNextSplit = QAction *openDeclarationDefinitionInNextSplit =
new QAction(tr("Open Function Declaration/Definition in Next Split"), this); new QAction(Tr::tr("Open Function Declaration/Definition in Next Split"), this);
cmd = ActionManager::registerAction(openDeclarationDefinitionInNextSplit, cmd = ActionManager::registerAction(openDeclarationDefinitionInNextSplit,
Constants::OPEN_DECLARATION_DEFINITION_IN_NEXT_SPLIT, context, true); Constants::OPEN_DECLARATION_DEFINITION_IN_NEXT_SPLIT, context, true);
cmd->setDefaultKeySequence(QKeySequence(HostOsInfo::isMacHost() cmd->setDefaultKeySequence(QKeySequence(HostOsInfo::isMacHost()
? tr("Meta+E, Shift+F2") ? Tr::tr("Meta+E, Shift+F2")
: tr("Ctrl+E, Shift+F2"))); : Tr::tr("Ctrl+E, Shift+F2")));
connect(openDeclarationDefinitionInNextSplit, &QAction::triggered, connect(openDeclarationDefinitionInNextSplit, &QAction::triggered,
this, &CppEditorPlugin::openDeclarationDefinitionInNextSplit); this, &CppEditorPlugin::openDeclarationDefinitionInNextSplit);
cppToolsMenu->addAction(cmd); cppToolsMenu->addAction(cmd);
QAction * const followSymbolToType = new QAction(tr("Follow Symbol Under Cursor to Type"), QAction * const followSymbolToType = new QAction(Tr::tr("Follow Symbol Under Cursor to Type"),
this); this);
cmd = ActionManager::registerAction(followSymbolToType, Constants::FOLLOW_SYMBOL_TO_TYPE, cmd = ActionManager::registerAction(followSymbolToType, Constants::FOLLOW_SYMBOL_TO_TYPE,
context, true); context, true);
cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+Shift+F2"))); cmd->setDefaultKeySequence(QKeySequence(Tr::tr("Ctrl+Shift+F2")));
connect(followSymbolToType, &QAction::triggered, this, []{ connect(followSymbolToType, &QAction::triggered, this, []{
if (CppEditorWidget *editorWidget = currentCppEditorWidget()) if (CppEditorWidget *editorWidget = currentCppEditorWidget())
editorWidget->followSymbolToType(false); editorWidget->followSymbolToType(false);
@@ -350,12 +351,12 @@ bool CppEditorPlugin::initialize(const QStringList & /*arguments*/, QString *err
contextMenu->addAction(cmd, Constants::G_CONTEXT_FIRST); contextMenu->addAction(cmd, Constants::G_CONTEXT_FIRST);
cppToolsMenu->addAction(cmd); cppToolsMenu->addAction(cmd);
QAction * const followSymbolToTypeInNextSplit = QAction * const followSymbolToTypeInNextSplit =
new QAction(tr("Follow Symbol to Type in Next Split"), this); new QAction(Tr::tr("Follow Symbol to Type in Next Split"), this);
cmd = ActionManager::registerAction(followSymbolToTypeInNextSplit, cmd = ActionManager::registerAction(followSymbolToTypeInNextSplit,
Constants::FOLLOW_SYMBOL_TO_TYPE_IN_NEXT_SPLIT, context, true); Constants::FOLLOW_SYMBOL_TO_TYPE_IN_NEXT_SPLIT, context, true);
cmd->setDefaultKeySequence(QKeySequence(HostOsInfo::isMacHost() cmd->setDefaultKeySequence(QKeySequence(HostOsInfo::isMacHost()
? tr("Meta+E, Ctrl+Shift+F2") ? Tr::tr("Meta+E, Ctrl+Shift+F2")
: tr("Ctrl+E, Ctrl+Shift+F2"))); : Tr::tr("Ctrl+E, Ctrl+Shift+F2")));
connect(followSymbolToTypeInNextSplit, &QAction::triggered, this, []{ connect(followSymbolToTypeInNextSplit, &QAction::triggered, this, []{
if (CppEditorWidget *editorWidget = currentCppEditorWidget()) if (CppEditorWidget *editorWidget = currentCppEditorWidget())
editorWidget->followSymbolToType(true); editorWidget->followSymbolToType(true);
@@ -366,7 +367,7 @@ bool CppEditorPlugin::initialize(const QStringList & /*arguments*/, QString *err
contextMenu->addAction(cmd, Constants::G_CONTEXT_FIRST); contextMenu->addAction(cmd, Constants::G_CONTEXT_FIRST);
cppToolsMenu->addAction(cmd); cppToolsMenu->addAction(cmd);
d->m_findRefsCategorizedAction = new QAction(tr("Find References With Access Type"), this); d->m_findRefsCategorizedAction = new QAction(Tr::tr("Find References With Access Type"), this);
cmd = ActionManager::registerAction(d->m_findRefsCategorizedAction, cmd = ActionManager::registerAction(d->m_findRefsCategorizedAction,
"CppEditor.FindRefsCategorized", context); "CppEditor.FindRefsCategorized", context);
connect(d->m_findRefsCategorizedAction, &QAction::triggered, this, [this] { connect(d->m_findRefsCategorizedAction, &QAction::triggered, this, [this] {
@@ -379,7 +380,7 @@ bool CppEditorPlugin::initialize(const QStringList & /*arguments*/, QString *err
contextMenu->addAction(cmd, Constants::G_CONTEXT_FIRST); contextMenu->addAction(cmd, Constants::G_CONTEXT_FIRST);
cppToolsMenu->addAction(cmd); cppToolsMenu->addAction(cmd);
QAction * const showPreprocessedAction = new QAction(tr("Show Preprocessed Source"), this); QAction * const showPreprocessedAction = new QAction(Tr::tr("Show Preprocessed Source"), this);
command = ActionManager::registerAction(showPreprocessedAction, command = ActionManager::registerAction(showPreprocessedAction,
Constants::SHOW_PREPROCESSED_FILE, context); Constants::SHOW_PREPROCESSED_FILE, context);
mcpptools->addAction(command); mcpptools->addAction(command);
@@ -388,14 +389,14 @@ bool CppEditorPlugin::initialize(const QStringList & /*arguments*/, QString *err
this, [] { CppModelManager::showPreprocessedFile(false); }); this, [] { CppModelManager::showPreprocessedFile(false); });
QAction * const showPreprocessedInSplitAction = new QAction QAction * const showPreprocessedInSplitAction = new QAction
(tr("Show Preprocessed Source in Next Split"), this); (Tr::tr("Show Preprocessed Source in Next Split"), this);
command = ActionManager::registerAction(showPreprocessedInSplitAction, command = ActionManager::registerAction(showPreprocessedInSplitAction,
Constants::SHOW_PREPROCESSED_FILE_SPLIT, context); Constants::SHOW_PREPROCESSED_FILE_SPLIT, context);
mcpptools->addAction(command); mcpptools->addAction(command);
connect(showPreprocessedInSplitAction, &QAction::triggered, connect(showPreprocessedInSplitAction, &QAction::triggered,
this, [] { CppModelManager::showPreprocessedFile(true); }); this, [] { CppModelManager::showPreprocessedFile(true); });
QAction *const findUnusedFunctionsAction = new QAction(tr("Find Unused Functions"), this); QAction *const findUnusedFunctionsAction = new QAction(Tr::tr("Find Unused Functions"), this);
command = ActionManager::registerAction(findUnusedFunctionsAction, command = ActionManager::registerAction(findUnusedFunctionsAction,
"CppTools.FindUnusedFunctions"); "CppTools.FindUnusedFunctions");
mcpptools->addAction(command); mcpptools->addAction(command);
@@ -403,7 +404,7 @@ bool CppEditorPlugin::initialize(const QStringList & /*arguments*/, QString *err
CppModelManager::findUnusedFunctions({}); CppModelManager::findUnusedFunctions({});
}); });
QAction *const findUnusedFunctionsInSubProjectAction QAction *const findUnusedFunctionsInSubProjectAction
= new QAction(tr("Find Unused C/C++ Functions"), this); = new QAction(Tr::tr("Find Unused C/C++ Functions"), this);
command = ActionManager::registerAction(findUnusedFunctionsInSubProjectAction, command = ActionManager::registerAction(findUnusedFunctionsInSubProjectAction,
"CppTools.FindUnusedFunctionsInSubProject"); "CppTools.FindUnusedFunctionsInSubProject");
for (ActionContainer *const projectContextMenu : for (ActionContainer *const projectContextMenu :
@@ -417,16 +418,16 @@ bool CppEditorPlugin::initialize(const QStringList & /*arguments*/, QString *err
CppModelManager::findUnusedFunctions(node->directory()); CppModelManager::findUnusedFunctions(node->directory());
}); });
d->m_openTypeHierarchyAction = new QAction(tr("Open Type Hierarchy"), this); d->m_openTypeHierarchyAction = new QAction(Tr::tr("Open Type Hierarchy"), this);
cmd = ActionManager::registerAction(d->m_openTypeHierarchyAction, Constants::OPEN_TYPE_HIERARCHY, context); cmd = ActionManager::registerAction(d->m_openTypeHierarchyAction, Constants::OPEN_TYPE_HIERARCHY, context);
cmd->setDefaultKeySequence(QKeySequence(useMacShortcuts ? tr("Meta+Shift+T") : tr("Ctrl+Shift+T"))); cmd->setDefaultKeySequence(QKeySequence(useMacShortcuts ? Tr::tr("Meta+Shift+T") : Tr::tr("Ctrl+Shift+T")));
connect(d->m_openTypeHierarchyAction, &QAction::triggered, this, &CppEditorPlugin::openTypeHierarchy); connect(d->m_openTypeHierarchyAction, &QAction::triggered, this, &CppEditorPlugin::openTypeHierarchy);
contextMenu->addAction(cmd, Constants::G_CONTEXT_FIRST); contextMenu->addAction(cmd, Constants::G_CONTEXT_FIRST);
cppToolsMenu->addAction(cmd); cppToolsMenu->addAction(cmd);
d->m_openIncludeHierarchyAction = new QAction(tr("Open Include Hierarchy"), this); d->m_openIncludeHierarchyAction = new QAction(Tr::tr("Open Include Hierarchy"), this);
cmd = ActionManager::registerAction(d->m_openIncludeHierarchyAction, Constants::OPEN_INCLUDE_HIERARCHY, context); cmd = ActionManager::registerAction(d->m_openIncludeHierarchyAction, Constants::OPEN_INCLUDE_HIERARCHY, context);
cmd->setDefaultKeySequence(QKeySequence(useMacShortcuts ? tr("Meta+Shift+I") : tr("Ctrl+Shift+I"))); cmd->setDefaultKeySequence(QKeySequence(useMacShortcuts ? Tr::tr("Meta+Shift+I") : Tr::tr("Ctrl+Shift+I")));
connect(d->m_openIncludeHierarchyAction, &QAction::triggered, this, &CppEditorPlugin::openIncludeHierarchy); connect(d->m_openIncludeHierarchyAction, &QAction::triggered, this, &CppEditorPlugin::openIncludeHierarchy);
contextMenu->addAction(cmd, Constants::G_CONTEXT_FIRST); contextMenu->addAction(cmd, Constants::G_CONTEXT_FIRST);
cppToolsMenu->addAction(cmd); cppToolsMenu->addAction(cmd);
@@ -439,7 +440,7 @@ bool CppEditorPlugin::initialize(const QStringList & /*arguments*/, QString *err
// Update context in global context // Update context in global context
cppToolsMenu->addSeparator(Core::Constants::G_DEFAULT_THREE); cppToolsMenu->addSeparator(Core::Constants::G_DEFAULT_THREE);
d->m_reparseExternallyChangedFiles = new QAction(tr("Reparse Externally Changed Files"), this); d->m_reparseExternallyChangedFiles = new QAction(Tr::tr("Reparse Externally Changed Files"), this);
cmd = ActionManager::registerAction(d->m_reparseExternallyChangedFiles, Constants::UPDATE_CODEMODEL); cmd = ActionManager::registerAction(d->m_reparseExternallyChangedFiles, Constants::UPDATE_CODEMODEL);
CppModelManager *cppModelManager = CppModelManager::instance(); CppModelManager *cppModelManager = CppModelManager::instance();
connect(d->m_reparseExternallyChangedFiles, &QAction::triggered, connect(d->m_reparseExternallyChangedFiles, &QAction::triggered,
@@ -447,9 +448,9 @@ bool CppEditorPlugin::initialize(const QStringList & /*arguments*/, QString *err
cppToolsMenu->addAction(cmd, Core::Constants::G_DEFAULT_THREE); cppToolsMenu->addAction(cmd, Core::Constants::G_DEFAULT_THREE);
ActionContainer *toolsDebug = ActionManager::actionContainer(Core::Constants::M_TOOLS_DEBUG); ActionContainer *toolsDebug = ActionManager::actionContainer(Core::Constants::M_TOOLS_DEBUG);
QAction *inspectCppCodeModel = new QAction(tr("Inspect C++ Code Model..."), this); QAction *inspectCppCodeModel = new QAction(Tr::tr("Inspect C++ Code Model..."), this);
cmd = ActionManager::registerAction(inspectCppCodeModel, Constants::INSPECT_CPP_CODEMODEL); cmd = ActionManager::registerAction(inspectCppCodeModel, Constants::INSPECT_CPP_CODEMODEL);
cmd->setDefaultKeySequence(QKeySequence(useMacShortcuts ? tr("Meta+Shift+F12") : tr("Ctrl+Shift+F12"))); cmd->setDefaultKeySequence(QKeySequence(useMacShortcuts ? Tr::tr("Meta+Shift+F12") : Tr::tr("Ctrl+Shift+F12")));
connect(inspectCppCodeModel, &QAction::triggered, d, &CppEditorPluginPrivate::inspectCppCodeModel); connect(inspectCppCodeModel, &QAction::triggered, d, &CppEditorPluginPrivate::inspectCppCodeModel);
toolsDebug->addAction(cmd); toolsDebug->addAction(cmd);
@@ -479,7 +480,7 @@ void CppEditorPlugin::extensionsInitialized()
d->m_clangdSettingsPage = new ClangdSettingsPage; d->m_clangdSettingsPage = new ClangdSettingsPage;
const auto clangdPanelFactory = new ProjectPanelFactory; const auto clangdPanelFactory = new ProjectPanelFactory;
clangdPanelFactory->setPriority(100); clangdPanelFactory->setPriority(100);
clangdPanelFactory->setDisplayName(tr("Clangd")); clangdPanelFactory->setDisplayName(Tr::tr("Clangd"));
clangdPanelFactory->setCreateWidgetFunction([](Project *project) { clangdPanelFactory->setCreateWidgetFunction([](Project *project) {
return new ClangdProjectSettingsWidget(project); return new ClangdProjectSettingsWidget(project);
}); });

View File

@@ -5,20 +5,21 @@
#include "cppcodeformatter.h" #include "cppcodeformatter.h"
#include "cppcompletionassistprovider.h" #include "cppcompletionassistprovider.h"
#include "doxygengenerator.h"
#include "cppeditorconstants.h" #include "cppeditorconstants.h"
#include "cppeditordocument.h" #include "cppeditordocument.h"
#include "cppeditoroutline.h" #include "cppeditoroutline.h"
#include "cppeditorplugin.h" #include "cppeditorplugin.h"
#include "cppeditortr.h"
#include "cppfunctiondecldeflink.h" #include "cppfunctiondecldeflink.h"
#include "cpplocalrenaming.h" #include "cpplocalrenaming.h"
#include "cppmodelmanager.h" #include "cppmodelmanager.h"
#include "cpppreprocessordialog.h" #include "cpppreprocessordialog.h"
#include "cppsemanticinfo.h"
#include "cppselectionchanger.h"
#include "cppquickfixassistant.h" #include "cppquickfixassistant.h"
#include "cppselectionchanger.h"
#include "cppsemanticinfo.h"
#include "cpptoolssettings.h" #include "cpptoolssettings.h"
#include "cppuseselectionsupdater.h" #include "cppuseselectionsupdater.h"
#include "doxygengenerator.h"
#include <coreplugin/actionmanager/actioncontainer.h> #include <coreplugin/actionmanager/actioncontainer.h>
#include <coreplugin/actionmanager/actionmanager.h> #include <coreplugin/actionmanager/actionmanager.h>
@@ -47,6 +48,7 @@
#include <cplusplus/ASTPath.h> #include <cplusplus/ASTPath.h>
#include <cplusplus/FastPreprocessor.h> #include <cplusplus/FastPreprocessor.h>
#include <cplusplus/MatchingText.h> #include <cplusplus/MatchingText.h>
#include <utils/infobar.h> #include <utils/infobar.h>
#include <utils/progressindicator.h> #include <utils/progressindicator.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
@@ -1017,8 +1019,6 @@ static void addRefactoringActions(QMenu *menu, std::unique_ptr<AssistInterface>
class ProgressIndicatorMenuItem : public QWidgetAction class ProgressIndicatorMenuItem : public QWidgetAction
{ {
Q_OBJECT
public: public:
ProgressIndicatorMenuItem(QObject *parent) : QWidgetAction(parent) {} ProgressIndicatorMenuItem(QObject *parent) : QWidgetAction(parent) {}
@@ -1031,7 +1031,7 @@ protected:
QMenu *CppEditorWidget::createRefactorMenu(QWidget *parent) const QMenu *CppEditorWidget::createRefactorMenu(QWidget *parent) const
{ {
auto *menu = new QMenu(tr("&Refactor"), parent); auto *menu = new QMenu(Tr::tr("&Refactor"), parent);
menu->addAction(ActionManager::command(TextEditor::Constants::RENAME_SYMBOL)->action()); menu->addAction(ActionManager::command(TextEditor::Constants::RENAME_SYMBOL)->action());
// ### enable // ### enable
@@ -1411,5 +1411,3 @@ void CppEditorWidget::enableTestMode() { d->inTestMode = true; }
#endif #endif
} // namespace CppEditor } // namespace CppEditor
#include "cppeditorwidget.moc"

View File

@@ -4,6 +4,7 @@
#include "cppfilesettingspage.h" #include "cppfilesettingspage.h"
#include "cppeditorplugin.h" #include "cppeditorplugin.h"
#include "cppeditortr.h"
#include <app/app_version.h> #include <app/app_version.h>
@@ -38,7 +39,7 @@ const char sourceSearchPathsKeyC[] = "SourceSearchPaths";
const char headerPragmaOnceC[] = "HeaderPragmaOnce"; const char headerPragmaOnceC[] = "HeaderPragmaOnce";
const char licenseTemplatePathKeyC[] = "LicenseTemplate"; const char licenseTemplatePathKeyC[] = "LicenseTemplate";
const char *licenseTemplateTemplate = QT_TRANSLATE_NOOP("CppEditor::Internal::CppFileSettingsWidget", const char *licenseTemplateTemplate = QT_TRANSLATE_NOOP("CppEditor",
"/**************************************************************************\n" "/**************************************************************************\n"
"** %1 license header template\n" "** %1 license header template\n"
"** Special keywords: %USER% %DATE% %YEAR%\n" "** Special keywords: %USER% %DATE% %YEAR%\n"
@@ -234,8 +235,6 @@ QString CppFileSettings::licenseTemplate()
class CppFileSettingsWidget final : public Core::IOptionsPageWidget class CppFileSettingsWidget final : public Core::IOptionsPageWidget
{ {
Q_DECLARE_TR_FUNCTIONS(CppEditor::Internal::CppFileSettingsPage)
public: public:
explicit CppFileSettingsWidget(CppFileSettings *settings); explicit CppFileSettingsWidget(CppFileSettings *settings);
@@ -265,29 +264,29 @@ CppFileSettingsWidget::CppFileSettingsWidget(CppFileSettings *settings)
, m_headerSuffixComboBox(new QComboBox) , m_headerSuffixComboBox(new QComboBox)
, m_headerSearchPathsEdit(new QLineEdit) , m_headerSearchPathsEdit(new QLineEdit)
, m_headerPrefixesEdit(new QLineEdit) , m_headerPrefixesEdit(new QLineEdit)
, m_headerPragmaOnceCheckBox(new QCheckBox(tr("Use \"#pragma once\" instead of \"#ifndef\" guards"))) , m_headerPragmaOnceCheckBox(new QCheckBox(Tr::tr("Use \"#pragma once\" instead of \"#ifndef\" guards")))
, m_sourceSuffixComboBox(new QComboBox) , m_sourceSuffixComboBox(new QComboBox)
, m_sourceSearchPathsEdit(new QLineEdit) , m_sourceSearchPathsEdit(new QLineEdit)
, m_sourcePrefixesEdit(new QLineEdit) , m_sourcePrefixesEdit(new QLineEdit)
, m_lowerCaseFileNamesCheckBox(new QCheckBox(tr("&Lower case file names"))) , m_lowerCaseFileNamesCheckBox(new QCheckBox(Tr::tr("&Lower case file names")))
, m_licenseTemplatePathChooser(new PathChooser) , m_licenseTemplatePathChooser(new PathChooser)
{ {
m_headerSearchPathsEdit->setToolTip(tr("Comma-separated list of header paths.\n" m_headerSearchPathsEdit->setToolTip(Tr::tr("Comma-separated list of header paths.\n"
"\n" "\n"
"Paths can be absolute or relative to the directory of the current open document.\n" "Paths can be absolute or relative to the directory of the current open document.\n"
"\n" "\n"
"These paths are used in addition to current directory on Switch Header/Source.")); "These paths are used in addition to current directory on Switch Header/Source."));
m_headerPrefixesEdit->setToolTip(tr("Comma-separated list of header prefixes.\n" m_headerPrefixesEdit->setToolTip(Tr::tr("Comma-separated list of header prefixes.\n"
"\n" "\n"
"These prefixes are used in addition to current file name on Switch Header/Source.")); "These prefixes are used in addition to current file name on Switch Header/Source."));
m_headerPragmaOnceCheckBox->setToolTip( m_headerPragmaOnceCheckBox->setToolTip(
tr("Uses \"#pragma once\" instead of \"#ifndef\" include guards.")); Tr::tr("Uses \"#pragma once\" instead of \"#ifndef\" include guards."));
m_sourceSearchPathsEdit->setToolTip(tr("Comma-separated list of source paths.\n" m_sourceSearchPathsEdit->setToolTip(Tr::tr("Comma-separated list of source paths.\n"
"\n" "\n"
"Paths can be absolute or relative to the directory of the current open document.\n" "Paths can be absolute or relative to the directory of the current open document.\n"
"\n" "\n"
"These paths are used in addition to current directory on Switch Header/Source.")); "These paths are used in addition to current directory on Switch Header/Source."));
m_sourcePrefixesEdit->setToolTip(tr("Comma-separated list of source prefixes.\n" m_sourcePrefixesEdit->setToolTip(Tr::tr("Comma-separated list of source prefixes.\n"
"\n" "\n"
"These prefixes are used in addition to current file name on Switch Header/Source.")); "These prefixes are used in addition to current file name on Switch Header/Source."));
@@ -297,23 +296,23 @@ CppFileSettingsWidget::CppFileSettingsWidget(CppFileSettings *settings)
Group { Group {
title("Headers"), title("Headers"),
Form { Form {
tr("&Suffix:"), m_headerSuffixComboBox, st, br, Tr::tr("&Suffix:"), m_headerSuffixComboBox, st, br,
tr("S&earch paths:"), m_headerSearchPathsEdit, br, Tr::tr("S&earch paths:"), m_headerSearchPathsEdit, br,
tr("&Prefixes:"), m_headerPrefixesEdit, br, Tr::tr("&Prefixes:"), m_headerPrefixesEdit, br,
tr("Include guards"), m_headerPragmaOnceCheckBox Tr::tr("Include guards"), m_headerPragmaOnceCheckBox
} }
}, },
Group { Group {
title("Sources"), title("Sources"),
Form { Form {
tr("S&uffix:"), m_sourceSuffixComboBox, st, br, Tr::tr("S&uffix:"), m_sourceSuffixComboBox, st, br,
tr("Se&arch paths:"), m_sourceSearchPathsEdit, br, Tr::tr("Se&arch paths:"), m_sourceSearchPathsEdit, br,
tr("P&refixes:"), m_sourcePrefixesEdit Tr::tr("P&refixes:"), m_sourcePrefixesEdit
} }
}, },
m_lowerCaseFileNamesCheckBox, m_lowerCaseFileNamesCheckBox,
Form { Form {
tr("License &template:"), m_licenseTemplatePathChooser Tr::tr("License &template:"), m_licenseTemplatePathChooser
}, },
st st
}.attachTo(this); }.attachTo(this);
@@ -334,7 +333,7 @@ CppFileSettingsWidget::CppFileSettingsWidget(CppFileSettings *settings)
} }
m_licenseTemplatePathChooser->setExpectedKind(PathChooser::File); m_licenseTemplatePathChooser->setExpectedKind(PathChooser::File);
m_licenseTemplatePathChooser->setHistoryCompleter(QLatin1String("Cpp.LicenseTemplate.History")); m_licenseTemplatePathChooser->setHistoryCompleter(QLatin1String("Cpp.LicenseTemplate.History"));
m_licenseTemplatePathChooser->addButton(tr("Edit..."), this, [this] { slotEdit(); }); m_licenseTemplatePathChooser->addButton(Tr::tr("Edit..."), this, [this] { slotEdit(); });
setSettings(*m_settings); setSettings(*m_settings);
} }
@@ -404,11 +403,11 @@ void CppFileSettingsWidget::slotEdit()
FilePath path = licenseTemplatePath(); FilePath path = licenseTemplatePath();
if (path.isEmpty()) { if (path.isEmpty()) {
// Pick a file name and write new template, edit with C++ // Pick a file name and write new template, edit with C++
path = FileUtils::getSaveFilePath(this, tr("Choose Location for New License Template File")); path = FileUtils::getSaveFilePath(this, Tr::tr("Choose Location for New License Template File"));
if (path.isEmpty()) if (path.isEmpty())
return; return;
FileSaver saver(path, QIODevice::Text); FileSaver saver(path, QIODevice::Text);
saver.write(tr(licenseTemplateTemplate).arg(Core::Constants::IDE_DISPLAY_NAME).toUtf8()); saver.write(Tr::tr(licenseTemplateTemplate).arg(Core::Constants::IDE_DISPLAY_NAME).toUtf8());
if (!saver.finalize(this)) if (!saver.finalize(this))
return; return;
setLicenseTemplatePath(path); setLicenseTemplatePath(path);
@@ -422,7 +421,7 @@ void CppFileSettingsWidget::slotEdit()
CppFileSettingsPage::CppFileSettingsPage(CppFileSettings *settings) CppFileSettingsPage::CppFileSettingsPage(CppFileSettings *settings)
{ {
setId(Constants::CPP_FILE_SETTINGS_ID); setId(Constants::CPP_FILE_SETTINGS_ID);
setDisplayName(QCoreApplication::translate("CppEditor", Constants::CPP_FILE_SETTINGS_NAME)); setDisplayName(Tr::tr("File Naming"));
setCategory(Constants::CPP_SETTINGS_CATEGORY); setCategory(Constants::CPP_SETTINGS_CATEGORY);
setWidgetCreator([settings] { return new CppFileSettingsWidget(settings); }); setWidgetCreator([settings] { return new CppFileSettingsWidget(settings); });
} }

View File

@@ -5,6 +5,7 @@
#include "cppcodemodelsettings.h" #include "cppcodemodelsettings.h"
#include "cppeditorconstants.h" #include "cppeditorconstants.h"
#include "cppeditortr.h"
#include "cppmodelmanager.h" #include "cppmodelmanager.h"
#include "cpptoolsreuse.h" #include "cpptoolsreuse.h"
#include "cppworkingcopy.h" #include "cppworkingcopy.h"
@@ -55,13 +56,13 @@ QWidget *CppSearchResultFilter::createWidget()
const auto widget = new QWidget; const auto widget = new QWidget;
const auto layout = new QVBoxLayout(widget); const auto layout = new QVBoxLayout(widget);
layout->setContentsMargins(0, 0, 0, 0); layout->setContentsMargins(0, 0, 0, 0);
const auto readsCheckBox = new QCheckBox(Internal::CppFindReferences::tr("Reads")); const auto readsCheckBox = new QCheckBox(Tr::tr("Reads"));
readsCheckBox->setChecked(m_showReads); readsCheckBox->setChecked(m_showReads);
const auto writesCheckBox = new QCheckBox(Internal::CppFindReferences::tr("Writes")); const auto writesCheckBox = new QCheckBox(Tr::tr("Writes"));
writesCheckBox->setChecked(m_showWrites); writesCheckBox->setChecked(m_showWrites);
const auto declsCheckBox = new QCheckBox(Internal::CppFindReferences::tr("Declarations")); const auto declsCheckBox = new QCheckBox(Tr::tr("Declarations"));
declsCheckBox->setChecked(m_showDecls); declsCheckBox->setChecked(m_showDecls);
const auto otherCheckBox = new QCheckBox(Internal::CppFindReferences::tr("Other")); const auto otherCheckBox = new QCheckBox(Tr::tr("Other"));
otherCheckBox->setChecked(m_showOther); otherCheckBox->setChecked(m_showOther);
layout->addWidget(readsCheckBox); layout->addWidget(readsCheckBox);
layout->addWidget(writesCheckBox); layout->addWidget(writesCheckBox);
@@ -376,7 +377,7 @@ void CppFindReferences::findUsages(CPlusPlus::Symbol *symbol,
bool replace) bool replace)
{ {
CPlusPlus::Overview overview; CPlusPlus::Overview overview;
SearchResult *search = SearchResultWindow::instance()->startNewSearch(tr("C++ Usages:"), SearchResult *search = SearchResultWindow::instance()->startNewSearch(Tr::tr("C++ Usages:"),
QString(), QString(),
overview.prettyName(CPlusPlus::LookupContext::fullyQualifiedName(symbol)), overview.prettyName(CPlusPlus::LookupContext::fullyQualifiedName(symbol)),
replace ? SearchResultWindow::SearchAndReplace replace ? SearchResultWindow::SearchAndReplace
@@ -435,8 +436,8 @@ void CppFindReferences::findAll_helper(SearchResult *search, CPlusPlus::Symbol *
workingCopy, context, symbol, categorize); workingCopy, context, symbol, categorize);
createWatcher(result, search); createWatcher(result, search);
FutureProgress *progress = ProgressManager::addTask(result, tr("Searching for Usages"), FutureProgress *progress = ProgressManager::addTask(result, Tr::tr("Searching for Usages"),
CppEditor::Constants::TASK_SEARCH); CppEditor::Constants::TASK_SEARCH);
connect(progress, &FutureProgress::clicked, search, &SearchResult::popup); connect(progress, &FutureProgress::clicked, search, &SearchResult::popup);
} }
@@ -601,8 +602,8 @@ static void searchFinished(SearchResult *search, QFutureWatcher<CPlusPlus::Usage
auto renameCheckBox = qobject_cast<QCheckBox *>(search->additionalReplaceWidget()); auto renameCheckBox = qobject_cast<QCheckBox *>(search->additionalReplaceWidget());
if (renameCheckBox) { if (renameCheckBox) {
renameCheckBox->setText(CppFindReferences::tr("Re&name %n files", nullptr, filesToRename.size())); renameCheckBox->setText(Tr::tr("Re&name %n files", nullptr, filesToRename.size()));
renameCheckBox->setToolTip(CppFindReferences::tr("Files:\n%1").arg(filesToRename.join('\n'))); renameCheckBox->setToolTip(Tr::tr("Files:\n%1").arg(filesToRename.join('\n')));
renameCheckBox->setVisible(true); renameCheckBox->setVisible(true);
} }
} }
@@ -727,7 +728,7 @@ void CppFindReferences::findMacroUses(const CPlusPlus::Macro &macro, const QStri
bool replace) bool replace)
{ {
SearchResult *search = SearchResultWindow::instance()->startNewSearch( SearchResult *search = SearchResultWindow::instance()->startNewSearch(
tr("C++ Macro Usages:"), Tr::tr("C++ Macro Usages:"),
QString(), QString(),
macro.nameToQString(), macro.nameToQString(),
replace ? SearchResultWindow::SearchAndReplace replace ? SearchResultWindow::SearchAndReplace
@@ -769,8 +770,8 @@ void CppFindReferences::findMacroUses(const CPlusPlus::Macro &macro, const QStri
workingCopy, snapshot, macro); workingCopy, snapshot, macro);
createWatcher(result, search); createWatcher(result, search);
FutureProgress *progress = ProgressManager::addTask(result, tr("Searching for Usages"), FutureProgress *progress = ProgressManager::addTask(result, Tr::tr("Searching for Usages"),
CppEditor::Constants::TASK_SEARCH); CppEditor::Constants::TASK_SEARCH);
connect(progress, &FutureProgress::clicked, search, &SearchResult::popup); connect(progress, &FutureProgress::clicked, search, &SearchResult::popup);
} }

View File

@@ -5,6 +5,7 @@
#include "cppcodestylesettings.h" #include "cppcodestylesettings.h"
#include "cppeditorconstants.h" #include "cppeditorconstants.h"
#include "cppeditortr.h"
#include "cppeditorwidget.h" #include "cppeditorwidget.h"
#include "cpplocalsymbols.h" #include "cpplocalsymbols.h"
#include "cppquickfixassistant.h" #include "cppquickfixassistant.h"
@@ -270,7 +271,7 @@ void FunctionDeclDefLink::apply(CppEditorWidget *editor, bool jumpToMatch)
newTargetFile->apply(); newTargetFile->apply();
} else { } else {
ToolTip::show(editor->toolTipPosition(linkSelection), ToolTip::show(editor->toolTipPosition(linkSelection),
tr("Target file was changed, could not apply changes")); Tr::tr("Target file was changed, could not apply changes"));
} }
} }
@@ -305,9 +306,9 @@ void FunctionDeclDefLink::showMarker(CppEditorWidget *editor)
QString message; QString message;
if (targetDeclaration->asFunctionDefinition()) if (targetDeclaration->asFunctionDefinition())
message = tr("Apply changes to definition"); message = Tr::tr("Apply changes to definition");
else else
message = tr("Apply changes to declaration"); message = Tr::tr("Apply changes to declaration");
Core::Command *quickfixCommand = Core::ActionManager::command(TextEditor::Constants::QUICKFIX_THIS); Core::Command *quickfixCommand = Core::ActionManager::command(TextEditor::Constants::QUICKFIX_THIS);
if (quickfixCommand) if (quickfixCommand)

View File

@@ -43,7 +43,6 @@ private:
class FunctionDeclDefLink class FunctionDeclDefLink
{ {
Q_DECLARE_TR_FUNCTIONS(CppEditor::Internal::FunctionDeclDefLink)
Q_DISABLE_COPY(FunctionDeclDefLink) Q_DISABLE_COPY(FunctionDeclDefLink)
FunctionDeclDefLink() = default; FunctionDeclDefLink() = default;
public: public:

View File

@@ -4,13 +4,14 @@
#include "cppincludehierarchy.h" #include "cppincludehierarchy.h"
#include "baseeditordocumentprocessor.h" #include "baseeditordocumentprocessor.h"
#include "editordocumenthandle.h"
#include "cppeditorwidget.h"
#include "cppeditorconstants.h" #include "cppeditorconstants.h"
#include "cppeditordocument.h" #include "cppeditordocument.h"
#include "cppeditorplugin.h" #include "cppeditorplugin.h"
#include "cppeditortr.h"
#include "cppeditorwidget.h"
#include "cppelementevaluator.h" #include "cppelementevaluator.h"
#include "cppmodelmanager.h" #include "cppmodelmanager.h"
#include "editordocumenthandle.h"
#include <coreplugin/editormanager/editormanager.h> #include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/find/itemviewfind.h> #include <coreplugin/find/itemviewfind.h>
@@ -160,9 +161,9 @@ QVariant CppIncludeHierarchyItem::data(int column, int role) const
Q_UNUSED(column) Q_UNUSED(column)
if (role == Qt::DisplayRole) { if (role == Qt::DisplayRole) {
if (isPhony() && childCount() == 0) if (isPhony() && childCount() == 0)
return QString(m_fileName + ' ' + CppIncludeHierarchyModel::tr("(none)")); return QString(m_fileName + ' ' + Tr::tr("(none)"));
if (m_isCyclic) if (m_isCyclic)
return QString(m_fileName + ' ' + CppIncludeHierarchyModel::tr("(cyclic)")); return QString(m_fileName + ' ' + Tr::tr("(cyclic)"));
return m_fileName; return m_fileName;
} }
@@ -224,9 +225,9 @@ void CppIncludeHierarchyModel::buildHierarchy(const FilePath &document)
{ {
m_editorFilePath = document; m_editorFilePath = document;
rootItem()->removeChildren(); rootItem()->removeChildren();
rootItem()->createChild(FilePath::fromPathPart(tr("Includes")), rootItem()->createChild(FilePath::fromPathPart(Tr::tr("Includes")),
CppIncludeHierarchyItem::InIncludes); CppIncludeHierarchyItem::InIncludes);
rootItem()->createChild(FilePath::fromPathPart(tr("Included by")), rootItem()->createChild(FilePath::fromPathPart(Tr::tr("Included by")),
CppIncludeHierarchyItem::InIncludedBy); CppIncludeHierarchyItem::InIncludedBy);
} }
@@ -368,7 +369,7 @@ CppIncludeHierarchyWidget::CppIncludeHierarchyWidget()
m_treeView->setItemDelegate(&m_delegate); m_treeView->setItemDelegate(&m_delegate);
connect(m_treeView, &QAbstractItemView::activated, this, &CppIncludeHierarchyWidget::onItemActivated); connect(m_treeView, &QAbstractItemView::activated, this, &CppIncludeHierarchyWidget::onItemActivated);
m_includeHierarchyInfoLabel = new QLabel(tr("No include hierarchy available"), this); m_includeHierarchyInfoLabel = new QLabel(Tr::tr("No include hierarchy available"), this);
m_includeHierarchyInfoLabel->setAlignment(Qt::AlignCenter); m_includeHierarchyInfoLabel->setAlignment(Qt::AlignCenter);
m_includeHierarchyInfoLabel->setAutoFillBackground(true); m_includeHierarchyInfoLabel->setAutoFillBackground(true);
m_includeHierarchyInfoLabel->setBackgroundRole(QPalette::Base); m_includeHierarchyInfoLabel->setBackgroundRole(QPalette::Base);
@@ -383,7 +384,7 @@ CppIncludeHierarchyWidget::CppIncludeHierarchyWidget()
m_toggleSync = new QToolButton(this); m_toggleSync = new QToolButton(this);
m_toggleSync->setIcon(Utils::Icons::LINK_TOOLBAR.icon()); m_toggleSync->setIcon(Utils::Icons::LINK_TOOLBAR.icon());
m_toggleSync->setCheckable(true); m_toggleSync->setCheckable(true);
m_toggleSync->setToolTip(tr("Synchronize with Editor")); m_toggleSync->setToolTip(Tr::tr("Synchronize with Editor"));
connect(m_toggleSync, &QToolButton::clicked, connect(m_toggleSync, &QToolButton::clicked,
this, &CppIncludeHierarchyWidget::syncFromEditorManager); this, &CppIncludeHierarchyWidget::syncFromEditorManager);
@@ -496,7 +497,7 @@ void CppIncludeHierarchyWidget::syncFromEditorManager()
CppIncludeHierarchyFactory::CppIncludeHierarchyFactory() CppIncludeHierarchyFactory::CppIncludeHierarchyFactory()
{ {
setDisplayName(tr("Include Hierarchy")); setDisplayName(Tr::tr("Include Hierarchy"));
setPriority(800); setPriority(800);
setId(Constants::INCLUDE_HIERARCHY_ID); setId(Constants::INCLUDE_HIERARCHY_ID);
} }

View File

@@ -4,6 +4,7 @@
#include "cppincludesfilter.h" #include "cppincludesfilter.h"
#include "cppeditorconstants.h" #include "cppeditorconstants.h"
#include "cppeditortr.h"
#include "cppmodelmanager.h" #include "cppmodelmanager.h"
#include <cplusplus/CppDocument.h> #include <cplusplus/CppDocument.h>
@@ -98,9 +99,9 @@ CppIncludesFilter::CppIncludesFilter()
setId(Constants::INCLUDES_FILTER_ID); setId(Constants::INCLUDES_FILTER_ID);
setDisplayName(Constants::INCLUDES_FILTER_DISPLAY_NAME); setDisplayName(Constants::INCLUDES_FILTER_DISPLAY_NAME);
setDescription( setDescription(
tr("Matches all files that are included by all C++ files in all projects. Append " Tr::tr("Matches all files that are included by all C++ files in all projects. Append "
"\"+<number>\" or \":<number>\" to jump to the given line number. Append another " "\"+<number>\" or \":<number>\" to jump to the given line number. Append another "
"\"+<number>\" or \":<number>\" to jump to the column number as well.")); "\"+<number>\" or \":<number>\" to jump to the column number as well."));
setDefaultShortcutString("ai"); setDefaultShortcutString("ai");
setDefaultIncludedByDefault(true); setDefaultIncludedByDefault(true);
setPriority(ILocatorFilter::Low); setPriority(ILocatorFilter::Low);

View File

@@ -9,8 +9,6 @@ namespace CppEditor::Internal {
class CppIncludesFilter : public Core::BaseFileFilter class CppIncludesFilter : public Core::BaseFileFilter
{ {
Q_OBJECT
public: public:
CppIncludesFilter(); CppIncludesFilter();

View File

@@ -6,6 +6,7 @@
#include "builtineditordocumentparser.h" #include "builtineditordocumentparser.h"
#include "cppchecksymbols.h" #include "cppchecksymbols.h"
#include "cppeditorconstants.h" #include "cppeditorconstants.h"
#include "cppeditortr.h"
#include "cppsourceprocessor.h" #include "cppsourceprocessor.h"
#include "searchsymbols.h" #include "searchsymbols.h"
@@ -328,7 +329,7 @@ QFuture<void> CppIndexingSupport::refreshSourceFiles(const QSet<QString> &source
m_synchronizer.addFuture(result); m_synchronizer.addFuture(result);
if (mode == CppModelManager::ForcedProgressNotification || sourceFiles.count() > 1) { if (mode == CppModelManager::ForcedProgressNotification || sourceFiles.count() > 1) {
Core::ProgressManager::addTask(result, QCoreApplication::translate("CppEditor::Internal::BuiltinIndexingSupport", "Parsing C/C++ Files"), Core::ProgressManager::addTask(result, Tr::tr("Parsing C/C++ Files"),
CppEditor::Constants::TASK_INDEX); CppEditor::Constants::TASK_INDEX);
} }

View File

@@ -4,6 +4,7 @@
#include "cppinsertvirtualmethods.h" #include "cppinsertvirtualmethods.h"
#include "cppcodestylesettings.h" #include "cppcodestylesettings.h"
#include "cppeditortr.h"
#include "cppquickfixassistant.h" #include "cppquickfixassistant.h"
#include "cpptoolsreuse.h" #include "cpptoolsreuse.h"
#include "functionutils.h" #include "functionutils.h"
@@ -509,8 +510,7 @@ public:
: CppQuickFixOperation(interface, 0) : CppQuickFixOperation(interface, 0)
, m_factory(factory) , m_factory(factory)
{ {
setDescription(QCoreApplication::translate( setDescription(Tr::tr("Insert Virtual Functions of Base Classes"));
"CppEditor::QuickFix", "Insert Virtual Functions of Base Classes"));
const QList<AST *> &path = interface.path(); const QList<AST *> &path = interface.path();
const int pathSize = path.size(); const int pathSize = path.size();
@@ -1008,35 +1008,35 @@ void InsertVirtualMethodsDialog::initGui()
if (m_view) if (m_view)
return; return;
setWindowTitle(tr("Insert Virtual Functions")); setWindowTitle(Tr::tr("Insert Virtual Functions"));
auto globalVerticalLayout = new QVBoxLayout; auto globalVerticalLayout = new QVBoxLayout;
// View // View
QGroupBox *groupBoxView = new QGroupBox(tr("&Functions to insert:"), this); QGroupBox *groupBoxView = new QGroupBox(Tr::tr("&Functions to insert:"), this);
auto groupBoxViewLayout = new QVBoxLayout(groupBoxView); auto groupBoxViewLayout = new QVBoxLayout(groupBoxView);
m_filter = new QLineEdit(this); m_filter = new QLineEdit(this);
m_filter->setClearButtonEnabled(true); m_filter->setClearButtonEnabled(true);
m_filter->setPlaceholderText(tr("Filter")); m_filter->setPlaceholderText(Tr::tr("Filter"));
groupBoxViewLayout->addWidget(m_filter); groupBoxViewLayout->addWidget(m_filter);
m_view = new QTreeView(this); m_view = new QTreeView(this);
m_view->setEditTriggers(QAbstractItemView::NoEditTriggers); m_view->setEditTriggers(QAbstractItemView::NoEditTriggers);
m_view->setHeaderHidden(true); m_view->setHeaderHidden(true);
groupBoxViewLayout->addWidget(m_view); groupBoxViewLayout->addWidget(m_view);
m_hideReimplementedFunctions = m_hideReimplementedFunctions =
new QCheckBox(tr("&Hide reimplemented functions"), this); new QCheckBox(Tr::tr("&Hide reimplemented functions"), this);
groupBoxViewLayout->addWidget(m_hideReimplementedFunctions); groupBoxViewLayout->addWidget(m_hideReimplementedFunctions);
// Insertion options // Insertion options
QGroupBox *groupBoxImplementation = new QGroupBox(tr("&Insertion options:"), this); QGroupBox *groupBoxImplementation = new QGroupBox(Tr::tr("&Insertion options:"), this);
auto groupBoxImplementationLayout = new QVBoxLayout(groupBoxImplementation); auto groupBoxImplementationLayout = new QVBoxLayout(groupBoxImplementation);
m_insertMode = new QComboBox(this); m_insertMode = new QComboBox(this);
m_insertMode->addItem(tr("Insert only declarations"), ModeOnlyDeclarations); m_insertMode->addItem(Tr::tr("Insert only declarations"), ModeOnlyDeclarations);
m_insertMode->addItem(tr("Insert definitions inside class"), ModeInsideClass); m_insertMode->addItem(Tr::tr("Insert definitions inside class"), ModeInsideClass);
m_insertMode->addItem(tr("Insert definitions outside class"), ModeOutsideClass); m_insertMode->addItem(Tr::tr("Insert definitions outside class"), ModeOutsideClass);
m_insertMode->addItem(tr("Insert definitions in implementation file"), ModeImplementationFile); m_insertMode->addItem(Tr::tr("Insert definitions in implementation file"), ModeImplementationFile);
m_virtualKeyword = new QCheckBox(tr("Add \"&virtual\" to function declaration"), this); m_virtualKeyword = new QCheckBox(Tr::tr("Add \"&virtual\" to function declaration"), this);
m_overrideReplacementCheckBox = new QCheckBox( m_overrideReplacementCheckBox = new QCheckBox(
tr("Add \"override\" equivalent to function declaration:"), this); Tr::tr("Add \"override\" equivalent to function declaration:"), this);
m_overrideReplacementComboBox = new QComboBox(this); m_overrideReplacementComboBox = new QComboBox(this);
QSizePolicy sizePolicy = m_overrideReplacementComboBox->sizePolicy(); QSizePolicy sizePolicy = m_overrideReplacementComboBox->sizePolicy();
sizePolicy.setHorizontalPolicy(QSizePolicy::Expanding); sizePolicy.setHorizontalPolicy(QSizePolicy::Expanding);
@@ -1047,7 +1047,7 @@ void InsertVirtualMethodsDialog::initGui()
auto clearUserAddedReplacements = new QAction(this); auto clearUserAddedReplacements = new QAction(this);
clearUserAddedReplacements->setIcon(Utils::Icons::CLEAN_TOOLBAR.icon()); clearUserAddedReplacements->setIcon(Utils::Icons::CLEAN_TOOLBAR.icon());
clearUserAddedReplacements->setText(tr("Clear Added \"override\" Equivalents")); clearUserAddedReplacements->setText(Tr::tr("Clear Added \"override\" Equivalents"));
connect(clearUserAddedReplacements, &QAction::triggered, [this] { connect(clearUserAddedReplacements, &QAction::triggered, [this] {
m_availableOverrideReplacements = defaultOverrideReplacements(); m_availableOverrideReplacements = defaultOverrideReplacements();
updateOverrideReplacementsComboBox(); updateOverrideReplacementsComboBox();
@@ -1116,7 +1116,7 @@ void InsertVirtualMethodsDialog::initData()
if (m_hasImplementationFile) { if (m_hasImplementationFile) {
if (m_insertMode->count() == 3) { if (m_insertMode->count() == 3) {
m_insertMode->addItem(tr("Insert definitions in implementation file"), m_insertMode->addItem(Tr::tr("Insert definitions in implementation file"),
ModeImplementationFile); ModeImplementationFile);
} }
} else { } else {

View File

@@ -537,7 +537,7 @@ void CppModelManager::findUnusedFunctions(const FilePath &folder)
QTC_ASSERT(functionsFilter, return); QTC_ASSERT(functionsFilter, return);
const QPointer<Core::SearchResult> search const QPointer<Core::SearchResult> search
= Core::SearchResultWindow::instance() = Core::SearchResultWindow::instance()
->startNewSearch(tr("Find Unused Functions"), ->startNewSearch(Tr::tr("Find Unused Functions"),
{}, {},
{}, {},
Core::SearchResultWindow::SearchOnly, Core::SearchResultWindow::SearchOnly,
@@ -1253,9 +1253,8 @@ static QSet<QString> filteredFilesRemoved(const QSet<QString> &files, int fileSi
for (const QRegularExpression &rx: std::as_const(regexes)) { for (const QRegularExpression &rx: std::as_const(regexes)) {
QRegularExpressionMatch match = rx.match(filePath.absoluteFilePath().path()); QRegularExpressionMatch match = rx.match(filePath.absoluteFilePath().path());
if (match.hasMatch()) { if (match.hasMatch()) {
const QString msg = QCoreApplication::translate( const QString msg = Tr::tr("C++ Indexer: Skipping file \"%1\" "
"CppIndexer", "because its path matches the ignore pattern.")
"C++ Indexer: Skipping file \"%1\" because its path matches the ignore pattern.")
.arg(filePath.displayName()); .arg(filePath.displayName());
QMetaObject::invokeMethod(Core::MessageManager::instance(), QMetaObject::invokeMethod(Core::MessageManager::instance(),
[msg]() { Core::MessageManager::writeSilently(msg); }); [msg]() { Core::MessageManager::writeSilently(msg); });

View File

@@ -3,8 +3,9 @@
#include "cppoutline.h" #include "cppoutline.h"
#include "cppeditoroutline.h"
#include "cppeditordocument.h" #include "cppeditordocument.h"
#include "cppeditoroutline.h"
#include "cppeditortr.h"
#include "cppmodelmanager.h" #include "cppmodelmanager.h"
#include "cppoutlinemodel.h" #include "cppoutlinemodel.h"
@@ -37,9 +38,9 @@ void CppOutlineTreeView::contextMenuEvent(QContextMenuEvent *event)
QMenu contextMenu; QMenu contextMenu;
QAction *action = contextMenu.addAction(tr("Expand All")); QAction *action = contextMenu.addAction(Tr::tr("Expand All"));
connect(action, &QAction::triggered, this, &QTreeView::expandAll); connect(action, &QAction::triggered, this, &QTreeView::expandAll);
action = contextMenu.addAction(tr("Collapse All")); action = contextMenu.addAction(Tr::tr("Collapse All"));
connect(action, &QAction::triggered, this, &QTreeView::collapseAll); connect(action, &QAction::triggered, this, &QTreeView::collapseAll);
contextMenu.exec(event->globalPos()); contextMenu.exec(event->globalPos());

View File

@@ -31,8 +31,8 @@ public:
switch (role) { switch (role) {
case Qt::DisplayRole: case Qt::DisplayRole:
if (parent()->childCount() > 1) if (parent()->childCount() > 1)
return QString(QT_TRANSLATE_NOOP("CppEditor::OverviewModel", "<Select Symbol>")); return QString(QT_TRANSLATE_NOOP("CppEditor", "<Select Symbol>"));
return QString(QT_TRANSLATE_NOOP("CppEditor::OverviewModel", "<No Symbols>")); return QString(QT_TRANSLATE_NOOP("CppEditor", "<No Symbols>"));
default: default:
return QVariant(); return QVariant();
} }

View File

@@ -3,6 +3,7 @@
#include "cppparsecontext.h" #include "cppparsecontext.h"
#include "cppeditortr.h"
#include "cppeditorwidget.h" #include "cppeditorwidget.h"
#include <QAction> #include <QAction>
@@ -30,12 +31,12 @@ QString ParseContextModel::currentToolTip() const
if (!index.isValid()) if (!index.isValid())
return QString(); return QString();
return tr("<p><b>Active Parse Context</b>:<br/>%1</p>" return Tr::tr("<p><b>Active Parse Context</b>:<br/>%1</p>"
"<p>Multiple parse contexts (set of defines, include paths, and so on) " "<p>Multiple parse contexts (set of defines, include paths, and so on) "
"are available for this file.</p>" "are available for this file.</p>"
"<p>Choose a parse context to set it as the preferred one. " "<p>Choose a parse context to set it as the preferred one. "
"Clear the preference from the context menu.</p>") "Clear the preference from the context menu.</p>")
.arg(data(index, Qt::ToolTipRole).toString()); .arg(data(index, Qt::ToolTipRole).toString());
} }
void ParseContextModel::setPreferred(int index) void ParseContextModel::setPreferred(int index)
@@ -120,7 +121,7 @@ ParseContextWidget::ParseContextWidget(ParseContextModel &parseContextModel, QWi
setSizePolicy(policy); setSizePolicy(policy);
// Set up context menu with a clear action // Set up context menu with a clear action
setContextMenuPolicy(Qt::ActionsContextMenu); setContextMenuPolicy(Qt::ActionsContextMenu);
m_clearPreferredAction = new QAction(tr("Clear Preferred Parse Context"), this); m_clearPreferredAction = new QAction(Tr::tr("Clear Preferred Parse Context"), this);
connect(m_clearPreferredAction, &QAction::triggered, this, [this] { connect(m_clearPreferredAction, &QAction::triggered, this, [this] {
m_parseContextModel.clearPreferred(); m_parseContextModel.clearPreferred();
}); });

View File

@@ -4,6 +4,7 @@
#include "cpppreprocessordialog.h" #include "cpppreprocessordialog.h"
#include "cppeditorconstants.h" #include "cppeditorconstants.h"
#include "cppeditortr.h"
#include "cpptoolsreuse.h" #include "cpptoolsreuse.h"
#include <projectexplorer/session.h> #include <projectexplorer/session.h>
@@ -23,7 +24,7 @@ CppPreProcessorDialog::CppPreProcessorDialog(const FilePath &filePath, QWidget *
, m_filePath(filePath) , m_filePath(filePath)
{ {
resize(400, 300); resize(400, 300);
setWindowTitle(tr("Additional C++ Preprocessor Directives")); setWindowTitle(Tr::tr("Additional C++ Preprocessor Directives"));
const QString key = Constants::EXTRA_PREPROCESSOR_DIRECTIVES + m_filePath.toString(); const QString key = Constants::EXTRA_PREPROCESSOR_DIRECTIVES + m_filePath.toString();
const QString directives = ProjectExplorer::SessionManager::value(key).toString(); const QString directives = ProjectExplorer::SessionManager::value(key).toString();
@@ -38,7 +39,7 @@ CppPreProcessorDialog::CppPreProcessorDialog(const FilePath &filePath, QWidget *
using namespace Layouting; using namespace Layouting;
Column { Column {
tr("Additional C++ Preprocessor Directives for %1:").arg(m_filePath.fileName()), Tr::tr("Additional C++ Preprocessor Directives for %1:").arg(m_filePath.fileName()),
m_editWidget, m_editWidget,
buttonBox, buttonBox,
}.attachTo(this); }.attachTo(this);

View File

@@ -3,6 +3,7 @@
#include "cppprojectinfogenerator.h" #include "cppprojectinfogenerator.h"
#include "cppeditortr.h"
#include "cppprojectfilecategorizer.h" #include "cppprojectfilecategorizer.h"
#include <projectexplorer/headerpath.h> #include <projectexplorer/headerpath.h>
@@ -47,12 +48,12 @@ ProjectInfo::ConstPtr ProjectInfoGenerator::generate()
}); });
}; };
if (m_cToolchainMissing) { if (m_cToolchainMissing) {
showWarning(QCoreApplication::translate("CppEditor", showWarning(Tr::tr(
"The project contains C source files, but the currently active kit " "The project contains C source files, but the currently active kit "
"has no C compiler. The code model will not be fully functional.")); "has no C compiler. The code model will not be fully functional."));
} }
if (m_cxxToolchainMissing) { if (m_cxxToolchainMissing) {
showWarning(QCoreApplication::translate("CppEditor", showWarning(Tr::tr(
"The project contains C++ source files, but the currently active kit " "The project contains C++ source files, but the currently active kit "
"has no C++ compiler. The code model will not be fully functional.")); "has no C++ compiler. The code model will not be fully functional."));
} }

View File

@@ -3,6 +3,7 @@
#include "cppprojectupdater.h" #include "cppprojectupdater.h"
#include "cppeditortr.h"
#include "cppmodelmanager.h" #include "cppmodelmanager.h"
#include "cppprojectinfogenerator.h" #include "cppprojectinfogenerator.h"
#include "generatedcodemodelsupport.h" #include "generatedcodemodelsupport.h"
@@ -102,7 +103,7 @@ void CppProjectUpdater::update(const ProjectUpdateInfo &projectUpdateInfo,
}; };
m_taskTree.reset(new TaskTree(root)); m_taskTree.reset(new TaskTree(root));
auto progress = new Core::TaskProgress(m_taskTree.get()); auto progress = new Core::TaskProgress(m_taskTree.get());
progress->setDisplayName(tr("Preparing C++ Code Model")); progress->setDisplayName(Tr::tr("Preparing C++ Code Model"));
m_taskTree->start(); m_taskTree->start();
} }

View File

@@ -6,6 +6,7 @@
#include "baseeditordocumentprocessor.h" #include "baseeditordocumentprocessor.h"
#include "cppcodestylesettings.h" #include "cppcodestylesettings.h"
#include "cppeditordocument.h" #include "cppeditordocument.h"
#include "cppeditortr.h"
#include "cppeditorwidget.h" #include "cppeditorwidget.h"
#include "cppfunctiondecldeflink.h" #include "cppfunctiondecldeflink.h"
#include "cppinsertvirtualmethods.h" #include "cppinsertvirtualmethods.h"
@@ -332,7 +333,7 @@ public:
QString description() const override QString description() const override
{ {
return QApplication::translate("CppEditor::QuickFix", "Rewrite Using %1").arg(replacement); return Tr::tr("Rewrite Using %1").arg(replacement);
} }
void perform() override void perform() override
@@ -424,9 +425,9 @@ public:
QString description() const override QString description() const override
{ {
if (replacement.isEmpty()) if (replacement.isEmpty())
return QApplication::translate("CppEditor::QuickFix", "Swap Operands"); return Tr::tr("Swap Operands");
else else
return QApplication::translate("CppEditor::QuickFix", "Rewrite Using %1").arg(replacement); return Tr::tr("Rewrite Using %1").arg(replacement);
} }
void perform() override void perform() override
@@ -567,8 +568,7 @@ void RewriteLogicalAnd::match(const CppQuickFixInterface &interface, QuickFixOpe
file->tokenAt(op->pattern->binary_op_token).is(T_AMPER_AMPER) && file->tokenAt(op->pattern->binary_op_token).is(T_AMPER_AMPER) &&
file->tokenAt(op->left->unary_op_token).is(T_EXCLAIM) && file->tokenAt(op->left->unary_op_token).is(T_EXCLAIM) &&
file->tokenAt(op->right->unary_op_token).is(T_EXCLAIM)) { file->tokenAt(op->right->unary_op_token).is(T_EXCLAIM)) {
op->setDescription(QApplication::translate("CppEditor::QuickFix", op->setDescription(Tr::tr("Rewrite Condition Using ||"));
"Rewrite Condition Using ||"));
op->setPriority(index); op->setPriority(index);
result.append(op); result.append(op);
} }
@@ -601,8 +601,7 @@ public:
: CppQuickFixOperation(interface, priority) : CppQuickFixOperation(interface, priority)
, declaration(decl) , declaration(decl)
{ {
setDescription(QApplication::translate("CppEditor::QuickFix", setDescription(Tr::tr("Split Declaration"));
"Split Declaration"));
} }
void perform() override void perform() override
@@ -693,7 +692,7 @@ public:
: CppQuickFixOperation(interface, priority) : CppQuickFixOperation(interface, priority)
, _statement(statement) , _statement(statement)
{ {
setDescription(QApplication::translate("CppEditor::QuickFix", "Add Curly Braces")); setDescription(Tr::tr("Add Curly Braces"));
} }
void perform() override void perform() override
@@ -759,8 +758,7 @@ public:
MoveDeclarationOutOfIfOp(const CppQuickFixInterface &interface) MoveDeclarationOutOfIfOp(const CppQuickFixInterface &interface)
: CppQuickFixOperation(interface) : CppQuickFixOperation(interface)
{ {
setDescription(QApplication::translate("CppEditor::QuickFix", setDescription(Tr::tr("Move Declaration out of Condition"));
"Move Declaration out of Condition"));
reset(); reset();
} }
@@ -834,8 +832,7 @@ public:
MoveDeclarationOutOfWhileOp(const CppQuickFixInterface &interface) MoveDeclarationOutOfWhileOp(const CppQuickFixInterface &interface)
: CppQuickFixOperation(interface) : CppQuickFixOperation(interface)
{ {
setDescription(QApplication::translate("CppEditor::QuickFix", setDescription(Tr::tr("Move Declaration out of Condition"));
"Move Declaration out of Condition"));
reset(); reset();
} }
@@ -920,8 +917,7 @@ public:
, pattern(pattern) , pattern(pattern)
, condition(condition) , condition(condition)
{ {
setDescription(QApplication::translate("CppEditor::QuickFix", setDescription(Tr::tr("Split if Statement"));
"Split if Statement"));
} }
void perform() override void perform() override
@@ -1085,7 +1081,7 @@ static QByteArray charToStringEscapeSequences(const QByteArray &content)
static QString msgQtStringLiteralDescription(const QString &replacement) static QString msgQtStringLiteralDescription(const QString &replacement)
{ {
return QApplication::translate("CppEditor::QuickFix", "Enclose in %1(...)").arg(replacement); return Tr::tr("Enclose in %1(...)").arg(replacement);
} }
static QString stringLiteralReplacement(unsigned actions) static QString stringLiteralReplacement(unsigned actions)
@@ -1256,8 +1252,7 @@ void WrapStringLiteral::match(const CppQuickFixInterface &interface, QuickFixOpe
const QByteArray contents(file->tokenAt(charLiteral->literal_token).identifier->chars()); const QByteArray contents(file->tokenAt(charLiteral->literal_token).identifier->chars());
if (!charToStringEscapeSequences(contents).isEmpty()) { if (!charToStringEscapeSequences(contents).isEmpty()) {
actions = DoubleQuoteAction | ConvertEscapeSequencesToStringAction; actions = DoubleQuoteAction | ConvertEscapeSequencesToStringAction;
description = QApplication::translate("CppEditor::QuickFix", description = Tr::tr("Convert to String Literal");
"Convert to String Literal");
result << new WrapStringLiteralOp(interface, priority, actions, result << new WrapStringLiteralOp(interface, priority, actions,
description, literal); description, literal);
} }
@@ -1271,13 +1266,12 @@ void WrapStringLiteral::match(const CppQuickFixInterface &interface, QuickFixOpe
if (!stringToCharEscapeSequences(contents).isEmpty()) { if (!stringToCharEscapeSequences(contents).isEmpty()) {
actions = EncloseInQLatin1CharAction | SingleQuoteAction actions = EncloseInQLatin1CharAction | SingleQuoteAction
| ConvertEscapeSequencesToCharAction | objectiveCActions; | ConvertEscapeSequencesToCharAction | objectiveCActions;
QString description = QApplication::translate("CppEditor::QuickFix", QString description =
"Convert to Character Literal and Enclose in QLatin1Char(...)"); Tr::tr("Convert to Character Literal and Enclose in QLatin1Char(...)");
result << new WrapStringLiteralOp(interface, priority, actions, result << new WrapStringLiteralOp(interface, priority, actions,
description, literal); description, literal);
actions &= ~EncloseInQLatin1CharAction; actions &= ~EncloseInQLatin1CharAction;
description = QApplication::translate("CppEditor::QuickFix", description = Tr::tr("Convert to Character Literal");
"Convert to Character Literal");
result << new WrapStringLiteralOp(interface, priority, actions, result << new WrapStringLiteralOp(interface, priority, actions,
description, literal); description, literal);
} }
@@ -1310,7 +1304,7 @@ void TranslateStringLiteral::match(const CppQuickFixInterface &interface,
const Name *trName = control->identifier("tr"); const Name *trName = control->identifier("tr");
// Check whether we are in a function: // Check whether we are in a function:
const QString description = QApplication::translate("CppEditor::QuickFix", "Mark as Translatable"); const QString description = Tr::tr("Mark as Translatable");
for (int i = path.size() - 1; i >= 0; --i) { for (int i = path.size() - 1; i >= 0; --i) {
if (FunctionDefinitionAST *definition = path.at(i)->asFunctionDefinition()) { if (FunctionDefinitionAST *definition = path.at(i)->asFunctionDefinition()) {
Function *function = definition->symbol; Function *function = definition->symbol;
@@ -1365,8 +1359,7 @@ public:
, stringLiteral(stringLiteral) , stringLiteral(stringLiteral)
, qlatin1Call(qlatin1Call) , qlatin1Call(qlatin1Call)
{ {
setDescription(QApplication::translate("CppEditor::QuickFix", setDescription(Tr::tr("Convert to Objective-C String Literal"));
"Convert to Objective-C String Literal"));
} }
void perform() override void perform() override
@@ -1510,7 +1503,7 @@ void ConvertNumericLiteral::match(const CppQuickFixInterface &interface, QuickFi
*/ */
const QString replacement = QString::asprintf("0x%lX", value); const QString replacement = QString::asprintf("0x%lX", value);
auto op = new ConvertNumericLiteralOp(interface, start, start + numberLength, replacement); auto op = new ConvertNumericLiteralOp(interface, start, start + numberLength, replacement);
op->setDescription(QApplication::translate("CppEditor::QuickFix", "Convert to Hexadecimal")); op->setDescription(Tr::tr("Convert to Hexadecimal"));
op->setPriority(priority); op->setPriority(priority);
result << op; result << op;
} }
@@ -1527,7 +1520,7 @@ void ConvertNumericLiteral::match(const CppQuickFixInterface &interface, QuickFi
*/ */
const QString replacement = QString::asprintf("0%lo", value); const QString replacement = QString::asprintf("0%lo", value);
auto op = new ConvertNumericLiteralOp(interface, start, start + numberLength, replacement); auto op = new ConvertNumericLiteralOp(interface, start, start + numberLength, replacement);
op->setDescription(QApplication::translate("CppEditor::QuickFix", "Convert to Octal")); op->setDescription(Tr::tr("Convert to Octal"));
op->setPriority(priority); op->setPriority(priority);
result << op; result << op;
} }
@@ -1544,7 +1537,7 @@ void ConvertNumericLiteral::match(const CppQuickFixInterface &interface, QuickFi
*/ */
const QString replacement = QString::asprintf("%lu", value); const QString replacement = QString::asprintf("%lu", value);
auto op = new ConvertNumericLiteralOp(interface, start, start + numberLength, replacement); auto op = new ConvertNumericLiteralOp(interface, start, start + numberLength, replacement);
op->setDescription(QApplication::translate("CppEditor::QuickFix", "Convert to Decimal")); op->setDescription(Tr::tr("Convert to Decimal"));
op->setPriority(priority); op->setPriority(priority);
result << op; result << op;
} }
@@ -1568,7 +1561,7 @@ void ConvertNumericLiteral::match(const CppQuickFixInterface &interface, QuickFi
replacement.append(QString::fromStdString(b.to_string()).remove(re)); replacement.append(QString::fromStdString(b.to_string()).remove(re));
} }
auto op = new ConvertNumericLiteralOp(interface, start, start + numberLength, replacement); auto op = new ConvertNumericLiteralOp(interface, start, start + numberLength, replacement);
op->setDescription(QApplication::translate("CppEditor::QuickFix", "Convert to Binary")); op->setDescription(Tr::tr("Convert to Binary"));
op->setPriority(priority); op->setPriority(priority);
result << op; result << op;
} }
@@ -1587,7 +1580,7 @@ public:
, binaryAST(binaryAST) , binaryAST(binaryAST)
, simpleNameAST(simpleNameAST) , simpleNameAST(simpleNameAST)
{ {
setDescription(QApplication::translate("CppEditor::QuickFix", "Add Local Declaration")); setDescription(Tr::tr("Add Local Declaration"));
} }
void perform() override void perform() override
@@ -1701,7 +1694,7 @@ public:
, m_isAllUpper(name.isUpper()) , m_isAllUpper(name.isUpper())
, m_test(test) , m_test(test)
{ {
setDescription(QApplication::translate("CppEditor::QuickFix", "Convert to Camel Case")); setDescription(Tr::tr("Convert to Camel Case"));
} }
void perform() override void perform() override
@@ -1783,7 +1776,7 @@ AddIncludeForUndefinedIdentifierOp::AddIncludeForUndefinedIdentifierOp(
: CppQuickFixOperation(interface, priority) : CppQuickFixOperation(interface, priority)
, m_include(include) , m_include(include)
{ {
setDescription(QApplication::translate("CppEditor::QuickFix", "Add #include %1").arg(m_include)); setDescription(Tr::tr("Add #include %1").arg(m_include));
} }
void AddIncludeForUndefinedIdentifierOp::perform() void AddIncludeForUndefinedIdentifierOp::perform()
@@ -1801,8 +1794,7 @@ AddForwardDeclForUndefinedIdentifierOp::AddForwardDeclForUndefinedIdentifierOp(
int symbolPos) int symbolPos)
: CppQuickFixOperation(interface, priority), m_className(fqClassName), m_symbolPos(symbolPos) : CppQuickFixOperation(interface, priority), m_className(fqClassName), m_symbolPos(symbolPos)
{ {
setDescription(QApplication::translate("CppEditor::QuickFix", setDescription(Tr::tr("Add forward declaration for %1").arg(m_className));
"Add forward declaration for %1").arg(m_className));
} }
void AddForwardDeclForUndefinedIdentifierOp::perform() void AddForwardDeclForUndefinedIdentifierOp::perform()
@@ -2056,7 +2048,7 @@ void AddIncludeForUndefinedIdentifier::match(const CppQuickFixInterface &interfa
QList<Core::LocatorFilterEntry> matches; QList<Core::LocatorFilterEntry> matches;
const QString currentDocumentFilePath = interface.semanticInfo().doc->filePath().toString(); const QString currentDocumentFilePath = interface.semanticInfo().doc->filePath().toString();
const ProjectExplorer::HeaderPaths headerPaths = relevantHeaderPaths(currentDocumentFilePath); const ProjectExplorer::HeaderPaths headerPaths = relevantHeaderPaths(currentDocumentFilePath);
QList<Utils::FilePath> headers; FilePaths headers;
// Find an include file through the locator // Find an include file through the locator
if (matchName(nameAst->name, &matches, &className)) { if (matchName(nameAst->name, &matches, &className)) {
@@ -2149,11 +2141,9 @@ public:
{ {
QString targetString; QString targetString;
if (target == TargetPrevious) if (target == TargetPrevious)
targetString = QApplication::translate("CppEditor::QuickFix", targetString = Tr::tr("Switch with Previous Parameter");
"Switch with Previous Parameter");
else else
targetString = QApplication::translate("CppEditor::QuickFix", targetString = Tr::tr("Switch with Next Parameter");
"Switch with Next Parameter");
setDescription(targetString); setDescription(targetString);
} }
@@ -2228,11 +2218,10 @@ public:
{ {
QString description; QString description;
if (m_change.operationList().size() == 1) { if (m_change.operationList().size() == 1) {
description = QApplication::translate("CppEditor::QuickFix", description = Tr::tr(
"Reformat to \"%1\"").arg(m_change.operationList().constFirst().text); "Reformat to \"%1\"").arg(m_change.operationList().constFirst().text);
} else { // > 1 } else { // > 1
description = QApplication::translate("CppEditor::QuickFix", description = Tr::tr("Reformat Pointers or References");
"Reformat Pointers or References");
} }
setDescription(description); setDescription(description);
} }
@@ -2395,8 +2384,7 @@ public:
, compoundStatement(compoundStatement) , compoundStatement(compoundStatement)
, values(values) , values(values)
{ {
setDescription(QApplication::translate("CppEditor::QuickFix", setDescription(Tr::tr("Complete Switch Statement"));
"Complete Switch Statement"));
} }
void perform() override void perform() override
@@ -2533,8 +2521,7 @@ public:
, m_xsSpec(xsSpec) , m_xsSpec(xsSpec)
, m_decl(decl) , m_decl(decl)
{ {
setDescription(QCoreApplication::translate("CppEditor::InsertDeclOperation", setDescription(Tr::tr("Add %1 Declaration")
"Add %1 Declaration")
.arg(InsertionPointLocator::accessSpecToString(xsSpec))); .arg(InsertionPointLocator::accessSpecToString(xsSpec)));
} }
@@ -2696,19 +2683,14 @@ public:
const FilePath targetFile = m_loc.isValid() ? m_loc.filePath() : m_targetFilePath; const FilePath targetFile = m_loc.isValid() ? m_loc.filePath() : m_targetFilePath;
const FilePath resolved = targetFile.relativePathFrom(declFile.parentDir()); const FilePath resolved = targetFile.relativePathFrom(declFile.parentDir());
setPriority(2); setPriority(2);
setDescription(QCoreApplication::translate("CppEditor::InsertDefOperation", setDescription(Tr::tr("Add Definition in %1").arg(resolved.displayName()));
"Add Definition in %1")
.arg(resolved.displayName()));
} else if (freeFunction) { } else if (freeFunction) {
setDescription(QCoreApplication::translate("CppEditor::InsertDefOperation", setDescription(Tr::tr("Add Definition Here"));
"Add Definition Here"));
} else if (m_defpos == DefPosInsideClass) { } else if (m_defpos == DefPosInsideClass) {
setDescription(QCoreApplication::translate("CppEditor::InsertDefOperation", setDescription(Tr::tr("Add Definition Inside Class"));
"Add Definition Inside Class"));
} else if (m_defpos == DefPosOutsideClass) { } else if (m_defpos == DefPosOutsideClass) {
setPriority(1); setPriority(1);
setDescription(QCoreApplication::translate("CppEditor::InsertDefOperation", setDescription(Tr::tr("Add Definition Outside Class"));
"Add Definition Outside Class"));
} }
} }
@@ -2959,8 +2941,7 @@ public:
const QString &type) const QString &type)
: CppQuickFixOperation(interface), m_class(theClass), m_member(member), m_type(type) : CppQuickFixOperation(interface), m_class(theClass), m_member(member), m_type(type)
{ {
setDescription(QCoreApplication::translate("CppEditor::Quickfix", setDescription(Tr::tr("Add Class Member \"%1\"").arg(m_member));
"Add Class Member \"%1\"").arg(m_member));
} }
private: private:
@@ -2970,8 +2951,8 @@ private:
if (type.isEmpty()) { if (type.isEmpty()) {
type = QInputDialog::getText( type = QInputDialog::getText(
Core::ICore::dialogParent(), Core::ICore::dialogParent(),
QCoreApplication::translate("CppEditor::Quickfix","Provide the type"), Tr::tr("Provide the type"),
QCoreApplication::translate("CppEditor::Quickfix","Data type:"), Tr::tr("Data type:"),
QLineEdit::Normal); QLineEdit::Normal);
} }
if (type.isEmpty()) if (type.isEmpty())
@@ -3101,15 +3082,14 @@ using MemberFunctionImplSettings = QList<MemberFunctionImplSetting>;
class AddImplementationsDialog : public QDialog class AddImplementationsDialog : public QDialog
{ {
Q_DECLARE_TR_FUNCTIONS(AddImplementationsDialog)
public: public:
AddImplementationsDialog(const QList<Symbol *> &candidates, const Utils::FilePath &implFile) AddImplementationsDialog(const QList<Symbol *> &candidates, const FilePath &implFile)
: QDialog(Core::ICore::dialogParent()), m_candidates(candidates) : QDialog(Core::ICore::dialogParent()), m_candidates(candidates)
{ {
setWindowTitle(tr("Member Function Implementations")); setWindowTitle(Tr::tr("Member Function Implementations"));
const auto defaultImplTargetComboBox = new QComboBox; const auto defaultImplTargetComboBox = new QComboBox;
QStringList implTargetStrings{tr("None"), tr("Inline"), tr("Outside Class")}; QStringList implTargetStrings{Tr::tr("None"), Tr::tr("Inline"), Tr::tr("Outside Class")};
if (!implFile.isEmpty()) if (!implFile.isEmpty())
implTargetStrings.append(implFile.fileName()); implTargetStrings.append(implFile.fileName());
defaultImplTargetComboBox->insertItems(0, implTargetStrings); defaultImplTargetComboBox->insertItems(0, implTargetStrings);
@@ -3121,7 +3101,7 @@ public:
} }
}); });
const auto defaultImplTargetLayout = new QHBoxLayout; const auto defaultImplTargetLayout = new QHBoxLayout;
defaultImplTargetLayout->addWidget(new QLabel(tr("Default implementation location:"))); defaultImplTargetLayout->addWidget(new QLabel(Tr::tr("Default implementation location:")));
defaultImplTargetLayout->addWidget(defaultImplTargetComboBox); defaultImplTargetLayout->addWidget(defaultImplTargetComboBox);
const auto candidatesLayout = new QGridLayout; const auto candidatesLayout = new QGridLayout;
@@ -3149,7 +3129,7 @@ public:
defaultImplTargetComboBox->setCurrentIndex(implTargetStrings.size() - 1); defaultImplTargetComboBox->setCurrentIndex(implTargetStrings.size() - 1);
const auto mainLayout = new QVBoxLayout(this); const auto mainLayout = new QVBoxLayout(this);
mainLayout->addLayout(defaultImplTargetLayout); mainLayout->addLayout(defaultImplTargetLayout);
mainLayout->addWidget(Utils::Layouting::createHr(this)); mainLayout->addWidget(Layouting::createHr(this));
mainLayout->addLayout(candidatesLayout); mainLayout->addLayout(candidatesLayout);
mainLayout->addWidget(buttonBox); mainLayout->addWidget(buttonBox);
} }
@@ -3182,7 +3162,7 @@ public:
InsertDefsOperation(const CppQuickFixInterface &interface) InsertDefsOperation(const CppQuickFixInterface &interface)
: CppQuickFixOperation(interface) : CppQuickFixOperation(interface)
{ {
setDescription(CppQuickFixFactory::tr("Create Implementations for Member Functions")); setDescription(Tr::tr("Create Implementations for Member Functions"));
m_classAST = astForClassOperations(interface); m_classAST = astForClassOperations(interface);
if (!m_classAST) if (!m_classAST)
@@ -3742,38 +3722,37 @@ public:
// of the enum 'GenerateFlag' // of the enum 'GenerateFlag'
int p = 0; int p = 0;
if (possibleFlags & HaveExistingQProperty) { if (possibleFlags & HaveExistingQProperty) {
const auto desc = CppQuickFixFactory::tr("Generate Missing Q_PROPERTY Members"); const QString desc = Tr::tr("Generate Missing Q_PROPERTY Members");
results << new GenerateGetterSetterOp(interface, data, possibleFlags, ++p, desc); results << new GenerateGetterSetterOp(interface, data, possibleFlags, ++p, desc);
} else { } else {
if (possibleFlags & GenerateSetter) { if (possibleFlags & GenerateSetter) {
const auto desc = CppQuickFixFactory::tr("Generate Setter"); const QString desc = Tr::tr("Generate Setter");
results << new GenerateGetterSetterOp(interface, data, GenerateSetter, ++p, desc); results << new GenerateGetterSetterOp(interface, data, GenerateSetter, ++p, desc);
} }
if (possibleFlags & GenerateGetter) { if (possibleFlags & GenerateGetter) {
const auto desc = CppQuickFixFactory::tr("Generate Getter"); const QString desc = Tr::tr("Generate Getter");
results << new GenerateGetterSetterOp(interface, data, GenerateGetter, ++p, desc); results << new GenerateGetterSetterOp(interface, data, GenerateGetter, ++p, desc);
} }
if (possibleFlags & GenerateGetter && possibleFlags & GenerateSetter) { if (possibleFlags & GenerateGetter && possibleFlags & GenerateSetter) {
const auto desc = CppQuickFixFactory::tr("Generate Getter and Setter"); const QString desc = Tr::tr("Generate Getter and Setter");
const auto flags = GenerateGetter | GenerateSetter; const int flags = GenerateGetter | GenerateSetter;
results << new GenerateGetterSetterOp(interface, data, flags, ++p, desc); results << new GenerateGetterSetterOp(interface, data, flags, ++p, desc);
} }
if (possibleFlags & GenerateConstantProperty) { if (possibleFlags & GenerateConstantProperty) {
const auto desc = CppQuickFixFactory::tr( const QString desc = Tr::tr("Generate Constant Q_PROPERTY and Missing Members");
"Generate Constant Q_PROPERTY and Missing Members"); const int flags = possibleFlags & ~(GenerateSetter | GenerateSignal | GenerateReset);
const auto flags = possibleFlags & ~(GenerateSetter | GenerateSignal | GenerateReset);
results << new GenerateGetterSetterOp(interface, data, flags, ++p, desc); results << new GenerateGetterSetterOp(interface, data, flags, ++p, desc);
} }
if (possibleFlags & GenerateProperty) { if (possibleFlags & GenerateProperty) {
if (possibleFlags & GenerateReset) { if (possibleFlags & GenerateReset) {
const auto desc = CppQuickFixFactory::tr( const QString desc = Tr::tr(
"Generate Q_PROPERTY and Missing Members with Reset Function"); "Generate Q_PROPERTY and Missing Members with Reset Function");
const auto flags = possibleFlags & ~GenerateConstantProperty; const int flags = possibleFlags & ~GenerateConstantProperty;
results << new GenerateGetterSetterOp(interface, data, flags, ++p, desc); results << new GenerateGetterSetterOp(interface, data, flags, ++p, desc);
} }
const auto desc = CppQuickFixFactory::tr("Generate Q_PROPERTY and Missing Members"); const QString desc = Tr::tr("Generate Q_PROPERTY and Missing Members");
const auto flags = possibleFlags & ~GenerateConstantProperty & ~GenerateReset; const int flags = possibleFlags & ~GenerateConstantProperty & ~GenerateReset;
results << new GenerateGetterSetterOp(interface, data, flags, ++p, desc); results << new GenerateGetterSetterOp(interface, data, flags, ++p, desc);
} }
} }
@@ -4402,7 +4381,7 @@ public:
}; };
using GetterSetterCandidates = std::vector<MemberInfo>; using GetterSetterCandidates = std::vector<MemberInfo>;
class CandidateTreeItem : public Utils::TreeItem class CandidateTreeItem : public TreeItem
{ {
public: public:
enum Column { enum Column {
@@ -4499,8 +4478,6 @@ private:
class GenerateGettersSettersDialog : public QDialog class GenerateGettersSettersDialog : public QDialog
{ {
Q_DECLARE_TR_FUNCTIONS(GenerateGettersSettersDialog)
static constexpr CandidateTreeItem::Column CheckBoxColumn[4] static constexpr CandidateTreeItem::Column CheckBoxColumn[4]
= {CandidateTreeItem::Column::GetterColumn, = {CandidateTreeItem::Column::GetterColumn,
CandidateTreeItem::Column::SetterColumn, CandidateTreeItem::Column::SetterColumn,
@@ -4513,20 +4490,20 @@ public:
, m_candidates(candidates) , m_candidates(candidates)
{ {
using Flags = GenerateGetterSetterOp::GenerateFlag; using Flags = GenerateGetterSetterOp::GenerateFlag;
setWindowTitle(tr("Getters and Setters")); setWindowTitle(Tr::tr("Getters and Setters"));
const auto model = new Utils::TreeModel<Utils::TreeItem, CandidateTreeItem>(this); const auto model = new TreeModel<TreeItem, CandidateTreeItem>(this);
model->setHeader(QStringList({ model->setHeader(QStringList({
tr("Member"), Tr::tr("Member"),
tr("Getter"), Tr::tr("Getter"),
tr("Setter"), Tr::tr("Setter"),
tr("Signal"), Tr::tr("Signal"),
tr("Reset"), Tr::tr("Reset"),
tr("QProperty"), Tr::tr("QProperty"),
tr("Constant QProperty"), Tr::tr("Constant QProperty"),
})); }));
for (MemberInfo &candidate : m_candidates) for (MemberInfo &candidate : m_candidates)
model->rootItem()->appendChild(new CandidateTreeItem(&candidate)); model->rootItem()->appendChild(new CandidateTreeItem(&candidate));
const auto view = new Utils::BaseTreeView(this); const auto view = new BaseTreeView(this);
view->setModel(model); view->setModel(model);
int optimalWidth = 0; int optimalWidth = 0;
for (int i = 0; i < model->columnCount(QModelIndex{}); ++i) { for (int i = 0; i < model->columnCount(QModelIndex{}); ++i) {
@@ -4566,13 +4543,13 @@ public:
})) { })) {
const Column column = CheckBoxColumn[i]; const Column column = CheckBoxColumn[i];
if (column == Column::GetterColumn) if (column == Column::GetterColumn)
checkBoxes[i] = new QCheckBox(tr("Create getters for all members")); checkBoxes[i] = new QCheckBox(Tr::tr("Create getters for all members"));
else if (column == Column::SetterColumn) else if (column == Column::SetterColumn)
checkBoxes[i] = new QCheckBox(tr("Create setters for all members")); checkBoxes[i] = new QCheckBox(Tr::tr("Create setters for all members"));
else if (column == Column::SignalColumn) else if (column == Column::SignalColumn)
checkBoxes[i] = new QCheckBox(tr("Create signals for all members")); checkBoxes[i] = new QCheckBox(Tr::tr("Create signals for all members"));
else if (column == Column::QPropertyColumn) else if (column == Column::QPropertyColumn)
checkBoxes[i] = new QCheckBox(tr("Create Q_PROPERTY for all members")); checkBoxes[i] = new QCheckBox(Tr::tr("Create Q_PROPERTY for all members"));
createConnections(checkBoxes[i], column); createConnections(checkBoxes[i], column);
} }
@@ -4605,8 +4582,8 @@ public:
}); });
const auto mainLayout = new QVBoxLayout(this); const auto mainLayout = new QVBoxLayout(this);
mainLayout->addWidget(new QLabel(tr("Select the getters and setters " mainLayout->addWidget(new QLabel(Tr::tr("Select the getters and setters "
"to be created."))); "to be created.")));
for (auto checkBox : checkBoxes) { for (auto checkBox : checkBoxes) {
if (checkBox) if (checkBox)
mainLayout->addWidget(checkBox); mainLayout->addWidget(checkBox);
@@ -4631,7 +4608,7 @@ public:
GenerateGettersSettersOperation(const CppQuickFixInterface &interface) GenerateGettersSettersOperation(const CppQuickFixInterface &interface)
: CppQuickFixOperation(interface) : CppQuickFixOperation(interface)
{ {
setDescription(CppQuickFixFactory::tr("Create Getter and Setter Member Functions")); setDescription(Tr::tr("Create Getter and Setter Member Functions"));
m_classAST = astForClassOperations(interface); m_classAST = astForClassOperations(interface);
if (!m_classAST) if (!m_classAST)
@@ -4786,7 +4763,7 @@ public:
, m_relevantDecls(relevantDecls) , m_relevantDecls(relevantDecls)
, m_functionNameGetter(functionNameGetter) , m_functionNameGetter(functionNameGetter)
{ {
setDescription(QCoreApplication::translate("QuickFix::ExtractFunction", "Extract Function")); setDescription(Tr::tr("Extract Function"));
} }
void perform() override void perform() override
@@ -4952,16 +4929,14 @@ public:
ExtractFunctionOptions getOptions() const ExtractFunctionOptions getOptions() const
{ {
QDialog dlg(Core::ICore::dialogParent()); QDialog dlg(Core::ICore::dialogParent());
dlg.setWindowTitle(QCoreApplication::translate("QuickFix::ExtractFunction", dlg.setWindowTitle(Tr::tr("Extract Function Refactoring"));
"Extract Function Refactoring"));
auto layout = new QFormLayout(&dlg); auto layout = new QFormLayout(&dlg);
auto funcNameEdit = new Utils::FancyLineEdit; auto funcNameEdit = new FancyLineEdit;
funcNameEdit->setValidationFunction([](Utils::FancyLineEdit *edit, QString *) { funcNameEdit->setValidationFunction([](FancyLineEdit *edit, QString *) {
return ExtractFunctionOptions::isValidFunctionName(edit->text()); return ExtractFunctionOptions::isValidFunctionName(edit->text());
}); });
layout->addRow(QCoreApplication::translate("QuickFix::ExtractFunction", layout->addRow(Tr::tr("Function name"), funcNameEdit);
"Function name"), funcNameEdit);
auto accessCombo = new QComboBox; auto accessCombo = new QComboBox;
accessCombo->addItem( accessCombo->addItem(
@@ -4982,8 +4957,7 @@ public:
accessCombo->addItem( accessCombo->addItem(
InsertionPointLocator::accessSpecToString(InsertionPointLocator::PrivateSlot), InsertionPointLocator::accessSpecToString(InsertionPointLocator::PrivateSlot),
InsertionPointLocator::PrivateSlot); InsertionPointLocator::PrivateSlot);
layout->addRow(QCoreApplication::translate("QuickFix::ExtractFunction", layout->addRow(Tr::tr("Access"), accessCombo);
"Access"), accessCombo);
auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
QObject::connect(buttonBox, &QDialogButtonBox::accepted, &dlg, &QDialog::accept); QObject::connect(buttonBox, &QDialogButtonBox::accepted, &dlg, &QDialog::accept);
@@ -5424,8 +5398,7 @@ public:
m_literal(literal), m_literal(literal),
m_functionDefinition(function) m_functionDefinition(function)
{ {
setDescription(QApplication::translate("CppEditor::QuickFix", setDescription(Tr::tr("Extract Constant as Function Parameter"));
"Extract Constant as Function Parameter"));
} }
struct FoundDeclaration struct FoundDeclaration
@@ -5691,8 +5664,8 @@ public:
{ {
setDescription( setDescription(
mode == FromPointer mode == FromPointer
? CppQuickFixFactory::tr("Convert to Stack Variable") ? Tr::tr("Convert to Stack Variable")
: CppQuickFixFactory::tr("Convert to Pointer")); : Tr::tr("Convert to Pointer"));
} }
void perform() override void perform() override
@@ -6220,7 +6193,7 @@ void ApplyDeclDefLinkChanges::match(const CppQuickFixInterface &interface,
return; return;
auto op = new ApplyDeclDefLinkOperation(interface, link); auto op = new ApplyDeclDefLinkOperation(interface, link);
op->setDescription(FunctionDeclDefLink::tr("Apply Function Signature Changes")); op->setDescription(Tr::tr("Apply Function Signature Changes"));
result << op; result << op;
} }
@@ -6367,13 +6340,10 @@ public:
, m_headerFilePath(funcDef->symbol->filePath()) , m_headerFilePath(funcDef->symbol->filePath())
{ {
if (m_type == MoveFuncDefRefactoringHelper::MoveOutside) { if (m_type == MoveFuncDefRefactoringHelper::MoveOutside) {
setDescription(QCoreApplication::translate("CppEditor::QuickFix", setDescription(Tr::tr("Move Definition Outside Class"));
"Move Definition Outside Class"));
} else { } else {
const FilePath resolved = m_cppFilePath.relativePathFrom(m_headerFilePath.parentDir()); const FilePath resolved = m_cppFilePath.relativePathFrom(m_headerFilePath.parentDir());
setDescription(QCoreApplication::translate("CppEditor::QuickFix", setDescription(Tr::tr("Move Definition to %1").arg(resolved.displayName()));
"Move Definition to %1")
.arg(resolved.displayName()));
} }
} }
@@ -6463,12 +6433,10 @@ public:
, m_headerFilePath(classDef->symbol->filePath()) , m_headerFilePath(classDef->symbol->filePath())
{ {
if (m_type == MoveFuncDefRefactoringHelper::MoveOutside) { if (m_type == MoveFuncDefRefactoringHelper::MoveOutside) {
setDescription(QCoreApplication::translate("CppEditor::QuickFix", "Move All Function " setDescription(Tr::tr("Definitions Outside Class"));
"Definitions Outside Class"));
} else { } else {
const FilePath resolved = m_cppFilePath.relativePathFrom(m_headerFilePath.parentDir()); const FilePath resolved = m_cppFilePath.relativePathFrom(m_headerFilePath.parentDir());
setDescription(QCoreApplication::translate("CppEditor::QuickFix", setDescription(Tr::tr("Move All Function Definitions to %1")
"Move All Function Definitions to %1")
.arg(resolved.displayName())); .arg(resolved.displayName()));
} }
} }
@@ -6543,13 +6511,10 @@ public:
, m_toRange(toRange) , m_toRange(toRange)
{ {
if (m_toFilePath == m_fromFilePath) { if (m_toFilePath == m_fromFilePath) {
setDescription(QCoreApplication::translate("CppEditor::QuickFix", setDescription(Tr::tr("Move Definition to Class"));
"Move Definition to Class"));
} else { } else {
const FilePath resolved = m_toFilePath.relativePathFrom(m_fromFilePath.parentDir()); const FilePath resolved = m_toFilePath.relativePathFrom(m_fromFilePath.parentDir());
setDescription(QCoreApplication::translate("CppEditor::QuickFix", setDescription(Tr::tr("Move Definition to %1").arg(resolved.displayName()));
"Move Definition to %1")
.arg(resolved.displayName()));
} }
} }
@@ -6725,7 +6690,7 @@ public:
, m_originalName(m_oo.prettyName(m_name)) , m_originalName(m_oo.prettyName(m_name))
, m_file(CppRefactoringChanges(snapshot()).file(filePath())) , m_file(CppRefactoringChanges(snapshot()).file(filePath()))
{ {
setDescription(QApplication::translate("CppEditor::QuickFix", "Assign to Local Variable")); setDescription(Tr::tr("Assign to Local Variable"));
} }
private: private:
@@ -6944,7 +6909,7 @@ public:
, m_expression(expression) , m_expression(expression)
, m_type(type) , m_type(type)
{ {
setDescription(QApplication::translate("CppEditor::QuickFix", "Optimize for-Loop")); setDescription(Tr::tr("Optimize for-Loop"));
} }
void perform() override void perform() override
@@ -7123,11 +7088,9 @@ public:
, m_escape(escape) , m_escape(escape)
{ {
if (m_escape) { if (m_escape) {
setDescription(QApplication::translate("CppEditor::QuickFix", setDescription(Tr::tr("Escape String Literal as UTF-8"));
"Escape String Literal as UTF-8"));
} else { } else {
setDescription(QApplication::translate("CppEditor::QuickFix", setDescription(Tr::tr("Unescape String Literal as UTF-8"));
"Unescape String Literal as UTF-8"));
} }
} }
@@ -7306,8 +7269,7 @@ public:
ConvertQt4ConnectOperation(const CppQuickFixInterface &interface, const ChangeSet &changes) ConvertQt4ConnectOperation(const CppQuickFixInterface &interface, const ChangeSet &changes)
: CppQuickFixOperation(interface, 1), m_changes(changes) : CppQuickFixOperation(interface, 1), m_changes(changes)
{ {
setDescription(QApplication::translate("CppEditor::QuickFix", setDescription(Tr::tr("Convert connect() to Qt 5 Style"));
"Convert connect() to Qt 5 Style"));
} }
private: private:
@@ -7992,15 +7954,13 @@ public:
{ {
const QString name = Overview{}.prettyName(usingDirective->name->name); const QString name = Overview{}.prettyName(usingDirective->name->name);
if (m_removeAllAtGlobalScope) { if (m_removeAllAtGlobalScope) {
setDescription(QApplication::translate( setDescription(Tr::tr(
"CppEditor::QuickFix",
"Remove All Occurrences of \"using namespace %1\" in Global Scope " "Remove All Occurrences of \"using namespace %1\" in Global Scope "
"and Adjust Type Names Accordingly") "and Adjust Type Names Accordingly")
.arg(name)); .arg(name));
} else { } else {
setDescription(QApplication::translate("CppEditor::QuickFix", setDescription(Tr::tr("Remove \"using namespace %1\" and "
"Remove \"using namespace %1\" and " "Adjust Type Names Accordingly")
"Adjust Type Names Accordingly")
.arg(name)); .arg(name));
} }
} }
@@ -8354,13 +8314,13 @@ public:
if (orientation == Qt::Horizontal && role == Qt::DisplayRole) { if (orientation == Qt::Horizontal && role == Qt::DisplayRole) {
switch (section) { switch (section) {
case ShouldInitColumn: case ShouldInitColumn:
return tr("Initialize in Constructor"); return Tr::tr("Initialize in Constructor");
case MemberNameColumn: case MemberNameColumn:
return tr("Member Name"); return Tr::tr("Member Name");
case ParameterNameColumn: case ParameterNameColumn:
return tr("Parameter Name"); return Tr::tr("Parameter Name");
case DefaultValueColumn: case DefaultValueColumn:
return tr("Default Value"); return Tr::tr("Default Value");
} }
} }
return {}; return {};
@@ -8628,7 +8588,7 @@ public:
if (orientation == Qt::Horizontal && role == Qt::DisplayRole) { if (orientation == Qt::Horizontal && role == Qt::DisplayRole) {
switch (section) { switch (section) {
case 0: case 0:
return CppQuickFixFactory::tr("Base Class Constructors"); return Tr::tr("Base Class Constructors");
} }
} }
return {}; return {};
@@ -8651,12 +8611,11 @@ public:
class GenerateConstructorDialog : public QDialog class GenerateConstructorDialog : public QDialog
{ {
Q_DECLARE_TR_FUNCTIONS(GenerateConstructorDialog)
public: public:
GenerateConstructorDialog(ConstructorParams *constructorParamsModel, GenerateConstructorDialog(ConstructorParams *constructorParamsModel,
ParentClassConstructors &constructors) ParentClassConstructors &constructors)
{ {
setWindowTitle(tr("Constructor")); setWindowTitle(Tr::tr("Constructor"));
const auto treeModel = new ParentClassesModel(this, constructors); const auto treeModel = new ParentClassesModel(this, constructors);
const auto treeView = new QTreeView(this); const auto treeView = new QTreeView(this);
@@ -8688,7 +8647,7 @@ public:
connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject); connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
const auto errorLabel = new QLabel( const auto errorLabel = new QLabel(
tr("Parameters without default value must come before parameters with default value.")); Tr::tr("Parameters without default value must come before parameters with default value."));
errorLabel->setStyleSheet("color: #ff0000"); errorLabel->setStyleSheet("color: #ff0000");
errorLabel->setVisible(false); errorLabel->setVisible(false);
QSizePolicy labelSizePolicy = errorLabel->sizePolicy(); QSizePolicy labelSizePolicy = errorLabel->sizePolicy();
@@ -8702,7 +8661,7 @@ public:
}); });
// setup select all/none checkbox // setup select all/none checkbox
QCheckBox *const checkBox = new QCheckBox(tr("Initialize all members")); QCheckBox *const checkBox = new QCheckBox(Tr::tr("Initialize all members"));
checkBox->setChecked(true); checkBox->setChecked(true);
connect(checkBox, &QCheckBox::stateChanged, [model = constructorParamsModel](int state) { connect(checkBox, &QCheckBox::stateChanged, [model = constructorParamsModel](int state) {
if (state != Qt::PartiallyChecked) { if (state != Qt::PartiallyChecked) {
@@ -8739,14 +8698,14 @@ public:
for (auto a : {A::Public, A::Protected, A::Private}) for (auto a : {A::Public, A::Protected, A::Private})
accessCombo->addItem(InsertionPointLocator::accessSpecToString(a), a); accessCombo->addItem(InsertionPointLocator::accessSpecToString(a), a);
const auto row = new QHBoxLayout(); const auto row = new QHBoxLayout();
row->addWidget(new QLabel(tr("Access") + ":")); row->addWidget(new QLabel(Tr::tr("Access") + ":"));
row->addWidget(accessCombo); row->addWidget(accessCombo);
row->addSpacerItem(new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Minimum)); row->addSpacerItem(new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Minimum));
const auto mainLayout = new QVBoxLayout(this); const auto mainLayout = new QVBoxLayout(this);
mainLayout->addWidget( mainLayout->addWidget(
new QLabel(tr("Select the members to be initialized in the constructor.\n" new QLabel(Tr::tr("Select the members to be initialized in the constructor.\n"
"Use drag and drop to change the order of the parameters."))); "Use drag and drop to change the order of the parameters.")));
mainLayout->addLayout(row); mainLayout->addLayout(row);
mainLayout->addWidget(checkBox); mainLayout->addWidget(checkBox);
mainLayout->addWidget(view); mainLayout->addWidget(view);
@@ -8771,7 +8730,7 @@ public:
GenerateConstructorOperation(const CppQuickFixInterface &interface) GenerateConstructorOperation(const CppQuickFixInterface &interface)
: CppQuickFixOperation(interface) : CppQuickFixOperation(interface)
{ {
setDescription(CppQuickFixFactory::tr("Generate Constructor")); setDescription(Tr::tr("Generate Constructor"));
m_classAST = astForClassOperations(interface); m_classAST = astForClassOperations(interface);
if (!m_classAST) if (!m_classAST)

View File

@@ -2,8 +2,12 @@
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "cppquickfixprojectsettings.h" #include "cppquickfixprojectsettings.h"
#include "cppeditorconstants.h" #include "cppeditorconstants.h"
#include "cppeditortr.h"
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <QMessageBox> #include <QMessageBox>
#include <QPushButton> #include <QPushButton>
#include <QSettings> #include <QSettings>
@@ -11,10 +15,11 @@
namespace CppEditor { namespace CppEditor {
namespace Internal { namespace Internal {
using namespace Constants; using namespace Constants;
static const char SETTINGS_FILE_NAME[] = ".cppQuickFix"; const char SETTINGS_FILE_NAME[] = ".cppQuickFix";
static const char USE_GLOBAL_SETTINGS[] = "UseGlobalSettings"; const char USE_GLOBAL_SETTINGS[] = "UseGlobalSettings";
CppQuickFixProjectsSettings::CppQuickFixProjectsSettings(ProjectExplorer::Project *project) CppQuickFixProjectsSettings::CppQuickFixProjectsSettings(ProjectExplorer::Project *project)
{ {
@@ -103,15 +108,15 @@ bool CppQuickFixProjectsSettings::useCustomSettings()
m_settingsFile = defaultLocation; m_settingsFile = defaultLocation;
} else if (m_settingsFile != defaultLocation) { } else if (m_settingsFile != defaultLocation) {
QMessageBox msgBox(Core::ICore::dialogParent()); QMessageBox msgBox(Core::ICore::dialogParent());
msgBox.setText(tr("Quick Fix settings are saved in a file. Existing settings file " msgBox.setText(Tr::tr("Quick Fix settings are saved in a file. Existing settings file "
"\"%1\" found. Should this file be used or a " "\"%1\" found. Should this file be used or a "
"new one be created?") "new one be created?")
.arg(m_settingsFile.toString())); .arg(m_settingsFile.toString()));
QPushButton *cancel = msgBox.addButton(QMessageBox::Cancel); QPushButton *cancel = msgBox.addButton(QMessageBox::Cancel);
cancel->setToolTip(tr("Switch Back to Global Settings")); cancel->setToolTip(Tr::tr("Switch Back to Global Settings"));
QPushButton *useExisting = msgBox.addButton(tr("Use Existing"), QMessageBox::AcceptRole); QPushButton *useExisting = msgBox.addButton(Tr::tr("Use Existing"), QMessageBox::AcceptRole);
useExisting->setToolTip(m_settingsFile.toString()); useExisting->setToolTip(m_settingsFile.toString());
QPushButton *createNew = msgBox.addButton(tr("Create New"), QMessageBox::ActionRole); QPushButton *createNew = msgBox.addButton(Tr::tr("Create New"), QMessageBox::ActionRole);
createNew->setToolTip(defaultLocation.toString()); createNew->setToolTip(defaultLocation.toString());
msgBox.exec(); msgBox.exec();
if (msgBox.clickedButton() == createNew) { if (msgBox.clickedButton() == createNew) {

View File

@@ -4,6 +4,7 @@
#include "cppquickfixprojectsettingswidget.h" #include "cppquickfixprojectsettingswidget.h"
#include "cppeditorconstants.h" #include "cppeditorconstants.h"
#include "cppeditortr.h"
#include "cppquickfixsettingswidget.h" #include "cppquickfixsettingswidget.h"
#include <QFile> #include <QFile>
@@ -55,9 +56,9 @@ void CppQuickFixProjectSettingsWidget::currentItemChanged(bool useGlobalSettings
{ {
if (useGlobalSettings) { if (useGlobalSettings) {
const auto &path = m_projectSettings->filePathOfSettingsFile(); const auto &path = m_projectSettings->filePathOfSettingsFile();
m_pushButton->setToolTip(tr("Custom settings are saved in a file. If you use the " m_pushButton->setToolTip(Tr::tr("Custom settings are saved in a file. If you use the "
"global settings, you can delete that file.")); "global settings, you can delete that file."));
m_pushButton->setText(tr("Delete Custom Settings File")); m_pushButton->setText(Tr::tr("Delete Custom Settings File"));
m_pushButton->setVisible(!path.isEmpty() && path.exists()); m_pushButton->setVisible(!path.isEmpty() && path.exists());
m_projectSettings->useGlobalSettings(); m_projectSettings->useGlobalSettings();
} else /*Custom*/ { } else /*Custom*/ {
@@ -65,8 +66,8 @@ void CppQuickFixProjectSettingsWidget::currentItemChanged(bool useGlobalSettings
setUseGlobalSettings(!m_projectSettings->useCustomSettings()); setUseGlobalSettings(!m_projectSettings->useCustomSettings());
return; return;
} }
m_pushButton->setToolTip(tr("Resets all settings to the global settings.")); m_pushButton->setToolTip(Tr::tr("Resets all settings to the global settings."));
m_pushButton->setText(tr("Reset to Global")); m_pushButton->setText(Tr::tr("Reset to Global"));
m_pushButton->setVisible(true); m_pushButton->setVisible(true);
// otherwise you change the comboBox and exit and have no custom settings: // otherwise you change the comboBox and exit and have no custom settings:
m_projectSettings->saveOwnSettings(); m_projectSettings->saveOwnSettings();

View File

@@ -12,6 +12,7 @@
#include <QRegularExpression> #include <QRegularExpression>
namespace CppEditor { namespace CppEditor {
CppQuickFixSettings::CppQuickFixSettings(bool loadGlobalSettings) CppQuickFixSettings::CppQuickFixSettings(bool loadGlobalSettings)
{ {
setDefaultSettings(); setDefaultSettings();

View File

@@ -4,18 +4,19 @@
#include "cppquickfixsettingspage.h" #include "cppquickfixsettingspage.h"
#include "cppeditorconstants.h" #include "cppeditorconstants.h"
#include "cppeditortr.h"
#include "cppquickfixsettings.h" #include "cppquickfixsettings.h"
#include "cppquickfixsettingswidget.h" #include "cppquickfixsettingswidget.h"
#include <QCoreApplication> #include <QCoreApplication>
#include <QtDebug> #include <QtDebug>
using namespace CppEditor::Internal; namespace CppEditor::Internal {
CppQuickFixSettingsPage::CppQuickFixSettingsPage() CppQuickFixSettingsPage::CppQuickFixSettingsPage()
{ {
setId(Constants::QUICK_FIX_SETTINGS_ID); setId(Constants::QUICK_FIX_SETTINGS_ID);
setDisplayName(QCoreApplication::translate("CppEditor", Constants::QUICK_FIX_SETTINGS_DISPLAY_NAME)); setDisplayName(Tr::tr("CppEditor", Constants::QUICK_FIX_SETTINGS_DISPLAY_NAME));
setCategory(Constants::CPP_SETTINGS_CATEGORY); setCategory(Constants::CPP_SETTINGS_CATEGORY);
} }
@@ -35,7 +36,9 @@ void CppQuickFixSettingsPage::apply()
s->saveAsGlobalSettings(); s->saveAsGlobalSettings();
} }
void CppEditor::Internal::CppQuickFixSettingsPage::finish() void CppQuickFixSettingsPage::finish()
{ {
delete m_widget; delete m_widget;
} }
} // CppEditor::Internal

View File

@@ -2,6 +2,8 @@
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "cppquickfixsettingswidget.h" #include "cppquickfixsettingswidget.h"
#include "cppeditortr.h"
#include "cppquickfixsettings.h" #include "cppquickfixsettings.h"
#include <utils/layoutbuilder.h> #include <utils/layoutbuilder.h>
@@ -48,10 +50,10 @@ LineCountSpinBox::LineCountSpinBox(QWidget *parent)
: QWidget(parent) : QWidget(parent)
{ {
m_checkBox = new QCheckBox; m_checkBox = new QCheckBox;
m_opLabel = new QLabel(QCoreApplication::translate("CppEditor::Internal::CppQuickFixSettingsWidget", "\342\211\245")); m_opLabel = new QLabel(Tr::tr("\342\211\245"));
m_spinBox = new QSpinBox; m_spinBox = new QSpinBox;
m_spinBox->setMinimum(1); m_spinBox->setMinimum(1);
m_unitLabel = new QLabel(QCoreApplication::translate("CppEditor::Internal::CppQuickFixSettingsWidget", "lines")); m_unitLabel = new QLabel(Tr::tr("lines"));
using namespace Layouting; using namespace Layouting;
Row { m_checkBox, m_opLabel, m_spinBox, m_unitLabel, }.attachTo(this, WithoutMargins); Row { m_checkBox, m_opLabel, m_spinBox, m_unitLabel, }.attachTo(this, WithoutMargins);
@@ -103,8 +105,8 @@ CppQuickFixSettingsWidget::CppQuickFixSettingsWidget(QWidget *parent)
return label; return label;
}; };
const QString placeHolderTect = tr("See tool tip for more information"); const QString placeHolderTect = Tr::tr("See tool tip for more information");
const QString toolTip = tr( const QString toolTip = Tr::tr(
R"==(Use <name> for the variable R"==(Use <name> for the variable
Use <camel> for camel case Use <camel> for camel case
Use <snake> for snake case Use <snake> for snake case
@@ -115,7 +117,7 @@ e.g. name = "m_test_foo_":
"set<Camel> => "setTestFoo")=="); "set<Camel> => "setTestFoo")==");
m_lineEdit_getterAttribute = new QLineEdit; m_lineEdit_getterAttribute = new QLineEdit;
m_lineEdit_getterAttribute->setPlaceholderText(tr("For example, [[nodiscard]]")); m_lineEdit_getterAttribute->setPlaceholderText(Tr::tr("For example, [[nodiscard]]"));
m_lineEdit_getterName = new QLineEdit; m_lineEdit_getterName = new QLineEdit;
m_lineEdit_getterName->setPlaceholderText(placeHolderTect); m_lineEdit_getterName->setPlaceholderText(placeHolderTect);
m_lineEdit_getterName->setToolTip(toolTip); m_lineEdit_getterName->setToolTip(toolTip);
@@ -123,34 +125,34 @@ e.g. name = "m_test_foo_":
m_lineEdit_setterName->setPlaceholderText(placeHolderTect); m_lineEdit_setterName->setPlaceholderText(placeHolderTect);
m_lineEdit_setterName->setToolTip(toolTip); m_lineEdit_setterName->setToolTip(toolTip);
m_lineEdit_setterParameter = new QLineEdit; m_lineEdit_setterParameter = new QLineEdit;
m_lineEdit_setterParameter->setPlaceholderText(tr("For example, new<Name>")); m_lineEdit_setterParameter->setPlaceholderText(Tr::tr("For example, new<Name>"));
m_lineEdit_setterParameter->setToolTip(toolTip); m_lineEdit_setterParameter->setToolTip(toolTip);
m_checkBox_setterSlots = new QCheckBox(tr("Setters should be slots")); m_checkBox_setterSlots = new QCheckBox(Tr::tr("Setters should be slots"));
m_lineEdit_resetName = new QLineEdit; m_lineEdit_resetName = new QLineEdit;
m_lineEdit_resetName->setPlaceholderText(tr("Normally reset<Name>")); m_lineEdit_resetName->setPlaceholderText(Tr::tr("Normally reset<Name>"));
m_lineEdit_resetName->setToolTip(toolTip); m_lineEdit_resetName->setToolTip(toolTip);
m_lineEdit_signalName = new QLineEdit; m_lineEdit_signalName = new QLineEdit;
m_lineEdit_signalName->setPlaceholderText(tr("Normally <name>Changed")); m_lineEdit_signalName->setPlaceholderText(Tr::tr("Normally <name>Changed"));
m_lineEdit_signalName->setToolTip(toolTip); m_lineEdit_signalName->setToolTip(toolTip);
m_checkBox_signalWithNewValue = new QCheckBox( m_checkBox_signalWithNewValue = new QCheckBox(
tr("Generate signals with the new value as parameter")); Tr::tr("Generate signals with the new value as parameter"));
m_lineEdit_memberVariableName = new QLineEdit; m_lineEdit_memberVariableName = new QLineEdit;
m_lineEdit_memberVariableName->setPlaceholderText(tr("For example, m_<name>")); m_lineEdit_memberVariableName->setPlaceholderText(Tr::tr("For example, m_<name>"));
m_lineEdit_memberVariableName->setToolTip(toolTip); m_lineEdit_memberVariableName->setToolTip(toolTip);
m_radioButton_generateMissingNamespace = new QRadioButton(tr("Generate missing namespaces")); m_radioButton_generateMissingNamespace = new QRadioButton(Tr::tr("Generate missing namespaces"));
m_radioButton_addUsingnamespace = new QRadioButton(tr("Add \"using namespace ...\"")); m_radioButton_addUsingnamespace = new QRadioButton(Tr::tr("Add \"using namespace ...\""));
m_radioButton_rewriteTypes = new QRadioButton( m_radioButton_rewriteTypes = new QRadioButton(
tr("Rewrite types to match the existing namespaces")); Tr::tr("Rewrite types to match the existing namespaces"));
m_useAutoCheckBox = new QCheckBox(this); m_useAutoCheckBox = new QCheckBox(this);
m_useAutoCheckBox->setToolTip(tr("<html><head/><body><p>Uncheck this to make Qt Creator try to " m_useAutoCheckBox->setToolTip(Tr::tr("<html><head/><body><p>Uncheck this to make Qt Creator try to "
"derive the type of expression in the &quot;Assign to Local " "derive the type of expression in the &quot;Assign to Local "
"Variable&quot; quickfix.</p><p>Note that this might fail for " "Variable&quot; quickfix.</p><p>Note that this might fail for "
"more complex types.</p></body></html>")); "more complex types.</p></body></html>"));
m_useAutoCheckBox->setText(tr("Use type \"auto\" when creating new variables")); m_useAutoCheckBox->setText(Tr::tr("Use type \"auto\" when creating new variables"));
m_groupBox_customTemplate = new QGroupBox(tr("Template")); m_groupBox_customTemplate = new QGroupBox(Tr::tr("Template"));
m_groupBox_customTemplate->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Minimum); m_groupBox_customTemplate->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Minimum);
m_groupBox_customTemplate->setEnabled(false); m_groupBox_customTemplate->setEnabled(false);
m_listWidget_customTemplates = new QListWidget; m_listWidget_customTemplates = new QListWidget;
@@ -158,34 +160,34 @@ e.g. name = "m_test_foo_":
m_listWidget_customTemplates->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Expanding); m_listWidget_customTemplates->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Expanding);
m_lineEdit_customTemplateTypes = new QLineEdit; m_lineEdit_customTemplateTypes = new QLineEdit;
m_lineEdit_customTemplateTypes->setToolTip(tr("Separate the types by comma.")); m_lineEdit_customTemplateTypes->setToolTip(Tr::tr("Separate the types by comma."));
m_lineEdit_customTemplateComparison = new QLineEdit; m_lineEdit_customTemplateComparison = new QLineEdit;
m_lineEdit_customTemplateAssignment = new QLineEdit; m_lineEdit_customTemplateAssignment = new QLineEdit;
m_lineEdit_customTemplateReturnExpression = new QLineEdit; m_lineEdit_customTemplateReturnExpression = new QLineEdit;
m_lineEdit_customTemplateReturnType = new QLineEdit; m_lineEdit_customTemplateReturnType = new QLineEdit;
auto customTemplateLabel = new QLabel(tr("Use <new> and <cur> to access the parameter and " auto customTemplateLabel = new QLabel(Tr::tr("Use <new> and <cur> to access the parameter and "
"current value. Use <type> to access the type and <T> " "current value. Use <type> to access the type and <T> "
"for the template parameter.")); "for the template parameter."));
customTemplateLabel->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding); customTemplateLabel->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
customTemplateLabel->setWordWrap(true); customTemplateLabel->setWordWrap(true);
auto pushButton_addCustomTemplate = new QPushButton; auto pushButton_addCustomTemplate = new QPushButton;
pushButton_addCustomTemplate->setText(tr("Add")); pushButton_addCustomTemplate->setText(Tr::tr("Add"));
m_pushButton_removeCustomTemplate = new QPushButton(tr("Remove")); m_pushButton_removeCustomTemplate = new QPushButton(Tr::tr("Remove"));
m_pushButton_removeCustomTemplate->setEnabled(false); m_pushButton_removeCustomTemplate->setEnabled(false);
m_valueTypes = new QListWidget(this); m_valueTypes = new QListWidget(this);
m_valueTypes->setToolTip(tr("Normally arguments get passed by const reference. If the Type is " m_valueTypes->setToolTip(Tr::tr("Normally arguments get passed by const reference. If the Type is "
"one of the following ones, the argument gets passed by value. " "one of the following ones, the argument gets passed by value. "
"Namespaces and template arguments are removed. The real Type must " "Namespaces and template arguments are removed. The real Type must "
"contain the given Type. For example, \"int\" matches \"int32_t\" " "contain the given Type. For example, \"int\" matches \"int32_t\" "
"but not \"vector<int>\". \"vector\" matches " "but not \"vector<int>\". \"vector\" matches "
"\"std::pmr::vector<int>\" but not " "\"std::pmr::vector<int>\" but not "
"\"std::optional<vector<int>>\"")); "\"std::optional<vector<int>>\""));
auto pushButton_addValueType = new QPushButton(tr("Add")); auto pushButton_addValueType = new QPushButton(Tr::tr("Add"));
auto pushButton_removeValueType = new QPushButton(tr("Remove")); auto pushButton_removeValueType = new QPushButton(Tr::tr("Remove"));
m_returnByConstRefCheckBox = new QCheckBox(tr("Return non-value types by const reference")); m_returnByConstRefCheckBox = new QCheckBox(Tr::tr("Return non-value types by const reference"));
m_returnByConstRefCheckBox->setChecked(false); m_returnByConstRefCheckBox->setChecked(false);
connect(m_listWidget_customTemplates, &QListWidget::currentItemChanged, connect(m_listWidget_customTemplates, &QListWidget::currentItemChanged,
@@ -217,45 +219,45 @@ e.g. name = "m_test_foo_":
using namespace Layouting; using namespace Layouting;
Grid { Grid {
empty, ulLabel(tr("Generate Setters")), ulLabel(tr("Generate Getters")), br, empty, ulLabel(Tr::tr("Generate Setters")), ulLabel(Tr::tr("Generate Getters")), br,
tr("Inside class:"), tr("Default"), tr("Default"), br, Tr::tr("Inside class:"), Tr::tr("Default"), Tr::tr("Default"), br,
tr("Outside class:"), m_lines_setterOutsideClass, m_lines_getterOutsideClass, br, Tr::tr("Outside class:"), m_lines_setterOutsideClass, m_lines_getterOutsideClass, br,
tr("In .cpp file:"), m_lines_setterInCppFile, m_lines_getterInCppFile, br, Tr::tr("In .cpp file:"), m_lines_setterInCppFile, m_lines_getterInCppFile, br,
}.attachTo(functionLocationsGrid, WithoutMargins); }.attachTo(functionLocationsGrid, WithoutMargins);
if (QGridLayout *gl = qobject_cast<QGridLayout*>(functionLocationsGrid->layout())) if (QGridLayout *gl = qobject_cast<QGridLayout*>(functionLocationsGrid->layout()))
gl->setHorizontalSpacing(48); gl->setHorizontalSpacing(48);
Form { Form {
tr("Types:"), m_lineEdit_customTemplateTypes, br, Tr::tr("Types:"), m_lineEdit_customTemplateTypes, br,
tr("Comparison:"), m_lineEdit_customTemplateComparison, br, Tr::tr("Comparison:"), m_lineEdit_customTemplateComparison, br,
tr("Assignment:"), m_lineEdit_customTemplateAssignment, br, Tr::tr("Assignment:"), m_lineEdit_customTemplateAssignment, br,
tr("Return expression:"), m_lineEdit_customTemplateReturnExpression, br, Tr::tr("Return expression:"), m_lineEdit_customTemplateReturnExpression, br,
tr("Return type:"), m_lineEdit_customTemplateReturnType, br, Tr::tr("Return type:"), m_lineEdit_customTemplateReturnType, br,
customTemplateLabel, br, customTemplateLabel, br,
}.attachTo(m_groupBox_customTemplate); }.attachTo(m_groupBox_customTemplate);
Column { Column {
Group { Group {
title(tr("Generated Function Locations")), title(Tr::tr("Generated Function Locations")),
Row { functionLocationsGrid, st, }, Row { functionLocationsGrid, st, },
}, },
Group { Group {
title(tr("Getter Setter Generation Properties")), title(Tr::tr("Getter Setter Generation Properties")),
Form { Form {
tr("Getter attributes:"), m_lineEdit_getterAttribute, br, Tr::tr("Getter attributes:"), m_lineEdit_getterAttribute, br,
tr("Getter name:"), m_lineEdit_getterName, br, Tr::tr("Getter name:"), m_lineEdit_getterName, br,
tr("Setter name:"), m_lineEdit_setterName, br, Tr::tr("Setter name:"), m_lineEdit_setterName, br,
tr("Setter parameter name:"), m_lineEdit_setterParameter, br, Tr::tr("Setter parameter name:"), m_lineEdit_setterParameter, br,
m_checkBox_setterSlots, br, m_checkBox_setterSlots, br,
tr("Reset name:"), m_lineEdit_resetName, br, Tr::tr("Reset name:"), m_lineEdit_resetName, br,
tr("Signal name:"), m_lineEdit_signalName, br, Tr::tr("Signal name:"), m_lineEdit_signalName, br,
m_checkBox_signalWithNewValue, br, m_checkBox_signalWithNewValue, br,
tr("Member variable name:"), m_lineEdit_memberVariableName, br, Tr::tr("Member variable name:"), m_lineEdit_memberVariableName, br,
}, },
}, },
Group { Group {
title(tr("Missing Namespace Handling")), title(Tr::tr("Missing Namespace Handling")),
Form { Form {
m_radioButton_generateMissingNamespace, br, m_radioButton_generateMissingNamespace, br,
m_radioButton_addUsingnamespace, br, m_radioButton_addUsingnamespace, br,
@@ -264,7 +266,7 @@ e.g. name = "m_test_foo_":
}, },
m_useAutoCheckBox, m_useAutoCheckBox,
Group { Group {
title(tr("Custom Getter Setter Templates")), title(Tr::tr("Custom Getter Setter Templates")),
Row { Row {
Column { Column {
m_listWidget_customTemplates, m_listWidget_customTemplates,
@@ -274,7 +276,7 @@ e.g. name = "m_test_foo_":
}, },
}, },
Group { Group {
title(tr("Value types:")), title(Tr::tr("Value types:")),
Row { Row {
m_valueTypes, m_valueTypes,
Column { pushButton_addValueType, pushButton_removeValueType, st, }, Column { pushButton_addValueType, pushButton_removeValueType, st, },

View File

@@ -3,12 +3,13 @@
#include "cppsourceprocessor.h" #include "cppsourceprocessor.h"
#include "cppeditortr.h"
#include "cppmodelmanager.h" #include "cppmodelmanager.h"
#include "cpptoolsreuse.h" #include "cpptoolsreuse.h"
#include <coreplugin/editormanager/editormanager.h> #include <coreplugin/editormanager/editormanager.h>
#include <utils/fileutils.h> #include <utils/filepath.h>
#include <utils/hostosinfo.h> #include <utils/hostosinfo.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <utils/textfileformat.h> #include <utils/textfileformat.h>
@@ -65,16 +66,14 @@ inline QByteArray generateFingerPrint(const QList<CPlusPlus::Macro> &definedMacr
inline Message messageNoSuchFile(Document::Ptr &document, const FilePath &filePath, unsigned line) inline Message messageNoSuchFile(Document::Ptr &document, const FilePath &filePath, unsigned line)
{ {
const QString text = QCoreApplication::translate( const QString text = Tr::tr("%1: No such file or directory").arg(filePath.displayName());
"CppSourceProcessor", "%1: No such file or directory").arg(filePath.displayName());
return Message(Message::Warning, document->filePath(), line, /*column =*/ 0, text); return Message(Message::Warning, document->filePath(), line, /*column =*/ 0, text);
} }
inline Message messageNoFileContents(Document::Ptr &document, const FilePath &filePath, inline Message messageNoFileContents(Document::Ptr &document, const FilePath &filePath,
unsigned line) unsigned line)
{ {
const QString text = QCoreApplication::translate( const QString text = Tr::tr("%1: Could not get file contents").arg(filePath.displayName());
"CppSourceProcessor", "%1: Could not get file contents").arg(filePath.displayName());
return Message(Message::Warning, document->filePath(), line, /*column =*/ 0, text); return Message(Message::Warning, document->filePath(), line, /*column =*/ 0, text);
} }

View File

@@ -9,6 +9,7 @@
#include "cppcompletionassist.h" #include "cppcompletionassist.h"
#include "cppeditorconstants.h" #include "cppeditorconstants.h"
#include "cppeditorplugin.h" #include "cppeditorplugin.h"
#include "cppeditortr.h"
#include "cppfilesettingspage.h" #include "cppfilesettingspage.h"
#include "cpphighlighter.h" #include "cpphighlighter.h"
#include "cppqtstyleindenter.h" #include "cppqtstyleindenter.h"
@@ -344,9 +345,7 @@ bool fileSizeExceedsLimit(const FilePath &filePath, int sizeLimitInMb)
const qint64 fileSizeInMB = filePath.fileSize() / (1000 * 1000); const qint64 fileSizeInMB = filePath.fileSize() / (1000 * 1000);
if (fileSizeInMB > sizeLimitInMb) { if (fileSizeInMB > sizeLimitInMb) {
const QString msg = QCoreApplication::translate( const QString msg = Tr::tr("C++ Indexer: Skipping file \"%1\" because it is too big.")
"CppIndexer",
"C++ Indexer: Skipping file \"%1\" because it is too big.")
.arg(filePath.displayName()); .arg(filePath.displayName());
QMetaObject::invokeMethod(Core::MessageManager::instance(), QMetaObject::invokeMethod(Core::MessageManager::instance(),
@@ -373,9 +372,7 @@ static void addBuiltinConfigs(ClangDiagnosticConfigsModel &model)
// Questionable constructs // Questionable constructs
config = ClangDiagnosticConfig(); config = ClangDiagnosticConfig();
config.setId(Constants::CPP_CLANG_DIAG_CONFIG_QUESTIONABLE); config.setId(Constants::CPP_CLANG_DIAG_CONFIG_QUESTIONABLE);
config.setDisplayName(QCoreApplication::translate( config.setDisplayName(Tr::tr("Checks for questionable constructs"));
"ClangDiagnosticConfigsModel",
"Checks for questionable constructs"));
config.setIsReadOnly(true); config.setIsReadOnly(true);
config.setClangOptions({ config.setClangOptions({
"-Wall", "-Wall",
@@ -388,8 +385,7 @@ static void addBuiltinConfigs(ClangDiagnosticConfigsModel &model)
// Warning flags from build system // Warning flags from build system
config = ClangDiagnosticConfig(); config = ClangDiagnosticConfig();
config.setId(Constants::CPP_CLANG_DIAG_CONFIG_BUILDSYSTEM); config.setId(Constants::CPP_CLANG_DIAG_CONFIG_BUILDSYSTEM);
config.setDisplayName(QCoreApplication::translate("ClangDiagnosticConfigsModel", config.setDisplayName(Tr::tr("Build-system warnings"));
"Build-system warnings"));
config.setIsReadOnly(true); config.setIsReadOnly(true);
config.setClazyMode(ClangDiagnosticConfig::ClazyMode::UseCustomChecks); config.setClazyMode(ClangDiagnosticConfig::ClazyMode::UseCustomChecks);
config.setClangTidyMode(ClangDiagnosticConfig::TidyMode::UseCustomChecks); config.setClangTidyMode(ClangDiagnosticConfig::TidyMode::UseCustomChecks);

View File

@@ -4,6 +4,7 @@
#include "cpptoolssettings.h" #include "cpptoolssettings.h"
#include "cppeditorconstants.h" #include "cppeditorconstants.h"
#include "cppeditortr.h"
#include "cppcodestylepreferences.h" #include "cppcodestylepreferences.h"
#include "cppcodestylepreferencesfactory.h" #include "cppcodestylepreferencesfactory.h"
@@ -61,7 +62,7 @@ CppToolsSettings::CppToolsSettings()
// global code style settings // global code style settings
d->m_globalCodeStyle = new CppCodeStylePreferences(this); d->m_globalCodeStyle = new CppCodeStylePreferences(this);
d->m_globalCodeStyle->setDelegatingPool(pool); d->m_globalCodeStyle->setDelegatingPool(pool);
d->m_globalCodeStyle->setDisplayName(tr("Global", "Settings")); d->m_globalCodeStyle->setDisplayName(Tr::tr("Global", "Settings"));
d->m_globalCodeStyle->setId(idKey); d->m_globalCodeStyle->setId(idKey);
pool->addCodeStyle(d->m_globalCodeStyle); pool->addCodeStyle(d->m_globalCodeStyle);
TextEditorSettings::registerCodeStyle(Constants::CPP_SETTINGS_ID, d->m_globalCodeStyle); TextEditorSettings::registerCodeStyle(Constants::CPP_SETTINGS_ID, d->m_globalCodeStyle);
@@ -95,7 +96,7 @@ CppToolsSettings::CppToolsSettings()
// Qt style // Qt style
auto qtCodeStyle = new CppCodeStylePreferences; auto qtCodeStyle = new CppCodeStylePreferences;
qtCodeStyle->setId("qt"); qtCodeStyle->setId("qt");
qtCodeStyle->setDisplayName(tr("Qt")); qtCodeStyle->setDisplayName(Tr::tr("Qt"));
qtCodeStyle->setReadOnly(true); qtCodeStyle->setReadOnly(true);
TabSettings qtTabSettings; TabSettings qtTabSettings;
qtTabSettings.m_tabPolicy = TabSettings::SpacesOnlyTabPolicy; qtTabSettings.m_tabPolicy = TabSettings::SpacesOnlyTabPolicy;
@@ -108,7 +109,7 @@ CppToolsSettings::CppToolsSettings()
// GNU style // GNU style
auto gnuCodeStyle = new CppCodeStylePreferences; auto gnuCodeStyle = new CppCodeStylePreferences;
gnuCodeStyle->setId("gnu"); gnuCodeStyle->setId("gnu");
gnuCodeStyle->setDisplayName(tr("GNU")); gnuCodeStyle->setDisplayName(Tr::tr("GNU"));
gnuCodeStyle->setReadOnly(true); gnuCodeStyle->setReadOnly(true);
TabSettings gnuTabSettings; TabSettings gnuTabSettings;
gnuTabSettings.m_tabPolicy = TabSettings::MixedTabPolicy; gnuTabSettings.m_tabPolicy = TabSettings::MixedTabPolicy;
@@ -169,7 +170,7 @@ CppToolsSettings::CppToolsSettings()
QVariant v; QVariant v;
v.setValue(legacyCodeStyleSettings); v.setValue(legacyCodeStyleSettings);
ICodeStylePreferences *oldCreator = pool->createCodeStyle( ICodeStylePreferences *oldCreator = pool->createCodeStyle(
"legacy", legacyTabSettings, v, tr("Old Creator")); "legacy", legacyTabSettings, v, Tr::tr("Old Creator"));
// change the current delegate and save // change the current delegate and save
d->m_globalCodeStyle->setCurrentDelegate(oldCreator); d->m_globalCodeStyle->setCurrentDelegate(oldCreator);

View File

@@ -4,6 +4,7 @@
#include "cpptypehierarchy.h" #include "cpptypehierarchy.h"
#include "cppeditorconstants.h" #include "cppeditorconstants.h"
#include "cppeditortr.h"
#include "cppeditorwidget.h" #include "cppeditorwidget.h"
#include "cppeditorplugin.h" #include "cppeditorplugin.h"
#include "cppelementevaluator.h" #include "cppelementevaluator.h"
@@ -84,20 +85,20 @@ void CppTypeHierarchyTreeView::contextMenuEvent(QContextMenuEvent *event)
QMenu contextMenu; QMenu contextMenu;
QAction *action = contextMenu.addAction(tr("Open in Editor")); QAction *action = contextMenu.addAction(Tr::tr("Open in Editor"));
connect(action, &QAction::triggered, this, [this] () { connect(action, &QAction::triggered, this, [this] () {
emit activated(currentIndex()); emit activated(currentIndex());
}); });
action = contextMenu.addAction(tr("Open Type Hierarchy")); action = contextMenu.addAction(Tr::tr("Open Type Hierarchy"));
connect(action, &QAction::triggered, this, [this] () { connect(action, &QAction::triggered, this, [this] () {
emit doubleClicked(currentIndex()); emit doubleClicked(currentIndex());
}); });
contextMenu.addSeparator(); contextMenu.addSeparator();
action = contextMenu.addAction(tr("Expand All")); action = contextMenu.addAction(Tr::tr("Expand All"));
connect(action, &QAction::triggered, this, &QTreeView::expandAll); connect(action, &QAction::triggered, this, &QTreeView::expandAll);
action = contextMenu.addAction(tr("Collapse All")); action = contextMenu.addAction(Tr::tr("Collapse All"));
connect(action, &QAction::triggered, this, &QTreeView::collapseAll); connect(action, &QAction::triggered, this, &QTreeView::collapseAll);
contextMenu.exec(event->globalPos()); contextMenu.exec(event->globalPos());
@@ -182,7 +183,7 @@ void CppTypeHierarchyWidget::perform()
m_futureWatcher.setFuture(QFuture<void>(m_future)); m_futureWatcher.setFuture(QFuture<void>(m_future));
m_synchronizer.addFuture(m_future); m_synchronizer.addFuture(m_future);
Core::ProgressManager::addTask(m_future, tr("Evaluating Type Hierarchy"), "TypeHierarchy"); Core::ProgressManager::addTask(m_future, Tr::tr("Evaluating Type Hierarchy"), "TypeHierarchy");
} }
void CppTypeHierarchyWidget::performFromExpression(const QString &expression, const FilePath &filePath) void CppTypeHierarchyWidget::performFromExpression(const QString &expression, const FilePath &filePath)
@@ -198,7 +199,7 @@ void CppTypeHierarchyWidget::performFromExpression(const QString &expression, co
m_futureWatcher.setFuture(QFuture<void>(m_future)); m_futureWatcher.setFuture(QFuture<void>(m_future));
m_synchronizer.addFuture(m_future); m_synchronizer.addFuture(m_future);
Core::ProgressManager::addTask(m_future, tr("Evaluating Type Hierarchy"), "TypeHierarchy"); Core::ProgressManager::addTask(m_future, Tr::tr("Evaluating Type Hierarchy"), "TypeHierarchy");
} }
void CppTypeHierarchyWidget::displayHierarchy() void CppTypeHierarchyWidget::displayHierarchy()
@@ -224,10 +225,10 @@ void CppTypeHierarchyWidget::displayHierarchy()
m_inspectedClass->setText(cppClass->name); m_inspectedClass->setText(cppClass->name);
m_inspectedClass->setLink(cppClass->link); m_inspectedClass->setLink(cppClass->link);
QStandardItem *bases = new QStandardItem(tr("Bases")); QStandardItem *bases = new QStandardItem(Tr::tr("Bases"));
m_model->invisibleRootItem()->appendRow(bases); m_model->invisibleRootItem()->appendRow(bases);
QStandardItem *selectedItem1 = buildHierarchy(*cppClass, bases, true, &CppClass::bases); QStandardItem *selectedItem1 = buildHierarchy(*cppClass, bases, true, &CppClass::bases);
QStandardItem *derived = new QStandardItem(tr("Derived")); QStandardItem *derived = new QStandardItem(Tr::tr("Derived"));
m_model->invisibleRootItem()->appendRow(derived); m_model->invisibleRootItem()->appendRow(derived);
QStandardItem *selectedItem2 = buildHierarchy(*cppClass, derived, true, &CppClass::derived); QStandardItem *selectedItem2 = buildHierarchy(*cppClass, derived, true, &CppClass::derived);
m_treeView->expandAll(); m_treeView->expandAll();
@@ -263,7 +264,7 @@ QStandardItem *CppTypeHierarchyWidget::buildHierarchy(const CppClass &cppClass,
void CppTypeHierarchyWidget::showNoTypeHierarchyLabel() void CppTypeHierarchyWidget::showNoTypeHierarchyLabel()
{ {
m_infoLabel->setText(tr("No type hierarchy available")); m_infoLabel->setText(Tr::tr("No type hierarchy available"));
m_stackLayout->setCurrentWidget(m_infoLabel); m_stackLayout->setCurrentWidget(m_infoLabel);
} }
@@ -274,7 +275,7 @@ void CppTypeHierarchyWidget::showTypeHierarchy()
void CppTypeHierarchyWidget::showProgress() void CppTypeHierarchyWidget::showProgress()
{ {
m_infoLabel->setText(tr("Evaluating type hierarchy...")); m_infoLabel->setText(Tr::tr("Evaluating type hierarchy..."));
if (!m_progressIndicator) { if (!m_progressIndicator) {
m_progressIndicator = new ProgressIndicator(ProgressIndicatorSize::Large); m_progressIndicator = new ProgressIndicator(ProgressIndicatorSize::Large);
m_progressIndicator->attachToWidget(this); m_progressIndicator->attachToWidget(this);
@@ -326,7 +327,7 @@ void CppTypeHierarchyWidget::onItemDoubleClicked(const QModelIndex &index)
// CppTypeHierarchyFactory // CppTypeHierarchyFactory
CppTypeHierarchyFactory::CppTypeHierarchyFactory() CppTypeHierarchyFactory::CppTypeHierarchyFactory()
{ {
setDisplayName(tr("Type Hierarchy")); setDisplayName(Tr::tr("Type Hierarchy"));
setPriority(700); setPriority(700);
setId(Constants::TYPE_HIERARCHY_ID); setId(Constants::TYPE_HIERARCHY_ID);
} }

View File

@@ -5,6 +5,7 @@
#include "cppvirtualfunctionproposalitem.h" #include "cppvirtualfunctionproposalitem.h"
#include "cppeditortr.h"
#include "cpptoolsreuse.h" #include "cpptoolsreuse.h"
#include "functionutils.h" #include "functionutils.h"
#include "symbolfinder.h" #include "symbolfinder.h"
@@ -93,8 +94,7 @@ public:
QTC_ASSERT(m_params.function, return nullptr); QTC_ASSERT(m_params.function, return nullptr);
auto *hintItem = new VirtualFunctionProposalItem(Utils::Link()); auto *hintItem = new VirtualFunctionProposalItem(Utils::Link());
hintItem->setText(QCoreApplication::translate("VirtualFunctionsAssistProcessor", hintItem->setText(Tr::tr("collecting overrides ..."));
"collecting overrides ..."));
hintItem->setOrder(-1000); hintItem->setOrder(-1000);
QList<AssistProposalItemInterface *> items; QList<AssistProposalItemInterface *> items;

View File

@@ -4,6 +4,7 @@
#include "symbolsfindfilter.h" #include "symbolsfindfilter.h"
#include "cppeditorconstants.h" #include "cppeditorconstants.h"
#include "cppeditortr.h"
#include "cppmodelmanager.h" #include "cppmodelmanager.h"
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
@@ -121,7 +122,7 @@ void SymbolsFindFilter::startSearch(SearchResult *search)
symbolSearcher, &QObject::deleteLater); symbolSearcher, &QObject::deleteLater);
watcher->setFuture(Utils::runAsync(m_manager->sharedThreadPool(), watcher->setFuture(Utils::runAsync(m_manager->sharedThreadPool(),
&SymbolSearcher::runSearch, symbolSearcher)); &SymbolSearcher::runSearch, symbolSearcher));
FutureProgress *progress = ProgressManager::addTask(watcher->future(), tr("Searching for Symbol"), FutureProgress *progress = ProgressManager::addTask(watcher->future(), Tr::tr("Searching for Symbol"),
Core::Constants::TASK_SEARCH); Core::Constants::TASK_SEARCH);
connect(progress, &FutureProgress::clicked, search, &SearchResult::popup); connect(progress, &FutureProgress::clicked, search, &SearchResult::popup);
} }
@@ -203,22 +204,22 @@ void SymbolsFindFilter::onAllTasksFinished(Id type)
QString SymbolsFindFilter::label() const QString SymbolsFindFilter::label() const
{ {
return tr("C++ Symbols:"); return Tr::tr("C++ Symbols:");
} }
QString SymbolsFindFilter::toolTip(FindFlags findFlags) const QString SymbolsFindFilter::toolTip(FindFlags findFlags) const
{ {
QStringList types; QStringList types;
if (m_symbolsToSearch & SymbolSearcher::Classes) if (m_symbolsToSearch & SymbolSearcher::Classes)
types.append(tr("Classes")); types.append(Tr::tr("Classes"));
if (m_symbolsToSearch & SymbolSearcher::Functions) if (m_symbolsToSearch & SymbolSearcher::Functions)
types.append(tr("Functions")); types.append(Tr::tr("Functions"));
if (m_symbolsToSearch & SymbolSearcher::Enums) if (m_symbolsToSearch & SymbolSearcher::Enums)
types.append(tr("Enums")); types.append(Tr::tr("Enums"));
if (m_symbolsToSearch & SymbolSearcher::Declarations) if (m_symbolsToSearch & SymbolSearcher::Declarations)
types.append(tr("Declarations")); types.append(Tr::tr("Declarations"));
return tr("Scope: %1\nTypes: %2\nFlags: %3") return Tr::tr("Scope: %1\nTypes: %2\nFlags: %3")
.arg(searchScope() == SymbolSearcher::SearchGlobal ? tr("All") : tr("Projects"), .arg(searchScope() == SymbolSearcher::SearchGlobal ? Tr::tr("All") : Tr::tr("Projects"),
types.join(", "), types.join(", "),
IFindFilter::descriptionForFindFlags(findFlags)); IFindFilter::descriptionForFindFlags(findFlags));
} }
@@ -235,19 +236,19 @@ SymbolsFindFilterConfigWidget::SymbolsFindFilterConfigWidget(SymbolsFindFilter *
setLayout(layout); setLayout(layout);
layout->setContentsMargins(0, 0, 0, 0); layout->setContentsMargins(0, 0, 0, 0);
auto typeLabel = new QLabel(tr("Types:")); auto typeLabel = new QLabel(Tr::tr("Types:"));
layout->addWidget(typeLabel, 0, 0); layout->addWidget(typeLabel, 0, 0);
m_typeClasses = new QCheckBox(tr("Classes")); m_typeClasses = new QCheckBox(Tr::tr("Classes"));
layout->addWidget(m_typeClasses, 0, 1); layout->addWidget(m_typeClasses, 0, 1);
m_typeMethods = new QCheckBox(tr("Functions")); m_typeMethods = new QCheckBox(Tr::tr("Functions"));
layout->addWidget(m_typeMethods, 0, 2); layout->addWidget(m_typeMethods, 0, 2);
m_typeEnums = new QCheckBox(tr("Enums")); m_typeEnums = new QCheckBox(Tr::tr("Enums"));
layout->addWidget(m_typeEnums, 1, 1); layout->addWidget(m_typeEnums, 1, 1);
m_typeDeclarations = new QCheckBox(tr("Declarations")); m_typeDeclarations = new QCheckBox(Tr::tr("Declarations"));
layout->addWidget(m_typeDeclarations, 1, 2); layout->addWidget(m_typeDeclarations, 1, 2);
// hacks to fix layouting: // hacks to fix layouting:
@@ -265,10 +266,10 @@ SymbolsFindFilterConfigWidget::SymbolsFindFilterConfigWidget(SymbolsFindFilter *
connect(m_typeDeclarations, &QAbstractButton::clicked, connect(m_typeDeclarations, &QAbstractButton::clicked,
this, &SymbolsFindFilterConfigWidget::setState); this, &SymbolsFindFilterConfigWidget::setState);
m_searchProjectsOnly = new QRadioButton(tr("Projects only")); m_searchProjectsOnly = new QRadioButton(Tr::tr("Projects only"));
layout->addWidget(m_searchProjectsOnly, 2, 1); layout->addWidget(m_searchProjectsOnly, 2, 1);
m_searchGlobal = new QRadioButton(tr("All files")); m_searchGlobal = new QRadioButton(Tr::tr("All files"));
layout->addWidget(m_searchGlobal, 2, 2); layout->addWidget(m_searchGlobal, 2, 2);
m_searchGroup = new QButtonGroup(this); m_searchGroup = new QButtonGroup(this);