TextEditor: Tr::tr

Change-Id: I28aa68e25c53c3a4d1c370074d7b3318944dc45a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
hjk
2023-01-17 18:02:43 +01:00
parent 87e5ac7438
commit 17b20e0622
50 changed files with 898 additions and 5749 deletions

View File

@@ -12991,20 +12991,6 @@ Další podrobnosti hledejte v /etc/sysctl.d/10-ptrace.conf
<translation type="obsolete">Zápis o vytvoření pomocné knihovny pro výstup dat o ladění</translation> <translation type="obsolete">Zápis o vytvoření pomocné knihovny pro výstup dat o ladění</translation>
</message> </message>
</context> </context>
<context>
<name>Snippets::Internal::SnippetsPlugin</name>
<message>
<source>Snippets</source>
<translation type="obsolete">Kousky</translation>
</message>
</context>
<context>
<name>Snippets::Internal::SnippetsWindow</name>
<message>
<source>Snippets</source>
<translation type="obsolete">Kousky</translation>
</message>
</context>
<context> <context>
<name>StartExternalDialog</name> <name>StartExternalDialog</name>
<message> <message>
@@ -13485,7 +13471,7 @@ Další podrobnosti hledejte v /etc/sysctl.d/10-ptrace.conf
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::BaseFileFind</name> <name>::TextEditor</name>
<message> <message>
<source>Search</source> <source>Search</source>
<translation>Hledat</translation> <translation>Hledat</translation>
@@ -13494,10 +13480,6 @@ Další podrobnosti hledejte v /etc/sysctl.d/10-ptrace.conf
<source>Aborting replace.</source> <source>Aborting replace.</source>
<translation>Ruší se nahrazování.</translation> <translation>Ruší se nahrazování.</translation>
</message> </message>
<message>
<source>%1 found</source>
<translation type="obsolete">%1 nalezen</translation>
</message>
<message> <message>
<source>List of comma separated wildcard filters</source> <source>List of comma separated wildcard filters</source>
<translation>Seznam filtrů se vzory hledání oddělených čárkou</translation> <translation>Seznam filtrů se vzory hledání oddělených čárkou</translation>
@@ -13510,9 +13492,6 @@ Další podrobnosti hledejte v /etc/sysctl.d/10-ptrace.conf
<source>Use Regular E&amp;xpressions</source> <source>Use Regular E&amp;xpressions</source>
<translation type="obsolete">Používat pravidelně se opakující &amp;výrazy</translation> <translation type="obsolete">Používat pravidelně se opakující &amp;výrazy</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseTextDocument</name>
<message> <message>
<source>untitled</source> <source>untitled</source>
<translation>bez názvu</translation> <translation>bez názvu</translation>
@@ -13525,25 +13504,6 @@ Další podrobnosti hledejte v /etc/sysctl.d/10-ptrace.conf
<source>Opening file</source> <source>Opening file</source>
<translation>Otevírán soubor</translation> <translation>Otevírán soubor</translation>
</message> </message>
<message>
<source>&lt;em&gt;Binary data&lt;/em&gt;</source>
<translation type="obsolete">&lt;em&gt;Binární data&lt;/em&gt;</translation>
</message>
</context>
<context>
<name>TextEditor::BaseTextEditor</name>
<message>
<source>Print Document</source>
<translation type="obsolete">Vytisknout dokument</translation>
</message>
<message>
<source>&lt;b&gt;Error:&lt;/b&gt; Could not decode &quot;%1&quot; with &quot;%2&quot;-encoding. Editing not possible.</source>
<translation type="obsolete">&lt;b&gt;Chyba:&lt;/b&gt; Soubor &quot;%1&quot; se nepodařilo rozluštit s kódováním &quot;%2&quot;. Nelze jej upravovat.</translation>
</message>
<message>
<source>Select Encoding</source>
<translation type="obsolete">Vybrat kódování</translation>
</message>
<message> <message>
<source>Line: %1, Col: %2</source> <source>Line: %1, Col: %2</source>
<translation>Řádek: %1, sloupec: %2</translation> <translation>Řádek: %1, sloupec: %2</translation>
@@ -13552,144 +13512,11 @@ Další podrobnosti hledejte v /etc/sysctl.d/10-ptrace.conf
<source>Line: 9999, Col: 999</source> <source>Line: 9999, Col: 999</source>
<translation>Řádek: 9999, sloupec: 999</translation> <translation>Řádek: 9999, sloupec: 999</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseTextEditorEditable</name>
<message>
<source>Line: %1, Col: %2</source>
<translation type="obsolete">Řádek: %1, sloupec: %2</translation>
</message>
<message>
<source>Line: %1, Col: 999</source>
<translation type="obsolete">Řádek: %1, sloupec: 999</translation>
</message>
</context>
<context>
<name>TextEditor::BehaviorSettingsPage</name>
<message>
<source>Storage</source>
<translation type="obsolete">Ukládání</translation>
</message>
<message>
<source>Removes trailing whitespace on saving.</source>
<translation type="obsolete">Odstraní při ukládání prázdné znaky na konci řádků.</translation>
</message>
<message>
<source>&amp;Clean whitespace</source>
<translation type="obsolete">&amp;Vyčistit prázdné znaky</translation>
</message>
<message>
<source>Clean whitespace in entire document instead of only for changed parts.</source>
<translation type="obsolete">Vyčistí prázdné znaky v celém dokumentu a nejen ve změněných částech.</translation>
</message>
<message>
<source>In entire &amp;document</source>
<translation type="obsolete">V celém &amp;dokumentu</translation>
</message>
<message>
<source>Correct leading whitespace according to tab settings.</source>
<translation type="obsolete">Opraví prázdné znaky na začátku řádků podle nastavení zarážek.</translation>
</message>
<message>
<source>Clean indentation</source>
<translation type="obsolete">Opravit odsazení</translation>
</message>
<message>
<source>&amp;Ensure newline at end of file</source>
<translation type="obsolete">&amp;Doplnit nový řádek na konci souboru</translation>
</message>
<message>
<source>Tabs and Indentation</source>
<translation type="obsolete">Zarážky odsazení</translation>
</message>
<message>
<source>Ta&amp;b size:</source>
<translation type="obsolete">Šířka &amp;zarážky:</translation>
</message>
<message>
<source>&amp;Indent size:</source>
<translation type="obsolete">&amp;Velikost odsazení:</translation>
</message>
<message>
<source>Backspace will go back one indentation level instead of one space.</source>
<translation type="obsolete">Zpětná klávesa (Backspace) jde zpět o jednu stupeň odsazení. Sleduje tedy hloubku odsazení místo toho, aby smazala jen jeden znak.</translation>
</message>
<message>
<source>&amp;Backspace follows indentation</source>
<translation type="obsolete">&amp;Zpětná klávesa sleduje hloubku odsazení</translation>
</message>
<message>
<source>Insert &amp;spaces instead of tabs</source>
<translation type="obsolete">Vložit místo zarážek prázdné &amp;znaky (mezery)</translation>
</message>
<message>
<source>Enable automatic &amp;indentation</source>
<translation type="obsolete">Povolit automatické &amp;odsazení</translation>
</message>
<message>
<source>Tab key performs auto-indent:</source>
<translation type="obsolete">Klávesa pro zarážku provede automatické odsazení:</translation>
</message>
<message>
<source>Never</source>
<translation type="obsolete">Nikdy</translation>
</message>
<message>
<source>Always</source>
<translation type="obsolete">Vždy</translation>
</message>
<message>
<source>In leading white space</source>
<translation type="obsolete">Pouze v prázdných znacích (mezerách) na začátku řádku</translation>
</message>
<message>
<source>Automatically determine based on the nearest indented line (previous line preferred over next line)</source>
<translation type="obsolete">Automaticky určit založeno na nejbližším odsazeném řádku (předchozí řádek upřednostňován před dalším řádkem)</translation>
</message>
<message>
<source>Based on the surrounding lines</source>
<translation type="obsolete">Založeno na okolních řádcích</translation>
</message>
<message>
<source>Block indentation style:</source>
<translation type="obsolete">Styl odsazení bloku:</translation>
</message>
<message>
<source>Exclude Braces</source>
<translation type="obsolete">Vyloučit závorky</translation>
</message>
<message>
<source>Include Braces</source>
<translation type="obsolete">Zahrnout závorky</translation>
</message>
<message>
<source>GNU Style</source>
<translation type="obsolete">Styl GNU</translation>
</message>
<message>
<source>In Leading White Space</source>
<translation type="obsolete">Pouze v prázdném místu na začátku řádku</translation>
</message>
<message>
<source>Mouse</source>
<translation type="obsolete">Myš</translation>
</message>
<message>
<source>Enable &amp;mouse navigation</source>
<translation type="obsolete">Povolit navádění &amp;myší</translation>
</message>
<message>
<source>Enable scroll &amp;wheel zooming</source>
<translation type="obsolete">Povolit přibližování a oddalování pomocí &amp;kolečka myši</translation>
</message>
<message> <message>
<source>Global</source> <source>Global</source>
<comment>Settings</comment> <comment>Settings</comment>
<translation>Celkové</translation> <translation>Celkové</translation>
</message> </message>
</context>
<context>
<name>TextEditor::DisplaySettingsPage</name>
<message> <message>
<source>Animate matching parentheses</source> <source>Animate matching parentheses</source>
<translation type="obsolete">Rozhýbat odpovídající závorky</translation> <translation type="obsolete">Rozhýbat odpovídající závorky</translation>
@@ -13698,17 +13525,10 @@ Další podrobnosti hledejte v /etc/sysctl.d/10-ptrace.conf
<source>Navigation</source> <source>Navigation</source>
<translation type="obsolete">Navedení</translation> <translation type="obsolete">Navedení</translation>
</message> </message>
<message>
<source>Enable &amp;mouse navigation</source>
<translation type="obsolete">Povolit navádění &amp;myší</translation>
</message>
<message> <message>
<source>Mark text changes</source> <source>Mark text changes</source>
<translation type="obsolete">Vyznačit textové změny</translation> <translation type="obsolete">Vyznačit textové změny</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FontSettingsPage</name>
<message> <message>
<source>Font &amp; Colors</source> <source>Font &amp; Colors</source>
<translation type="obsolete">Písmo &amp; barvy</translation> <translation type="obsolete">Písmo &amp; barvy</translation>
@@ -13757,9 +13577,6 @@ Další podrobnosti hledejte v /etc/sysctl.d/10-ptrace.conf
<source>Discard</source> <source>Discard</source>
<translation>Zahodit</translation> <translation>Zahodit</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::CodecSelector</name>
<message> <message>
<source>Text Encoding</source> <source>Text Encoding</source>
<translation>Kódování textu</translation> <translation>Kódování textu</translation>
@@ -13786,9 +13603,6 @@ Zdá se, že následující kódování odpovídají souboru:</translation>
<source>Save with Encoding</source> <source>Save with Encoding</source>
<translation>Uložit s kódováním</translation> <translation>Uložit s kódováním</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FindInCurrentFile</name>
<message> <message>
<source>Current File</source> <source>Current File</source>
<translation>Nynější soubor</translation> <translation>Nynější soubor</translation>
@@ -13803,36 +13617,6 @@ Zdá se, že následující kódování odpovídají souboru:</translation>
<translation>Souborová cesta: %1 <translation>Souborová cesta: %1
%2</translation> %2</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FindInFiles</name>
<message>
<source>Files on Disk</source>
<translation type="obsolete">Soubory na nosiči dat</translation>
</message>
<message>
<source>Files on File System</source>
<translation type="obsolete">Soubory v souborovém systému</translation>
</message>
<message>
<source>&amp;Directory:</source>
<translation type="obsolete">&amp;Adresář:</translation>
</message>
<message>
<source>&amp;Browse</source>
<translation type="obsolete">&amp;Procházet</translation>
</message>
<message>
<source>File &amp;pattern:</source>
<translation type="obsolete">&amp;Vzor hledání pro názvy souborů:</translation>
</message>
<message>
<source>Directory to search</source>
<translation type="obsolete">Adresář k prohledání</translation>
</message>
</context>
<context>
<name>TextEditor::FontSettingsPageWidget</name>
<message> <message>
<source>Font</source> <source>Font</source>
<translation>Písmo</translation> <translation>Písmo</translation>
@@ -13857,10 +13641,6 @@ Zdá se, že následující kódování odpovídají souboru:</translation>
<source>Copy...</source> <source>Copy...</source>
<translation>Kopírovat...</translation> <translation>Kopírovat...</translation>
</message> </message>
<message>
<source>Delete</source>
<translation>Smazat</translation>
</message>
<message> <message>
<source>%</source> <source>%</source>
<translation>%</translation> <translation>%</translation>
@@ -13869,9 +13649,6 @@ Zdá se, že následující kódování odpovídají souboru:</translation>
<source>Zoom:</source> <source>Zoom:</source>
<translation>Zvětšení:</translation> <translation>Zvětšení:</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::LineNumberFilter</name>
<message> <message>
<source>Line in current document</source> <source>Line in current document</source>
<translation type="obsolete">Řádek v nynějším dokumentu</translation> <translation type="obsolete">Řádek v nynějším dokumentu</translation>
@@ -13892,9 +13669,6 @@ Zdá se, že následující kódování odpovídají souboru:</translation>
<source>Line in Current Document</source> <source>Line in Current Document</source>
<translation>Řádek v nynějším dokumentu</translation> <translation>Řádek v nynějším dokumentu</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::TextEditorPlugin</name>
<message> <message>
<source>Creates a text file (.txt).</source> <source>Creates a text file (.txt).</source>
<translation type="obsolete">Vytvoří textový soubor (.txt).</translation> <translation type="obsolete">Vytvoří textový soubor (.txt).</translation>
@@ -13963,9 +13737,6 @@ Zdá se, že následující kódování odpovídají souboru:</translation>
<source>Current document&apos;s font size in points.</source> <source>Current document&apos;s font size in points.</source>
<translation>Velikost písma v nynějším dokumentu.</translation> <translation>Velikost písma v nynějším dokumentu.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorActionHandler</name>
<message> <message>
<source>&amp;Undo</source> <source>&amp;Undo</source>
<translation>&amp;Zpět</translation> <translation>&amp;Zpět</translation>
@@ -14526,9 +14297,6 @@ Zdá se, že následující kódování odpovídají souboru:</translation>
<source>Ctrl+Alt+Down</source> <source>Ctrl+Alt+Down</source>
<translation>Ctrl+Alt+Down</translation> <translation>Ctrl+Alt+Down</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorSettings</name>
<message> <message>
<source>Text</source> <source>Text</source>
<translation>Text</translation> <translation>Text</translation>
@@ -14977,10 +14745,6 @@ Nepoužije se na mezeru v poznámkách a řetězcích.</translation>
<source>Diff Location</source> <source>Diff Location</source>
<translation>Porovnávané umístění</translation> <translation>Porovnávané umístění</translation>
</message> </message>
<message>
<source>Text Editor</source>
<translation type="obsolete">Textový editor</translation>
</message>
<message> <message>
<source>Behavior</source> <source>Behavior</source>
<translation>Chování</translation> <translation>Chování</translation>
@@ -16589,7 +16353,7 @@ Toho se dosáhne vložením této zkratky v zadávacím poli vyhledávače, nás
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::ColorSchemeEdit</name> <name>::TextEditor</name>
<message> <message>
<source>Bold</source> <source>Bold</source>
<translation>Tučné</translation> <translation>Tučné</translation>
@@ -19265,14 +19029,11 @@ S60 emulator run configuration default display name, %1 is base pro-File name</e
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::ColorScheme</name> <name>::TextEditor</name>
<message> <message>
<source>Not a color scheme file.</source> <source>Not a color scheme file.</source>
<translation>Není souborem znázornění barev.</translation> <translation>Není souborem znázornění barev.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FontSettings</name>
<message> <message>
<source>Customized</source> <source>Customized</source>
<translation>Uživatelsky stanovený</translation> <translation>Uživatelsky stanovený</translation>
@@ -28918,169 +28679,15 @@ Vyžaduje Qt 4.7.4 nebo novější, a soubor součástek nainstalovaný pro tuto
</message> </message>
</context> </context>
<context> <context>
<name>BehaviorSettingsWidget</name> <name>::TextEditor</name>
<message>
<source>Cleanup actions which are automatically performed right before the file is saved to disk.</source>
<translation type="obsolete">Opravy, které se automaticky provádějí bezprostředně před uložením souboru na disk.</translation>
</message>
<message>
<source>Cleanups Upon Saving</source>
<translation type="obsolete">Opravy při uložení</translation>
</message>
<message>
<source>Removes trailing whitespace upon saving.</source>
<translation type="obsolete">Odstraní při ukládání prázdné znaky na konci řádků.</translation>
</message>
<message>
<source>&amp;Clean whitespace</source>
<translation type="obsolete">&amp;Vyčistit prázdné znaky</translation>
</message>
<message>
<source>Clean whitespace in entire document instead of only for changed parts.</source>
<translation type="obsolete">Vyčistí prázdné znaky v celém dokumentu a nejen ve změněných částech.</translation>
</message>
<message>
<source>In entire &amp;document</source>
<translation type="obsolete">V celém &amp;dokumentu</translation>
</message>
<message>
<source>Correct leading whitespace according to tab settings.</source>
<translation type="obsolete">Opraví prázdné znaky na začátku řádků podle nastavení zarážek.</translation>
</message>
<message>
<source>Clean indentation</source>
<translation type="obsolete">Opravit odsazení</translation>
</message>
<message>
<source>&amp;Ensure newline at end of file</source>
<translation type="obsolete">&amp;Doplnit nový řádek na konci souboru</translation>
</message>
<message>
<source>File Encodings</source>
<translation type="obsolete">Kódování souborů</translation>
</message>
<message> <message>
<source>Default encoding: </source> <source>Default encoding: </source>
<translation type="obsolete">Výchozí kódování: </translation> <translation type="obsolete">Výchozí kódování: </translation>
</message> </message>
<message>
<source>UTF-8 BOM:</source>
<translation type="obsolete">UTF-8 BOM:</translation>
</message>
<message>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;
&lt;p&gt;How text editors should deal with UTF-8 Byte Order Marks. The options are:&lt;/p&gt;
&lt;ul &gt;&lt;li&gt;&lt;i&gt;Add If Encoding Is UTF-8:&lt;/i&gt; always add a BOM when saving a file in UTF-8 encoding. Note that this will not work if the encoding is &lt;i&gt;System&lt;/i&gt;, as Qt Creator does not know what it actually is.&lt;/li&gt;
&lt;li&gt;&lt;i&gt;Keep If Already Present: &lt;/i&gt;save the file with a BOM if it already had one when it was loaded.&lt;/li&gt;
&lt;li&gt;&lt;i&gt;Always Delete:&lt;/i&gt; never write an UTF-8 BOM, possibly deleting a pre-existing one.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Note that UTF-8 BOMs are uncommon and treated incorrectly by some editors, so it usually makes little sense to add any.&lt;/p&gt;
&lt;p&gt;This setting does &lt;b&gt;not&lt;/b&gt; influence the use of UTF-16 and UTF-32 BOMs.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="obsolete">&lt;html&gt;&lt;head/&gt;&lt;body&gt;
&lt;p&gt;Udává, jak se chovají textové editory, co se týče UTF-8 BOM (Byte Order Marks). Na výběr je:&lt;/p&gt;
&lt;ul &gt;&lt;li&gt;&lt;i&gt;Přidat, je-li kódování UTF-8&lt;/i&gt; Vždy přidat. BOM při ukládání souboru s kódováním UTF-8. Toto však nebude fungovat, je-li kódování &lt;i&gt;System&lt;/i&gt;, neboť Qt Creator v tomto případě kódování nedokáže určit.&lt;/li&gt;
&lt;li&gt;&lt;i&gt;Zachovat, je-li přítomno: &lt;/i&gt;Uložit soubor s BOM, pokud jej mělo již při nahrání, což bylo zjištěno.&lt;/li&gt;
&lt;li&gt;&lt;i&gt;Smazat vždy:&lt;/i&gt; Nikdy nezapisovat UTF-8 BOM, existující podle okolností odstranit.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Dejte pozor na to, že UTF-8 BOMs nejsou běžné a některé editory s nimi nezacházejí správně. Z toho důvodu to nedává obvykle skoro žádný smysl je přidávat.&lt;/p&gt;
&lt;p&gt;Toto nastavení &lt;b&gt;neovlivní&lt;/b&gt; používání UTF-16 a UTF-32 BOMs.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<source>Add If Encoding Is UTF-8</source>
<translation type="obsolete">Přidat, pokud je kódování UTF-8</translation>
</message>
<message>
<source>Keep If Already Present</source>
<translation type="obsolete">Zachovat, pokud je přítomno</translation>
</message>
<message>
<source>Always Delete</source>
<translation type="obsolete">Smazat vždy</translation>
</message>
<message> <message>
<source>Mouse</source> <source>Mouse</source>
<translation type="obsolete">Myš</translation> <translation type="obsolete">Myš</translation>
</message> </message>
<message>
<source>Enable &amp;mouse navigation</source>
<translation type="obsolete">Povolit navádění &amp;myší</translation>
</message>
<message>
<source>Enable scroll &amp;wheel zooming</source>
<translation type="obsolete">Povolit přibližování a oddalování pomocí &amp;kolečka myši</translation>
</message>
<message>
<source>Typing</source>
<translation type="obsolete">Při psaní</translation>
</message>
<message>
<source>Enable automatic &amp;indentation</source>
<translation type="obsolete">Povolit automatické &amp;odsazení</translation>
</message>
<message>
<source>Backspace indentation:</source>
<translation type="obsolete">Odsazení při zpětné klávese (Backspace):</translation>
</message>
<message>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;
Specifies how backspace interacts with indentation.
&lt;ul&gt;
&lt;li&gt;None: No interaction at all. Regular plain backspace behavior.
&lt;/li&gt;
&lt;li&gt;Follows Previous Indents: In leading white space it will take the cursor back to the nearest indentation level used in previous lines.
&lt;/li&gt;
&lt;li&gt;Unindents: If the character behind the cursor is a space it behaves as a backtab.
&lt;/li&gt;
&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;
</source>
<translation type="obsolete">&lt;html&gt;&lt;head/&gt;&lt;body&gt;
Určuje, jak se chová zpětná klávesa (backspace) co se týče odsazování.
&lt;ul&gt;
&lt;li&gt;Žádné: Žádné zvláštní chování. Obvyklé chování zpětné klávesy.
&lt;/li&gt;
&lt;li&gt;Sledovat předchozí odsazení: V prázdném místě na začátku je ukazovátko postaveno zpět na nejbližší úroveň odsazení použitou na předchozích řádcích.
&lt;/li&gt;
&lt;li&gt;Zrušit odsazení: Pokud je znak nacházející se za ukazovátkem mezera, chová se zpětná klávesa jako zpětný tabulátor.
&lt;/li&gt;
&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;
</translation>
</message>
<message>
<source>None</source>
<translation type="obsolete">Žádné</translation>
</message>
<message>
<source>Follows Previous Indents</source>
<translation type="obsolete">Sledovat předchozí odsazení</translation>
</message>
<message>
<source>Unindents</source>
<translation type="obsolete">Zrušit odsazení</translation>
</message>
<message>
<source>Tab key performs auto-indent:</source>
<translation type="obsolete">Klávesa pro zarážku provede automatické odsazení:</translation>
</message>
<message>
<source>Never</source>
<translation type="obsolete">Nikdy</translation>
</message>
<message>
<source>Always</source>
<translation type="obsolete">Vždy</translation>
</message>
<message>
<source>In Leading White Space</source>
<translation type="obsolete">Pouze v prázdném místu na začátku řádku</translation>
</message>
<message>
<source>Always write a newline character at the end of the file.</source>
<translation type="obsolete">Vždy psát znak pro nový řádek na konci souboru.</translation>
</message>
<message> <message>
<source>Enable &amp;tooltips only when Shift key is down</source> <source>Enable &amp;tooltips only when Shift key is down</source>
<translation type="obsolete">Ukazovat &amp;vysvětlivky jen při stisknuté klávese Shift</translation> <translation type="obsolete">Ukazovat &amp;vysvětlivky jen při stisknuté klávese Shift</translation>
@@ -29151,89 +28758,15 @@ Určuje, jak se chová zpětná klávesa (backspace) co se týče odsazování.
</message> </message>
</context> </context>
<context> <context>
<name>SnippetsSettingsPage</name> <name>::TextEditor</name>
<message>
<source>Form</source>
<translation type="obsolete">Formulář</translation>
</message>
<message>
<source>Group: </source>
<translation type="obsolete">Skupina: </translation>
</message>
<message>
<source>Add</source>
<translation type="obsolete">Přidat</translation>
</message>
<message>
<source>Remove</source>
<translation type="obsolete">Odstranit</translation>
</message>
<message>
<source>Revert Built-in</source>
<translation type="obsolete">Vrátit zpět vnitřní kousek</translation>
</message>
<message>
<source>Restore Removed Built-ins</source>
<translation type="obsolete">Obnovit všechny vnitřní kousky</translation>
</message>
<message>
<source>Reset All</source>
<translation type="obsolete">Nastavit znovu vše</translation>
</message>
</context>
<context>
<name>TextEditor::TabPreferencesWidget</name>
<message>
<source>Form</source>
<translation type="obsolete">Formulář</translation>
</message>
<message>
<source>Tab settings:</source>
<translation type="obsolete">Nastavení zarážek:</translation>
</message>
</context>
<context>
<name>TextEditor::TabSettingsWidget</name>
<message>
<source>Insert &amp;spaces instead of tabs</source>
<translation type="obsolete">Vložit místo zarážek prázdné &amp;znaky (mezery)</translation>
</message>
<message> <message>
<source>Automatically determine based on the nearest indented line (previous line preferred over next line)</source> <source>Automatically determine based on the nearest indented line (previous line preferred over next line)</source>
<translation type="obsolete">Automaticky určit vycházeje z nejbližšího odsazeného řádku (předchozí řádek upřednostňován před dalším řádkem)</translation> <translation type="obsolete">Automaticky určit vycházeje z nejbližšího odsazeného řádku (předchozí řádek upřednostňován před dalším řádkem)</translation>
</message> </message>
<message>
<source>Based on the surrounding lines</source>
<translation type="obsolete">Založeno na okolních řádcích</translation>
</message>
<message>
<source>Enable automatic &amp;indentation</source>
<translation type="obsolete">Povolit automatické &amp;odsazení</translation>
</message>
<message> <message>
<source>Backspace will go back one indentation level instead of one space.</source> <source>Backspace will go back one indentation level instead of one space.</source>
<translation type="obsolete">Zpětná klávesa (Backspace) jde zpět o jednu úroveň odsazení. Sleduje tedy hloubku odsazení místo toho, aby smazala jen jeden znak.</translation> <translation type="obsolete">Zpětná klávesa (Backspace) jde zpět o jednu úroveň odsazení. Sleduje tedy hloubku odsazení místo toho, aby smazala jen jeden znak.</translation>
</message> </message>
<message>
<source>&amp;Backspace follows indentation</source>
<translation type="obsolete">&amp;Zpětná klávesa sleduje hloubku odsazení</translation>
</message>
<message>
<source>Tab key performs auto-indent:</source>
<translation type="obsolete">Klávesa pro zarážku provede automatické odsazení:</translation>
</message>
<message>
<source>Never</source>
<translation type="obsolete">Nikdy</translation>
</message>
<message>
<source>Always</source>
<translation type="obsolete">Vždy</translation>
</message>
<message>
<source>In Leading White Space</source>
<translation type="obsolete">Pouze v prázdném místu na začátku řádku</translation>
</message>
</context> </context>
<context> <context>
<name>::Valgrind</name> <name>::Valgrind</name>
@@ -37811,7 +37344,7 @@ Chcete je přidat do projektu?&lt;/html&gt;</translation>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::BaseTextEditorWidget</name> <name>::TextEditor</name>
<message> <message>
<source>CTRL+D</source> <source>CTRL+D</source>
<translation>CTRL+D</translation> <translation>CTRL+D</translation>
@@ -37844,16 +37377,10 @@ Chcete je přidat do projektu?&lt;/html&gt;</translation>
<source>Add UTF-8 BOM on Save</source> <source>Add UTF-8 BOM on Save</source>
<translation>Přidat UTF-8 BOM při uložení</translation> <translation>Přidat UTF-8 BOM při uložení</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FunctionHintProposalWidget</name>
<message> <message>
<source>%1 of %2</source> <source>%1 of %2</source>
<translation>%1 z %2</translation> <translation>%1 z %2</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FallbackSelectorWidget</name>
<message> <message>
<source>Settings:</source> <source>Settings:</source>
<translation type="obsolete">Nastavení:</translation> <translation type="obsolete">Nastavení:</translation>
@@ -37871,17 +37398,10 @@ Chcete je přidat do projektu?&lt;/html&gt;</translation>
<source>Restore</source> <source>Restore</source>
<translation type="obsolete">Obnovit</translation> <translation type="obsolete">Obnovit</translation>
</message> </message>
</context>
<context>
<name>TextEditor::HighlighterSettingsPage</name>
<message> <message>
<source>Generic Highlighter</source> <source>Generic Highlighter</source>
<translation>Obecné zvýrazňování</translation> <translation>Obecné zvýrazňování</translation>
</message> </message>
<message>
<source>Download Definitions</source>
<translation type="obsolete">Stáhnout vymezení</translation>
</message>
<message> <message>
<source>Download Definitions...</source> <source>Download Definitions...</source>
<translation>Stáhnout definici...</translation> <translation>Stáhnout definici...</translation>
@@ -37906,9 +37426,6 @@ Chcete je přidat do projektu?&lt;/html&gt;</translation>
<source>Not possible to retrieve data.</source> <source>Not possible to retrieve data.</source>
<translation>Nepodařilo se dostat žádná data.</translation> <translation>Nepodařilo se dostat žádná data.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::ManageDefinitionsDialog</name>
<message> <message>
<source>Name</source> <source>Name</source>
<translation>Název</translation> <translation>Název</translation>
@@ -37957,9 +37474,6 @@ Chcete je přidat do projektu?&lt;/html&gt;</translation>
<source>Download Selected Definitions</source> <source>Download Selected Definitions</source>
<translation>Stáhnout vybrané soubory s definicemi</translation> <translation>Stáhnout vybrané soubory s definicemi</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::Manager</name>
<message> <message>
<source>Registering definitions</source> <source>Registering definitions</source>
<translation>Přihlašují se definice</translation> <translation>Přihlašují se definice</translation>
@@ -37990,9 +37504,6 @@ Prověřte, prosím, oprávnění pro přístup k adresáři.</translation>
<source>Download Error</source> <source>Download Error</source>
<translation>Chyba při stahování</translation> <translation>Chyba při stahování</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::OutlineWidgetStack</name>
<message> <message>
<source>No outline available</source> <source>No outline available</source>
<translation>Přehled není dostupný</translation> <translation>Přehled není dostupný</translation>
@@ -38005,16 +37516,10 @@ Prověřte, prosím, oprávnění pro přístup k adresáři.</translation>
<source>Filter tree</source> <source>Filter tree</source>
<translation>Přefiltrovat strom</translation> <translation>Přefiltrovat strom</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::OutlineFactory</name>
<message> <message>
<source>Outline</source> <source>Outline</source>
<translation>Přehled</translation> <translation>Přehled</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::PlainTextEditorFactory</name>
<message> <message>
<source>A highlight definition was not found for this file. Would you like to try to find one?</source> <source>A highlight definition was not found for this file. Would you like to try to find one?</source>
<translation>Pro tento soubor se nepodařilo najít žádnou definici zvýrazňování skladby. Chcete se pokusit nějakou definici najít?</translation> <translation>Pro tento soubor se nepodařilo najít žádnou definici zvýrazňování skladby. Chcete se pokusit nějakou definici najít?</translation>
@@ -38031,23 +37536,10 @@ Prověřte, prosím, oprávnění pro přístup k adresáři.</translation>
<source>Show highlighter options</source> <source>Show highlighter options</source>
<translation type="obsolete">Ukázat nastavení vymezení zvýrazňování skladby</translation> <translation type="obsolete">Ukázat nastavení vymezení zvýrazňování skladby</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::PlainTextSnippetProvider</name>
<message>
<source>Text</source>
<translation>Text</translation>
</message>
</context>
<context>
<name>TextEditor::Internal::SnippetsCollection</name>
<message> <message>
<source>Cannot create user snippet directory %1</source> <source>Cannot create user snippet directory %1</source>
<translation>Nepodařilo se vytvořit adresář na uživatelské úryvky %1</translation> <translation>Nepodařilo se vytvořit adresář na uživatelské úryvky %1</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsTableModel</name>
<message> <message>
<source>Error</source> <source>Error</source>
<translation>Chyba</translation> <translation>Chyba</translation>
@@ -38068,9 +37560,6 @@ Prověřte, prosím, oprávnění pro přístup k adresáři.</translation>
<source>Error reverting snippet.</source> <source>Error reverting snippet.</source>
<translation>Chyba při vracení úryvku zpět.</translation> <translation>Chyba při vracení úryvku zpět.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsSettingsPagePrivate</name>
<message> <message>
<source>Snippets</source> <source>Snippets</source>
<translation>Úryvky</translation> <translation>Úryvky</translation>
@@ -38079,10 +37568,6 @@ Prověřte, prosím, oprávnění pro přístup k adresáři.</translation>
<source>Error While Saving Snippet Collection</source> <source>Error While Saving Snippet Collection</source>
<translation>Chyba při ukládání sbírky úryvků</translation> <translation>Chyba při ukládání sbírky úryvků</translation>
</message> </message>
<message>
<source>Error</source>
<translation>Chyba</translation>
</message>
<message> <message>
<source>No snippet selected.</source> <source>No snippet selected.</source>
<translation>Žádný úryvek nebyl vybrán.</translation> <translation>Žádný úryvek nebyl vybrán.</translation>
@@ -39363,35 +38848,7 @@ Prověřte, prosím, oprávnění pro přístup k adresáři.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::CodeStyleSelectorWidget</name> <name>::TextEditor</name>
<message>
<source>Form</source>
<translation type="obsolete">Formulář</translation>
</message>
<message>
<source>Current settings:</source>
<translation type="obsolete">Nynější nastavení:</translation>
</message>
<message>
<source>Copy...</source>
<translation type="obsolete">Kopírovat...</translation>
</message>
<message>
<source>Edit...</source>
<translation type="obsolete">Upravit...</translation>
</message>
<message>
<source>Remove</source>
<translation type="obsolete">Odstranit</translation>
</message>
<message>
<source>Export...</source>
<translation type="obsolete">Vyvést...</translation>
</message>
<message>
<source>Import...</source>
<translation type="obsolete">Zavést...</translation>
</message>
<message> <message>
<source>Copy Code Style</source> <source>Copy Code Style</source>
<translation>Kopírovat styl kódování</translation> <translation>Kopírovat styl kódování</translation>
@@ -39412,10 +38869,6 @@ Prověřte, prosím, oprávnění pro přístup k adresáři.</translation>
<source>Are you sure you want to delete this code style permanently?</source> <source>Are you sure you want to delete this code style permanently?</source>
<translation>Jste si jist, že chcete tento styl kódování smazat natrvalo?</translation> <translation>Jste si jist, že chcete tento styl kódování smazat natrvalo?</translation>
</message> </message>
<message>
<source>Delete</source>
<translation>Smazat</translation>
</message>
<message> <message>
<source>Import Code Style</source> <source>Import Code Style</source>
<translation>Importovat styl kódování</translation> <translation>Importovat styl kódování</translation>
@@ -40535,22 +39988,15 @@ Vzdálený chybový výstup byl: %1</translation>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::CodeStyleEditor</name> <name>::TextEditor</name>
<message> <message>
<source>Edit preview contents to see how the current settings are applied to custom code snippets. Changes in the preview do not affect the current settings.</source> <source>Edit preview contents to see how the current settings are applied to custom code snippets. Changes in the preview do not affect the current settings.</source>
<translation>Změnou obsahu náhledu zjistíte, jak se nynější nastavení projeví na uživatelsky stanovených úryvcích kódu. Změny v náhledu nemají žádný vliv na současná nastavení.</translation> <translation>Změnou obsahu náhledu zjistíte, jak se nynější nastavení projeví na uživatelsky stanovených úryvcích kódu. Změny v náhledu nemají žádný vliv na současná nastavení.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::CodeStyleDialog</name>
<message> <message>
<source>Edit Code Style</source> <source>Edit Code Style</source>
<translation>Upravit styl kódování</translation> <translation>Upravit styl kódování</translation>
</message> </message>
<message>
<source>Code style name:</source>
<translation>Název stylu kódování:</translation>
</message>
<message> <message>
<source>You cannot save changes to a built-in code style. Copy it first to create your own version.</source> <source>You cannot save changes to a built-in code style. Copy it first to create your own version.</source>
<translation>Vestavěné styly kódování nelze měnit. Nejprve vytvořte jejich zkopírováním kopii, abyste tak vytvořili svou vlastní verzi.</translation> <translation>Vestavěné styly kódování nelze měnit. Nejprve vytvořte jejich zkopírováním kopii, abyste tak vytvořili svou vlastní verzi.</translation>
@@ -40559,13 +40005,6 @@ Vzdálený chybový výstup byl: %1</translation>
<source>Copy Built-in Code Style</source> <source>Copy Built-in Code Style</source>
<translation>Kopírovat vestavěný styl kódování</translation> <translation>Kopírovat vestavěný styl kódování</translation>
</message> </message>
<message>
<source>%1 (Copy)</source>
<translation>%1 (kopie)</translation>
</message>
</context>
<context>
<name>TextEditor::FindInFiles</name>
<message> <message>
<source>Files on File System</source> <source>Files on File System</source>
<translation>Soubory v souborovém systému</translation> <translation>Soubory v souborovém systému</translation>
@@ -42681,14 +42120,11 @@ Tyto předpony se používají dodatečně k nynějšímu názvu souboru na Pře
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::BehaviorSettingsPage</name> <name>::TextEditor</name>
<message> <message>
<source>Form</source> <source>Form</source>
<translation>Formulář</translation> <translation>Formulář</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BehaviorSettingsWidget</name>
<message> <message>
<source>Typing</source> <source>Typing</source>
<translation>Při psaní</translation> <translation>Při psaní</translation>
@@ -42903,21 +42339,10 @@ Určuje, jak se chová zpětná klávesa (backspace) co se týče odsazování.
<source>Pressing Alt displays context-sensitive help or type information as tooltips.</source> <source>Pressing Alt displays context-sensitive help or type information as tooltips.</source>
<translation>Stisknutí klávesy Alt zobrazí vysvětlivky s kontextovou nápovědou nebo informací o typu.</translation> <translation>Stisknutí klávesy Alt zobrazí vysvětlivky s kontextovou nápovědou nebo informací o typu.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::CodeStyleSelectorWidget</name>
<message>
<source>Form</source>
<translation>Formulář</translation>
</message>
<message> <message>
<source>Current settings:</source> <source>Current settings:</source>
<translation>Nynější nastavení:</translation> <translation>Nynější nastavení:</translation>
</message> </message>
<message>
<source>Copy...</source>
<translation>Kopírovat...</translation>
</message>
<message> <message>
<source>Edit...</source> <source>Edit...</source>
<translation>Upravit...</translation> <translation>Upravit...</translation>
@@ -42934,13 +42359,6 @@ Určuje, jak se chová zpětná klávesa (backspace) co se týče odsazování.
<source>Import...</source> <source>Import...</source>
<translation>Importovat...</translation> <translation>Importovat...</translation>
</message> </message>
</context>
<context>
<name>TextEditor::DisplaySettingsPage</name>
<message>
<source>Display</source>
<translation>Zobrazení</translation>
</message>
<message> <message>
<source>Display line &amp;numbers</source> <source>Display line &amp;numbers</source>
<translation>Zo&amp;brazit čísla řádků</translation> <translation>Zo&amp;brazit čísla řádků</translation>
@@ -43009,13 +42427,6 @@ Určuje, jak se chová zpětná klávesa (backspace) co se týče odsazování.
<source>Shows tabs and spaces.</source> <source>Shows tabs and spaces.</source>
<translation>Ukáže tabulátory a mezery.</translation> <translation>Ukáže tabulátory a mezery.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::HighlighterSettingsPage</name>
<message>
<source>Form</source>
<translation>Formulář</translation>
</message>
<message> <message>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt; <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;
&lt;p&gt;Highlight definitions are provided by the &lt;a href=&quot;http://kate-editor.org/&quot;&gt;Kate Text Editor&lt;/a&gt;.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> &lt;p&gt;Highlight definitions are provided by the &lt;a href=&quot;http://kate-editor.org/&quot;&gt;Kate Text Editor&lt;/a&gt;.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
@@ -43034,10 +42445,6 @@ Určuje, jak se chová zpětná klávesa (backspace) co se týče odsazování.
<source>Use fallback location</source> <source>Use fallback location</source>
<translation>Použít záložní umístění</translation> <translation>Použít záložní umístění</translation>
</message> </message>
<message>
<source>Behavior</source>
<translation>Chování</translation>
</message>
<message> <message>
<source>Alert when a highlight definition is not found</source> <source>Alert when a highlight definition is not found</source>
<translation type="obsolete">Zobrazit upozornění, pokud se nepodařilo najít žádný soubor s definicí</translation> <translation type="obsolete">Zobrazit upozornění, pokud se nepodařilo najít žádný soubor s definicí</translation>
@@ -43046,13 +42453,6 @@ Určuje, jak se chová zpětná klávesa (backspace) co se týče odsazování.
<source>Ignored file patterns:</source> <source>Ignored file patterns:</source>
<translation>Vyloučené soubory (vzor hledání):</translation> <translation>Vyloučené soubory (vzor hledání):</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsSettingsPage</name>
<message>
<source>Form</source>
<translation>Formulář</translation>
</message>
<message> <message>
<source>Group: </source> <source>Group: </source>
<translation>Skupina: </translation> <translation>Skupina: </translation>
@@ -43061,10 +42461,6 @@ Určuje, jak se chová zpětná klávesa (backspace) co se týče odsazování.
<source>Add</source> <source>Add</source>
<translation>Přidat</translation> <translation>Přidat</translation>
</message> </message>
<message>
<source>Remove</source>
<translation>Odstranit</translation>
</message>
<message> <message>
<source>Revert Built-in</source> <source>Revert Built-in</source>
<translation>Vrátit zpět vestavěný</translation> <translation>Vrátit zpět vestavěný</translation>
@@ -43077,13 +42473,6 @@ Určuje, jak se chová zpětná klávesa (backspace) co se týče odsazování.
<source>Reset All</source> <source>Reset All</source>
<translation>Nastavit znovu vše</translation> <translation>Nastavit znovu vše</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TabSettingsWidget</name>
<message>
<source>Form</source>
<translation>Formulář</translation>
</message>
<message> <message>
<source>Tabs And Indentation</source> <source>Tabs And Indentation</source>
<translation>Tabulátory a odsazení</translation> <translation>Tabulátory a odsazení</translation>
@@ -46620,14 +46009,11 @@ Je zapotřebí mít nějakou verzi Qt a sadu nástrojů, aby modely kódu C++ a
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::CountingLabel</name> <name>::TextEditor</name>
<message> <message>
<source>%1 found</source> <source>%1 found</source>
<translation>%1 nalezen</translation> <translation>%1 nalezen</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FindInOpenFiles</name>
<message> <message>
<source>Open Documents</source> <source>Open Documents</source>
<translation>Otevřené dokumenty</translation> <translation>Otevřené dokumenty</translation>
@@ -52547,7 +51933,7 @@ Vzdálený: %4</translation>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::BehaviorSettingsWidget</name> <name>::TextEditor</name>
<message> <message>
<source>Display context-sensitive help or type information on mouseover.</source> <source>Display context-sensitive help or type information on mouseover.</source>
<translation>Zobrazit kontextově citlivou nápovědu nebo informace o typu, když se ukazovátko myši nachází nad prvkem.</translation> <translation>Zobrazit kontextově citlivou nápovědu nebo informace o typu, když se ukazovátko myši nachází nad prvkem.</translation>
@@ -54381,7 +53767,7 @@ Tento průvodce vás provede základními kroky, které jsou nutné pro nasazen
</message> </message>
</context> </context>
<context> <context>
<name>RefactoringFile::apply</name> <name>::TextEditor</name>
<message> <message>
<source>Refactoring cannot be applied.</source> <source>Refactoring cannot be applied.</source>
<translation>Refaktoring se nepodařilo použít.</translation> <translation>Refaktoring se nepodařilo použít.</translation>
@@ -55539,7 +54925,7 @@ Soubory ve zdrojovém adresáři balíčku pro Android jsou zkopírovány do adr
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::QuickFixFactory</name> <name>::TextEditor</name>
<message> <message>
<source>Create Getter and Setter Member Functions</source> <source>Create Getter and Setter Member Functions</source>
<translation>Vytvořit funkce Getter a Setter</translation> <translation>Vytvořit funkce Getter a Setter</translation>
@@ -57990,7 +57376,7 @@ Tento průvodce vás provede základními kroky, které jsou nutné pro nasazen
</message> </message>
</context> </context>
<context> <context>
<name>FontSettings_C_OCCURRENCES_UNUSED</name> <name>::TextEditor</name>
<message> <message>
<source>Unused variable</source> <source>Unused variable</source>
<translation>Nepoužívaná proměnná</translation> <translation>Nepoužívaná proměnná</translation>

View File

@@ -15320,7 +15320,7 @@ når de ikke kræves, hvilket i de fleste tilfælde vil forbedre ydelsen.</trans
</message> </message>
</context> </context>
<context> <context>
<name>FontSettings_C_OCCURRENCES_UNUSED</name> <name>::TextEditor</name>
<message> <message>
<source>Unused variable</source> <source>Unused variable</source>
<translation>Ubrugt variabel</translation> <translation>Ubrugt variabel</translation>
@@ -31622,7 +31622,7 @@ For flere detaljer, se /etc/sysctl.d/10-ptrace.conf
</message> </message>
</context> </context>
<context> <context>
<name>RefactoringFile::apply</name> <name>::TextEditor</name>
<message> <message>
<source>Refactoring cannot be applied.</source> <source>Refactoring cannot be applied.</source>
<translation>Genfaktoring kan ikke anvendes.</translation> <translation>Genfaktoring kan ikke anvendes.</translation>
@@ -34001,9 +34001,6 @@ med en adgangskode, som du kan indtaste herunder.</translation>
<source>Text Editor</source> <source>Text Editor</source>
<translation>Tekstredigering</translation> <translation>Tekstredigering</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseFileFind</name>
<message> <message>
<source>Searching</source> <source>Searching</source>
<translation>Søger</translation> <translation>Søger</translation>
@@ -34026,9 +34023,6 @@ med en adgangskode, som du kan indtaste herunder.</translation>
<source>Aborting replace.</source> <source>Aborting replace.</source>
<translation>Afbryder erstat.</translation> <translation>Afbryder erstat.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseTextEditor</name>
<message> <message>
<source>A highlight definition was not found for this file. Would you like to try to find one?</source> <source>A highlight definition was not found for this file. Would you like to try to find one?</source>
<translation>En fremhævningsdefinitioner blev ikke fundet til denne fil. Vil du prøve at finde en?</translation> <translation>En fremhævningsdefinitioner blev ikke fundet til denne fil. Vil du prøve at finde en?</translation>
@@ -34037,17 +34031,11 @@ med en adgangskode, som du kan indtaste herunder.</translation>
<source>Show Highlighter Options...</source> <source>Show Highlighter Options...</source>
<translation>Vis fremhæver-valgmuligheder...</translation> <translation>Vis fremhæver-valgmuligheder...</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BehaviorSettingsPage</name>
<message> <message>
<source>Global</source> <source>Global</source>
<comment>Settings</comment> <comment>Settings</comment>
<translation>Globale</translation> <translation>Globale</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BehaviorSettingsWidget</name>
<message> <message>
<source>Displays context-sensitive help or type information on mouseover.</source> <source>Displays context-sensitive help or type information on mouseover.</source>
<translation>Viser kontekstfølsom hjælp eller skriv information ved musover.</translation> <translation>Viser kontekstfølsom hjælp eller skriv information ved musover.</translation>
@@ -34056,16 +34044,10 @@ med en adgangskode, som du kan indtaste herunder.</translation>
<source>Displays context-sensitive help or type information on Shift+Mouseover.</source> <source>Displays context-sensitive help or type information on Shift+Mouseover.</source>
<translation>Viser kontekstfølsom hjælp eller skriv information ved Skift+musover.</translation> <translation>Viser kontekstfølsom hjælp eller skriv information ved Skift+musover.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::CodeStyleEditor</name>
<message> <message>
<source>Edit preview contents to see how the current settings are applied to custom code snippets. Changes in the preview do not affect the current settings.</source> <source>Edit preview contents to see how the current settings are applied to custom code snippets. Changes in the preview do not affect the current settings.</source>
<translation>Rediger forhåndsvisningens indhold for at se hvordan de aktuelle indstillinger anvendes brugerdefineret kode-snippets. Ændringer i forhåndsvisningen påvirker ikke de aktuelle indstillinger.</translation> <translation>Rediger forhåndsvisningens indhold for at se hvordan de aktuelle indstillinger anvendes brugerdefineret kode-snippets. Ændringer i forhåndsvisningen påvirker ikke de aktuelle indstillinger.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::CodeStyleSelectorWidget</name>
<message> <message>
<source>Copy Code Style</source> <source>Copy Code Style</source>
<translation>Kopiér kodestil</translation> <translation>Kopiér kodestil</translation>
@@ -34114,9 +34096,6 @@ med en adgangskode, som du kan indtaste herunder.</translation>
<source>%1 [built-in]</source> <source>%1 [built-in]</source>
<translation>%1 [indbygget]</translation> <translation>%1 [indbygget]</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FindInFiles</name>
<message> <message>
<source>Files in File System</source> <source>Files in File System</source>
<translation>Filer i filsystem</translation> <translation>Filer i filsystem</translation>
@@ -34148,9 +34127,6 @@ Ekskludering: %3
<source>Directory to Search</source> <source>Directory to Search</source>
<translation>Mappe der skal søges i</translation> <translation>Mappe der skal søges i</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FontSettingsPage</name>
<message> <message>
<source>Font &amp;&amp; Colors</source> <source>Font &amp;&amp; Colors</source>
<translation>Skrifttype og farver</translation> <translation>Skrifttype og farver</translation>
@@ -34179,10 +34155,6 @@ Ekskludering: %3
<source>Are you sure you want to delete this color scheme permanently?</source> <source>Are you sure you want to delete this color scheme permanently?</source>
<translation>Er du sikker , at du vil slette dette farveskema permanent?</translation> <translation>Er du sikker , at du vil slette dette farveskema permanent?</translation>
</message> </message>
<message>
<source>Delete</source>
<translation>Slet</translation>
</message>
<message> <message>
<source>Color Scheme Changed</source> <source>Color Scheme Changed</source>
<translation>Farveskema ændret</translation> <translation>Farveskema ændret</translation>
@@ -34195,16 +34167,10 @@ Ekskludering: %3
<source>Discard</source> <source>Discard</source>
<translation>Forkast</translation> <translation>Forkast</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FunctionHintProposalWidget</name>
<message> <message>
<source>%1 of %2</source> <source>%1 of %2</source>
<translation>%1 af %2</translation> <translation>%1 af %2</translation>
</message> </message>
</context>
<context>
<name>TextEditor::HighlighterSettingsPage</name>
<message> <message>
<source>Generic Highlighter</source> <source>Generic Highlighter</source>
<translation>Generisk fremhæver</translation> <translation>Generisk fremhæver</translation>
@@ -34233,9 +34199,6 @@ Ekskludering: %3
<source>Not possible to retrieve data.</source> <source>Not possible to retrieve data.</source>
<translation>Ikke muligt at hente data.</translation> <translation>Ikke muligt at hente data.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BehaviorSettingsWidget</name>
<message> <message>
<source>Typing</source> <source>Typing</source>
<translation>Skrivning</translation> <translation>Skrivning</translation>
@@ -34278,10 +34241,6 @@ Angiver hvordan backspace interagerer med indrykning.
&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt; &lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;
</translation> </translation>
</message> </message>
<message>
<source>None</source>
<translation>Ingen</translation>
</message>
<message> <message>
<source>Follows Previous Indents</source> <source>Follows Previous Indents</source>
<translation>Følger forrige indrykninger</translation> <translation>Følger forrige indrykninger</translation>
@@ -34434,17 +34393,10 @@ Angiver hvordan backspace interagerer med indrykning.
&lt;p&gt;Bemærk at UTF-8 BOM&apos;er er ualmindelige og behandles ukorrekt af nogle redigeringer, det giver faktisk ikke meget mening at tilføje det.&lt;/p&gt; &lt;p&gt;Bemærk at UTF-8 BOM&apos;er er ualmindelige og behandles ukorrekt af nogle redigeringer, det giver faktisk ikke meget mening at tilføje det.&lt;/p&gt;
&lt;p&gt;Indstillingen påvirker &lt;b&gt;ikke&lt;/b&gt; brugen af UTF-16 og UTF-32 BOM&apos;er.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation> &lt;p&gt;Indstillingen påvirker &lt;b&gt;ikke&lt;/b&gt; brugen af UTF-16 og UTF-32 BOM&apos;er.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::CodeStyleDialog</name>
<message> <message>
<source>Edit Code Style</source> <source>Edit Code Style</source>
<translation>Rediger kodestil</translation> <translation>Rediger kodestil</translation>
</message> </message>
<message>
<source>Code style name:</source>
<translation>Kodestilnavn:</translation>
</message>
<message> <message>
<source>You cannot save changes to a built-in code style. Copy it first to create your own version.</source> <source>You cannot save changes to a built-in code style. Copy it first to create your own version.</source>
<translation>Du kan ikke gemme ændringer til en indbygget kodestil. Kopiér den først for at oprette din egen version.</translation> <translation>Du kan ikke gemme ændringer til en indbygget kodestil. Kopiér den først for at oprette din egen version.</translation>
@@ -34453,13 +34405,6 @@ Angiver hvordan backspace interagerer med indrykning.
<source>Copy Built-in Code Style</source> <source>Copy Built-in Code Style</source>
<translation>Kopiér indbygget kodestil</translation> <translation>Kopiér indbygget kodestil</translation>
</message> </message>
<message>
<source>%1 (Copy)</source>
<translation>%1 (kopi)</translation>
</message>
</context>
<context>
<name>TextEditor::Internal::CodeStyleSelectorWidget</name>
<message> <message>
<source>Current settings:</source> <source>Current settings:</source>
<translation>Aktuelle indstillinger:</translation> <translation>Aktuelle indstillinger:</translation>
@@ -34484,9 +34429,6 @@ Angiver hvordan backspace interagerer med indrykning.
<source>Import...</source> <source>Import...</source>
<translation>Importér...</translation> <translation>Importér...</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::CodecSelector</name>
<message> <message>
<source>Text Encoding</source> <source>Text Encoding</source>
<translation>Tekstkodning</translation> <translation>Tekstkodning</translation>
@@ -34507,16 +34449,10 @@ Angiver hvordan backspace interagerer med indrykning.
<source>Save with Encoding</source> <source>Save with Encoding</source>
<translation>Gem med kodning</translation> <translation>Gem med kodning</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::ColorScheme</name>
<message> <message>
<source>Not a color scheme file.</source> <source>Not a color scheme file.</source>
<translation>Ikke en farvetema-fil.</translation> <translation>Ikke en farvetema-fil.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::ColorSchemeEdit</name>
<message> <message>
<source>Foreground:</source> <source>Foreground:</source>
<translation>Forgrund:</translation> <translation>Forgrund:</translation>
@@ -34601,9 +34537,6 @@ Angiver hvordan backspace interagerer med indrykning.
<source>Relative Background</source> <source>Relative Background</source>
<translation>Relativ baggrund</translation> <translation>Relativ baggrund</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::CompletionSettingsPage</name>
<message> <message>
<source>Behavior</source> <source>Behavior</source>
<translation>Adfærd</translation> <translation>Adfærd</translation>
@@ -34636,10 +34569,6 @@ Angiver hvordan backspace interagerer med indrykning.
<source>When Triggered</source> <source>When Triggered</source>
<translation>Når udløst</translation> <translation>Når udløst</translation>
</message> </message>
<message>
<source>Always</source>
<translation>Altid</translation>
</message>
<message> <message>
<source>Timeout in ms:</source> <source>Timeout in ms:</source>
<translation>Timeout i ms:</translation> <translation>Timeout i ms:</translation>
@@ -34756,9 +34685,6 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt
<source>Completion</source> <source>Completion</source>
<translation>Færdiggørelse</translation> <translation>Færdiggørelse</translation>
</message> </message>
</context>
<context>
<name>TextEditor::DisplaySettingsPage</name>
<message> <message>
<source>Text Wrapping</source> <source>Text Wrapping</source>
<translation>Tekstombrydning</translation> <translation>Tekstombrydning</translation>
@@ -34855,9 +34781,6 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt
<source>Between lines</source> <source>Between lines</source>
<translation>Mellem linjer</translation> <translation>Mellem linjer</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FindInCurrentFile</name>
<message> <message>
<source>Current File</source> <source>Current File</source>
<translation>Aktuel fil</translation> <translation>Aktuel fil</translation>
@@ -34872,9 +34795,6 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt
<translation>Filsti: %1 <translation>Filsti: %1
%2</translation> %2</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FindInOpenFiles</name>
<message> <message>
<source>Open Documents</source> <source>Open Documents</source>
<translation>Åbne dokumenter</translation> <translation>Åbne dokumenter</translation>
@@ -34889,13 +34809,6 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt
<translation>Åbne dokumenter <translation>Åbne dokumenter
%1</translation> %1</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FontSettingsPageWidget</name>
<message>
<source>Font</source>
<translation>Skrifttype</translation>
</message>
<message> <message>
<source>Antialias</source> <source>Antialias</source>
<translation>Udjævning</translation> <translation>Udjævning</translation>
@@ -34920,17 +34833,6 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt
<source>Color Scheme</source> <source>Color Scheme</source>
<translation>Farveskema</translation> <translation>Farveskema</translation>
</message> </message>
<message>
<source>Copy...</source>
<translation>Kopiér...</translation>
</message>
<message>
<source>Delete</source>
<translation>Slet</translation>
</message>
</context>
<context>
<name>TextEditor::Internal::HighlighterSettingsPage</name>
<message> <message>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt; <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;
&lt;p&gt;Highlight definitions are provided by the &lt;a href=&quot;http://kate-editor.org/&quot;&gt;Kate Text Editor&lt;/a&gt;.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> &lt;p&gt;Highlight definitions are provided by the &lt;a href=&quot;http://kate-editor.org/&quot;&gt;Kate Text Editor&lt;/a&gt;.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
@@ -34949,17 +34851,10 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt
<source>Use fallback location</source> <source>Use fallback location</source>
<translation>Brug tilbagefaldsplacering</translation> <translation>Brug tilbagefaldsplacering</translation>
</message> </message>
<message>
<source>Behavior</source>
<translation>Adfærd</translation>
</message>
<message> <message>
<source>Ignored file patterns:</source> <source>Ignored file patterns:</source>
<translation>Ignoreret filmønstre:</translation> <translation>Ignoreret filmønstre:</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::LineNumberFilter</name>
<message> <message>
<source>Line in Current Document</source> <source>Line in Current Document</source>
<translation>Linje i aktuelt dokument</translation> <translation>Linje i aktuelt dokument</translation>
@@ -34976,9 +34871,6 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt
<source>Column %1</source> <source>Column %1</source>
<translation>Kolonne %1</translation> <translation>Kolonne %1</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::ManageDefinitionsDialog</name>
<message> <message>
<source>Dialog</source> <source>Dialog</source>
<translation>Dialog</translation> <translation>Dialog</translation>
@@ -35027,9 +34919,6 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt
<source>There is already one download in progress. Please wait until it is finished.</source> <source>There is already one download in progress. Please wait until it is finished.</source>
<translation>Der er allerede en download i gang. Vent venligst til den er færdig.</translation> <translation>Der er allerede en download i gang. Vent venligst til den er færdig.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::MultiDefinitionDownloader</name>
<message> <message>
<source>Downloading Highlighting Definitions</source> <source>Downloading Highlighting Definitions</source>
<translation>Downloader fremhævningsdefinitioner</translation> <translation>Downloader fremhævningsdefinitioner</translation>
@@ -35050,16 +34939,10 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt
<source>Download Error</source> <source>Download Error</source>
<translation>Fejl ved download</translation> <translation>Fejl ved download</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::OutlineFactory</name>
<message> <message>
<source>Outline</source> <source>Outline</source>
<translation>Overblik</translation> <translation>Overblik</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::OutlineWidgetStack</name>
<message> <message>
<source>No outline available</source> <source>No outline available</source>
<translation>Intet overblik tilgængeligt</translation> <translation>Intet overblik tilgængeligt</translation>
@@ -35072,24 +34955,14 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt
<source>Filter tree</source> <source>Filter tree</source>
<translation>Filtrer træ</translation> <translation>Filtrer træ</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsCollection</name>
<message> <message>
<source>Cannot create user snippet directory %1</source> <source>Cannot create user snippet directory %1</source>
<translation>Kan ikke oprette bruger snippet-mappen %1</translation> <translation>Kan ikke oprette bruger snippet-mappen %1</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsSettingsPage</name>
<message> <message>
<source>Add</source> <source>Add</source>
<translation>Tilføj</translation> <translation>Tilføj</translation>
</message> </message>
<message>
<source>Remove</source>
<translation>Fjern</translation>
</message>
<message> <message>
<source>Revert Built-in</source> <source>Revert Built-in</source>
<translation>Tilbagefør indbygget</translation> <translation>Tilbagefør indbygget</translation>
@@ -35106,9 +34979,6 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt
<source>Group: </source> <source>Group: </source>
<translation>Gruppe: </translation> <translation>Gruppe: </translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsSettingsPagePrivate</name>
<message> <message>
<source>Snippets</source> <source>Snippets</source>
<translation>Snippets</translation> <translation>Snippets</translation>
@@ -35125,13 +34995,6 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt
<source>No snippet selected.</source> <source>No snippet selected.</source>
<translation>Ingen snippet valgt.</translation> <translation>Ingen snippet valgt.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsTableModel</name>
<message>
<source>Error</source>
<translation>Fejl</translation>
</message>
<message> <message>
<source>Not a valid trigger.</source> <source>Not a valid trigger.</source>
<translation>Ikke en gyldig udløser.</translation> <translation>Ikke en gyldig udløser.</translation>
@@ -35148,9 +35011,6 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt
<source>Error reverting snippet.</source> <source>Error reverting snippet.</source>
<translation>Fejl ved hentning af snippet.</translation> <translation>Fejl ved hentning af snippet.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TabSettingsWidget</name>
<message> <message>
<source>Tabs And Indentation</source> <source>Tabs And Indentation</source>
<translation>Tabulatorer og indrykning</translation> <translation>Tabulatorer og indrykning</translation>
@@ -35255,9 +35115,6 @@ Påvirker indrykningen af fortsatte linjer.
<source>&lt;i&gt;Code indentation is configured in &lt;a href=&quot;C++&quot;&gt;C++&lt;/a&gt; and &lt;a href=&quot;QtQuick&quot;&gt;Qt Quick&lt;/a&gt; settings.&lt;/i&gt;</source> <source>&lt;i&gt;Code indentation is configured in &lt;a href=&quot;C++&quot;&gt;C++&lt;/a&gt; and &lt;a href=&quot;QtQuick&quot;&gt;Qt Quick&lt;/a&gt; settings.&lt;/i&gt;</source>
<translation>&lt;i&gt;Kodeindrykning er konfigureret i &lt;a href=&quot;C++&quot;&gt;C++-&lt;/a&gt; og &lt;a href=&quot;QtQuick&quot;&gt;Qt Quick&lt;/a&gt;-indstillinger.&lt;/i&gt;</translation> <translation>&lt;i&gt;Kodeindrykning er konfigureret i &lt;a href=&quot;C++&quot;&gt;C++-&lt;/a&gt; og &lt;a href=&quot;QtQuick&quot;&gt;Qt Quick&lt;/a&gt;-indstillinger.&lt;/i&gt;</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::TextEditorActionHandler</name>
<message> <message>
<source>&amp;Undo</source> <source>&amp;Undo</source>
<translation>&amp;Fortryd</translation> <translation>&amp;Fortryd</translation>
@@ -35734,9 +35591,6 @@ Påvirker indrykningen af fortsatte linjer.
<source>Go to Next Word Camel Case with Selection</source> <source>Go to Next Word Camel Case with Selection</source>
<translation> til næste ord med markering (camel case)</translation> <translation> til næste ord med markering (camel case)</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::TextEditorPlugin</name>
<message> <message>
<source>Trigger Completion</source> <source>Trigger Completion</source>
<translation>Udløs færdiggørelse</translation> <translation>Udløs færdiggørelse</translation>
@@ -35790,16 +35644,10 @@ Påvirker indrykningen af fortsatte linjer.
<source>Current document&apos;s font size in points.</source> <source>Current document&apos;s font size in points.</source>
<translation>Aktuelt dokuments skriftstørrelse i punkter.</translation> <translation>Aktuelt dokuments skriftstørrelse i punkter.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::SearchEngine</name>
<message> <message>
<source>Internal</source> <source>Internal</source>
<translation>Intern</translation> <translation>Intern</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextDocument</name>
<message> <message>
<source>Diff Against Current File</source> <source>Diff Against Current File</source>
<translation>Diff mod aktuelle fil</translation> <translation>Diff mod aktuelle fil</translation>
@@ -35808,16 +35656,10 @@ Påvirker indrykningen af fortsatte linjer.
<source>Opening File</source> <source>Opening File</source>
<translation>Åbner fil</translation> <translation>Åbner fil</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorActionHandler</name>
<message> <message>
<source>&lt;line&gt;:&lt;column&gt;</source> <source>&lt;line&gt;:&lt;column&gt;</source>
<translation>&lt;linje&gt;:&lt;kolonne&gt;</translation> <translation>&lt;linje&gt;:&lt;kolonne&gt;</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorSettings</name>
<message> <message>
<source>Text</source> <source>Text</source>
<translation>Tekst</translation> <translation>Tekst</translation>
@@ -36290,10 +36132,6 @@ Vil blive anvendt på blanktegn i kommentarer og strenge.</translation>
<source>Applied to lines describing changes in VCS log.</source> <source>Applied to lines describing changes in VCS log.</source>
<translation>Anvendt linjer som beskriver ændringer i VCS-log.</translation> <translation>Anvendt linjer som beskriver ændringer i VCS-log.</translation>
</message> </message>
<message>
<source>Error</source>
<translation>Fejl</translation>
</message>
<message> <message>
<source>Underline color of error diagnostics.</source> <source>Underline color of error diagnostics.</source>
<translation>Understregningsfarve til fejldiagnostik.</translation> <translation>Understregningsfarve til fejldiagnostik.</translation>
@@ -36330,17 +36168,6 @@ Vil blive anvendt på blanktegn i kommentarer og strenge.</translation>
<source>Writable arguments of a function call.</source> <source>Writable arguments of a function call.</source>
<translation>Skrivbare argumenter af et funktionskald.</translation> <translation>Skrivbare argumenter af et funktionskald.</translation>
</message> </message>
<message>
<source>Behavior</source>
<translation>Adfærd</translation>
</message>
<message>
<source>Display</source>
<translation>Visning</translation>
</message>
</context>
<context>
<name>TextEditor::TextEditorWidget</name>
<message> <message>
<source>Print Document</source> <source>Print Document</source>
<translation>Udskriv dokument</translation> <translation>Udskriv dokument</translation>
@@ -41383,7 +41210,7 @@ Gemning mislykkedes.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::Snippets</name> <name>::TextEditor</name>
<message> <message>
<source></source> <source></source>
<comment>Snippets are text fragments that can be inserted into an editor via the usual completion mechanics using a trigger text. The translated text (trigger variant) is used to disambiguate between snippets with the same trigger.</comment> <comment>Snippets are text fragments that can be inserted into an editor via the usual completion mechanics using a trigger text. The translated text (trigger variant) is used to disambiguate between snippets with the same trigger.</comment>

View File

@@ -11848,7 +11848,7 @@ Rename %2 to %3 anyway?</source>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::BaseFileFind</name> <name>::TextEditor</name>
<message> <message>
<source>Searching</source> <source>Searching</source>
<translation>Suche</translation> <translation>Suche</translation>
@@ -11871,9 +11871,6 @@ Rename %2 to %3 anyway?</source>
<source>Aborting replace.</source> <source>Aborting replace.</source>
<translation>Breche Ersetzung ab.</translation> <translation>Breche Ersetzung ab.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseTextEditor</name>
<message> <message>
<source>A highlight definition was not found for this file. Would you like to download additional highlight definition files?</source> <source>A highlight definition was not found for this file. Would you like to download additional highlight definition files?</source>
<translation>Für diese Datei ist keine Definition der Syntaxhervorhebung vorhanden. Möchten Sie weitere Definitionen der Syntaxhervorhebung herunterladen?</translation> <translation>Für diese Datei ist keine Definition der Syntaxhervorhebung vorhanden. Möchten Sie weitere Definitionen der Syntaxhervorhebung herunterladen?</translation>
@@ -11890,16 +11887,10 @@ Rename %2 to %3 anyway?</source>
<source>Remember My Choice</source> <source>Remember My Choice</source>
<translation>Meine Auswahl speichern</translation> <translation>Meine Auswahl speichern</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::ColorScheme</name>
<message> <message>
<source>Not a color scheme file.</source> <source>Not a color scheme file.</source>
<translation>Keine Farbschema-Datei.</translation> <translation>Keine Farbschema-Datei.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::ColorSchemeEdit</name>
<message> <message>
<source>Bold</source> <source>Bold</source>
<translation>Fett</translation> <translation>Fett</translation>
@@ -11988,9 +11979,6 @@ Rename %2 to %3 anyway?</source>
<source>&lt;p align=&apos;center&apos;&gt;&lt;b&gt;Builtin color schemes need to be &lt;a href=&quot;copy&quot;&gt;copied&lt;/a&gt;&lt;br/&gt; before they can be changed&lt;/b&gt;&lt;/p&gt;</source> <source>&lt;p align=&apos;center&apos;&gt;&lt;b&gt;Builtin color schemes need to be &lt;a href=&quot;copy&quot;&gt;copied&lt;/a&gt;&lt;br/&gt; before they can be changed&lt;/b&gt;&lt;/p&gt;</source>
<translation>&lt;p align=&apos;center&apos;&gt;&lt;b&gt;Mitgelieferte Farbschemata müssen &lt;a href=&quot;copy&quot;&gt;kopiert&lt;/a&gt;&lt;br/&gt; werden, bevor sie geändert werden können&lt;/b&gt;&lt;/p&gt;</translation> <translation>&lt;p align=&apos;center&apos;&gt;&lt;b&gt;Mitgelieferte Farbschemata müssen &lt;a href=&quot;copy&quot;&gt;kopiert&lt;/a&gt;&lt;br/&gt; werden, bevor sie geändert werden können&lt;/b&gt;&lt;/p&gt;</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FindInCurrentFile</name>
<message> <message>
<source>Current File</source> <source>Current File</source>
<translation>Aktuelle Datei</translation> <translation>Aktuelle Datei</translation>
@@ -12005,13 +11993,6 @@ Rename %2 to %3 anyway?</source>
<translation>Pfad zu Datei: %1 <translation>Pfad zu Datei: %1
%2</translation> %2</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FontSettingsPageWidget</name>
<message>
<source>Font</source>
<translation>Zeichensatz</translation>
</message>
<message> <message>
<source>Family:</source> <source>Family:</source>
<translation>Name:</translation> <translation>Name:</translation>
@@ -12110,9 +12091,6 @@ Werte kleiner als 100% können überlappende und falsch ausgerichtete Darstellun
<source>Font &amp;&amp; Colors</source> <source>Font &amp;&amp; Colors</source>
<translation>Zeichensatz &amp;&amp; Farben</translation> <translation>Zeichensatz &amp;&amp; Farben</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::LineNumberFilter</name>
<message> <message>
<source>Jumps to the given line in the current document.</source> <source>Jumps to the given line in the current document.</source>
<translation>Springt im aktuellen Dokument zur angegebenen Zeile.</translation> <translation>Springt im aktuellen Dokument zur angegebenen Zeile.</translation>
@@ -15239,7 +15217,7 @@ Für CMake-Projekte stellen Sie sicher, dass die Variable QML_IMPORT_PATH in CMa
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::TextEditorPlugin</name> <name>::TextEditor</name>
<message> <message>
<source>Ctrl+Space</source> <source>Ctrl+Space</source>
<translation>Ctrl+Space</translation> <translation>Ctrl+Space</translation>
@@ -15973,7 +15951,7 @@ Möchten Sie sie überschreiben?</translation>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::OutlineWidgetStack</name> <name>::TextEditor</name>
<message> <message>
<source>No outline available</source> <source>No outline available</source>
<translation>Überblick nicht verfügbar</translation> <translation>Überblick nicht verfügbar</translation>
@@ -15990,9 +15968,6 @@ Möchten Sie sie überschreiben?</translation>
<source>Sort Alphabetically</source> <source>Sort Alphabetically</source>
<translation>Alphabetisch sortieren</translation> <translation>Alphabetisch sortieren</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::OutlineFactory</name>
<message> <message>
<source>Outline</source> <source>Outline</source>
<translation>Überblick</translation> <translation>Überblick</translation>
@@ -16611,7 +16586,7 @@ konnte nicht unter Versionsverwaltung (%2) gestellt werden
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::SnippetsTableModel</name> <name>::TextEditor</name>
<message> <message>
<source>Error</source> <source>Error</source>
<translation>Fehler</translation> <translation>Fehler</translation>
@@ -19646,7 +19621,7 @@ Speichern fehlgeschlagen.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::BehaviorSettingsPage</name> <name>::TextEditor</name>
<message> <message>
<source>Global</source> <source>Global</source>
<comment>Settings</comment> <comment>Settings</comment>
@@ -19656,16 +19631,10 @@ Speichern fehlgeschlagen.</translation>
<source>Behavior</source> <source>Behavior</source>
<translation>Verhalten</translation> <translation>Verhalten</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FunctionHintProposalWidget</name>
<message> <message>
<source>%1 of %2</source> <source>%1 of %2</source>
<translation>%1 von %2</translation> <translation>%1 von %2</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsCollection</name>
<message> <message>
<source>Cannot create user snippet directory %1</source> <source>Cannot create user snippet directory %1</source>
<translation>Das Snippet-Verzeichnis des Nutzers konnte nicht erstellt werden: %1</translation> <translation>Das Snippet-Verzeichnis des Nutzers konnte nicht erstellt werden: %1</translation>
@@ -21027,11 +20996,7 @@ When disabled, moves targets straight to the current mouse position.</source>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::CodeStyleSelectorWidget</name> <name>::TextEditor</name>
<message>
<source>Copy...</source>
<translation>Kopieren...</translation>
</message>
<message> <message>
<source>Remove</source> <source>Remove</source>
<translation>Entfernen</translation> <translation>Entfernen</translation>
@@ -21068,10 +21033,6 @@ When disabled, moves targets straight to the current mouse position.</source>
<source>Are you sure you want to delete this code style permanently?</source> <source>Are you sure you want to delete this code style permanently?</source>
<translation>Möchten Sie diesen Coding-Stil endgültig löschen?</translation> <translation>Möchten Sie diesen Coding-Stil endgültig löschen?</translation>
</message> </message>
<message>
<source>Delete</source>
<translation>Löschen</translation>
</message>
<message> <message>
<source>Import Code Style</source> <source>Import Code Style</source>
<translation>Coding Style importieren</translation> <translation>Coding Style importieren</translation>
@@ -21096,9 +21057,6 @@ When disabled, moves targets straight to the current mouse position.</source>
<source>%1 [built-in]</source> <source>%1 [built-in]</source>
<translation>%1 [eingebaut]</translation> <translation>%1 [eingebaut]</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FindInFiles</name>
<message> <message>
<source>Files in File System</source> <source>Files in File System</source>
<translation>Dateien aus Dateisystem</translation> <translation>Dateien aus Dateisystem</translation>
@@ -21184,7 +21142,7 @@ Außer: %3
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::CodeStyleEditor</name> <name>::TextEditor</name>
<message> <message>
<source>Edit preview contents to see how the current settings are applied to custom code snippets. Changes in the preview do not affect the current settings.</source> <source>Edit preview contents to see how the current settings are applied to custom code snippets. Changes in the preview do not affect the current settings.</source>
<translation>Ändern Sie den Inhalt der Vorschau, um zu sehen wie sich die aktuellen Einstellungen auf die benutzerdefinierten Snippets auswirken. Änderungen der Vorschau haben keinen Einfluss auf die Einstellungen.</translation> <translation>Ändern Sie den Inhalt der Vorschau, um zu sehen wie sich die aktuellen Einstellungen auf die benutzerdefinierten Snippets auswirken. Änderungen der Vorschau haben keinen Einfluss auf die Einstellungen.</translation>
@@ -22095,7 +22053,7 @@ Bitte aktualisieren Sie Ihr Kit (%3) oder wählen Sie eine mkspec für qmake, di
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::BehaviorSettingsWidget</name> <name>::TextEditor</name>
<message> <message>
<source>Typing</source> <source>Typing</source>
<translation>Beim Tippen</translation> <translation>Beim Tippen</translation>
@@ -22330,9 +22288,6 @@ Gibt an, wie sich die Rücktaste bezüglich Einrückung verhält.
<source>Windows (CRLF)</source> <source>Windows (CRLF)</source>
<translation>Windows (CRLF)</translation> <translation>Windows (CRLF)</translation>
</message> </message>
</context>
<context>
<name>TextEditor::DisplaySettingsPage</name>
<message> <message>
<source>Display</source> <source>Display</source>
<translation>Anzeige</translation> <translation>Anzeige</translation>
@@ -22457,9 +22412,6 @@ Gibt an, wie sich die Rücktaste bezüglich Einrückung verhält.
<source>Between lines</source> <source>Between lines</source>
<translation>Zwischen den Zeilen</translation> <translation>Zwischen den Zeilen</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::HighlighterSettingsPage</name>
<message> <message>
<source>Syntax Highlight Definition Files</source> <source>Syntax Highlight Definition Files</source>
<translation>Definitionsdateien für die Syntaxhervorhebung</translation> <translation>Definitionsdateien für die Syntaxhervorhebung</translation>
@@ -22488,10 +22440,6 @@ Gibt an, wie sich die Rücktaste bezüglich Einrückung verhält.
<source>Download missing and update existing syntax definition files.</source> <source>Download missing and update existing syntax definition files.</source>
<translation>Fehlende Syntax-Definitionsdateien herunterladen und bestehende aktualisieren.</translation> <translation>Fehlende Syntax-Definitionsdateien herunterladen und bestehende aktualisieren.</translation>
</message> </message>
<message>
<source>Download Definitions</source>
<translation>Definitionen herunterladen</translation>
</message>
<message> <message>
<source>Reload externally modified definition files.</source> <source>Reload externally modified definition files.</source>
<translation>Extern geänderte Definitionsdateien neu laden.</translation> <translation>Extern geänderte Definitionsdateien neu laden.</translation>
@@ -22508,17 +22456,10 @@ Gibt an, wie sich die Rücktaste bezüglich Einrückung verhält.
<source>Download finished</source> <source>Download finished</source>
<translation>Herunterladen beendet</translation> <translation>Herunterladen beendet</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsSettingsPage</name>
<message> <message>
<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>Revert Built-in</source> <source>Revert Built-in</source>
<translation>Internes Snippet zurücksetzen</translation> <translation>Internes Snippet zurücksetzen</translation>
@@ -22539,10 +22480,6 @@ Gibt an, wie sich die Rücktaste bezüglich Einrückung verhält.
<source>Error While Saving Snippet Collection</source> <source>Error While Saving Snippet Collection</source>
<translation>Fehler beim Speichern der Snippet-Sammlung</translation> <translation>Fehler beim Speichern der Snippet-Sammlung</translation>
</message> </message>
<message>
<source>Error</source>
<translation>Fehler</translation>
</message>
<message> <message>
<source>No snippet selected.</source> <source>No snippet selected.</source>
<translation>Kein Snippet ausgewählt.</translation> <translation>Kein Snippet ausgewählt.</translation>
@@ -22551,9 +22488,6 @@ Gibt an, wie sich die Rücktaste bezüglich Einrückung verhält.
<source>Snippets</source> <source>Snippets</source>
<translation>Snippets</translation> <translation>Snippets</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TabSettingsWidget</name>
<message> <message>
<source>Tabs And Indentation</source> <source>Tabs And Indentation</source>
<translation>Tabulatoren und Einrückung</translation> <translation>Tabulatoren und Einrückung</translation>
@@ -24670,7 +24604,7 @@ the manifest file by overriding your settings. Allow override?</source>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::FindInOpenFiles</name> <name>::TextEditor</name>
<message> <message>
<source>Open Documents</source> <source>Open Documents</source>
<translation>Offene Dokumente</translation> <translation>Offene Dokumente</translation>
@@ -27921,7 +27855,7 @@ The affected files are:
</message> </message>
</context> </context>
<context> <context>
<name>RefactoringFile::apply</name> <name>::TextEditor</name>
<message> <message>
<source>Refactoring cannot be applied.</source> <source>Refactoring cannot be applied.</source>
<translation>Refaktorisierung konnte nicht angewandt werden.</translation> <translation>Refaktorisierung konnte nicht angewandt werden.</translation>
@@ -30871,7 +30805,7 @@ Möchten Sie es beenden?</translation>
</message> </message>
</context> </context>
<context> <context>
<name>FontSettings_C_OCCURRENCES_UNUSED</name> <name>::TextEditor</name>
<message> <message>
<source>Unused variable</source> <source>Unused variable</source>
<translation>Unbenutzte Variable</translation> <translation>Unbenutzte Variable</translation>
@@ -34277,7 +34211,7 @@ Benutzen Sie dies nur für Prototypen. Sie können damit keine vollständige Anw
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::TextDocument</name> <name>::TextEditor</name>
<message> <message>
<source>Diff Against Current File</source> <source>Diff Against Current File</source>
<translation>Mit aktueller Datei vergleichen</translation> <translation>Mit aktueller Datei vergleichen</translation>
@@ -34286,9 +34220,6 @@ Benutzen Sie dies nur für Prototypen. Sie können damit keine vollständige Anw
<source>Opening File</source> <source>Opening File</source>
<translation>Öffne Datei</translation> <translation>Öffne Datei</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorWidget</name>
<message> <message>
<source>Cursor position: %1</source> <source>Cursor position: %1</source>
<translation>Position der Einfügemarke: %1</translation> <translation>Position der Einfügemarke: %1</translation>
@@ -35491,7 +35422,7 @@ Error:
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::TextEditorActionHandler</name> <name>::TextEditor</name>
<message> <message>
<source>&amp;Undo</source> <source>&amp;Undo</source>
<translation>&amp;Rückgängig</translation> <translation>&amp;Rückgängig</translation>
@@ -38224,11 +38155,7 @@ Sie werden erhalten.</numerusform>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::CompletionSettingsPage</name> <name>::TextEditor</name>
<message>
<source>Behavior</source>
<translation>Verhalten</translation>
</message>
<message> <message>
<source>Activate completion:</source> <source>Activate completion:</source>
<translation>Code-Vervollständigung aktivieren:</translation> <translation>Code-Vervollständigung aktivieren:</translation>
@@ -38241,10 +38168,6 @@ Sie werden erhalten.</numerusform>
<source>Full</source> <source>Full</source>
<translation>Vollständig</translation> <translation>Vollständig</translation>
</message> </message>
<message>
<source>None</source>
<translation>Keine</translation>
</message>
<message> <message>
<source>First Letter</source> <source>First Letter</source>
<translation>Erster Buchstabe</translation> <translation>Erster Buchstabe</translation>
@@ -38257,10 +38180,6 @@ Sie werden erhalten.</numerusform>
<source>When Triggered</source> <source>When Triggered</source>
<translation>Auf Anforderung</translation> <translation>Auf Anforderung</translation>
</message> </message>
<message>
<source>Always</source>
<translation>Immer</translation>
</message>
<message> <message>
<source>Timeout in ms:</source> <source>Timeout in ms:</source>
<translation>Zeitüberschreitung nach (ms):</translation> <translation>Zeitüberschreitung nach (ms):</translation>
@@ -40270,7 +40189,7 @@ Ablaufdatum: %3</translation>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::TextEditorSettings</name> <name>::TextEditor</name>
<message> <message>
<source>Text</source> <source>Text</source>
<translation>Text</translation> <translation>Text</translation>
@@ -40829,10 +40748,6 @@ Außer Leerzeichen innerhalb von Kommentaren und Zeichenketten.</translation>
<source>Applied to commit subjects in VCS log.</source> <source>Applied to commit subjects in VCS log.</source>
<translation>Wird auf Titel von Commits in einem Versionskontroll-Log angewendet.</translation> <translation>Wird auf Titel von Commits in einem Versionskontroll-Log angewendet.</translation>
</message> </message>
<message>
<source>Error</source>
<translation>Fehler</translation>
</message>
<message> <message>
<source>Underline color of error diagnostics.</source> <source>Underline color of error diagnostics.</source>
<translation>Unterstreichung von Fehlern.</translation> <translation>Unterstreichung von Fehlern.</translation>
@@ -40974,7 +40889,7 @@ Außer Leerzeichen innerhalb von Kommentaren und Zeichenketten.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::SearchEngine</name> <name>::TextEditor</name>
<message> <message>
<source>Internal</source> <source>Internal</source>
<translation>Intern</translation> <translation>Intern</translation>
@@ -41369,7 +41284,7 @@ Are you sure?</source>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::Snippets</name> <name>::TextEditor</name>
<message> <message>
<source>derived from QObject</source> <source>derived from QObject</source>
<comment>group:&apos;C++&apos; trigger:&apos;class&apos;</comment> <comment>group:&apos;C++&apos; trigger:&apos;class&apos;</comment>
@@ -43592,7 +43507,7 @@ You might find further explanations in the Application Output view.</source>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Highlighter</name> <name>::TextEditor</name>
<message> <message>
<source>Highlighter updates: done</source> <source>Highlighter updates: done</source>
<translation>Aktualisierungen der Syntaxhervorhebung: abgeschlossen</translation> <translation>Aktualisierungen der Syntaxhervorhebung: abgeschlossen</translation>
@@ -56181,7 +56096,7 @@ Failed to open file &quot;%1&quot;</source>
</message> </message>
</context> </context>
<context> <context>
<name>Snippet</name> <name>::TextEditor</name>
<message> <message>
<source>Expected delimiter after mangler ID.</source> <source>Expected delimiter after mangler ID.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -56194,9 +56109,6 @@ Failed to open file &quot;%1&quot;</source>
<source>Missing closing variable delimiter for:</source> <source>Missing closing variable delimiter for:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextMark</name>
<message> <message>
<source>Show Diagnostic Settings</source> <source>Show Diagnostic Settings</source>
<translation>Diagnosekonfiguration anzeigen</translation> <translation>Diagnosekonfiguration anzeigen</translation>

View File

@@ -9359,14 +9359,7 @@ Para hacerlo, introduzca el atajo y un espacio en el campo Localización, y lueg
</message> </message>
</context> </context>
<context> <context>
<name>Snippets::Internal::SnippetsPlugin</name> <name>::TextEditor</name>
<message>
<source>Snippets</source>
<translation>Fragmentos</translation>
</message>
</context>
<context>
<name>Snippets::Internal::SnippetsWindow</name>
<message> <message>
<source>Snippets</source> <source>Snippets</source>
<translation>Fragmentos</translation> <translation>Fragmentos</translation>
@@ -9665,7 +9658,7 @@ Para hacerlo, introduzca el atajo y un espacio en el campo Localización, y lueg
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::BaseFileFind</name> <name>::TextEditor</name>
<message> <message>
<source>%1 found</source> <source>%1 found</source>
<translation>%1 encontrado</translation> <translation>%1 encontrado</translation>
@@ -9678,9 +9671,6 @@ Para hacerlo, introduzca el atajo y un espacio en el campo Localización, y lueg
<source>Use Regular E&amp;xpressions</source> <source>Use Regular E&amp;xpressions</source>
<translation>Usar &amp;expresiones regulares</translation> <translation>Usar &amp;expresiones regulares</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseTextDocument</name>
<message> <message>
<source>untitled</source> <source>untitled</source>
<translation>sin título</translation> <translation>sin título</translation>
@@ -9689,9 +9679,6 @@ Para hacerlo, introduzca el atajo y un espacio en el campo Localización, y lueg
<source>&lt;em&gt;Binary data&lt;/em&gt;</source> <source>&lt;em&gt;Binary data&lt;/em&gt;</source>
<translation>&lt;em&gt;Datos binarios&lt;/em&gt;</translation> <translation>&lt;em&gt;Datos binarios&lt;/em&gt;</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseTextEditor</name>
<message> <message>
<source>Print Document</source> <source>Print Document</source>
<translation>Imprimir documento</translation> <translation>Imprimir documento</translation>
@@ -9704,9 +9691,6 @@ Para hacerlo, introduzca el atajo y un espacio en el campo Localización, y lueg
<source>Select Encoding</source> <source>Select Encoding</source>
<translation>Seleccióne codificación</translation> <translation>Seleccióne codificación</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseTextEditorEditable</name>
<message> <message>
<source>Line: %1, Col: %2</source> <source>Line: %1, Col: %2</source>
<translation>Línea: %1, Col: %2</translation> <translation>Línea: %1, Col: %2</translation>
@@ -9715,9 +9699,6 @@ Para hacerlo, introduzca el atajo y un espacio en el campo Localización, y lueg
<source>Line: %1, Col: 999</source> <source>Line: %1, Col: 999</source>
<translation>Línea: %1, Col: 999</translation> <translation>Línea: %1, Col: 999</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BehaviorSettingsPage</name>
<message> <message>
<source>Storage</source> <source>Storage</source>
<translation>Almacenamiento</translation> <translation>Almacenamiento</translation>
@@ -9812,9 +9793,6 @@ Para hacerlo, introduzca el atajo y un espacio en el campo Localización, y lueg
<source>In leading white space</source> <source>In leading white space</source>
<translation>Cuando empiece con un espacio</translation> <translation>Cuando empiece con un espacio</translation>
</message> </message>
</context>
<context>
<name>TextEditor::DisplaySettingsPage</name>
<message> <message>
<source>Display</source> <source>Display</source>
<translation>Mostrar</translation> <translation>Mostrar</translation>
@@ -9884,9 +9862,6 @@ Para hacerlo, introduzca el atajo y un espacio en el campo Localización, y lueg
<source>Mark text changes</source> <source>Mark text changes</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::FontSettingsPage</name>
<message> <message>
<source>Font &amp; Colors</source> <source>Font &amp; Colors</source>
<translation>Fuentes &amp; colores</translation> <translation>Fuentes &amp; colores</translation>
@@ -9932,9 +9907,6 @@ Para hacerlo, introduzca el atajo y un espacio en el campo Localización, y lueg
This is only an example.</source> This is only an example.</source>
<translation type="obsolete">Esto es simplemente un ejemplo.</translation> <translation type="obsolete">Esto es simplemente un ejemplo.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::CodecSelector</name>
<message> <message>
<source>Text Encoding</source> <source>Text Encoding</source>
<translation>Codificación de caracteres</translation> <translation>Codificación de caracteres</translation>
@@ -9956,16 +9928,10 @@ The following encodings are likely to fit:</source>
<source>Save with Encoding</source> <source>Save with Encoding</source>
<translation>Guardar con codificación</translation> <translation>Guardar con codificación</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FindInCurrentFile</name>
<message> <message>
<source>Current File</source> <source>Current File</source>
<translation>Archivo actual</translation> <translation>Archivo actual</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FindInFiles</name>
<message> <message>
<source>Files on Disk</source> <source>Files on Disk</source>
<translation>Archivos en disco</translation> <translation>Archivos en disco</translation>
@@ -9986,9 +9952,6 @@ The following encodings are likely to fit:</source>
<source>Directory to search</source> <source>Directory to search</source>
<translation>Directorio a buscar</translation> <translation>Directorio a buscar</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FontSettingsPageWidget</name>
<message> <message>
<source>Font</source> <source>Font</source>
<translation>Fuente</translation> <translation>Fuente</translation>
@@ -10047,9 +10010,6 @@ The following encodings are likely to fit:</source>
<source>Delete</source> <source>Delete</source>
<translation type="unfinished">Suprimir</translation> <translation type="unfinished">Suprimir</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::LineNumberFilter</name>
<message> <message>
<source>Line in current document</source> <source>Line in current document</source>
<translation>Línea en el documento actual</translation> <translation>Línea en el documento actual</translation>
@@ -10058,9 +10018,6 @@ The following encodings are likely to fit:</source>
<source>Line %1</source> <source>Line %1</source>
<translation>Línea %1</translation> <translation>Línea %1</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::TextEditorPlugin</name>
<message> <message>
<source>Creates a text file (.txt).</source> <source>Creates a text file (.txt).</source>
<translation>Crea un archivo de texto (.txt).</translation> <translation>Crea un archivo de texto (.txt).</translation>
@@ -10093,9 +10050,6 @@ The following encodings are likely to fit:</source>
<source>Alt+Return</source> <source>Alt+Return</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorActionHandler</name>
<message> <message>
<source>&amp;Undo</source> <source>&amp;Undo</source>
<translation>Des&amp;hacer</translation> <translation>Des&amp;hacer</translation>
@@ -10280,9 +10234,6 @@ The following encodings are likely to fit:</source>
<source>&lt;line number&gt;</source> <source>&lt;line number&gt;</source>
<translation>&lt;número de línea&gt;</translation> <translation>&lt;número de línea&gt;</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorSettings</name>
<message> <message>
<source>Text</source> <source>Text</source>
<translation>Texto</translation> <translation>Texto</translation>
@@ -11495,7 +11446,7 @@ p, li { white-space: pre-wrap; }
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::ColorSchemeEdit</name> <name>::TextEditor</name>
<message> <message>
<source>Bold</source> <source>Bold</source>
<translation type="unfinished">Negritas</translation> <translation type="unfinished">Negritas</translation>
@@ -12754,14 +12705,11 @@ Check if the phone is connected and the TRK application is running.</source>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::ColorScheme</name> <name>::TextEditor</name>
<message> <message>
<source>Not a color scheme file.</source> <source>Not a color scheme file.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FontSettings</name>
<message> <message>
<source>Customized</source> <source>Customized</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>

File diff suppressed because it is too large Load Diff

View File

@@ -7793,7 +7793,7 @@ Sigurno želiš nastaviti?</translation>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::BehaviorSettingsWidget</name> <name>::TextEditor</name>
<message> <message>
<source>Typing</source> <source>Typing</source>
<translation>Tipkanje</translation> <translation>Tipkanje</translation>
@@ -7986,9 +7986,6 @@ Specificira način uvlačenja s povratnom tipkom.
<source>On Shift+Mouseover</source> <source>On Shift+Mouseover</source>
<translation>Shift+Miš iznad objekta</translation> <translation>Shift+Miš iznad objekta</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::CodeStyleSelectorWidget</name>
<message> <message>
<source>Current settings:</source> <source>Current settings:</source>
<translation>Trenutačne postavke:</translation> <translation>Trenutačne postavke:</translation>
@@ -8013,9 +8010,6 @@ Specificira način uvlačenja s povratnom tipkom.
<source>Import...</source> <source>Import...</source>
<translation>Uvezi </translation> <translation>Uvezi </translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::ColorSchemeEdit</name>
<message> <message>
<source>&lt;p align=&apos;center&apos;&gt;&lt;b&gt;Builtin color schemes need to be &lt;a href=&quot;copy&quot;&gt;copied&lt;/a&gt;&lt;br/&gt; before they can be changed&lt;/b&gt;&lt;/p&gt;</source> <source>&lt;p align=&apos;center&apos;&gt;&lt;b&gt;Builtin color schemes need to be &lt;a href=&quot;copy&quot;&gt;copied&lt;/a&gt;&lt;br/&gt; before they can be changed&lt;/b&gt;&lt;/p&gt;</source>
<translation>&lt;p align=&apos;center&apos;&gt;&lt;b&gt;Ugrađene sustave boja moraš &lt;a href=&quot;copy&quot;&gt;kopirati&lt;/a&gt;&lt;br/&gt; prije nego što ih možeš promijeniti&lt;/b&gt;&lt;/p&gt;</translation> <translation>&lt;p align=&apos;center&apos;&gt;&lt;b&gt;Ugrađene sustave boja moraš &lt;a href=&quot;copy&quot;&gt;kopirati&lt;/a&gt;&lt;br/&gt; prije nego što ih možeš promijeniti&lt;/b&gt;&lt;/p&gt;</translation>
@@ -8104,9 +8098,6 @@ Specificira način uvlačenja s povratnom tipkom.
<source>Dash-Dot-Dot Underline</source> <source>Dash-Dot-Dot Underline</source>
<translation>Crtica-točka-točka podcrtavanje</translation> <translation>Crtica-točka-točka podcrtavanje</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::CompletionSettingsPage</name>
<message> <message>
<source>Behavior</source> <source>Behavior</source>
<translation>Način ponašanja</translation> <translation>Način ponašanja</translation>
@@ -8123,10 +8114,6 @@ Specificira način uvlačenja s povratnom tipkom.
<source>Full</source> <source>Full</source>
<translation>Potpuno</translation> <translation>Potpuno</translation>
</message> </message>
<message>
<source>None</source>
<translation>Bez</translation>
</message>
<message> <message>
<source>First Letter</source> <source>First Letter</source>
<translation>Prvo slovo</translation> <translation>Prvo slovo</translation>
@@ -8139,10 +8126,6 @@ Specificira način uvlačenja s povratnom tipkom.
<source>When Triggered</source> <source>When Triggered</source>
<translation>Prilikom okidanja</translation> <translation>Prilikom okidanja</translation>
</message> </message>
<message>
<source>Always</source>
<translation>Uvijek</translation>
</message>
<message> <message>
<source>Timeout in ms:</source> <source>Timeout in ms:</source>
<translation>Vremensko ograničenje u ms:</translation> <translation>Vremensko ograničenje u ms:</translation>
@@ -8257,9 +8240,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Completion</source> <source>Completion</source>
<translation>Dovršavanje</translation> <translation>Dovršavanje</translation>
</message> </message>
</context>
<context>
<name>TextEditor::DisplaySettingsPage</name>
<message> <message>
<source>Text Wrapping</source> <source>Text Wrapping</source>
<translation>Prelamanje teksta</translation> <translation>Prelamanje teksta</translation>
@@ -8356,13 +8336,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Between lines</source> <source>Between lines</source>
<translation>Između redaka</translation> <translation>Između redaka</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FontSettingsPageWidget</name>
<message>
<source>Font</source>
<translation>Font</translation>
</message>
<message> <message>
<source>Size:</source> <source>Size:</source>
<translation>Veličina:</translation> <translation>Veličina:</translation>
@@ -8387,17 +8360,10 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Color Scheme</source> <source>Color Scheme</source>
<translation>Shema boja</translation> <translation>Shema boja</translation>
</message> </message>
<message>
<source>Copy...</source>
<translation>Kopiraj </translation>
</message>
<message> <message>
<source>Delete</source> <source>Delete</source>
<translation>Ukloni</translation> <translation>Ukloni</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::HighlighterSettingsPage</name>
<message> <message>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Highlight definitions are provided by the &lt;a href=&quot;https://api.kde.org/frameworks/syntax-highlighting/html/index.html&quot;&gt;KSyntaxHighlighting&lt;/a&gt; engine.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Highlight definitions are provided by the &lt;a href=&quot;https://api.kde.org/frameworks/syntax-highlighting/html/index.html&quot;&gt;KSyntaxHighlighting&lt;/a&gt; engine.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Definicije za isticanje omogućuje &lt;a href=&quot;https://api.kde.org/frameworks/syntax-highlighting/html/index.html&quot;&gt;KSyntaxHighlighting&lt;/a&gt;.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation> <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Definicije za isticanje omogućuje &lt;a href=&quot;https://api.kde.org/frameworks/syntax-highlighting/html/index.html&quot;&gt;KSyntaxHighlighting&lt;/a&gt;.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
@@ -8426,17 +8392,10 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Ignored file patterns:</source> <source>Ignored file patterns:</source>
<translation>Zanemareni uzorci za datoteke:</translation> <translation>Zanemareni uzorci za datoteke:</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsSettingsPage</name>
<message> <message>
<source>Add</source> <source>Add</source>
<translation>Dodaj</translation> <translation>Dodaj</translation>
</message> </message>
<message>
<source>Remove</source>
<translation>Ukloni</translation>
</message>
<message> <message>
<source>Revert Built-in</source> <source>Revert Built-in</source>
<translation>Vrati ugrađene</translation> <translation>Vrati ugrađene</translation>
@@ -8453,9 +8412,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Group: </source> <source>Group: </source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>TextEditor::TabSettingsWidget</name>
<message> <message>
<source>Tabs And Indentation</source> <source>Tabs And Indentation</source>
<translation>Tabulatori i uvlake</translation> <translation>Tabulatori i uvlake</translation>
@@ -33972,14 +33928,11 @@ Row: %4, Column: %5
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::SearchEngine</name> <name>::TextEditor</name>
<message> <message>
<source>Internal</source> <source>Internal</source>
<translation>Unutarnje</translation> <translation>Unutarnje</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseFileFind</name>
<message> <message>
<source>Searching</source> <source>Searching</source>
<translation>Pretraživanje</translation> <translation>Pretraživanje</translation>
@@ -34004,17 +33957,11 @@ Row: %4, Column: %5
<numerusform>%n nađenih.</numerusform> <numerusform>%n nađenih.</numerusform>
</translation> </translation>
</message> </message>
</context>
<context>
<name>TextEditor::BehaviorSettingsPage</name>
<message> <message>
<source>Global</source> <source>Global</source>
<comment>Settings</comment> <comment>Settings</comment>
<translation>Globalno</translation> <translation>Globalno</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BehaviorSettingsWidget</name>
<message> <message>
<source>Displays context-sensitive help or type information on mouseover.</source> <source>Displays context-sensitive help or type information on mouseover.</source>
<translation>Prikazuje kontekstnu pomoć ili upiši podatke prilikom korištenja &quot;Miš iznad objekta&quot;.</translation> <translation>Prikazuje kontekstnu pomoć ili upiši podatke prilikom korištenja &quot;Miš iznad objekta&quot;.</translation>
@@ -34023,16 +33970,10 @@ Row: %4, Column: %5
<source>Displays context-sensitive help or type information on Shift+Mouseover.</source> <source>Displays context-sensitive help or type information on Shift+Mouseover.</source>
<translation>Prikazuje kontekstnu pomoć ili upiši podatke prilikom korištenja &quot;Shift+Miš iznad objekta&quot;.</translation> <translation>Prikazuje kontekstnu pomoć ili upiši podatke prilikom korištenja &quot;Shift+Miš iznad objekta&quot;.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FunctionHintProposalWidget</name>
<message> <message>
<source>%1 of %2</source> <source>%1 of %2</source>
<translation>%1 od %2</translation> <translation>%1 od %2</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::CodecSelector</name>
<message> <message>
<source>Text Encoding</source> <source>Text Encoding</source>
<translation>Vrsta kodiranja teksta</translation> <translation>Vrsta kodiranja teksta</translation>
@@ -34053,16 +33994,10 @@ Row: %4, Column: %5
<source>Save with Encoding</source> <source>Save with Encoding</source>
<translation>Spremi s kodiranjem</translation> <translation>Spremi s kodiranjem</translation>
</message> </message>
</context>
<context>
<name>TextEditor::CodeStyleEditor</name>
<message> <message>
<source>Edit preview contents to see how the current settings are applied to custom code snippets. Changes in the preview do not affect the current settings.</source> <source>Edit preview contents to see how the current settings are applied to custom code snippets. Changes in the preview do not affect the current settings.</source>
<translation>Uredi sadržaj pregleda za prikaz primjene trenutačnih postavaka na prilagođene isječke koda. Promjene u pregledu ne utječu na trenutačne postavke.</translation> <translation>Uredi sadržaj pregleda za prikaz primjene trenutačnih postavaka na prilagođene isječke koda. Promjene u pregledu ne utječu na trenutačne postavke.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::CodeStyleDialog</name>
<message> <message>
<source>Edit Code Style</source> <source>Edit Code Style</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -34083,21 +34018,10 @@ Row: %4, Column: %5
<source>%1 (Copy)</source> <source>%1 (Copy)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::CodeStyleSelectorWidget</name>
<message> <message>
<source>Copy Code Style</source> <source>Copy Code Style</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Code style name:</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>%1 (Copy)</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>Delete Code Style</source> <source>Delete Code Style</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -34106,10 +34030,6 @@ Row: %4, Column: %5
<source>Are you sure you want to delete this code style permanently?</source> <source>Are you sure you want to delete this code style permanently?</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Delete</source>
<translation>Ukloni</translation>
</message>
<message> <message>
<source>Import Code Style</source> <source>Import Code Style</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -34134,16 +34054,10 @@ Row: %4, Column: %5
<source>%1 [built-in]</source> <source>%1 [built-in]</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::ColorScheme</name>
<message> <message>
<source>Not a color scheme file.</source> <source>Not a color scheme file.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FindInCurrentFile</name>
<message> <message>
<source>Current File</source> <source>Current File</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -34157,9 +34071,6 @@ Row: %4, Column: %5
%2</source> %2</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::FindInFiles</name>
<message> <message>
<source>Files in File System</source> <source>Files in File System</source>
<translation type="unfinished">Datoteke u datotečnom sustavu</translation> <translation type="unfinished">Datoteke u datotečnom sustavu</translation>
@@ -34188,9 +34099,6 @@ Excluding: %3
<source>Directory to Search</source> <source>Directory to Search</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FindInOpenFiles</name>
<message> <message>
<source>Open Documents</source> <source>Open Documents</source>
<translation type="unfinished">Otvori dokumente</translation> <translation type="unfinished">Otvori dokumente</translation>
@@ -34204,16 +34112,10 @@ Excluding: %3
%1</source> %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>FontSettings_C_OCCURRENCES_UNUSED</name>
<message> <message>
<source>Unused variable</source> <source>Unused variable</source>
<translation>Neupotrijebljena varijabla</translation> <translation>Neupotrijebljena varijabla</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FontSettingsPage</name>
<message> <message>
<source>Font &amp;&amp; Colors</source> <source>Font &amp;&amp; Colors</source>
<translation>Font &amp;i boje</translation> <translation>Font &amp;i boje</translation>
@@ -34242,10 +34144,6 @@ Excluding: %3
<source>Are you sure you want to delete this color scheme permanently?</source> <source>Are you sure you want to delete this color scheme permanently?</source>
<translation>Zaista želiš zauvijek ukloniti ovaj sustav boja?</translation> <translation>Zaista želiš zauvijek ukloniti ovaj sustav boja?</translation>
</message> </message>
<message>
<source>Delete</source>
<translation>Ukloni</translation>
</message>
<message> <message>
<source>Color Scheme Changed</source> <source>Color Scheme Changed</source>
<translation>Sustav boja se je promijenio</translation> <translation>Sustav boja se je promijenio</translation>
@@ -34258,9 +34156,6 @@ Excluding: %3
<source>Discard</source> <source>Discard</source>
<translation>Odbaci</translation> <translation>Odbaci</translation>
</message> </message>
</context>
<context>
<name>::TextEditor</name>
<message> <message>
<source>Cannot create temporary file &quot;%1&quot;: %2.</source> <source>Cannot create temporary file &quot;%1&quot;: %2.</source>
<translation>Nije moguće stvoriti privremenu datoteku &quot;%1&quot;: %2.</translation> <translation>Nije moguće stvoriti privremenu datoteku &quot;%1&quot;: %2.</translation>
@@ -34301,9 +34196,6 @@ Excluding: %3
<source>Text Editor</source> <source>Text Editor</source>
<translation>Uređivač teksta</translation> <translation>Uređivač teksta</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Highlighter</name>
<message> <message>
<source>Highlighter updates: done</source> <source>Highlighter updates: done</source>
<translation>Aktualiziranja alata za isticanje: gotovo</translation> <translation>Aktualiziranja alata za isticanje: gotovo</translation>
@@ -34312,9 +34204,6 @@ Excluding: %3
<source>Highlighter updates:</source> <source>Highlighter updates:</source>
<translation>Aktualiziranja alata za isticanje:</translation> <translation>Aktualiziranja alata za isticanje:</translation>
</message> </message>
</context>
<context>
<name>TextEditor::HighlighterSettingsPage</name>
<message> <message>
<source>Generic Highlighter</source> <source>Generic Highlighter</source>
<translation>Generični alat za isticanje</translation> <translation>Generični alat za isticanje</translation>
@@ -34323,9 +34212,6 @@ Excluding: %3
<source>Update finished</source> <source>Update finished</source>
<translation>Aktualiziranje je dovršeno</translation> <translation>Aktualiziranje je dovršeno</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::LineNumberFilter</name>
<message> <message>
<source>Line in Current Document</source> <source>Line in Current Document</source>
<translation>Redak u trenutačnom dokumentu</translation> <translation>Redak u trenutačnom dokumentu</translation>
@@ -34342,9 +34228,6 @@ Excluding: %3
<source>Column %1</source> <source>Column %1</source>
<translation>%1. stupac</translation> <translation>%1. stupac</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::OutlineWidgetStack</name>
<message> <message>
<source>No outline available</source> <source>No outline available</source>
<translation>Nema obrisa</translation> <translation>Nema obrisa</translation>
@@ -34357,23 +34240,14 @@ Excluding: %3
<source>Filter tree</source> <source>Filter tree</source>
<translation>Filtriraj stablo</translation> <translation>Filtriraj stablo</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::OutlineFactory</name>
<message> <message>
<source>Outline</source> <source>Outline</source>
<translation>Obris</translation> <translation>Obris</translation>
</message> </message>
</context>
<context>
<name>RefactoringFile::apply</name>
<message> <message>
<source>Refactoring cannot be applied.</source> <source>Refactoring cannot be applied.</source>
<translation>Nije moguće primijeniti refactoring.</translation> <translation>Nije moguće primijeniti refactoring.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::Snippets</name>
<message> <message>
<source></source> <source></source>
<comment>Snippets are text fragments that can be inserted into an editor via the usual completion mechanics using a trigger text. The translated text (trigger variant) is used to disambiguate between snippets with the same trigger.</comment> <comment>Snippets are text fragments that can be inserted into an editor via the usual completion mechanics using a trigger text. The translated text (trigger variant) is used to disambiguate between snippets with the same trigger.</comment>
@@ -34454,16 +34328,10 @@ Excluding: %3
<comment>group:&apos;Text&apos; trigger:&apos;global&apos;</comment> <comment>group:&apos;Text&apos; trigger:&apos;global&apos;</comment>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsCollection</name>
<message> <message>
<source>Cannot create user snippet directory %1</source> <source>Cannot create user snippet directory %1</source>
<translation>Nije moguće stvoriti direktorij %1 za korisničke isječke</translation> <translation>Nije moguće stvoriti direktorij %1 za korisničke isječke</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsTableModel</name>
<message> <message>
<source>Error</source> <source>Error</source>
<translation>Greška</translation> <translation>Greška</translation>
@@ -34484,9 +34352,6 @@ Excluding: %3
<source>Error reverting snippet.</source> <source>Error reverting snippet.</source>
<translation>Greška prilikom vraćanja isječka.</translation> <translation>Greška prilikom vraćanja isječka.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsSettingsPagePrivate</name>
<message> <message>
<source>Snippets</source> <source>Snippets</source>
<translation>Isječci</translation> <translation>Isječci</translation>
@@ -34495,17 +34360,10 @@ Excluding: %3
<source>Error While Saving Snippet Collection</source> <source>Error While Saving Snippet Collection</source>
<translation>Greška prilikom spremanja kolekcije isječaka</translation> <translation>Greška prilikom spremanja kolekcije isječaka</translation>
</message> </message>
<message>
<source>Error</source>
<translation>Greška</translation>
</message>
<message> <message>
<source>No snippet selected.</source> <source>No snippet selected.</source>
<translation>Nijedan isječak nije odabran.</translation> <translation>Nijedan isječak nije odabran.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextDocument</name>
<message> <message>
<source>Diff Against Current File</source> <source>Diff Against Current File</source>
<translation>Razlike prema odabranoj datoteci</translation> <translation>Razlike prema odabranoj datoteci</translation>
@@ -34514,9 +34372,6 @@ Excluding: %3
<source>Opening File</source> <source>Opening File</source>
<translation>Otvaranje datoteke</translation> <translation>Otvaranje datoteke</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorWidget</name>
<message> <message>
<source>Line: 9999, Col: 999</source> <source>Line: 9999, Col: 999</source>
<translation>9999. redak, 999. stupac</translation> <translation>9999. redak, 999. stupac</translation>
@@ -34561,17 +34416,10 @@ Excluding: %3
<source>Add UTF-8 BOM on Save</source> <source>Add UTF-8 BOM on Save</source>
<translation>Dodaj UTF-8 BOM prilikom spremanja</translation> <translation>Dodaj UTF-8 BOM prilikom spremanja</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseTextEditor</name>
<message> <message>
<source>A highlight definition was not found for this file. Would you like to update highlight definition files?</source> <source>A highlight definition was not found for this file. Would you like to update highlight definition files?</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Update Definitions</source>
<translation>Aktualiziraj definicije</translation>
</message>
<message> <message>
<source>More than one highlight definition was found for this file. Which one should be used to highlight this file?</source> <source>More than one highlight definition was found for this file. Which one should be used to highlight this file?</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -34580,9 +34428,6 @@ Excluding: %3
<source>Remember My Choice</source> <source>Remember My Choice</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::TextEditorActionHandler</name>
<message> <message>
<source>&amp;Undo</source> <source>&amp;Undo</source>
<translation>&amp;Poništi</translation> <translation>&amp;Poništi</translation>
@@ -35067,16 +34912,10 @@ Excluding: %3
<source>Go to Next Word Camel Case with Selection</source> <source>Go to Next Word Camel Case with Selection</source>
<translation>Prijeđi na sljedeću dvogrbu riječ s odabirom</translation> <translation>Prijeđi na sljedeću dvogrbu riječ s odabirom</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorActionHandler</name>
<message> <message>
<source>&lt;line&gt;:&lt;column&gt;</source> <source>&lt;line&gt;:&lt;column&gt;</source>
<translation>&lt;redak&gt;:&lt;stupac&gt;</translation> <translation>&lt;redak&gt;:&lt;stupac&gt;</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::TextEditorPlugin</name>
<message> <message>
<source>Trigger Completion</source> <source>Trigger Completion</source>
<translation>Okini kompletiranje</translation> <translation>Okini kompletiranje</translation>
@@ -35130,9 +34969,6 @@ Excluding: %3
<source>Current document&apos;s font size in points.</source> <source>Current document&apos;s font size in points.</source>
<translation>Font veličina trenutačnog dokumenta, u točkama.</translation> <translation>Font veličina trenutačnog dokumenta, u točkama.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorSettings</name>
<message> <message>
<source>Text</source> <source>Text</source>
<translation>Tekst</translation> <translation>Tekst</translation>
@@ -35613,10 +35449,6 @@ Neće se primijeniti na bjeline u komentarima i znakovnim nizovima.</translation
<source>Applied to lines describing changes in VCS log.</source> <source>Applied to lines describing changes in VCS log.</source>
<translation>Primijenjuje se retke koji opisuju promjene u VCS log-zapisu.</translation> <translation>Primijenjuje se retke koji opisuju promjene u VCS log-zapisu.</translation>
</message> </message>
<message>
<source>Error</source>
<translation>Greška</translation>
</message>
<message> <message>
<source>Underline color of error diagnostics.</source> <source>Underline color of error diagnostics.</source>
<translation>Boja podcrtavanja dijagnoza za greške.</translation> <translation>Boja podcrtavanja dijagnoza za greške.</translation>
@@ -35653,14 +35485,6 @@ Neće se primijeniti na bjeline u komentarima i znakovnim nizovima.</translation
<source>Writable arguments of a function call.</source> <source>Writable arguments of a function call.</source>
<translation>Pisani argumenti poziva funkcije.</translation> <translation>Pisani argumenti poziva funkcije.</translation>
</message> </message>
<message>
<source>Behavior</source>
<translation>Način ponašanja</translation>
</message>
<message>
<source>Display</source>
<translation>Prikaz</translation>
</message>
</context> </context>
<context> <context>
<name>::Todo</name> <name>::Todo</name>

View File

@@ -15208,21 +15208,11 @@ Hogy ezt megtehesse, gépelje be ezt a gyorsbillentyűt és egy szóközt a Lok
</message> </message>
</context> </context>
<context> <context>
<name>Snippets::Internal::0</name> <name>::TextEditor</name>
<message> <message>
<source>Snippets</source> <source>Snippets</source>
<translation type="obsolete">Kódrészlet</translation> <translation type="obsolete">Kódrészlet</translation>
</message> </message>
</context>
<context>
<name>Snippets::Internal::SnippetsPlugin</name>
<message>
<source>Snippets</source>
<translation>Kódrészlet</translation>
</message>
</context>
<context>
<name>Snippets::Internal::SnippetsWindow</name>
<message> <message>
<source>Snippets</source> <source>Snippets</source>
<translation>Kódrészlet</translation> <translation>Kódrészlet</translation>
@@ -15729,7 +15719,7 @@ Hogy ezt megtehesse, gépelje be ezt a gyorsbillentyűt és egy szóközt a Lok
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::0</name> <name>::TextEditor</name>
<message> <message>
<source>%1 found</source> <source>%1 found</source>
<translation type="obsolete">%1 gefunden</translation> <translation type="obsolete">%1 gefunden</translation>
@@ -16192,9 +16182,6 @@ Hogy ezt megtehesse, gépelje be ezt a gyorsbillentyűt és egy szóközt a Lok
<source>Behavior</source> <source>Behavior</source>
<translation type="obsolete">Viselkedés</translation> <translation type="obsolete">Viselkedés</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseFileFind</name>
<message> <message>
<source>%1 found</source> <source>%1 found</source>
<translation>%1 gefunden</translation> <translation>%1 gefunden</translation>
@@ -16207,9 +16194,6 @@ Hogy ezt megtehesse, gépelje be ezt a gyorsbillentyűt és egy szóközt a Lok
<source>Use Regular E&amp;xpressions</source> <source>Use Regular E&amp;xpressions</source>
<translation>Reguláris kife&amp;jezések használata</translation> <translation>Reguláris kife&amp;jezések használata</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseTextDocument</name>
<message> <message>
<source>untitled</source> <source>untitled</source>
<translation>címtelen</translation> <translation>címtelen</translation>
@@ -16218,9 +16202,6 @@ Hogy ezt megtehesse, gépelje be ezt a gyorsbillentyűt és egy szóközt a Lok
<source>&lt;em&gt;Binary data&lt;/em&gt;</source> <source>&lt;em&gt;Binary data&lt;/em&gt;</source>
<translation>&lt;em&gt;Binäre Daten&lt;/em&gt;</translation> <translation>&lt;em&gt;Binäre Daten&lt;/em&gt;</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseTextEditor</name>
<message> <message>
<source>Print Document</source> <source>Print Document</source>
<translation>Dokumentum nyomtatása</translation> <translation>Dokumentum nyomtatása</translation>
@@ -16233,9 +16214,6 @@ Hogy ezt megtehesse, gépelje be ezt a gyorsbillentyűt és egy szóközt a Lok
<source>Select Encoding</source> <source>Select Encoding</source>
<translation>Kódolás kiválasztása</translation> <translation>Kódolás kiválasztása</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseTextEditorEditable</name>
<message> <message>
<source>Line: %1, Col: %2</source> <source>Line: %1, Col: %2</source>
<translation>Sor: %1, Oszlop: %2</translation> <translation>Sor: %1, Oszlop: %2</translation>
@@ -16244,9 +16222,6 @@ Hogy ezt megtehesse, gépelje be ezt a gyorsbillentyűt és egy szóközt a Lok
<source>Line: %1, Col: 999</source> <source>Line: %1, Col: 999</source>
<translation>Sor: %1, Oszlop: 999</translation> <translation>Sor: %1, Oszlop: 999</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BehaviorSettingsPage</name>
<message> <message>
<source>Tabs and Indentation</source> <source>Tabs and Indentation</source>
<translation>Tabulátorok és behúzás</translation> <translation>Tabulátorok és behúzás</translation>
@@ -16323,9 +16298,6 @@ Hogy ezt megtehesse, gépelje be ezt a gyorsbillentyűt és egy szóközt a Lok
<source>&amp;Ensure newline at end of file</source> <source>&amp;Ensure newline at end of file</source>
<translation>&amp;Győzödjön meg, hogy újsor van a fájlok végén</translation> <translation>&amp;Győzödjön meg, hogy újsor van a fájlok végén</translation>
</message> </message>
</context>
<context>
<name>TextEditor::DisplaySettingsPage</name>
<message> <message>
<source>Display</source> <source>Display</source>
<translation>Kijelzés</translation> <translation>Kijelzés</translation>
@@ -16382,9 +16354,6 @@ Hogy ezt megtehesse, gépelje be ezt a gyorsbillentyűt és egy szóközt a Lok
<source>Enable &amp;mouse navigation</source> <source>Enable &amp;mouse navigation</source>
<translation>&amp;Egér navigálás engedélyezése</translation> <translation>&amp;Egér navigálás engedélyezése</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FontSettingsPage</name>
<message> <message>
<source>Font &amp; Colors</source> <source>Font &amp; Colors</source>
<translation>Betű &amp; színek</translation> <translation>Betű &amp; színek</translation>
@@ -16425,9 +16394,6 @@ Hogy ezt megtehesse, gépelje be ezt a gyorsbillentyűt és egy szóközt a Lok
<source>Discard</source> <source>Discard</source>
<translation>Eldobás</translation> <translation>Eldobás</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::0</name>
<message> <message>
<source>Text Encoding</source> <source>Text Encoding</source>
<translation type="obsolete">Szöveg kódolás</translation> <translation type="obsolete">Szöveg kódolás</translation>
@@ -16558,9 +16524,6 @@ A következő kódolás valószínűleg erre illik:</translation>
<source>Meta+Space</source> <source>Meta+Space</source>
<translation type="obsolete">Meta+Space</translation> <translation type="obsolete">Meta+Space</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::CodecSelector</name>
<message> <message>
<source>Text Encoding</source> <source>Text Encoding</source>
<translation>Szöveg kódolás</translation> <translation>Szöveg kódolás</translation>
@@ -16583,16 +16546,10 @@ A következő kódolás valószínűleg erre illik:</translation>
<source>Save with Encoding</source> <source>Save with Encoding</source>
<translation>Mentés kódolással</translation> <translation>Mentés kódolással</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::ColorScheme</name>
<message> <message>
<source>Not a color scheme file.</source> <source>Not a color scheme file.</source>
<translation>Ez nem egy színterv fájl.</translation> <translation>Ez nem egy színterv fájl.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::ColorSchemeEdit</name>
<message> <message>
<source>Bold</source> <source>Bold</source>
<translation>Félkövér</translation> <translation>Félkövér</translation>
@@ -16617,16 +16574,10 @@ A következő kódolás valószínűleg erre illik:</translation>
<source>x</source> <source>x</source>
<translation>x</translation> <translation>x</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FindInCurrentFile</name>
<message> <message>
<source>Current File</source> <source>Current File</source>
<translation>Aktuális fájl</translation> <translation>Aktuális fájl</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FindInFiles</name>
<message> <message>
<source>Files on Disk</source> <source>Files on Disk</source>
<translation>Lemezen levő fájlok</translation> <translation>Lemezen levő fájlok</translation>
@@ -16647,16 +16598,10 @@ A következő kódolás valószínűleg erre illik:</translation>
<source>Directory to search</source> <source>Directory to search</source>
<translation>Könyvtárra keresés</translation> <translation>Könyvtárra keresés</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FontSettings</name>
<message> <message>
<source>Customized</source> <source>Customized</source>
<translation>Felöltöztetett</translation> <translation>Felöltöztetett</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FontSettingsPageWidget</name>
<message> <message>
<source>Font</source> <source>Font</source>
<translation>Betű</translation> <translation>Betű</translation>
@@ -16681,13 +16626,6 @@ A következő kódolás valószínűleg erre illik:</translation>
<source>Copy...</source> <source>Copy...</source>
<translation>Másolás...</translation> <translation>Másolás...</translation>
</message> </message>
<message>
<source>Delete</source>
<translation>Törlés</translation>
</message>
</context>
<context>
<name>TextEditor::Internal::LineNumberFilter</name>
<message> <message>
<source>Line %1</source> <source>Line %1</source>
<translation>%1-es sor</translation> <translation>%1-es sor</translation>
@@ -16696,9 +16634,6 @@ A következő kódolás valószínűleg erre illik:</translation>
<source>Line in current document</source> <source>Line in current document</source>
<translation>Sor az aktuális dokumentumban</translation> <translation>Sor az aktuális dokumentumban</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::TextEditorPlugin</name>
<message> <message>
<source>Creates a text file (.txt).</source> <source>Creates a text file (.txt).</source>
<translation>Szöveges fájl létrehozása(.txt.</translation> <translation>Szöveges fájl létrehozása(.txt.</translation>
@@ -16731,9 +16666,6 @@ A következő kódolás valószínűleg erre illik:</translation>
<source>Alt+Return</source> <source>Alt+Return</source>
<translation>Alt+Return</translation> <translation>Alt+Return</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorActionHandler</name>
<message> <message>
<source>&amp;Undo</source> <source>&amp;Undo</source>
<translation>&amp;Visszacsinál</translation> <translation>&amp;Visszacsinál</translation>
@@ -16926,9 +16858,6 @@ A következő kódolás valószínűleg erre illik:</translation>
<source>&lt;line number&gt;</source> <source>&lt;line number&gt;</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorSettings</name>
<message> <message>
<source>Text</source> <source>Text</source>
<translation>Szöveg</translation> <translation>Szöveg</translation>
@@ -17049,10 +16978,6 @@ A következő kódolás valószínűleg erre illik:</translation>
<source>Behavior</source> <source>Behavior</source>
<translation>Viselkedés</translation> <translation>Viselkedés</translation>
</message> </message>
<message>
<source>Display</source>
<translation>Kijelzés</translation>
</message>
</context> </context>
<context> <context>
<name>ToolChain</name> <name>ToolChain</name>

View File

@@ -9234,14 +9234,7 @@ Per eseguire la ricerca, scrivi questo prefisso, uno spazio e poi il termine da
</message> </message>
</context> </context>
<context> <context>
<name>Snippets::Internal::SnippetsPlugin</name> <name>::TextEditor</name>
<message>
<source>Snippets</source>
<translation>Frammenti</translation>
</message>
</context>
<context>
<name>Snippets::Internal::SnippetsWindow</name>
<message> <message>
<source>Snippets</source> <source>Snippets</source>
<translation>Frammenti</translation> <translation>Frammenti</translation>
@@ -9540,7 +9533,7 @@ Per eseguire la ricerca, scrivi questo prefisso, uno spazio e poi il termine da
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::BaseFileFind</name> <name>::TextEditor</name>
<message> <message>
<source>%1 found</source> <source>%1 found</source>
<translation>%1 trovati</translation> <translation>%1 trovati</translation>
@@ -9553,9 +9546,6 @@ Per eseguire la ricerca, scrivi questo prefisso, uno spazio e poi il termine da
<source>Use Regular E&amp;xpressions</source> <source>Use Regular E&amp;xpressions</source>
<translation>Usa &amp;Espressioni Regolari</translation> <translation>Usa &amp;Espressioni Regolari</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseTextDocument</name>
<message> <message>
<source>untitled</source> <source>untitled</source>
<translation>senza titolo</translation> <translation>senza titolo</translation>
@@ -9564,9 +9554,6 @@ Per eseguire la ricerca, scrivi questo prefisso, uno spazio e poi il termine da
<source>&lt;em&gt;Binary data&lt;/em&gt;</source> <source>&lt;em&gt;Binary data&lt;/em&gt;</source>
<translation>&lt;em&gt;Dati binari&lt;/em&gt;</translation> <translation>&lt;em&gt;Dati binari&lt;/em&gt;</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseTextEditor</name>
<message> <message>
<source>Print Document</source> <source>Print Document</source>
<translation>Stampa il Documento</translation> <translation>Stampa il Documento</translation>
@@ -9579,9 +9566,6 @@ Per eseguire la ricerca, scrivi questo prefisso, uno spazio e poi il termine da
<source>Select Encoding</source> <source>Select Encoding</source>
<translation>Seleziona Codifica</translation> <translation>Seleziona Codifica</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseTextEditorEditable</name>
<message> <message>
<source>Line: %1, Col: %2</source> <source>Line: %1, Col: %2</source>
<translation>Riga: %1, Col: %2</translation> <translation>Riga: %1, Col: %2</translation>
@@ -9590,9 +9574,6 @@ Per eseguire la ricerca, scrivi questo prefisso, uno spazio e poi il termine da
<source>Line: %1, Col: 999</source> <source>Line: %1, Col: 999</source>
<translation>Riga: %1, Col: 999</translation> <translation>Riga: %1, Col: 999</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BehaviorSettingsPage</name>
<message> <message>
<source>Storage</source> <source>Storage</source>
<translation>Salvataggio</translation> <translation>Salvataggio</translation>
@@ -9687,9 +9668,6 @@ Per eseguire la ricerca, scrivi questo prefisso, uno spazio e poi il termine da
<source>In leading white space</source> <source>In leading white space</source>
<translation>Sugli spazi all&apos;inizio</translation> <translation>Sugli spazi all&apos;inizio</translation>
</message> </message>
</context>
<context>
<name>TextEditor::DisplaySettingsPage</name>
<message> <message>
<source>Display</source> <source>Display</source>
<translation>Visualizzazione</translation> <translation>Visualizzazione</translation>
@@ -9759,9 +9737,6 @@ Per eseguire la ricerca, scrivi questo prefisso, uno spazio e poi il termine da
<source>Mark text changes</source> <source>Mark text changes</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::FontSettingsPage</name>
<message> <message>
<source>Font &amp; Colors</source> <source>Font &amp; Colors</source>
<translation>Font &amp; Colori</translation> <translation>Font &amp; Colori</translation>
@@ -9808,9 +9783,6 @@ Per eseguire la ricerca, scrivi questo prefisso, uno spazio e poi il termine da
<translation type="obsolete"> <translation type="obsolete">
Questo è solo un esempio.</translation> Questo è solo un esempio.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::CodecSelector</name>
<message> <message>
<source>Text Encoding</source> <source>Text Encoding</source>
<translation>Codifica del Testo</translation> <translation>Codifica del Testo</translation>
@@ -9833,16 +9805,10 @@ Queste codifiche dovrebbero andare bene:</translation>
<source>Save with Encoding</source> <source>Save with Encoding</source>
<translation>Salva con Codifica</translation> <translation>Salva con Codifica</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FindInCurrentFile</name>
<message> <message>
<source>Current File</source> <source>Current File</source>
<translation>File Corrente</translation> <translation>File Corrente</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FindInFiles</name>
<message> <message>
<source>Files on Disk</source> <source>Files on Disk</source>
<translation>File sul Disco</translation> <translation>File sul Disco</translation>
@@ -9863,9 +9829,6 @@ Queste codifiche dovrebbero andare bene:</translation>
<source>Directory to search</source> <source>Directory to search</source>
<translation>Cartella di ricerca</translation> <translation>Cartella di ricerca</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FontSettingsPageWidget</name>
<message> <message>
<source>Font</source> <source>Font</source>
<translation>Tipo di carattere</translation> <translation>Tipo di carattere</translation>
@@ -9928,9 +9891,6 @@ Queste codifiche dovrebbero andare bene:</translation>
<source>Delete</source> <source>Delete</source>
<translation type="unfinished">Elimina</translation> <translation type="unfinished">Elimina</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::LineNumberFilter</name>
<message> <message>
<source>Line %1</source> <source>Line %1</source>
<translation>Riga %1</translation> <translation>Riga %1</translation>
@@ -9939,9 +9899,6 @@ Queste codifiche dovrebbero andare bene:</translation>
<source>Line in current document</source> <source>Line in current document</source>
<translation>Riga nel documento corrente</translation> <translation>Riga nel documento corrente</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::TextEditorPlugin</name>
<message> <message>
<source>Creates a text file (.txt).</source> <source>Creates a text file (.txt).</source>
<translation>Crea un file di testo (.txt).</translation> <translation>Crea un file di testo (.txt).</translation>
@@ -9974,9 +9931,6 @@ Queste codifiche dovrebbero andare bene:</translation>
<source>Alt+Return</source> <source>Alt+Return</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorActionHandler</name>
<message> <message>
<source>&amp;Undo</source> <source>&amp;Undo</source>
<translation>&amp;Annulla</translation> <translation>&amp;Annulla</translation>
@@ -10161,9 +10115,6 @@ Queste codifiche dovrebbero andare bene:</translation>
<source>&lt;line number&gt;</source> <source>&lt;line number&gt;</source>
<translation>&lt;numero di riga&gt;</translation> <translation>&lt;numero di riga&gt;</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorSettings</name>
<message> <message>
<source>Text</source> <source>Text</source>
<translation>Testo</translation> <translation>Testo</translation>
@@ -10284,10 +10235,6 @@ Queste codifiche dovrebbero andare bene:</translation>
<source>Behavior</source> <source>Behavior</source>
<translation>Comportamento</translation> <translation>Comportamento</translation>
</message> </message>
<message>
<source>Display</source>
<translation>Visualizzazione</translation>
</message>
</context> </context>
<context> <context>
<name>TopicChooser</name> <name>TopicChooser</name>
@@ -11329,7 +11276,7 @@ p, li { white-space: pre-wrap; }
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::ColorSchemeEdit</name> <name>::TextEditor</name>
<message> <message>
<source>Bold</source> <source>Bold</source>
<translation type="unfinished">Grassetto</translation> <translation type="unfinished">Grassetto</translation>
@@ -12514,14 +12461,11 @@ Check if the phone is connected and the TRK application is running.</source>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::ColorScheme</name> <name>::TextEditor</name>
<message> <message>
<source>Not a color scheme file.</source> <source>Not a color scheme file.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FontSettings</name>
<message> <message>
<source>Customized</source> <source>Customized</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>

File diff suppressed because it is too large Load Diff

View File

@@ -1200,7 +1200,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::ColorSchemeEdit</name> <name>::TextEditor</name>
<message> <message>
<source>Bold</source> <source>Bold</source>
<translation>Pogrubiony</translation> <translation>Pogrubiony</translation>
@@ -1285,13 +1285,6 @@
<source>Color:</source> <source>Color:</source>
<translation>Kolor:</translation> <translation>Kolor:</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FontSettingsPageWidget</name>
<message>
<source>Font</source>
<translation>Czcionka</translation>
</message>
<message> <message>
<source>Family:</source> <source>Family:</source>
<translation>Rodzina:</translation> <translation>Rodzina:</translation>
@@ -8823,7 +8816,7 @@ Wstępnie wybiera wersję desktopową Qt do budowania aplikacji (jeśli jest dos
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::BaseFileFind</name> <name>::TextEditor</name>
<message> <message>
<source>Searching</source> <source>Searching</source>
<translation>Przeszukiwanie</translation> <translation>Przeszukiwanie</translation>
@@ -8848,9 +8841,6 @@ Wstępnie wybiera wersję desktopową Qt do budowania aplikacji (jeśli jest dos
<numerusform>%n znalezień.</numerusform> <numerusform>%n znalezień.</numerusform>
</translation> </translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseTextEditor</name>
<message> <message>
<source>A highlight definition was not found for this file. Would you like to try to find one?</source> <source>A highlight definition was not found for this file. Would you like to try to find one?</source>
<translation>Definicja podświetleń dla tego pliku nie została znaleziona. Czy chcesz spróbować znaleźć?</translation> <translation>Definicja podświetleń dla tego pliku nie została znaleziona. Czy chcesz spróbować znaleźć?</translation>
@@ -8859,9 +8849,6 @@ Wstępnie wybiera wersję desktopową Qt do budowania aplikacji (jeśli jest dos
<source>Show Highlighter Options...</source> <source>Show Highlighter Options...</source>
<translation>Pokaż opcje podświetlania...</translation> <translation>Pokaż opcje podświetlania...</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::CodecSelector</name>
<message> <message>
<source>Text Encoding</source> <source>Text Encoding</source>
<translation>Kodowanie tekstu</translation> <translation>Kodowanie tekstu</translation>
@@ -8882,16 +8869,10 @@ Wstępnie wybiera wersję desktopową Qt do budowania aplikacji (jeśli jest dos
<source>Save with Encoding</source> <source>Save with Encoding</source>
<translation>Zachowaj z kodowaniem</translation> <translation>Zachowaj z kodowaniem</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::ColorScheme</name>
<message> <message>
<source>Not a color scheme file.</source> <source>Not a color scheme file.</source>
<translation>Nie jest to plik ze schematem kolorów.</translation> <translation>Nie jest to plik ze schematem kolorów.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FindInCurrentFile</name>
<message> <message>
<source>Current File</source> <source>Current File</source>
<translation>Bieżący plik</translation> <translation>Bieżący plik</translation>
@@ -8906,9 +8887,6 @@ Wstępnie wybiera wersję desktopową Qt do budowania aplikacji (jeśli jest dos
<translation>Ścieżka pliku: %1 <translation>Ścieżka pliku: %1
%2</translation> %2</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FontSettingsPage</name>
<message> <message>
<source>Font &amp;&amp; Colors</source> <source>Font &amp;&amp; Colors</source>
<translation>Czcionki i kolory</translation> <translation>Czcionki i kolory</translation>
@@ -8937,10 +8915,6 @@ Wstępnie wybiera wersję desktopową Qt do budowania aplikacji (jeśli jest dos
<source>Are you sure you want to delete this color scheme permanently?</source> <source>Are you sure you want to delete this color scheme permanently?</source>
<translation>Czy usunąć ten schemat kolorów bezpowrotnie?</translation> <translation>Czy usunąć ten schemat kolorów bezpowrotnie?</translation>
</message> </message>
<message>
<source>Delete</source>
<translation>Usuń</translation>
</message>
<message> <message>
<source>Color Scheme Changed</source> <source>Color Scheme Changed</source>
<translation>Schemat kolorów został zmieniony</translation> <translation>Schemat kolorów został zmieniony</translation>
@@ -8953,9 +8927,6 @@ Wstępnie wybiera wersję desktopową Qt do budowania aplikacji (jeśli jest dos
<source>Discard</source> <source>Discard</source>
<translation>Odrzuć</translation> <translation>Odrzuć</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::LineNumberFilter</name>
<message> <message>
<source>Line %1, Column %2</source> <source>Line %1, Column %2</source>
<translation>Linia %1, kolumna %2</translation> <translation>Linia %1, kolumna %2</translation>
@@ -8972,16 +8943,10 @@ Wstępnie wybiera wersję desktopową Qt do budowania aplikacji (jeśli jest dos
<source>Line in Current Document</source> <source>Line in Current Document</source>
<translation>Linia w bieżącym dokumencie</translation> <translation>Linia w bieżącym dokumencie</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorActionHandler</name>
<message> <message>
<source>&lt;line&gt;:&lt;column&gt;</source> <source>&lt;line&gt;:&lt;column&gt;</source>
<translation>&lt;linia&gt;:&lt;kolumna&gt;</translation> <translation>&lt;linia&gt;:&lt;kolumna&gt;</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::TextEditorPlugin</name>
<message> <message>
<source>Ctrl+Space</source> <source>Ctrl+Space</source>
<translation>Ctrl+Space</translation> <translation>Ctrl+Space</translation>
@@ -9035,9 +9000,6 @@ Wstępnie wybiera wersję desktopową Qt do budowania aplikacji (jeśli jest dos
<source>Current document&apos;s font size in points.</source> <source>Current document&apos;s font size in points.</source>
<translation>Rozmiar czcionki bieżącego dokumentu w punktach.</translation> <translation>Rozmiar czcionki bieżącego dokumentu w punktach.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorSettings</name>
<message> <message>
<source>Text</source> <source>Text</source>
<translation>Tekst</translation> <translation>Tekst</translation>
@@ -9484,10 +9446,6 @@ Nie zostanie zastosowane do białych znaków w komentarzach i ciągach znakowych
<source>Applied to lines describing changes in VCS log.</source> <source>Applied to lines describing changes in VCS log.</source>
<translation>Stosowane do linii opisujących zmiany w logu systemu kontroli wersji.</translation> <translation>Stosowane do linii opisujących zmiany w logu systemu kontroli wersji.</translation>
</message> </message>
<message>
<source>Error</source>
<translation>Błędy</translation>
</message>
<message> <message>
<source>Underline color of error diagnostics.</source> <source>Underline color of error diagnostics.</source>
<translation>Kolor podkreślenia błędów.</translation> <translation>Kolor podkreślenia błędów.</translation>
@@ -13331,7 +13289,7 @@ Adds the library and include paths to the .pro file.</source>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::HighlighterSettingsPage</name> <name>::TextEditor</name>
<message> <message>
<source>Generic Highlighter</source> <source>Generic Highlighter</source>
<translation>Ogólne podświetlanie</translation> <translation>Ogólne podświetlanie</translation>
@@ -13360,9 +13318,6 @@ Adds the library and include paths to the .pro file.</source>
<source>Not possible to retrieve data.</source> <source>Not possible to retrieve data.</source>
<translation>Nie można odebrać danych.</translation> <translation>Nie można odebrać danych.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::ManageDefinitionsDialog</name>
<message> <message>
<source>Name</source> <source>Name</source>
<translation>Nazwa</translation> <translation>Nazwa</translation>
@@ -13411,9 +13366,6 @@ Adds the library and include paths to the .pro file.</source>
<source>Download Selected Definitions</source> <source>Download Selected Definitions</source>
<translation>Pobierz zaznaczone definicje</translation> <translation>Pobierz zaznaczone definicje</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::OutlineWidgetStack</name>
<message> <message>
<source>No outline available</source> <source>No outline available</source>
<translation>Konspekt nie jest dostępny</translation> <translation>Konspekt nie jest dostępny</translation>
@@ -13426,9 +13378,6 @@ Adds the library and include paths to the .pro file.</source>
<source>Filter tree</source> <source>Filter tree</source>
<translation>Przefiltruj drzewo</translation> <translation>Przefiltruj drzewo</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::OutlineFactory</name>
<message> <message>
<source>Outline</source> <source>Outline</source>
<translation>Konspekt</translation> <translation>Konspekt</translation>
@@ -15486,7 +15435,7 @@ Ponowić próbę?</translation>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::SnippetsTableModel</name> <name>::TextEditor</name>
<message> <message>
<source>Error</source> <source>Error</source>
<translation>Błąd</translation> <translation>Błąd</translation>
@@ -15507,9 +15456,6 @@ Ponowić próbę?</translation>
<source>Error reverting snippet.</source> <source>Error reverting snippet.</source>
<translation>Nie można odwrócić urywku.</translation> <translation>Nie można odwrócić urywku.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsSettingsPagePrivate</name>
<message> <message>
<source>Snippets</source> <source>Snippets</source>
<translation>Urywki</translation> <translation>Urywki</translation>
@@ -15518,10 +15464,6 @@ Ponowić próbę?</translation>
<source>Error While Saving Snippet Collection</source> <source>Error While Saving Snippet Collection</source>
<translation>Błąd zapisu kolekcji urywków</translation> <translation>Błąd zapisu kolekcji urywków</translation>
</message> </message>
<message>
<source>Error</source>
<translation>Błąd</translation>
</message>
<message> <message>
<source>No snippet selected.</source> <source>No snippet selected.</source>
<translation>Nie wybrano urywku.</translation> <translation>Nie wybrano urywku.</translation>
@@ -17203,22 +17145,16 @@ Do you want to save the data first?</source>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::BehaviorSettingsPage</name> <name>::TextEditor</name>
<message> <message>
<source>Global</source> <source>Global</source>
<comment>Settings</comment> <comment>Settings</comment>
<translation>Globalne</translation> <translation>Globalne</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FunctionHintProposalWidget</name>
<message> <message>
<source>%1 of %2</source> <source>%1 of %2</source>
<translation>%1 z %2</translation> <translation>%1 z %2</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsCollection</name>
<message> <message>
<source>Cannot create user snippet directory %1</source> <source>Cannot create user snippet directory %1</source>
<translation>Nie można utworzyć katalogu z urywkami użytkownika %1</translation> <translation>Nie można utworzyć katalogu z urywkami użytkownika %1</translation>
@@ -18243,14 +18179,11 @@ Dodatkowo, przetestowane zostanie połączenie z urządzeniem.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::CodeStyleEditor</name> <name>::TextEditor</name>
<message> <message>
<source>Edit preview contents to see how the current settings are applied to custom code snippets. Changes in the preview do not affect the current settings.</source> <source>Edit preview contents to see how the current settings are applied to custom code snippets. Changes in the preview do not affect the current settings.</source>
<translation>Zmodyfikuj zawartość podglądu, aby zobaczyć, jak bieżące ustawienia zostaną zastosowane do własnych fragmentów kodu. Zmiany w podglądzie nie wpływają na bieżące ustawienia.</translation> <translation>Zmodyfikuj zawartość podglądu, aby zobaczyć, jak bieżące ustawienia zostaną zastosowane do własnych fragmentów kodu. Zmiany w podglądzie nie wpływają na bieżące ustawienia.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::CodeStyleDialog</name>
<message> <message>
<source>Edit Code Style</source> <source>Edit Code Style</source>
<translation>Zmodyfikuj styl kodu</translation> <translation>Zmodyfikuj styl kodu</translation>
@@ -18271,21 +18204,10 @@ Dodatkowo, przetestowane zostanie połączenie z urządzeniem.</translation>
<source>%1 (Copy)</source> <source>%1 (Copy)</source>
<translation>%1 (Kopia)</translation> <translation>%1 (Kopia)</translation>
</message> </message>
</context>
<context>
<name>TextEditor::CodeStyleSelectorWidget</name>
<message> <message>
<source>Copy Code Style</source> <source>Copy Code Style</source>
<translation>Skopiuj styl kodu</translation> <translation>Skopiuj styl kodu</translation>
</message> </message>
<message>
<source>Code style name:</source>
<translation>Nazwa stylu kodu:</translation>
</message>
<message>
<source>%1 (Copy)</source>
<translation>%1 (Kopia)</translation>
</message>
<message> <message>
<source>Delete Code Style</source> <source>Delete Code Style</source>
<translation>Usuń styl kodu</translation> <translation>Usuń styl kodu</translation>
@@ -18294,10 +18216,6 @@ Dodatkowo, przetestowane zostanie połączenie z urządzeniem.</translation>
<source>Are you sure you want to delete this code style permanently?</source> <source>Are you sure you want to delete this code style permanently?</source>
<translation>Czy usunąć ten styl kodu bezpowrotnie?</translation> <translation>Czy usunąć ten styl kodu bezpowrotnie?</translation>
</message> </message>
<message>
<source>Delete</source>
<translation>Usuń</translation>
</message>
<message> <message>
<source>Import Code Style</source> <source>Import Code Style</source>
<translation>Zaimportuj styl kodu</translation> <translation>Zaimportuj styl kodu</translation>
@@ -18322,9 +18240,6 @@ Dodatkowo, przetestowane zostanie połączenie z urządzeniem.</translation>
<source>%1 [built-in]</source> <source>%1 [built-in]</source>
<translation>%1 [wbudowane]</translation> <translation>%1 [wbudowane]</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FindInFiles</name>
<message> <message>
<source>Files in File System</source> <source>Files in File System</source>
<translation>Pliki w systemie plików</translation> <translation>Pliki w systemie plików</translation>
@@ -19332,14 +19247,11 @@ Przedrostki te, w dodatku do nazwy bieżącego pliku, używane są do przełącz
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::BehaviorSettingsPage</name> <name>::TextEditor</name>
<message> <message>
<source>Form</source> <source>Form</source>
<translation>Formularz</translation> <translation>Formularz</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BehaviorSettingsWidget</name>
<message> <message>
<source>Typing</source> <source>Typing</source>
<translation>Pisanie</translation> <translation>Pisanie</translation>
@@ -19539,21 +19451,10 @@ Ustala, jak klawisz &quot;Backspace&quot; reaguje na wcięcia.
<source>Enable smart selection changing</source> <source>Enable smart selection changing</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::CodeStyleSelectorWidget</name>
<message>
<source>Form</source>
<translation>Formularz</translation>
</message>
<message> <message>
<source>Current settings:</source> <source>Current settings:</source>
<translation>Bieżące ustawienia:</translation> <translation>Bieżące ustawienia:</translation>
</message> </message>
<message>
<source>Copy...</source>
<translation>Kopiuj...</translation>
</message>
<message> <message>
<source>Edit...</source> <source>Edit...</source>
<translation>Modyfikuj...</translation> <translation>Modyfikuj...</translation>
@@ -19570,13 +19471,6 @@ Ustala, jak klawisz &quot;Backspace&quot; reaguje na wcięcia.
<source>Import...</source> <source>Import...</source>
<translation>Importuj...</translation> <translation>Importuj...</translation>
</message> </message>
</context>
<context>
<name>TextEditor::DisplaySettingsPage</name>
<message>
<source>Display</source>
<translation>Wyświetlanie</translation>
</message>
<message> <message>
<source>Display line &amp;numbers</source> <source>Display line &amp;numbers</source>
<translation>Wyświetlaj &amp;numery linii</translation> <translation>Wyświetlaj &amp;numery linii</translation>
@@ -19665,13 +19559,6 @@ Ustala, jak klawisz &quot;Backspace&quot; reaguje na wcięcia.
<source>Aligned at right side</source> <source>Aligned at right side</source>
<translation>Wyrównane do prawej strony</translation> <translation>Wyrównane do prawej strony</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::HighlighterSettingsPage</name>
<message>
<source>Form</source>
<translation>Formularz</translation>
</message>
<message> <message>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt; <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;
&lt;p&gt;Highlight definitions are provided by the &lt;a href=&quot;http://kate-editor.org/&quot;&gt;Kate Text Editor&lt;/a&gt;.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> &lt;p&gt;Highlight definitions are provided by the &lt;a href=&quot;http://kate-editor.org/&quot;&gt;Kate Text Editor&lt;/a&gt;.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
@@ -19690,21 +19577,10 @@ Ustala, jak klawisz &quot;Backspace&quot; reaguje na wcięcia.
<source>Use fallback location</source> <source>Use fallback location</source>
<translation>Użyj położenia zastępczego</translation> <translation>Użyj położenia zastępczego</translation>
</message> </message>
<message>
<source>Behavior</source>
<translation>Zachowanie</translation>
</message>
<message> <message>
<source>Ignored file patterns:</source> <source>Ignored file patterns:</source>
<translation>Ignorowane wzorce plików:</translation> <translation>Ignorowane wzorce plików:</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsSettingsPage</name>
<message>
<source>Form</source>
<translation>Formularz</translation>
</message>
<message> <message>
<source>Group: </source> <source>Group: </source>
<translation>Grupa: </translation> <translation>Grupa: </translation>
@@ -19713,10 +19589,6 @@ Ustala, jak klawisz &quot;Backspace&quot; reaguje na wcięcia.
<source>Add</source> <source>Add</source>
<translation>Dodaj</translation> <translation>Dodaj</translation>
</message> </message>
<message>
<source>Remove</source>
<translation>Usuń</translation>
</message>
<message> <message>
<source>Revert Built-in</source> <source>Revert Built-in</source>
<translation>Odwróć zmiany we wbudowanych</translation> <translation>Odwróć zmiany we wbudowanych</translation>
@@ -19729,13 +19601,6 @@ Ustala, jak klawisz &quot;Backspace&quot; reaguje na wcięcia.
<source>Reset All</source> <source>Reset All</source>
<translation>Przywróć wszystko</translation> <translation>Przywróć wszystko</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TabSettingsWidget</name>
<message>
<source>Form</source>
<translation>Formularz</translation>
</message>
<message> <message>
<source>Tabs And Indentation</source> <source>Tabs And Indentation</source>
<translation>Tabulatory i wcięcia</translation> <translation>Tabulatory i wcięcia</translation>
@@ -21817,7 +21682,7 @@ poinstruuje Qt Creatora o URI.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::FindInOpenFiles</name> <name>::TextEditor</name>
<message> <message>
<source>Open Documents</source> <source>Open Documents</source>
<translation>Otwarte dokumenty</translation> <translation>Otwarte dokumenty</translation>
@@ -25402,7 +25267,7 @@ Zdalny: %4</translation>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::BehaviorSettingsWidget</name> <name>::TextEditor</name>
<message> <message>
<source>Displays context-sensitive help or type information on mouseover.</source> <source>Displays context-sensitive help or type information on mouseover.</source>
<translation>Pokazuje pomoc kontekstową lub informację o typie po najechaniu kursorem myszy.</translation> <translation>Pokazuje pomoc kontekstową lub informację o typie po najechaniu kursorem myszy.</translation>
@@ -25411,9 +25276,6 @@ Zdalny: %4</translation>
<source>Displays context-sensitive help or type information on Shift+Mouseover.</source> <source>Displays context-sensitive help or type information on Shift+Mouseover.</source>
<translation>Pokazuje pomoc kontekstową lub informację o typie po naciśnięciu klawisza Shift i najechaniu kursorem myszy.</translation> <translation>Pokazuje pomoc kontekstową lub informację o typie po naciśnięciu klawisza Shift i najechaniu kursorem myszy.</translation>
</message> </message>
</context>
<context>
<name>RefactoringFile::apply</name>
<message> <message>
<source>Refactoring cannot be applied.</source> <source>Refactoring cannot be applied.</source>
<translation>Nie można zrefaktoryzować.</translation> <translation>Nie można zrefaktoryzować.</translation>
@@ -27989,7 +27851,7 @@ Czy przerwać ją?</translation>
</message> </message>
</context> </context>
<context> <context>
<name>FontSettings_C_OCCURRENCES_UNUSED</name> <name>::TextEditor</name>
<message> <message>
<source>Unused variable</source> <source>Unused variable</source>
<translation>Nieużywana zmienna</translation> <translation>Nieużywana zmienna</translation>
@@ -31831,7 +31693,7 @@ Pliki z katalogu źródłowego pakietu Android są kopiowane do katalogu budowan
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::MultiDefinitionDownloader</name> <name>::TextEditor</name>
<message> <message>
<source>Downloading Highlighting Definitions</source> <source>Downloading Highlighting Definitions</source>
<translation>Pobieranie definicji podświetleń</translation> <translation>Pobieranie definicji podświetleń</translation>
@@ -31852,16 +31714,10 @@ Pliki z katalogu źródłowego pakietu Android są kopiowane do katalogu budowan
<source>Download Error</source> <source>Download Error</source>
<translation>Błąd pobierania</translation> <translation>Błąd pobierania</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextDocument</name>
<message> <message>
<source>Opening File</source> <source>Opening File</source>
<translation>Otwieranie pliku</translation> <translation>Otwieranie pliku</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorWidget</name>
<message> <message>
<source>Print Document</source> <source>Print Document</source>
<translation>Wydruk dokumentu</translation> <translation>Wydruk dokumentu</translation>
@@ -33113,7 +32969,7 @@ Ustawianie pułapek w liniach plików może się nie udać.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::TextEditorActionHandler</name> <name>::TextEditor</name>
<message> <message>
<source>&amp;Undo</source> <source>&amp;Undo</source>
<translation>&amp;Cofnij</translation> <translation>&amp;Cofnij</translation>
@@ -36053,7 +35909,7 @@ Ustaw prawdziwy plik wykonywalny Clang.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::QuickFixFactory</name> <name>::TextEditor</name>
<message> <message>
<source>Create Getter and Setter Member Functions</source> <source>Create Getter and Setter Member Functions</source>
<translation>Dodaj metodę zwracającą (getter) i ustawiającą (setter)</translation> <translation>Dodaj metodę zwracającą (getter) i ustawiającą (setter)</translation>
@@ -36662,11 +36518,7 @@ Czy nadpisać go?</translation>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::CompletionSettingsPage</name> <name>::TextEditor</name>
<message>
<source>Behavior</source>
<translation>Zachowanie</translation>
</message>
<message> <message>
<source>Activate completion:</source> <source>Activate completion:</source>
<translation>Uaktywniaj uzupełnianie:</translation> <translation>Uaktywniaj uzupełnianie:</translation>
@@ -36679,10 +36531,6 @@ Czy nadpisać go?</translation>
<source>Full</source> <source>Full</source>
<translation>Pełne</translation> <translation>Pełne</translation>
</message> </message>
<message>
<source>None</source>
<translation>Brak</translation>
</message>
<message> <message>
<source>First Letter</source> <source>First Letter</source>
<translation>Tylko pierwsza litera</translation> <translation>Tylko pierwsza litera</translation>
@@ -36695,10 +36543,6 @@ Czy nadpisać go?</translation>
<source>When Triggered</source> <source>When Triggered</source>
<translation>Po wyzwoleniu</translation> <translation>Po wyzwoleniu</translation>
</message> </message>
<message>
<source>Always</source>
<translation>Zawsze</translation>
</message>
<message> <message>
<source>Timeout in ms:</source> <source>Timeout in ms:</source>
<translation>Limit czasu <translation>Limit czasu
@@ -38878,7 +38722,7 @@ Wiersz: %4, kolumna: %5
</message> </message>
</context> </context>
<context> <context>
<name>TextEditorWidget</name> <name>::TextEditor</name>
<message> <message>
<source>&lt;b&gt;Error:&lt;/b&gt; Could not decode &quot;%1&quot; with &quot;%2&quot;-encoding. Editing not possible.</source> <source>&lt;b&gt;Error:&lt;/b&gt; Could not decode &quot;%1&quot; with &quot;%2&quot;-encoding. Editing not possible.</source>
<translation>&lt;b&gt;Błąd:&lt;/b&gt; Nie można odkodować &quot;%1&quot; używając kodowania &quot;%2&quot;. Edycja nie jest możliwa.</translation> <translation>&lt;b&gt;Błąd:&lt;/b&gt; Nie można odkodować &quot;%1&quot; używając kodowania &quot;%2&quot;. Edycja nie jest możliwa.</translation>
@@ -40309,7 +40153,7 @@ Termin wygaśnięcia: %3</translation>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::InternalEngine</name> <name>::TextEditor</name>
<message> <message>
<source>Internal</source> <source>Internal</source>
<translation>Wewnętrzny</translation> <translation>Wewnętrzny</translation>
@@ -40769,7 +40613,7 @@ Błąd: %5</translation>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditorWidgetPrivate</name> <name>::TextEditor</name>
<message> <message>
<source>Other annotations:</source> <source>Other annotations:</source>
<translation>Inne adnotacje:</translation> <translation>Inne adnotacje:</translation>

View File

@@ -19247,7 +19247,7 @@ when they are not required, which will improve performance in most cases.</sourc
</message> </message>
</context> </context>
<context> <context>
<name>FontSettings_C_OCCURRENCES_UNUSED</name> <name>::TextEditor</name>
<message> <message>
<source>Unused variable</source> <source>Unused variable</source>
<translation>Неиспользуемая переменная</translation> <translation>Неиспользуемая переменная</translation>
@@ -40867,7 +40867,7 @@ For more details, see /etc/sysctl.d/10-ptrace.conf
</message> </message>
</context> </context>
<context> <context>
<name>RefactoringFile::apply</name> <name>::TextEditor</name>
<message> <message>
<source>Refactoring cannot be applied.</source> <source>Refactoring cannot be applied.</source>
<translation>Невозможно применить рефакторинг.</translation> <translation>Невозможно применить рефакторинг.</translation>
@@ -43735,9 +43735,6 @@ Row: %4, Column: %5
<source>File was modified.</source> <source>File was modified.</source>
<translation>Файл изменился.</translation> <translation>Файл изменился.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseFileFind</name>
<message> <message>
<source>Searching</source> <source>Searching</source>
<translation>Идёт поиск</translation> <translation>Идёт поиск</translation>
@@ -43762,9 +43759,6 @@ Row: %4, Column: %5
<numerusform>%n найдено.</numerusform> <numerusform>%n найдено.</numerusform>
</translation> </translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseTextEditor</name>
<message> <message>
<source>A highlight definition was not found for this file. Would you like to download additional highlight definition files?</source> <source>A highlight definition was not found for this file. Would you like to download additional highlight definition files?</source>
<translation>Не удалось найти определения подсветки для этого файла. Загрузить дополнительные файлы определений подсветки?</translation> <translation>Не удалось найти определения подсветки для этого файла. Загрузить дополнительные файлы определений подсветки?</translation>
@@ -43781,9 +43775,6 @@ Row: %4, Column: %5
<source>Remember My Choice</source> <source>Remember My Choice</source>
<translation>Запомнить мой выбор</translation> <translation>Запомнить мой выбор</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BehaviorSettingsPage</name>
<message> <message>
<source>Global</source> <source>Global</source>
<comment>Settings</comment> <comment>Settings</comment>
@@ -43793,9 +43784,6 @@ Row: %4, Column: %5
<source>Behavior</source> <source>Behavior</source>
<translation>Поведение</translation> <translation>Поведение</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BehaviorSettingsWidget</name>
<message> <message>
<source>Displays context-sensitive help or type information on mouseover.</source> <source>Displays context-sensitive help or type information on mouseover.</source>
<translation>Отображать контекстную справку или информацию о типе при наведении курсора мыши.</translation> <translation>Отображать контекстную справку или информацию о типе при наведении курсора мыши.</translation>
@@ -43812,16 +43800,10 @@ Row: %4, Column: %5
<source>Windows (CRLF)</source> <source>Windows (CRLF)</source>
<translation>Windows (CRLF)</translation> <translation>Windows (CRLF)</translation>
</message> </message>
</context>
<context>
<name>TextEditor::CodeStyleEditor</name>
<message> <message>
<source>Edit preview contents to see how the current settings are applied to custom code snippets. Changes in the preview do not affect the current settings.</source> <source>Edit preview contents to see how the current settings are applied to custom code snippets. Changes in the preview do not affect the current settings.</source>
<translation>Измените текст предпросмотра, чтобы увидеть, как текущие настройки влияют на разные участки кода. Изменения предпросмотра не влияют на текущие настройки.</translation> <translation>Измените текст предпросмотра, чтобы увидеть, как текущие настройки влияют на разные участки кода. Изменения предпросмотра не влияют на текущие настройки.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::CodeStyleSelectorWidget</name>
<message> <message>
<source>Copy Code Style</source> <source>Copy Code Style</source>
<translation>Копирование стиля кода</translation> <translation>Копирование стиля кода</translation>
@@ -43870,16 +43852,10 @@ Row: %4, Column: %5
<source>%1 [built-in]</source> <source>%1 [built-in]</source>
<translation>%1 [встроенный]</translation> <translation>%1 [встроенный]</translation>
</message> </message>
</context>
<context>
<name>TextEditor::DisplaySettingsPage</name>
<message> <message>
<source>Display</source> <source>Display</source>
<translation>Отображение</translation> <translation>Отображение</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FindInFiles</name>
<message> <message>
<source>Files in File System</source> <source>Files in File System</source>
<translation>Файлы в системе</translation> <translation>Файлы в системе</translation>
@@ -43911,9 +43887,6 @@ Excluding: %3
<source>Directory to Search</source> <source>Directory to Search</source>
<translation>Каталог поиска</translation> <translation>Каталог поиска</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FontSettingsPageWidget</name>
<message> <message>
<source>Color Scheme for Theme &quot;%1&quot;</source> <source>Color Scheme for Theme &quot;%1&quot;</source>
<translation>Цветовая схема темы «%1»</translation> <translation>Цветовая схема темы «%1»</translation>
@@ -43938,10 +43911,6 @@ Excluding: %3
<source>Are you sure you want to delete this color scheme permanently?</source> <source>Are you sure you want to delete this color scheme permanently?</source>
<translation>Вы действительно желаете навсегда удалить эту цветовую схему?</translation> <translation>Вы действительно желаете навсегда удалить эту цветовую схему?</translation>
</message> </message>
<message>
<source>Delete</source>
<translation>Удалить</translation>
</message>
<message> <message>
<source>Color Scheme Changed</source> <source>Color Scheme Changed</source>
<translation>Цветовая схема изменена</translation> <translation>Цветовая схема изменена</translation>
@@ -43958,16 +43927,10 @@ Excluding: %3
<source>Font &amp;&amp; Colors</source> <source>Font &amp;&amp; Colors</source>
<translation>Шрифт и цвета</translation> <translation>Шрифт и цвета</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FunctionHintProposalWidget</name>
<message> <message>
<source>%1 of %2</source> <source>%1 of %2</source>
<translation>%1 из %2</translation> <translation>%1 из %2</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Highlighter</name>
<message> <message>
<source>Highlighter updates: done</source> <source>Highlighter updates: done</source>
<translation>Обновление подсветки: готово</translation> <translation>Обновление подсветки: готово</translation>
@@ -43976,9 +43939,6 @@ Excluding: %3
<source>Highlighter updates:</source> <source>Highlighter updates:</source>
<translation>Обновление подсветки:</translation> <translation>Обновление подсветки:</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BehaviorSettingsWidget</name>
<message> <message>
<source>Typing</source> <source>Typing</source>
<translation>Набор текста</translation> <translation>Набор текста</translation>
@@ -44021,10 +43981,6 @@ Specifies how backspace interacts with indentation.
&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt; &lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;
</translation> </translation>
</message> </message>
<message>
<source>None</source>
<translation>Обычное</translation>
</message>
<message> <message>
<source>Follows Previous Indents</source> <source>Follows Previous Indents</source>
<translation>Следовать предыдущим отступам</translation> <translation>Следовать предыдущим отступам</translation>
@@ -44196,17 +44152,10 @@ Specifies how backspace interacts with indentation.
<source>List of wildcard-aware file patterns, separated by commas or semicolons.</source> <source>List of wildcard-aware file patterns, separated by commas or semicolons.</source>
<translation>Список шаблонов имён файлов, разделенных запятыми или точками с запятой.</translation> <translation>Список шаблонов имён файлов, разделенных запятыми или точками с запятой.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::CodeStyleDialog</name>
<message> <message>
<source>Edit Code Style</source> <source>Edit Code Style</source>
<translation>Изменение стиля кода</translation> <translation>Изменение стиля кода</translation>
</message> </message>
<message>
<source>Code style name:</source>
<translation>Имя стиля кода:</translation>
</message>
<message> <message>
<source>You cannot save changes to a built-in code style. Copy it first to create your own version.</source> <source>You cannot save changes to a built-in code style. Copy it first to create your own version.</source>
<translation>Нельзя сохранять изменения во встроенный стиль. Сначала его следует скопировать.</translation> <translation>Нельзя сохранять изменения во встроенный стиль. Сначала его следует скопировать.</translation>
@@ -44215,13 +44164,6 @@ Specifies how backspace interacts with indentation.
<source>Copy Built-in Code Style</source> <source>Copy Built-in Code Style</source>
<translation>Скопировать встроенный стиль</translation> <translation>Скопировать встроенный стиль</translation>
</message> </message>
<message>
<source>%1 (Copy)</source>
<translation>%1 (копия)</translation>
</message>
</context>
<context>
<name>TextEditor::Internal::CodeStyleSelectorWidget</name>
<message> <message>
<source>Current settings:</source> <source>Current settings:</source>
<translation>Текущие настройки:</translation> <translation>Текущие настройки:</translation>
@@ -44246,16 +44188,10 @@ Specifies how backspace interacts with indentation.
<source>Import...</source> <source>Import...</source>
<translation>Импорт...</translation> <translation>Импорт...</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::ColorScheme</name>
<message> <message>
<source>Not a color scheme file.</source> <source>Not a color scheme file.</source>
<translation>Это не файл цветовой схемы.</translation> <translation>Это не файл цветовой схемы.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::ColorSchemeEdit</name>
<message> <message>
<source>Bold</source> <source>Bold</source>
<translation>Жирный</translation> <translation>Жирный</translation>
@@ -44345,13 +44281,6 @@ Specifies how backspace interacts with indentation.
<source>&lt;p align=&apos;center&apos;&gt;&lt;b&gt;Builtin color schemes need to be &lt;a href=&quot;copy&quot;&gt;copied&lt;/a&gt;&lt;br/&gt; before they can be changed&lt;/b&gt;&lt;/p&gt;</source> <source>&lt;p align=&apos;center&apos;&gt;&lt;b&gt;Builtin color schemes need to be &lt;a href=&quot;copy&quot;&gt;copied&lt;/a&gt;&lt;br/&gt; before they can be changed&lt;/b&gt;&lt;/p&gt;</source>
<translation>&lt;p align=&apos;center&apos;&gt;&lt;b&gt;Чтобы изменить встроенные цветовые схемы,&lt;br/&gt;необходимо их сначала &lt;a href=&quot;copy&quot;&gt;скопировать&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;</translation> <translation>&lt;p align=&apos;center&apos;&gt;&lt;b&gt;Чтобы изменить встроенные цветовые схемы,&lt;br/&gt;необходимо их сначала &lt;a href=&quot;copy&quot;&gt;скопировать&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::CompletionSettingsPage</name>
<message>
<source>Behavior</source>
<translation>Поведение</translation>
</message>
<message> <message>
<source>Activate completion:</source> <source>Activate completion:</source>
<translation>Вызывать дополнение:</translation> <translation>Вызывать дополнение:</translation>
@@ -44380,10 +44309,6 @@ Specifies how backspace interacts with indentation.
<source>When Triggered</source> <source>When Triggered</source>
<translation>Когда явно требуется</translation> <translation>Когда явно требуется</translation>
</message> </message>
<message>
<source>Always</source>
<translation>Всегда</translation>
</message>
<message> <message>
<source>Timeout in ms:</source> <source>Timeout in ms:</source>
<translation>Таймаут, мс:</translation> <translation>Таймаут, мс:</translation>
@@ -44508,9 +44433,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Overwrite closing punctuation</source> <source>Overwrite closing punctuation</source>
<translation>Переписывать закрывающую пунктуацию</translation> <translation>Переписывать закрывающую пунктуацию</translation>
</message> </message>
</context>
<context>
<name>TextEditor::DisplaySettingsPage</name>
<message> <message>
<source>Display line &amp;numbers</source> <source>Display line &amp;numbers</source>
<translation>Показывать &amp;номера строк</translation> <translation>Показывать &amp;номера строк</translation>
@@ -44603,9 +44525,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Between lines</source> <source>Between lines</source>
<translation>Между строк</translation> <translation>Между строк</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FindInCurrentFile</name>
<message> <message>
<source>Current File</source> <source>Current File</source>
<translation>Текущий файл</translation> <translation>Текущий файл</translation>
@@ -44620,9 +44539,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<translation>Путь к файлу: %1 <translation>Путь к файлу: %1
%2</translation> %2</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FindInOpenFiles</name>
<message> <message>
<source>Open Documents</source> <source>Open Documents</source>
<translation>Открытые документы</translation> <translation>Открытые документы</translation>
@@ -44637,13 +44553,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<translation>Открытые документы <translation>Открытые документы
%1</translation> %1</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FontSettingsPageWidget</name>
<message>
<source>Font</source>
<translation>Шрифт</translation>
</message>
<message> <message>
<source>Family:</source> <source>Family:</source>
<translation>Название:</translation> <translation>Название:</translation>
@@ -44660,10 +44569,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Color Scheme</source> <source>Color Scheme</source>
<translation>Цветовая схема</translation> <translation>Цветовая схема</translation>
</message> </message>
<message>
<source>Copy...</source>
<translation>Копировать...</translation>
</message>
<message> <message>
<source>%</source> <source>%</source>
<translation>%</translation> <translation>%</translation>
@@ -44672,9 +44577,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Zoom:</source> <source>Zoom:</source>
<translation>Масштаб:</translation> <translation>Масштаб:</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::HighlighterSettingsPage</name>
<message> <message>
<source>Syntax Highlight Definition Files</source> <source>Syntax Highlight Definition Files</source>
<translation>Файлы определений подсветки синтаксиса</translation> <translation>Файлы определений подсветки синтаксиса</translation>
@@ -44704,10 +44606,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Download missing and update existing syntax definition files.</source> <source>Download missing and update existing syntax definition files.</source>
<translation>Загрузить отсутствующие и обновить существующие файлы определения синтаксиса.</translation> <translation>Загрузить отсутствующие и обновить существующие файлы определения синтаксиса.</translation>
</message> </message>
<message>
<source>Download Definitions</source>
<translation>Загрузить</translation>
</message>
<message> <message>
<source>Reload externally modified definition files.</source> <source>Reload externally modified definition files.</source>
<translation>Перезагрузить из-вне изменённые файлы определений.</translation> <translation>Перезагрузить из-вне изменённые файлы определений.</translation>
@@ -44724,9 +44622,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Download finished</source> <source>Download finished</source>
<translation>Загрузка завершена</translation> <translation>Загрузка завершена</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::LineNumberFilter</name>
<message> <message>
<source>Line %1, Column %2</source> <source>Line %1, Column %2</source>
<translation>Строка %1, столбец %2</translation> <translation>Строка %1, столбец %2</translation>
@@ -44743,16 +44638,10 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Line in Current Document</source> <source>Line in Current Document</source>
<translation>Строка в текущем документе</translation> <translation>Строка в текущем документе</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::OutlineFactory</name>
<message> <message>
<source>Outline</source> <source>Outline</source>
<translation>Контур</translation> <translation>Контур</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::OutlineWidgetStack</name>
<message> <message>
<source>No outline available</source> <source>No outline available</source>
<translation>Обзор недоступен</translation> <translation>Обзор недоступен</translation>
@@ -44769,9 +44658,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Sort Alphabetically</source> <source>Sort Alphabetically</source>
<translation>Сортировать по алфавиту</translation> <translation>Сортировать по алфавиту</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::Snippets</name>
<message> <message>
<source></source> <source></source>
<comment>Snippets are text fragments that can be inserted into an editor via the usual completion mechanics using a trigger text. The translated text (trigger variant) is used to disambiguate between snippets with the same trigger.</comment> <comment>Snippets are text fragments that can be inserted into an editor via the usual completion mechanics using a trigger text. The translated text (trigger variant) is used to disambiguate between snippets with the same trigger.</comment>
@@ -44857,16 +44743,10 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<comment>group:&apos;Text&apos; trigger:&apos;global&apos;</comment> <comment>group:&apos;Text&apos; trigger:&apos;global&apos;</comment>
<translation>пример</translation> <translation>пример</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsCollection</name>
<message> <message>
<source>Cannot create user snippet directory %1</source> <source>Cannot create user snippet directory %1</source>
<translation>Не удалось создать каталог пользовательских фрагментов %1</translation> <translation>Не удалось создать каталог пользовательских фрагментов %1</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsSettingsPage</name>
<message> <message>
<source>Group: </source> <source>Group: </source>
<translation>Группа:</translation> <translation>Группа:</translation>
@@ -44875,10 +44755,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Add</source> <source>Add</source>
<translation>Добавить</translation> <translation>Добавить</translation>
</message> </message>
<message>
<source>Remove</source>
<translation>Удалить</translation>
</message>
<message> <message>
<source>Revert Built-in</source> <source>Revert Built-in</source>
<translation>Откатить встроенное</translation> <translation>Откатить встроенное</translation>
@@ -44907,13 +44783,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Snippets</source> <source>Snippets</source>
<translation>Фрагменты</translation> <translation>Фрагменты</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsTableModel</name>
<message>
<source>Error</source>
<translation>Ошибка</translation>
</message>
<message> <message>
<source>Not a valid trigger.</source> <source>Not a valid trigger.</source>
<translation>Неверный инициатор.</translation> <translation>Неверный инициатор.</translation>
@@ -44930,9 +44799,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Error reverting snippet.</source> <source>Error reverting snippet.</source>
<translation>Ошибка отката фрагмента.</translation> <translation>Ошибка отката фрагмента.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TabSettingsWidget</name>
<message> <message>
<source>Tabs And Indentation</source> <source>Tabs And Indentation</source>
<translation>Табуляция и отступы</translation> <translation>Табуляция и отступы</translation>
@@ -45037,9 +44903,6 @@ Influences the indentation of continuation lines.
<source>&lt;i&gt;Code indentation is configured in &lt;a href=&quot;C++&quot;&gt;C++&lt;/a&gt; and &lt;a href=&quot;QtQuick&quot;&gt;Qt Quick&lt;/a&gt; settings.&lt;/i&gt;</source> <source>&lt;i&gt;Code indentation is configured in &lt;a href=&quot;C++&quot;&gt;C++&lt;/a&gt; and &lt;a href=&quot;QtQuick&quot;&gt;Qt Quick&lt;/a&gt; settings.&lt;/i&gt;</source>
<translation>&lt;i&gt;Отступы в коде задаются в настройках &lt;a href=&quot;C++&quot;&gt;C++&lt;/a&gt; и &lt;a href=&quot;QtQuick&quot;&gt;Qt Quick&lt;/a&gt;.&lt;/i&gt;</translation> <translation>&lt;i&gt;Отступы в коде задаются в настройках &lt;a href=&quot;C++&quot;&gt;C++&lt;/a&gt; и &lt;a href=&quot;QtQuick&quot;&gt;Qt Quick&lt;/a&gt;.&lt;/i&gt;</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::TextEditorActionHandler</name>
<message> <message>
<source>&amp;Undo</source> <source>&amp;Undo</source>
<translation>&amp;Отменить</translation> <translation>&amp;Отменить</translation>
@@ -45544,9 +45407,6 @@ Influences the indentation of continuation lines.
<source>Go to Next Word Camel Case with Selection</source> <source>Go to Next Word Camel Case with Selection</source>
<translation>Перейти к следующему слову с выделением с учётом Верблюжьего Регистра</translation> <translation>Перейти к следующему слову с выделением с учётом Верблюжьего Регистра</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::TextEditorPlugin</name>
<message> <message>
<source>Ctrl+Space</source> <source>Ctrl+Space</source>
<translation></translation> <translation></translation>
@@ -45600,16 +45460,10 @@ Influences the indentation of continuation lines.
<source>Current document&apos;s font size in points.</source> <source>Current document&apos;s font size in points.</source>
<translation>Размер шрифта в точках в текущем документе.</translation> <translation>Размер шрифта в точках в текущем документе.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::SearchEngine</name>
<message> <message>
<source>Internal</source> <source>Internal</source>
<translation>Внутренний</translation> <translation>Внутренний</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextDocument</name>
<message> <message>
<source>Diff Against Current File</source> <source>Diff Against Current File</source>
<translation>Сравнить с текущим файлом</translation> <translation>Сравнить с текущим файлом</translation>
@@ -45618,9 +45472,6 @@ Influences the indentation of continuation lines.
<source>Opening File</source> <source>Opening File</source>
<translation>Открытие файла</translation> <translation>Открытие файла</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorSettings</name>
<message> <message>
<source>Text</source> <source>Text</source>
<translation>Текст</translation> <translation>Текст</translation>
@@ -46117,10 +45968,6 @@ Will not be applied to whitespace in comments and strings.</source>
<source>Applied to commit subjects in VCS log.</source> <source>Applied to commit subjects in VCS log.</source>
<translation>Применимо к заголовкам фиксаций в истории VCS.</translation> <translation>Применимо к заголовкам фиксаций в истории VCS.</translation>
</message> </message>
<message>
<source>Error</source>
<translation>Ошибка</translation>
</message>
<message> <message>
<source>Underline color of error diagnostics.</source> <source>Underline color of error diagnostics.</source>
<translation>Цвет подчёркивания ошибок.</translation> <translation>Цвет подчёркивания ошибок.</translation>
@@ -46181,9 +46028,6 @@ Will not be applied to whitespace in comments and strings.</source>
<source>Writable arguments of a function call.</source> <source>Writable arguments of a function call.</source>
<translation>Записываемые аргументы вызова функции.</translation> <translation>Записываемые аргументы вызова функции.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorWidget</name>
<message> <message>
<source>Cursor position: %1</source> <source>Cursor position: %1</source>
<translation>Положение курсора: %1</translation> <translation>Положение курсора: %1</translation>

View File

@@ -9139,7 +9139,7 @@ Preselects a desktop Qt for building the application if available.</source>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::BaseFileFind</name> <name>::TextEditor</name>
<message> <message>
<source>%1 found</source> <source>%1 found</source>
<translation>najdenih: %1</translation> <translation>najdenih: %1</translation>
@@ -9152,9 +9152,6 @@ Preselects a desktop Qt for building the application if available.</source>
<source>Use regular e&amp;xpressions</source> <source>Use regular e&amp;xpressions</source>
<translation type="obsolete">Uporabi r&amp;egularne izraze</translation> <translation type="obsolete">Uporabi r&amp;egularne izraze</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseTextDocument</name>
<message> <message>
<source>untitled</source> <source>untitled</source>
<translation>neimenovana</translation> <translation>neimenovana</translation>
@@ -9171,9 +9168,6 @@ Preselects a desktop Qt for building the application if available.</source>
<source>&lt;em&gt;Binary data&lt;/em&gt;</source> <source>&lt;em&gt;Binary data&lt;/em&gt;</source>
<translation type="obsolete">&lt;em&gt;Dvojiški podatki&lt;/em&gt;</translation> <translation type="obsolete">&lt;em&gt;Dvojiški podatki&lt;/em&gt;</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseTextEditor</name>
<message> <message>
<source>Line: %1, Col: %2</source> <source>Line: %1, Col: %2</source>
<translation>Vrstica: %1, Stolpec: %2</translation> <translation>Vrstica: %1, Stolpec: %2</translation>
@@ -9182,141 +9176,11 @@ Preselects a desktop Qt for building the application if available.</source>
<source>Line: 9999, Col: 999</source> <source>Line: 9999, Col: 999</source>
<translation>Vrstica: 9999, Stolpec: 999</translation> <translation>Vrstica: 9999, Stolpec: 999</translation>
</message> </message>
<message>
<source>Print Document</source>
<translation type="obsolete">Natisni dokument</translation>
</message>
<message>
<source>&lt;b&gt;Error:&lt;/b&gt; Could not decode &quot;%1&quot; with &quot;%2&quot;-encoding. Editing not possible.</source>
<translation type="obsolete">&lt;b&gt;Napaka:&lt;/b&gt; »%1« ni moč dekodirati z naborom znakov »%2«. Urejanje ni možno.</translation>
</message>
<message>
<source>Select Encoding</source>
<translation type="obsolete">Izberite nabor znakov</translation>
</message>
</context>
<context>
<name>TextEditor::BehaviorSettingsPage</name>
<message> <message>
<source>Global</source> <source>Global</source>
<comment>Settings</comment> <comment>Settings</comment>
<translation>Globalno</translation> <translation>Globalno</translation>
</message> </message>
<message>
<source>Storage</source>
<translation type="obsolete">Shranjevanje</translation>
</message>
<message>
<source>Removes trailing whitespace on saving.</source>
<translation type="obsolete">Pri shranjevanju odstrani presledke na koncu vrstic.</translation>
</message>
<message>
<source>&amp;Clean whitespace</source>
<translation type="obsolete">&amp;Počisti presledke</translation>
</message>
<message>
<source>Clean whitespace in entire document instead of only for changed parts.</source>
<translation type="obsolete">Počisti presledke v celotnem dokumentu in ne samo v spremenjenih vrsticah.</translation>
</message>
<message>
<source>In entire &amp;document</source>
<translation type="obsolete">V celotnem &amp;dokumentu</translation>
</message>
<message>
<source>Correct leading whitespace according to tab settings.</source>
<translation type="obsolete">Popravi presledke na začetku vrstic v skladu z nastavitvami tabulatorja.</translation>
</message>
<message>
<source>Clean indentation</source>
<translation type="obsolete">Počisti zamikanje</translation>
</message>
<message>
<source>&amp;Ensure newline at end of file</source>
<translation type="obsolete">&amp;Zagotovi novo vrstico na koncu datoteke</translation>
</message>
<message>
<source>Tabs and Indentation</source>
<translation type="obsolete">Tabulator in zamikanje</translation>
</message>
<message>
<source>Ta&amp;b size:</source>
<translation type="obsolete">Velikost &amp;tabulatorja:</translation>
</message>
<message>
<source>&amp;Indent size:</source>
<translation type="obsolete">Velikost &amp;zamika:</translation>
</message>
<message>
<source>Backspace will go back one indentation level instead of one space.</source>
<translation type="obsolete">Vračalka gre nazaj za en zamik in ne za en presledek.</translation>
</message>
<message>
<source>&amp;Backspace follows indentation</source>
<translation type="obsolete">&amp;Vračalka sledi zamikom</translation>
</message>
<message>
<source>Insert &amp;spaces instead of tabs</source>
<translation type="obsolete">Vstavi &amp;presledke in ne tabulatorjev</translation>
</message>
<message>
<source>Enable automatic &amp;indentation</source>
<translation type="obsolete">Omogoči &amp;samodejno zamikanje</translation>
</message>
<message>
<source>Tab key performs auto-indent:</source>
<translation type="obsolete">Tabulator izvede samodejni zamik:</translation>
</message>
<message>
<source>Never</source>
<translation type="obsolete">Nikoli</translation>
</message>
<message>
<source>Always</source>
<translation type="obsolete">Vedno</translation>
</message>
<message>
<source>Automatically determine based on the nearest indented line (previous line preferred over next line)</source>
<translation type="obsolete">Ugotovi samodejno glede na najbližjo zamaknjeno vrstico (predhodna vrstica ima prednost pred naslednjo)</translation>
</message>
<message>
<source>Based on the surrounding lines</source>
<translation type="obsolete">Temelječe na okoliških vrsticah</translation>
</message>
<message>
<source>Block indentation style:</source>
<translation type="obsolete">Slog zamikanja bloka:</translation>
</message>
<message>
<source>Exclude Braces</source>
<translation type="obsolete">Izvzemi oklepaje</translation>
</message>
<message>
<source>Include Braces</source>
<translation type="obsolete">Vključi oklepaje</translation>
</message>
<message>
<source>GNU Style</source>
<translation type="obsolete">GNU-jevski slog</translation>
</message>
<message>
<source>In Leading White Space</source>
<translation type="obsolete">V praznini na začetku</translation>
</message>
<message>
<source>Mouse</source>
<translation type="obsolete">Miška</translation>
</message>
<message>
<source>Enable &amp;mouse navigation</source>
<translation type="obsolete">Omogoči krmarjenje z &amp;miško</translation>
</message>
<message>
<source>Enable scroll &amp;wheel zooming</source>
<translation type="obsolete">Omogoči povečevanje/zmanjševanje s &amp;koleščkom</translation>
</message>
</context>
<context>
<name>TextEditor::DisplaySettingsPage</name>
<message> <message>
<source>Display</source> <source>Display</source>
<translation>Prikaz</translation> <translation>Prikaz</translation>
@@ -9386,9 +9250,6 @@ Preselects a desktop Qt for building the application if available.</source>
<source>Center &amp;cursor on scroll</source> <source>Center &amp;cursor on scroll</source>
<translation>Ob premiku &amp;usredišči kazalec</translation> <translation>Ob premiku &amp;usredišči kazalec</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FontSettingsPage</name>
<message> <message>
<source>Copy Color Scheme</source> <source>Copy Color Scheme</source>
<translation>Skopiraj barvno shemo</translation> <translation>Skopiraj barvno shemo</translation>
@@ -9413,10 +9274,6 @@ Preselects a desktop Qt for building the application if available.</source>
<source>Are you sure you want to delete this color scheme permanently?</source> <source>Are you sure you want to delete this color scheme permanently?</source>
<translation>Ali res želite trajno izbrisati to barvno shemo?</translation> <translation>Ali res želite trajno izbrisati to barvno shemo?</translation>
</message> </message>
<message>
<source>Delete</source>
<translation>Izbriši</translation>
</message>
<message> <message>
<source>Color Scheme Changed</source> <source>Color Scheme Changed</source>
<translation>Spremenjena barvna shema</translation> <translation>Spremenjena barvna shema</translation>
@@ -9429,9 +9286,6 @@ Preselects a desktop Qt for building the application if available.</source>
<source>Discard</source> <source>Discard</source>
<translation>Zavrzi</translation> <translation>Zavrzi</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::CodecSelector</name>
<message> <message>
<source>Text Encoding</source> <source>Text Encoding</source>
<translation>Nabor znakov</translation> <translation>Nabor znakov</translation>
@@ -9454,9 +9308,6 @@ Naslednji nabori znakov so verjetno ustrezni:</translation>
<source>Save with Encoding</source> <source>Save with Encoding</source>
<translation>Shrani z naborom znakov</translation> <translation>Shrani z naborom znakov</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FindInFiles</name>
<message> <message>
<source>Files on File System</source> <source>Files on File System</source>
<translation>Datoteke v datotečnem sistemu</translation> <translation>Datoteke v datotečnem sistemu</translation>
@@ -9477,9 +9328,6 @@ Naslednji nabori znakov so verjetno ustrezni:</translation>
<source>Directory to search</source> <source>Directory to search</source>
<translation>Išči v mapi</translation> <translation>Išči v mapi</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FontSettingsPageWidget</name>
<message> <message>
<source>Font</source> <source>Font</source>
<translation>Pisava</translation> <translation>Pisava</translation>
@@ -9524,9 +9372,6 @@ Naslednji nabori znakov so verjetno ustrezni:</translation>
<source>Zoom:</source> <source>Zoom:</source>
<translation>Povečava:</translation> <translation>Povečava:</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::LineNumberFilter</name>
<message> <message>
<source>Line %1</source> <source>Line %1</source>
<translation>Vrstica %1</translation> <translation>Vrstica %1</translation>
@@ -9539,9 +9384,6 @@ Naslednji nabori znakov so verjetno ustrezni:</translation>
<source>Line in current document</source> <source>Line in current document</source>
<translation type="obsolete">Vrstica v trenutnem dokumentu</translation> <translation type="obsolete">Vrstica v trenutnem dokumentu</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::TextEditorPlugin</name>
<message> <message>
<source>Creates a text file. The default file extension is &lt;tt&gt;.txt&lt;/tt&gt;. You can specify a different extension as part of the filename.</source> <source>Creates a text file. The default file extension is &lt;tt&gt;.txt&lt;/tt&gt;. You can specify a different extension as part of the filename.</source>
<translation>Ustvari besedilno datoteko. Privzeta končnica datoteke je &lt;tt&gt;.txt&lt;/tt&gt;. Kot del imena datoteke lahko določite drugo končnico.</translation> <translation>Ustvari besedilno datoteko. Privzeta končnica datoteke je &lt;tt&gt;.txt&lt;/tt&gt;. Kot del imena datoteke lahko določite drugo končnico.</translation>
@@ -9598,9 +9440,6 @@ Naslednji nabori znakov so verjetno ustrezni:</translation>
<source>Current document&apos;s font size in points.</source> <source>Current document&apos;s font size in points.</source>
<translation>Velikost pisave trenutnega dokumenta v pikah.</translation> <translation>Velikost pisave trenutnega dokumenta v pikah.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorActionHandler</name>
<message> <message>
<source>&amp;Undo</source> <source>&amp;Undo</source>
<translation>&amp;Razveljavi</translation> <translation>&amp;Razveljavi</translation>
@@ -9941,9 +9780,6 @@ Naslednji nabori znakov so verjetno ustrezni:</translation>
<source>(Un)&amp;Collapse All</source> <source>(Un)&amp;Collapse All</source>
<translation type="obsolete">Raz&amp;širi/skrči vse</translation> <translation type="obsolete">Raz&amp;širi/skrči vse</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorSettings</name>
<message> <message>
<source>Text</source> <source>Text</source>
<translation>Besedilo</translation> <translation>Besedilo</translation>
@@ -10076,10 +9912,6 @@ Naslednji nabori znakov so verjetno ustrezni:</translation>
<source>Behavior</source> <source>Behavior</source>
<translation>Obnašanje</translation> <translation>Obnašanje</translation>
</message> </message>
<message>
<source>Display</source>
<translation>Prikaz</translation>
</message>
</context> </context>
<context> <context>
<name>TopicChooser</name> <name>TopicChooser</name>
@@ -11232,7 +11064,7 @@ Za uporabo v polje Iskalnika vtipkajte to bližnjico in presledek ter nato iskan
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::ColorSchemeEdit</name> <name>::TextEditor</name>
<message> <message>
<source>Bold</source> <source>Bold</source>
<translation>Polkrepko</translation> <translation>Polkrepko</translation>
@@ -12802,21 +12634,15 @@ Razlog: %2</translation>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::ColorScheme</name> <name>::TextEditor</name>
<message> <message>
<source>Not a color scheme file.</source> <source>Not a color scheme file.</source>
<translation>Ni datoteka z barvno shemo.</translation> <translation>Ni datoteka z barvno shemo.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FindInCurrentFile</name>
<message> <message>
<source>Current File</source> <source>Current File</source>
<translation>Trenutna datoteka</translation> <translation>Trenutna datoteka</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FontSettings</name>
<message> <message>
<source>Customized</source> <source>Customized</source>
<translation>Prilagojeno</translation> <translation>Prilagojeno</translation>
@@ -20014,7 +19840,7 @@ Potreben je Qt 4.7.4 ali novejši in nabor komponent za vašo različico Qt.</tr
</message> </message>
</context> </context>
<context> <context>
<name>BehaviorSettingsWidget</name> <name>::TextEditor</name>
<message> <message>
<source>Cleanup actions which are automatically performed right before the file is saved to disk.</source> <source>Cleanup actions which are automatically performed right before the file is saved to disk.</source>
<translation>Dejanja čiščenja, ki se samodejno izvedejo tik pred shranjevanjem datoteke na disk.</translation> <translation>Dejanja čiščenja, ki se samodejno izvedejo tik pred shranjevanjem datoteke na disk.</translation>
@@ -20199,7 +20025,7 @@ Potreben je Qt 4.7.4 ali novejši in nabor komponent za vašo različico Qt.</tr
</message> </message>
</context> </context>
<context> <context>
<name>SnippetsSettingsPage</name> <name>::TextEditor</name>
<message> <message>
<source>Form</source> <source>Form</source>
<translation>Obrazec</translation> <translation>Obrazec</translation>
@@ -20234,24 +20060,10 @@ Potreben je Qt 4.7.4 ali novejši in nabor komponent za vašo različico Qt.</tr
<source>Reset All</source> <source>Reset All</source>
<translation>Ponastavi vse</translation> <translation>Ponastavi vse</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TabPreferencesWidget</name>
<message>
<source>Form</source>
<translation>Obrazec</translation>
</message>
<message> <message>
<source>Tab settings:</source> <source>Tab settings:</source>
<translation>Nastavitve tabulatorja:</translation> <translation>Nastavitve tabulatorja:</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TabSettingsWidget</name>
<message>
<source>Form</source>
<translation>Obrazec</translation>
</message>
<message> <message>
<location/> <location/>
<source>Tabs And Indentation</source> <source>Tabs And Indentation</source>
@@ -27777,7 +27589,7 @@ Ali jih želite dodati v projekt?</translation>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::BaseTextEditorWidget</name> <name>::TextEditor</name>
<message> <message>
<source>CTRL+D</source> <source>CTRL+D</source>
<translation>CTRL+D</translation> <translation>CTRL+D</translation>
@@ -27802,16 +27614,10 @@ Ali jih želite dodati v projekt?</translation>
<source>Select Encoding</source> <source>Select Encoding</source>
<translation>Izberite kodiranje</translation> <translation>Izberite kodiranje</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FunctionHintProposalWidget</name>
<message> <message>
<source>%1 of %2</source> <source>%1 of %2</source>
<translation>%1 od %2</translation> <translation>%1 od %2</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FallbackSelectorWidget</name>
<message> <message>
<source>Settings:</source> <source>Settings:</source>
<translation>Nastavitve:</translation> <translation>Nastavitve:</translation>
@@ -27829,9 +27635,6 @@ Ali jih želite dodati v projekt?</translation>
<source>Restore</source> <source>Restore</source>
<translation>Obnovi</translation> <translation>Obnovi</translation>
</message> </message>
</context>
<context>
<name>TextEditor::HighlighterSettingsPage</name>
<message> <message>
<source>Generic Highlighter</source> <source>Generic Highlighter</source>
<translation>Splošno poudarjanje</translation> <translation>Splošno poudarjanje</translation>
@@ -27860,9 +27663,6 @@ Ali jih želite dodati v projekt?</translation>
<source>Not possible to retrieve data.</source> <source>Not possible to retrieve data.</source>
<translation>Podatkov ni moč pridobiti.</translation> <translation>Podatkov ni moč pridobiti.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::ManageDefinitionsDialog</name>
<message> <message>
<source>Name</source> <source>Name</source>
<translation>Ime</translation> <translation>Ime</translation>
@@ -27875,10 +27675,6 @@ Ali jih želite dodati v projekt?</translation>
<source>Available</source> <source>Available</source>
<translation>Na voljo</translation> <translation>Na voljo</translation>
</message> </message>
<message>
<source>Download Definitions</source>
<translation>Dobi določila</translation>
</message>
<message> <message>
<source>Download Information</source> <source>Download Information</source>
<translation>Podatki o prejemanju</translation> <translation>Podatki o prejemanju</translation>
@@ -27887,9 +27683,6 @@ Ali jih želite dodati v projekt?</translation>
<source>There is already one download in progress. Please wait until it is finished.</source> <source>There is already one download in progress. Please wait until it is finished.</source>
<translation>Eno prejemanje je že v teku. Počakajte, da se zaključi.</translation> <translation>Eno prejemanje je že v teku. Počakajte, da se zaključi.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::Manager</name>
<message> <message>
<source>Registering definitions</source> <source>Registering definitions</source>
<translation>Registriranje definicij</translation> <translation>Registriranje definicij</translation>
@@ -27916,9 +27709,6 @@ Preverite pravice za dostop do mape.</translation>
<source>Download Error</source> <source>Download Error</source>
<translation>Napaka pri prejemanju</translation> <translation>Napaka pri prejemanju</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::OutlineWidgetStack</name>
<message> <message>
<source>No outline available</source> <source>No outline available</source>
<translation>Na voljo ni nobenega obrisa</translation> <translation>Na voljo ni nobenega obrisa</translation>
@@ -27931,16 +27721,10 @@ Preverite pravice za dostop do mape.</translation>
<source>Filter tree</source> <source>Filter tree</source>
<translation>Filtriraj drevo</translation> <translation>Filtriraj drevo</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::OutlineFactory</name>
<message> <message>
<source>Outline</source> <source>Outline</source>
<translation>Obris</translation> <translation>Obris</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::PlainTextEditorFactory</name>
<message> <message>
<source>A highlight definition was not found for this file. Would you like to try to find one?</source> <source>A highlight definition was not found for this file. Would you like to try to find one?</source>
<translation>Za to datoteko ni bilo moč najti določila za poudarjanje. Ali ga želite poskusiti najti?</translation> <translation>Za to datoteko ni bilo moč najti določila za poudarjanje. Ali ga želite poskusiti najti?</translation>
@@ -27949,23 +27733,10 @@ Preverite pravice za dostop do mape.</translation>
<source>Show highlighter options</source> <source>Show highlighter options</source>
<translation>Prikaži možnosti poudarjanja ...</translation> <translation>Prikaži možnosti poudarjanja ...</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::PlainTextSnippetProvider</name>
<message>
<source>Text</source>
<translation>Besedilo</translation>
</message>
</context>
<context>
<name>TextEditor::Internal::SnippetsCollection</name>
<message> <message>
<source>Cannot create user snippet directory %1</source> <source>Cannot create user snippet directory %1</source>
<translation>Uporabniške mape za izrezke (%1) ni moč ustvariti.</translation> <translation>Uporabniške mape za izrezke (%1) ni moč ustvariti.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsTableModel</name>
<message> <message>
<source>Error</source> <source>Error</source>
<translation>Napaka</translation> <translation>Napaka</translation>
@@ -27986,9 +27757,6 @@ Preverite pravice za dostop do mape.</translation>
<source>Error reverting snippet.</source> <source>Error reverting snippet.</source>
<translation>Napaka pri povrnitvi izrezka.</translation> <translation>Napaka pri povrnitvi izrezka.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsSettingsPagePrivate</name>
<message> <message>
<source>Snippets</source> <source>Snippets</source>
<translation>Izrezki</translation> <translation>Izrezki</translation>
@@ -27997,10 +27765,6 @@ Preverite pravice za dostop do mape.</translation>
<source>Error While Saving Snippet Collection</source> <source>Error While Saving Snippet Collection</source>
<translation>Napaka med shranjevanjem zbirke izrezkov</translation> <translation>Napaka med shranjevanjem zbirke izrezkov</translation>
</message> </message>
<message>
<source>Error</source>
<translation>Napaka</translation>
</message>
<message> <message>
<source>No snippet selected.</source> <source>No snippet selected.</source>
<translation>Izbran ni noben izrezek.</translation> <translation>Izbran ni noben izrezek.</translation>
@@ -29595,31 +29359,6 @@ p, li { white-space: pre-wrap; }
<translation type="obsolete">Vzorec</translation> <translation type="obsolete">Vzorec</translation>
</message> </message>
</context> </context>
<context>
<name>Snippets::Internal::SnippetsPlugin</name>
<message>
<source>Snippets</source>
<translation type="obsolete">Odseki</translation>
</message>
</context>
<context>
<name>Snippets::Internal::SnippetsWindow</name>
<message>
<source>Snippets</source>
<translation type="obsolete">Odseki</translation>
</message>
</context>
<context>
<name>TextEditor::BaseTextEditorEditable</name>
<message>
<source>Line: %1, Col: %2</source>
<translation type="obsolete">Vrstica: %1, Stolpec: %2</translation>
</message>
<message>
<source>Line: %1, Col: 999</source>
<translation type="obsolete">Vrstica: %1, Stolpec: 999</translation>
</message>
</context>
<context> <context>
<name>VcsBase::VcsBaseEditor</name> <name>VcsBase::VcsBaseEditor</name>
<message> <message>

File diff suppressed because it is too large Load Diff

View File

@@ -19487,7 +19487,7 @@ will also disable the following plugins:
</message> </message>
</context> </context>
<context> <context>
<name>FontSettings_C_OCCURRENCES_UNUSED</name> <name>::TextEditor</name>
<message> <message>
<source>Unused variable</source> <source>Unused variable</source>
<translation type="unfinished">使</translation> <translation type="unfinished">使</translation>
@@ -39316,7 +39316,7 @@ For more details, see /etc/sysctl.d/10-ptrace.conf
</message> </message>
</context> </context>
<context> <context>
<name>RefactoringFile::apply</name> <name>::TextEditor</name>
<message> <message>
<source>Refactoring cannot be applied.</source> <source>Refactoring cannot be applied.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -41250,7 +41250,7 @@ Row: %4, Column: %5
</message> </message>
</context> </context>
<context> <context>
<name>Snippet</name> <name>::TextEditor</name>
<message> <message>
<source>Expected delimiter after mangler ID.</source> <source>Expected delimiter after mangler ID.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -42796,9 +42796,6 @@ Failed to open file &quot;%1&quot;</source>
<source>File was modified.</source> <source>File was modified.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseFileFind</name>
<message> <message>
<source>Searching</source> <source>Searching</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -42819,9 +42816,6 @@ Failed to open file &quot;%1&quot;</source>
<source>Aborting replace.</source> <source>Aborting replace.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseTextEditor</name>
<message> <message>
<source>A highlight definition was not found for this file. Would you like to download additional highlight definition files?</source> <source>A highlight definition was not found for this file. Would you like to download additional highlight definition files?</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -42838,9 +42832,6 @@ Failed to open file &quot;%1&quot;</source>
<source>Remember My Choice</source> <source>Remember My Choice</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::BehaviorSettingsPage</name>
<message> <message>
<source>Global</source> <source>Global</source>
<comment>Settings</comment> <comment>Settings</comment>
@@ -42850,9 +42841,6 @@ Failed to open file &quot;%1&quot;</source>
<source>Behavior</source> <source>Behavior</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::BehaviorSettingsWidget</name>
<message> <message>
<source>Typing</source> <source>Typing</source>
<translation></translation> <translation></translation>
@@ -42895,10 +42883,6 @@ Specifies how backspace interacts with indentation.
&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt; &lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;
</translation> </translation>
</message> </message>
<message>
<source>None</source>
<translation></translation>
</message>
<message> <message>
<source>Follows Previous Indents</source> <source>Follows Previous Indents</source>
<translation></translation> <translation></translation>
@@ -42915,10 +42899,6 @@ Specifies how backspace interacts with indentation.
<source>Never</source> <source>Never</source>
<translation></translation> <translation></translation>
</message> </message>
<message>
<source>Always</source>
<translation></translation>
</message>
<message> <message>
<source>In Leading White Space</source> <source>In Leading White Space</source>
<translation></translation> <translation></translation>
@@ -43081,24 +43061,10 @@ Specifies how backspace interacts with indentation.
<source>Windows (CRLF)</source> <source>Windows (CRLF)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::CodeStyleEditor</name>
<message> <message>
<source>Edit preview contents to see how the current settings are applied to custom code snippets. Changes in the preview do not affect the current settings.</source> <source>Edit preview contents to see how the current settings are applied to custom code snippets. Changes in the preview do not affect the current settings.</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>TextEditor::CodeStyleSelectorWidget</name>
<message>
<source>Copy...</source>
<translation type="unfinished">...</translation>
</message>
<message>
<source>Remove</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>Import...</source> <source>Import...</source>
<translation type="unfinished">...</translation> <translation type="unfinished">...</translation>
@@ -43159,9 +43125,6 @@ Specifies how backspace interacts with indentation.
<source>%1 [built-in]</source> <source>%1 [built-in]</source>
<translation>%1 []</translation> <translation>%1 []</translation>
</message> </message>
</context>
<context>
<name>TextEditor::DisplaySettingsPage</name>
<message> <message>
<source>Display</source> <source>Display</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -43286,9 +43249,6 @@ Specifies how backspace interacts with indentation.
<source>Wrapping</source> <source>Wrapping</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::FindInFiles</name>
<message> <message>
<source>Director&amp;y:</source> <source>Director&amp;y:</source>
<translation>(&amp;Y):</translation> <translation>(&amp;Y):</translation>
@@ -43317,9 +43277,6 @@ Excluding: %3
<source>Directory to Search</source> <source>Directory to Search</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::FontSettingsPageWidget</name>
<message> <message>
<source>Family:</source> <source>Family:</source>
<translation>:</translation> <translation>:</translation>
@@ -43328,10 +43285,6 @@ Excluding: %3
<source>Size:</source> <source>Size:</source>
<translation>:</translation> <translation>:</translation>
</message> </message>
<message>
<source>Font</source>
<translation></translation>
</message>
<message> <message>
<source>Antialias</source> <source>Antialias</source>
<translation>齿</translation> <translation>齿</translation>
@@ -43340,10 +43293,6 @@ Excluding: %3
<source>Copy...</source> <source>Copy...</source>
<translation>...</translation> <translation>...</translation>
</message> </message>
<message>
<source>Delete</source>
<translation></translation>
</message>
<message> <message>
<source>%</source> <source>%</source>
<translation>%</translation> <translation>%</translation>
@@ -43421,16 +43370,10 @@ A value less than 100% can result in overlapping and misaligned graphics.</sourc
<source>Font &amp;&amp; Colors</source> <source>Font &amp;&amp; Colors</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::FunctionHintProposalWidget</name>
<message> <message>
<source>%1 of %2</source> <source>%1 of %2</source>
<translation>%1/%2</translation> <translation>%1/%2</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Highlighter</name>
<message> <message>
<source>Highlighter updates: done</source> <source>Highlighter updates: done</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -43443,16 +43386,10 @@ A value less than 100% can result in overlapping and misaligned graphics.</sourc
<source>Highlighter updates: starting</source> <source>Highlighter updates: starting</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::ColorScheme</name>
<message> <message>
<source>Not a color scheme file.</source> <source>Not a color scheme file.</source>
<translation>.</translation> <translation>.</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::ColorSchemeEdit</name>
<message> <message>
<source>Bold</source> <source>Bold</source>
<translation></translation> <translation></translation>
@@ -43541,9 +43478,6 @@ A value less than 100% can result in overlapping and misaligned graphics.</sourc
<source>Dash-Dot-Dot Underline</source> <source>Dash-Dot-Dot Underline</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::CompletionSettingsPage</name>
<message> <message>
<source>Full</source> <source>Full</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -43690,10 +43624,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Adds leading asterisks when continuing C/C++ &quot;/*&quot;, Qt &quot;/*!&quot; and Java &quot;/**&quot; style comments on new lines.</source> <source>Adds leading asterisks when continuing C/C++ &quot;/*&quot;, Qt &quot;/*!&quot; and Java &quot;/**&quot; style comments on new lines.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Behavior</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>&amp;Automatically insert matching characters</source> <source>&amp;Automatically insert matching characters</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -43706,9 +43636,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Completion</source> <source>Completion</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FindInCurrentFile</name>
<message> <message>
<source>Current File</source> <source>Current File</source>
<translation></translation> <translation></translation>
@@ -43723,9 +43650,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>File &quot;%1&quot;:</source> <source>File &quot;%1&quot;:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FindInOpenFiles</name>
<message> <message>
<source>Open Documents</source> <source>Open Documents</source>
<translation></translation> <translation></translation>
@@ -43740,9 +43664,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<translation> <translation>
%1</translation> %1</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::HighlighterSettingsPage</name>
<message> <message>
<source>Syntax Highlight Definition Files</source> <source>Syntax Highlight Definition Files</source>
<translation></translation> <translation></translation>
@@ -43755,10 +43676,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Highlight definitions are provided by the &lt;a href=&quot;https://api.kde.org/frameworks/syntax-highlighting/html/index.html&quot;&gt;KSyntaxHighlighting&lt;/a&gt; engine.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Highlight definitions are provided by the &lt;a href=&quot;https://api.kde.org/frameworks/syntax-highlighting/html/index.html&quot;&gt;KSyntaxHighlighting&lt;/a&gt; engine.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Download Definitions</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>Download missing and update existing syntax definition files.</source> <source>Download missing and update existing syntax definition files.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -43791,9 +43708,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Generic Highlighter</source> <source>Generic Highlighter</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::LineNumberFilter</name>
<message> <message>
<source>Line %1</source> <source>Line %1</source>
<translation>%1 </translation> <translation>%1 </translation>
@@ -43818,16 +43732,10 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Column %1</source> <source>Column %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::OutlineFactory</name>
<message> <message>
<source>Outline</source> <source>Outline</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::OutlineWidgetStack</name>
<message> <message>
<source>No outline available</source> <source>No outline available</source>
<translation></translation> <translation></translation>
@@ -43844,24 +43752,15 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Sort Alphabetically</source> <source>Sort Alphabetically</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::Snippets</name>
<message> <message>
<source></source> <source></source>
<comment>Snippets are text fragments that can be inserted into an editor via the usual completion mechanics using a trigger text. The translated text (trigger variant) is used to disambiguate between snippets with the same trigger.</comment> <comment>Snippets are text fragments that can be inserted into an editor via the usual completion mechanics using a trigger text. The translated text (trigger variant) is used to disambiguate between snippets with the same trigger.</comment>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsCollection</name>
<message> <message>
<source>Cannot create user snippet directory %1</source> <source>Cannot create user snippet directory %1</source>
<translation>%1</translation> <translation>%1</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsSettingsPage</name>
<message> <message>
<source>Add</source> <source>Add</source>
<translation></translation> <translation></translation>
@@ -43890,10 +43789,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Error While Saving Snippet Collection</source> <source>Error While Saving Snippet Collection</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Error</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>No snippet selected.</source> <source>No snippet selected.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -43902,9 +43797,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Snippets</source> <source>Snippets</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsTableModel</name>
<message> <message>
<source>Error</source> <source>Error</source>
<translation></translation> <translation></translation>
@@ -43925,9 +43817,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Not a valid trigger. A valid trigger can only contain letters, numbers, or underscores, where the first character is limited to letter or underscore.</source> <source>Not a valid trigger. A valid trigger can only contain letters, numbers, or underscores, where the first character is limited to letter or underscore.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::TextEditorActionHandler</name>
<message> <message>
<source>&amp;Undo</source> <source>&amp;Undo</source>
<translation type="unfinished">(&amp;U)</translation> <translation type="unfinished">(&amp;U)</translation>
@@ -44460,9 +44349,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Go to Next Word Camel Case with Selection</source> <source>Go to Next Word Camel Case with Selection</source>
<translation type="unfinished">使</translation> <translation type="unfinished">使</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::TextEditorPlugin</name>
<message> <message>
<source>Ctrl+Space</source> <source>Ctrl+Space</source>
<translation>Ctrl+Space</translation> <translation>Ctrl+Space</translation>
@@ -44532,16 +44418,10 @@ In addition, Shift+Enter inserts an escape character at the cursor position and
<source>Word under the current document&apos;s text cursor.</source> <source>Word under the current document&apos;s text cursor.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::SearchEngine</name>
<message> <message>
<source>Internal</source> <source>Internal</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::TabSettingsWidget</name>
<message> <message>
<source>Tabs And Indentation</source> <source>Tabs And Indentation</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -44646,9 +44526,6 @@ Influences the indentation of continuation lines.
<source>The text editor indentation setting is used for non-code files only. See the C++ and Qt Quick coding style settings to configure indentation for code files.</source> <source>The text editor indentation setting is used for non-code files only. See the C++ and Qt Quick coding style settings to configure indentation for code files.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextDocument</name>
<message> <message>
<source>Diff Against Current File</source> <source>Diff Against Current File</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -44657,9 +44534,6 @@ Influences the indentation of continuation lines.
<source>Opening File</source> <source>Opening File</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorSettings</name>
<message> <message>
<source>Text</source> <source>Text</source>
<translation></translation> <translation></translation>
@@ -45228,10 +45102,6 @@ Will not be applied to whitespace in comments and strings.</source>
<source>Applied to commit subjects in VCS log.</source> <source>Applied to commit subjects in VCS log.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Error</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>Underline color of error diagnostics.</source> <source>Underline color of error diagnostics.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@@ -45348,9 +45218,6 @@ Will not be applied to whitespace in comments and strings.</source>
<source>Implicit Manual Coverage Validation</source> <source>Implicit Manual Coverage Validation</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorWidget</name>
<message> <message>
<source>Line: 9999, Col: 999</source> <source>Line: 9999, Col: 999</source>
<translation type="unfinished">: %1, 列号: 999</translation> <translation type="unfinished">: %1, 列号: 999</translation>
@@ -45403,9 +45270,6 @@ Will not be applied to whitespace in comments and strings.</source>
<source>Add UTF-8 BOM on Save</source> <source>Add UTF-8 BOM on Save</source>
<translation type="unfinished">UTF-8 BOM</translation> <translation type="unfinished">UTF-8 BOM</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextMark</name>
<message> <message>
<source>Show Diagnostic Settings</source> <source>Show Diagnostic Settings</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>

View File

@@ -8570,7 +8570,7 @@ To do this, you type this shortcut and a space in the Locator entry field, and t
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::BaseFileFind</name> <name>::TextEditor</name>
<message> <message>
<source>Search</source> <source>Search</source>
<translation></translation> <translation></translation>
@@ -8579,9 +8579,6 @@ To do this, you type this shortcut and a space in the Locator entry field, and t
<source>List of comma separated wildcard filters</source> <source>List of comma separated wildcard filters</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseTextDocument</name>
<message> <message>
<source>untitled</source> <source>untitled</source>
<translation></translation> <translation></translation>
@@ -8590,9 +8587,6 @@ To do this, you type this shortcut and a space in the Locator entry field, and t
<source>Opening file</source> <source>Opening file</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>TextEditor::BaseTextEditor</name>
<message> <message>
<source>Line: %1, Col: %2</source> <source>Line: %1, Col: %2</source>
<translation>%1%2</translation> <translation>%1%2</translation>
@@ -8601,17 +8595,11 @@ To do this, you type this shortcut and a space in the Locator entry field, and t
<source>Line: 9999, Col: 999</source> <source>Line: 9999, Col: 999</source>
<translation>99999999</translation> <translation>99999999</translation>
</message> </message>
</context>
<context>
<name>TextEditor::BehaviorSettingsPage</name>
<message> <message>
<source>Global</source> <source>Global</source>
<comment>Settings</comment> <comment>Settings</comment>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>TextEditor::FontSettingsPage</name>
<message> <message>
<source>Font &amp;&amp; Colors</source> <source>Font &amp;&amp; Colors</source>
<translation></translation> <translation></translation>
@@ -8652,9 +8640,6 @@ To do this, you type this shortcut and a space in the Locator entry field, and t
<source>Discard</source> <source>Discard</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::CodecSelector</name>
<message> <message>
<source>Text Encoding</source> <source>Text Encoding</source>
<translation></translation> <translation></translation>
@@ -8677,9 +8662,6 @@ The following encodings are likely to fit:</source>
<source>Save with Encoding</source> <source>Save with Encoding</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FindInCurrentFile</name>
<message> <message>
<source>Current File</source> <source>Current File</source>
<translation></translation> <translation></translation>
@@ -8694,9 +8676,6 @@ The following encodings are likely to fit:</source>
<translation>&apos;%1&apos; <translation>&apos;%1&apos;
%2</translation> %2</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FontSettingsPageWidget</name>
<message> <message>
<source>Family:</source> <source>Family:</source>
<translation></translation> <translation></translation>
@@ -8721,10 +8700,6 @@ The following encodings are likely to fit:</source>
<source>Copy...</source> <source>Copy...</source>
<translation>...</translation> <translation>...</translation>
</message> </message>
<message>
<source>Delete</source>
<translation></translation>
</message>
<message> <message>
<source>%</source> <source>%</source>
<translation>%</translation> <translation>%</translation>
@@ -8733,9 +8708,6 @@ The following encodings are likely to fit:</source>
<source>Zoom:</source> <source>Zoom:</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::LineNumberFilter</name>
<message> <message>
<source>Line %1</source> <source>Line %1</source>
<translation> %1</translation> <translation> %1</translation>
@@ -8744,9 +8716,6 @@ The following encodings are likely to fit:</source>
<source>Line in Current Document</source> <source>Line in Current Document</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::TextEditorPlugin</name>
<message> <message>
<source>Creates a text file. The default file extension is &lt;tt&gt;.txt&lt;/tt&gt;. You can specify a different extension as part of the filename.</source> <source>Creates a text file. The default file extension is &lt;tt&gt;.txt&lt;/tt&gt;. You can specify a different extension as part of the filename.</source>
<translation> &lt;tt&gt;.txt&lt;/tt&gt;</translation> <translation> &lt;tt&gt;.txt&lt;/tt&gt;</translation>
@@ -8811,9 +8780,6 @@ The following encodings are likely to fit:</source>
<source>Current document&apos;s font size in points.</source> <source>Current document&apos;s font size in points.</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorActionHandler</name>
<message> <message>
<source>&amp;Undo</source> <source>&amp;Undo</source>
<translation>(&amp;U)</translation> <translation>(&amp;U)</translation>
@@ -9218,9 +9184,6 @@ The following encodings are likely to fit:</source>
<source>&lt;line number&gt;</source> <source>&lt;line number&gt;</source>
<translation>&lt;&gt;</translation> <translation>&lt;&gt;</translation>
</message> </message>
</context>
<context>
<name>TextEditor::TextEditorSettings</name>
<message> <message>
<source>Text</source> <source>Text</source>
<translation></translation> <translation></translation>
@@ -10153,7 +10116,7 @@ Will not be applied to whitespace in comments and strings.</source>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::ColorSchemeEdit</name> <name>::TextEditor</name>
<message> <message>
<source>Bold</source> <source>Bold</source>
<translation></translation> <translation></translation>
@@ -11034,14 +10997,11 @@ Reason: %2</source>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::ColorScheme</name> <name>::TextEditor</name>
<message> <message>
<source>Not a color scheme file.</source> <source>Not a color scheme file.</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FontSettings</name>
<message> <message>
<source>Customized</source> <source>Customized</source>
<translation></translation> <translation></translation>
@@ -17197,7 +17157,7 @@ Requires &lt;b&gt;Qt 4.7.0&lt;/b&gt; or newer.</source>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::HighlighterSettingsPage</name> <name>::TextEditor</name>
<message> <message>
<source>Generic Highlighter</source> <source>Generic Highlighter</source>
<translation></translation> <translation></translation>
@@ -17226,9 +17186,6 @@ Requires &lt;b&gt;Qt 4.7.0&lt;/b&gt; or newer.</source>
<source>Not possible to retrieve data.</source> <source>Not possible to retrieve data.</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::ManageDefinitionsDialog</name>
<message> <message>
<source>Name</source> <source>Name</source>
<translation></translation> <translation></translation>
@@ -17277,9 +17234,6 @@ Requires &lt;b&gt;Qt 4.7.0&lt;/b&gt; or newer.</source>
<source>Download Selected Definitions</source> <source>Download Selected Definitions</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::Manager</name>
<message> <message>
<source>Registering definitions</source> <source>Registering definitions</source>
<translation></translation> <translation></translation>
@@ -17306,9 +17260,6 @@ Please check the directory&apos;s access rights.</source>
<source>Download Error</source> <source>Download Error</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::OutlineWidgetStack</name>
<message> <message>
<source>No outline available</source> <source>No outline available</source>
<translation></translation> <translation></translation>
@@ -17321,16 +17272,10 @@ Please check the directory&apos;s access rights.</source>
<source>Filter tree</source> <source>Filter tree</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::OutlineFactory</name>
<message> <message>
<source>Outline</source> <source>Outline</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::PlainTextEditorFactory</name>
<message> <message>
<source>A highlight definition was not found for this file. Would you like to try to find one?</source> <source>A highlight definition was not found for this file. Would you like to try to find one?</source>
<translation></translation> <translation></translation>
@@ -20453,7 +20398,7 @@ You can build the application and deploy it on desktop and mobile target platfor
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::BaseTextEditorWidget</name> <name>::TextEditor</name>
<message> <message>
<source>CTRL+D</source> <source>CTRL+D</source>
<translation>CTRL+D</translation> <translation>CTRL+D</translation>
@@ -20486,16 +20431,6 @@ You can build the application and deploy it on desktop and mobile target platfor
<source>The text is too large to be displayed (%1 MB).</source> <source>The text is too large to be displayed (%1 MB).</source>
<translation>%1 MB)</translation> <translation>%1 MB)</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::PlainTextSnippetProvider</name>
<message>
<source>Text</source>
<translation></translation>
</message>
</context>
<context>
<name>TextEditor::Internal::SnippetsTableModel</name>
<message> <message>
<source>Error</source> <source>Error</source>
<translation></translation> <translation></translation>
@@ -20516,9 +20451,6 @@ You can build the application and deploy it on desktop and mobile target platfor
<source>Error reverting snippet.</source> <source>Error reverting snippet.</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsSettingsPagePrivate</name>
<message> <message>
<source>Snippets</source> <source>Snippets</source>
<translation></translation> <translation></translation>
@@ -20527,10 +20459,6 @@ You can build the application and deploy it on desktop and mobile target platfor
<source>Error While Saving Snippet Collection</source> <source>Error While Saving Snippet Collection</source>
<translation></translation> <translation></translation>
</message> </message>
<message>
<source>Error</source>
<translation></translation>
</message>
<message> <message>
<source>No snippet selected.</source> <source>No snippet selected.</source>
<translation></translation> <translation></translation>
@@ -22703,14 +22631,11 @@ In addition, device connectivity will be tested.</source>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::FunctionHintProposalWidget</name> <name>::TextEditor</name>
<message> <message>
<source>%1 of %2</source> <source>%1 of %2</source>
<translation>%1/%2</translation> <translation>%1/%2</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsCollection</name>
<message> <message>
<source>Cannot create user snippet directory %1</source> <source>Cannot create user snippet directory %1</source>
<translation>使 %1</translation> <translation>使 %1</translation>
@@ -25055,7 +24980,7 @@ Remote error output was: %1</source>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::CodeStyleDialog</name> <name>::TextEditor</name>
<message> <message>
<source>Edit Code Style</source> <source>Edit Code Style</source>
<translation></translation> <translation></translation>
@@ -25076,21 +25001,10 @@ Remote error output was: %1</source>
<source>%1 (Copy)</source> <source>%1 (Copy)</source>
<translation>%1 ()</translation> <translation>%1 ()</translation>
</message> </message>
</context>
<context>
<name>TextEditor::CodeStyleSelectorWidget</name>
<message> <message>
<source>Copy Code Style</source> <source>Copy Code Style</source>
<translation></translation> <translation></translation>
</message> </message>
<message>
<source>Code style name:</source>
<translation></translation>
</message>
<message>
<source>%1 (Copy)</source>
<translation>%1 ()</translation>
</message>
<message> <message>
<source>Delete Code Style</source> <source>Delete Code Style</source>
<translation></translation> <translation></translation>
@@ -25099,10 +25013,6 @@ Remote error output was: %1</source>
<source>Are you sure you want to delete this code style permanently?</source> <source>Are you sure you want to delete this code style permanently?</source>
<translation></translation> <translation></translation>
</message> </message>
<message>
<source>Delete</source>
<translation></translation>
</message>
<message> <message>
<source>Import Code Style</source> <source>Import Code Style</source>
<translation></translation> <translation></translation>
@@ -25131,9 +25041,6 @@ Remote error output was: %1</source>
<source>%1 [built-in]</source> <source>%1 [built-in]</source>
<translation>%1 []</translation> <translation>%1 []</translation>
</message> </message>
</context>
<context>
<name>TextEditor::FindInFiles</name>
<message> <message>
<source>Files on File System</source> <source>Files on File System</source>
<translation></translation> <translation></translation>
@@ -25188,7 +25095,7 @@ Filter: %2
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::CodeStyleEditor</name> <name>::TextEditor</name>
<message> <message>
<source>Edit preview contents to see how the current settings are applied to custom code snippets. Changes in the preview do not affect the current settings.</source> <source>Edit preview contents to see how the current settings are applied to custom code snippets. Changes in the preview do not affect the current settings.</source>
<translation></translation> <translation></translation>
@@ -25978,14 +25885,11 @@ p, li { white-space: pre-wrap; }
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::BehaviorSettingsPage</name> <name>::TextEditor</name>
<message> <message>
<source>Form</source> <source>Form</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>TextEditor::BehaviorSettingsWidget</name>
<message> <message>
<source>Typing</source> <source>Typing</source>
<translation></translation> <translation></translation>
@@ -26172,21 +26076,10 @@ Specifies how backspace interacts with indentation.
<source>Using keyboard shortcut (Alt)</source> <source>Using keyboard shortcut (Alt)</source>
<translation>使 (Alt)</translation> <translation>使 (Alt)</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::CodeStyleSelectorWidget</name>
<message>
<source>Form</source>
<translation></translation>
</message>
<message> <message>
<source>Current settings:</source> <source>Current settings:</source>
<translation></translation> <translation></translation>
</message> </message>
<message>
<source>Copy...</source>
<translation>...</translation>
</message>
<message> <message>
<source>Edit...</source> <source>Edit...</source>
<translation>...</translation> <translation>...</translation>
@@ -26203,13 +26096,6 @@ Specifies how backspace interacts with indentation.
<source>Import...</source> <source>Import...</source>
<translation>...</translation> <translation>...</translation>
</message> </message>
</context>
<context>
<name>TextEditor::DisplaySettingsPage</name>
<message>
<source>Display</source>
<translation></translation>
</message>
<message> <message>
<source>Display line &amp;numbers</source> <source>Display line &amp;numbers</source>
<translation>(&amp;N)</translation> <translation>(&amp;N)</translation>
@@ -26262,13 +26148,6 @@ Specifies how backspace interacts with indentation.
<source>Display right &amp;margin at column:</source> <source>Display right &amp;margin at column:</source>
<translation>(&amp;M)</translation> <translation>(&amp;M)</translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::HighlighterSettingsPage</name>
<message>
<source>Form</source>
<translation></translation>
</message>
<message> <message>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt; <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;
&lt;p&gt;Highlight definitions are provided by the &lt;a href=&quot;http://kate-editor.org/&quot;&gt;Kate Text Editor&lt;/a&gt;.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> &lt;p&gt;Highlight definitions are provided by the &lt;a href=&quot;http://kate-editor.org/&quot;&gt;Kate Text Editor&lt;/a&gt;.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
@@ -26287,10 +26166,6 @@ Specifies how backspace interacts with indentation.
<source>Use fallback location</source> <source>Use fallback location</source>
<translation>使</translation> <translation>使</translation>
</message> </message>
<message>
<source>Behavior</source>
<translation></translation>
</message>
<message> <message>
<source>Alert when a highlight definition is not found</source> <source>Alert when a highlight definition is not found</source>
<translation></translation> <translation></translation>
@@ -26299,13 +26174,6 @@ Specifies how backspace interacts with indentation.
<source>Ignored file patterns:</source> <source>Ignored file patterns:</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::SnippetsSettingsPage</name>
<message>
<source>Form</source>
<translation></translation>
</message>
<message> <message>
<source>Group: </source> <source>Group: </source>
<translation></translation> <translation></translation>
@@ -26314,10 +26182,6 @@ Specifies how backspace interacts with indentation.
<source>Add</source> <source>Add</source>
<translation></translation> <translation></translation>
</message> </message>
<message>
<source>Remove</source>
<translation></translation>
</message>
<message> <message>
<source>Revert Built-in</source> <source>Revert Built-in</source>
<translation></translation> <translation></translation>
@@ -26330,13 +26194,6 @@ Specifies how backspace interacts with indentation.
<source>Reset All</source> <source>Reset All</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>TextEditor::TabSettingsWidget</name>
<message>
<source>Form</source>
<translation></translation>
</message>
<message> <message>
<source>Tabs And Indentation</source> <source>Tabs And Indentation</source>
<translation></translation> <translation></translation>
@@ -27867,14 +27724,11 @@ references to elements in other files, loops, etc.)</source>
</message> </message>
</context> </context>
<context> <context>
<name>TextEditor::Internal::CountingLabel</name> <name>::TextEditor</name>
<message> <message>
<source>%1 found</source> <source>%1 found</source>
<translation> %1 </translation> <translation> %1 </translation>
</message> </message>
</context>
<context>
<name>TextEditor::Internal::FindInOpenFiles</name>
<message> <message>
<source>Open Documents</source> <source>Open Documents</source>
<translation></translation> <translation></translation>

View File

@@ -6,6 +6,8 @@
#include "cppchecktextmark.h" #include "cppchecktextmark.h"
#include "cppchecktr.h" #include "cppchecktr.h"
#include <texteditor/texteditortr.h>
#include <utils/stringutils.h> #include <utils/stringutils.h>
#include <utils/utilsicons.h> #include <utils/utilsicons.h>
@@ -64,7 +66,7 @@ CppcheckTextMark::CppcheckTextMark(const Diagnostic &diagnostic)
// Copy to clipboard action // Copy to clipboard action
QAction *action = new QAction; QAction *action = new QAction;
action->setIcon(QIcon::fromTheme("edit-copy", Icons::COPY.icon())); action->setIcon(QIcon::fromTheme("edit-copy", Icons::COPY.icon()));
action->setToolTip(TextMark::tr("Copy to Clipboard")); action->setToolTip(TextEditor::Tr::tr("Copy to Clipboard"));
QObject::connect(action, &QAction::triggered, [diagnostic]() { QObject::connect(action, &QAction::triggered, [diagnostic]() {
const QString text = QString("%1:%2: %3") const QString text = QString("%1:%2: %3")
.arg(diagnostic.fileName.toUserOutput()) .arg(diagnostic.fileName.toUserOutput())

View File

@@ -38,6 +38,7 @@
#include <texteditor/textdocument.h> #include <texteditor/textdocument.h>
#include <texteditor/texteditor.h> #include <texteditor/texteditor.h>
#include <texteditor/texteditortr.h>
#include <texteditor/textmark.h> #include <texteditor/textmark.h>
#include <utils/algorithm.h> #include <utils/algorithm.h>
@@ -60,13 +61,12 @@
#include <vcsbase/vcscommand.h> #include <vcsbase/vcscommand.h>
#include <vcsbase/vcsoutputwindow.h> #include <vcsbase/vcsoutputwindow.h>
#include <QDebug>
#include <QDir>
#include <QFileInfo>
#include <QAction> #include <QAction>
#include <QApplication> #include <QApplication>
#include <QDebug>
#include <QDir>
#include <QFileDialog> #include <QFileDialog>
#include <QFileInfo>
#include <QMenu> #include <QMenu>
#include <QTimer> #include <QTimer>
#include <QVBoxLayout> #include <QVBoxLayout>
@@ -208,13 +208,13 @@ public:
setActionsProvider([info] { setActionsProvider([info] {
QAction *copyToClipboardAction = new QAction; QAction *copyToClipboardAction = new QAction;
copyToClipboardAction->setIcon(QIcon::fromTheme("edit-copy", Utils::Icons::COPY.icon())); copyToClipboardAction->setIcon(QIcon::fromTheme("edit-copy", Utils::Icons::COPY.icon()));
copyToClipboardAction->setToolTip(TextMark::tr("Copy SHA1 to Clipboard")); copyToClipboardAction->setToolTip(TextEditor::Tr::tr("Copy SHA1 to Clipboard"));
QObject::connect(copyToClipboardAction, &QAction::triggered, [info] { QObject::connect(copyToClipboardAction, &QAction::triggered, [info] {
Utils::setClipboardAndSelection(info.sha1); Utils::setClipboardAndSelection(info.sha1);
}); });
QAction *showAction = new QAction; QAction *showAction = new QAction;
showAction->setIcon(Utils::Icons::ZOOM.icon()); showAction->setIcon(Utils::Icons::ZOOM.icon());
showAction->setToolTip(TextMark::tr("Show Commit %1").arg(info.sha1.left(8))); showAction->setToolTip(TextEditor::Tr::tr("Show Commit %1").arg(info.sha1.left(8)));
QObject::connect(showAction, &QAction::triggered, [info] { QObject::connect(showAction, &QAction::triggered, [info] {
GitClient::instance()->show(info.fileName, info.sha1); GitClient::instance()->show(info.fileName, info.sha1);
}); });

View File

@@ -2,9 +2,13 @@
// 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 "basefilefind.h" #include "basefilefind.h"
#include "refactoringchanges.h"
#include "textdocument.h" #include "textdocument.h"
#include "texteditortr.h"
#include <aggregation/aggregate.h> #include <aggregation/aggregate.h>
#include <coreplugin/dialogs/readonlyfilesdialog.h> #include <coreplugin/dialogs/readonlyfilesdialog.h>
#include <coreplugin/documentmanager.h> #include <coreplugin/documentmanager.h>
#include <coreplugin/editormanager/editormanager.h> #include <coreplugin/editormanager/editormanager.h>
@@ -12,8 +16,7 @@
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <coreplugin/progressmanager/futureprogress.h> #include <coreplugin/progressmanager/futureprogress.h>
#include <coreplugin/progressmanager/progressmanager.h> #include <coreplugin/progressmanager/progressmanager.h>
#include <texteditor/refactoringchanges.h>
#include <texteditor/texteditor.h>
#include <utils/algorithm.h> #include <utils/algorithm.h>
#include <utils/fadingindicator.h> #include <utils/fadingindicator.h>
#include <utils/filesearch.h> #include <utils/filesearch.h>
@@ -37,13 +40,12 @@ using namespace Core;
namespace TextEditor { namespace TextEditor {
namespace Internal { namespace Internal {
namespace {
class InternalEngine : public TextEditor::SearchEngine class InternalEngine : public TextEditor::SearchEngine
{ {
public: public:
InternalEngine() : m_widget(new QWidget) {} InternalEngine() : m_widget(new QWidget) {}
~InternalEngine() override { delete m_widget;} ~InternalEngine() override { delete m_widget;}
QString title() const override { return TextEditor::SearchEngine::tr("Internal"); } QString title() const override { return Tr::tr("Internal"); }
QString toolTip() const override { return {}; } QString toolTip() const override { return {}; }
QWidget *widget() const override { return m_widget; } QWidget *widget() const override { return m_widget; }
QVariant parameters() const override { return {}; } QVariant parameters() const override { return {}; }
@@ -72,7 +74,6 @@ public:
private: private:
QWidget *m_widget; QWidget *m_widget;
}; };
} // namespace
class SearchEnginePrivate class SearchEnginePrivate
{ {
@@ -305,10 +306,10 @@ void BaseFileFind::runSearch(SearchResult *search)
watcher->setFuture(future); watcher->setFuture(future);
d->m_futureSynchronizer.addFuture(future); d->m_futureSynchronizer.addFuture(future);
FutureProgress *progress = ProgressManager::addTask(future, FutureProgress *progress = ProgressManager::addTask(future,
tr("Searching"), Tr::tr("Searching"),
Constants::TASK_SEARCH); Constants::TASK_SEARCH);
connect(search, &SearchResult::countChanged, progress, [progress](int c) { connect(search, &SearchResult::countChanged, progress, [progress](int c) {
progress->setSubtitle(BaseFileFind::tr("%n found.", nullptr, c)); progress->setSubtitle(Tr::tr("%n found.", nullptr, c));
}); });
progress->setSubtitleVisibleInStatusBar(true); progress->setSubtitleVisibleInStatusBar(true);
connect(progress, &FutureProgress::clicked, search, &SearchResult::popup); connect(progress, &FutureProgress::clicked, search, &SearchResult::popup);
@@ -338,7 +339,7 @@ void BaseFileFind::doReplace(const QString &text,
const FilePaths files = replaceAll(text, items, preserveCase); const FilePaths files = replaceAll(text, items, preserveCase);
if (!files.isEmpty()) { if (!files.isEmpty()) {
Utils::FadingIndicator::showText(ICore::dialogParent(), Utils::FadingIndicator::showText(ICore::dialogParent(),
tr("%n occurrences replaced.", nullptr, items.size()), Tr::tr("%n occurrences replaced.", nullptr, items.size()),
Utils::FadingIndicator::SmallText); Utils::FadingIndicator::SmallText);
DocumentManager::notifyFilesChangedInternally(files); DocumentManager::notifyFilesChangedInternally(files);
SearchResultWindow::instance()->hide(); SearchResultWindow::instance()->hide();
@@ -496,7 +497,7 @@ FilePaths BaseFileFind::replaceAll(const QString &text,
// Query the user for permissions // Query the user for permissions
if (!roFiles.isEmpty()) { if (!roFiles.isEmpty()) {
ReadOnlyFilesDialog roDialog(Utils::toList(roFiles), ICore::dialogParent()); ReadOnlyFilesDialog roDialog(Utils::toList(roFiles), ICore::dialogParent());
roDialog.setShowFailWarning(true, tr("Aborting replace.")); roDialog.setShowFailWarning(true, Tr::tr("Aborting replace."));
if (roDialog.exec() == ReadOnlyFilesDialog::RO_Cancel) if (roDialog.exec() == ReadOnlyFilesDialog::RO_Cancel)
return {}; return {};
} }

View File

@@ -12,6 +12,7 @@
#include "tabsettings.h" #include "tabsettings.h"
#include "texteditorconstants.h" #include "texteditorconstants.h"
#include "texteditorsettings.h" #include "texteditorsettings.h"
#include "texteditortr.h"
#include "typingsettings.h" #include "typingsettings.h"
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
@@ -55,7 +56,7 @@ BehaviorSettingsPage::BehaviorSettingsPagePrivate::BehaviorSettingsPagePrivate()
{ {
// global tab preferences for all other languages // global tab preferences for all other languages
m_codeStyle = new SimpleCodeStylePreferences(this); m_codeStyle = new SimpleCodeStylePreferences(this);
m_codeStyle->setDisplayName(tr("Global", "Settings")); m_codeStyle->setDisplayName(Tr::tr("Global", "Settings"));
m_codeStyle->setId(Constants::GLOBAL_SETTINGS_ID); m_codeStyle->setId(Constants::GLOBAL_SETTINGS_ID);
// default pool for all other languages // default pool for all other languages
@@ -75,10 +76,10 @@ BehaviorSettingsPage::BehaviorSettingsPage()
{ {
// Add the GUI used to configure the tab, storage and interaction settings // Add the GUI used to configure the tab, storage and interaction settings
setId(Constants::TEXT_EDITOR_BEHAVIOR_SETTINGS); setId(Constants::TEXT_EDITOR_BEHAVIOR_SETTINGS);
setDisplayName(tr("Behavior")); setDisplayName(Tr::tr("Behavior"));
setCategory(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY); setCategory(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("::TextEditor", "Text Editor")); setDisplayCategory(Tr::tr("Text Editor"));
setCategoryIconPath(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY_ICON_PATH); setCategoryIconPath(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY_ICON_PATH);
} }

View File

@@ -9,6 +9,7 @@
#include "simplecodestylepreferenceswidget.h" #include "simplecodestylepreferenceswidget.h"
#include "storagesettings.h" #include "storagesettings.h"
#include "tabsettingswidget.h" #include "tabsettingswidget.h"
#include "texteditortr.h"
#include "typingsettings.h" #include "typingsettings.h"
#include <coreplugin/coreconstants.h> #include <coreplugin/coreconstants.h>
@@ -32,7 +33,6 @@ namespace TextEditor {
struct BehaviorSettingsWidgetPrivate struct BehaviorSettingsWidgetPrivate
{ {
SimpleCodeStylePreferencesWidget *tabPreferencesWidget; SimpleCodeStylePreferencesWidget *tabPreferencesWidget;
QComboBox *tabKeyBehavior; QComboBox *tabKeyBehavior;
QComboBox *smartBackspaceBehavior; QComboBox *smartBackspaceBehavior;
@@ -71,15 +71,15 @@ BehaviorSettingsWidget::BehaviorSettingsWidget(QWidget *parent)
d->tabPreferencesWidget->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); // FIXME: Desirable? d->tabPreferencesWidget->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); // FIXME: Desirable?
d->tabKeyBehavior = new QComboBox; d->tabKeyBehavior = new QComboBox;
d->tabKeyBehavior->addItem(tr("Never")); d->tabKeyBehavior->addItem(Tr::tr("Never"));
d->tabKeyBehavior->addItem(tr("Always")); d->tabKeyBehavior->addItem(Tr::tr("Always"));
d->tabKeyBehavior->addItem(tr("In Leading White Space")); d->tabKeyBehavior->addItem(Tr::tr("In Leading White Space"));
d->smartBackspaceBehavior = new QComboBox; d->smartBackspaceBehavior = new QComboBox;
d->smartBackspaceBehavior->addItem(tr("None")); d->smartBackspaceBehavior->addItem(Tr::tr("None"));
d->smartBackspaceBehavior->addItem(tr("Follows Previous Indents")); d->smartBackspaceBehavior->addItem(Tr::tr("Follows Previous Indents"));
d->smartBackspaceBehavior->addItem(tr("Unindents")); d->smartBackspaceBehavior->addItem(Tr::tr("Unindents"));
d->smartBackspaceBehavior->setToolTip(tr("<html><head/><body>\n" d->smartBackspaceBehavior->setToolTip(Tr::tr("<html><head/><body>\n"
"Specifies how backspace interacts with indentation.\n" "Specifies how backspace interacts with indentation.\n"
"\n" "\n"
"<ul>\n" "<ul>\n"
@@ -94,43 +94,43 @@ BehaviorSettingsWidget::BehaviorSettingsWidget(QWidget *parent)
"</ul></body></html>\n" "</ul></body></html>\n"
"")); ""));
d->autoIndent = new QCheckBox(tr("Enable automatic &indentation")); d->autoIndent = new QCheckBox(Tr::tr("Enable automatic &indentation"));
d->preferSingleLineComments = new QCheckBox(tr("Prefer single line comments")); d->preferSingleLineComments = new QCheckBox(Tr::tr("Prefer single line comments"));
d->skipTrailingWhitespace = new QCheckBox(tr("Skip clean whitespace for file types:")); d->skipTrailingWhitespace = new QCheckBox(Tr::tr("Skip clean whitespace for file types:"));
d->skipTrailingWhitespace->setToolTip(tr("For the file patterns listed, do not trim trailing whitespace.")); d->skipTrailingWhitespace->setToolTip(Tr::tr("For the file patterns listed, do not trim trailing whitespace."));
d->skipTrailingWhitespace->setEnabled(false); d->skipTrailingWhitespace->setEnabled(false);
d->skipTrailingWhitespace->setChecked(false); d->skipTrailingWhitespace->setChecked(false);
d->ignoreFileTypes = new QLineEdit; d->ignoreFileTypes = new QLineEdit;
d->ignoreFileTypes->setEnabled(false); d->ignoreFileTypes->setEnabled(false);
d->ignoreFileTypes->setAcceptDrops(false); d->ignoreFileTypes->setAcceptDrops(false);
d->ignoreFileTypes->setToolTip(tr("List of wildcard-aware file patterns, separated by commas or semicolons.")); d->ignoreFileTypes->setToolTip(Tr::tr("List of wildcard-aware file patterns, separated by commas or semicolons."));
d->addFinalNewLine = new QCheckBox(tr("&Ensure newline at end of file")); d->addFinalNewLine = new QCheckBox(Tr::tr("&Ensure newline at end of file"));
d->addFinalNewLine->setToolTip(tr("Always writes a newline character at the end of the file.")); d->addFinalNewLine->setToolTip(Tr::tr("Always writes a newline character at the end of the file."));
d->cleanWhitespace = new QCheckBox(tr("&Clean whitespace")); d->cleanWhitespace = new QCheckBox(Tr::tr("&Clean whitespace"));
d->cleanWhitespace->setToolTip(tr("Removes trailing whitespace upon saving.")); d->cleanWhitespace->setToolTip(Tr::tr("Removes trailing whitespace upon saving."));
d->cleanIndentation = new QCheckBox(tr("Clean indentation")); d->cleanIndentation = new QCheckBox(Tr::tr("Clean indentation"));
d->cleanIndentation->setEnabled(false); d->cleanIndentation->setEnabled(false);
d->cleanIndentation->setToolTip(tr("Corrects leading whitespace according to tab settings.")); d->cleanIndentation->setToolTip(Tr::tr("Corrects leading whitespace according to tab settings."));
d->inEntireDocument = new QCheckBox(tr("In entire &document")); d->inEntireDocument = new QCheckBox(Tr::tr("In entire &document"));
d->inEntireDocument->setEnabled(false); d->inEntireDocument->setEnabled(false);
d->inEntireDocument->setToolTip(tr("Cleans whitespace in entire document instead of only for changed parts.")); d->inEntireDocument->setToolTip(Tr::tr("Cleans whitespace in entire document instead of only for changed parts."));
d->encodingBox = new CodecChooser; d->encodingBox = new CodecChooser;
d->encodingBox->setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLengthWithIcon); d->encodingBox->setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLengthWithIcon);
d->encodingBox->setMinimumContentsLength(20); d->encodingBox->setMinimumContentsLength(20);
d->utf8BomBox = new QComboBox; d->utf8BomBox = new QComboBox;
d->utf8BomBox->addItem(tr("Add If Encoding Is UTF-8")); d->utf8BomBox->addItem(Tr::tr("Add If Encoding Is UTF-8"));
d->utf8BomBox->addItem(tr("Keep If Already Present")); d->utf8BomBox->addItem(Tr::tr("Keep If Already Present"));
d->utf8BomBox->addItem(tr("Always Delete")); d->utf8BomBox->addItem(Tr::tr("Always Delete"));
d->utf8BomBox->setToolTip(tr("<html><head/><body>\n" d->utf8BomBox->setToolTip(Tr::tr("<html><head/><body>\n"
"<p>How text editors should deal with UTF-8 Byte Order Marks. The options are:</p>\n" "<p>How text editors should deal with UTF-8 Byte Order Marks. The options are:</p>\n"
"<ul ><li><i>Add If Encoding Is UTF-8:</i> always add a BOM when saving a file in UTF-8 encoding. Note that this will not work if the encoding is <i>System</i>, as the text editor does not know what it actually is.</li>\n" "<ul ><li><i>Add If Encoding Is UTF-8:</i> always add a BOM when saving a file in UTF-8 encoding. Note that this will not work if the encoding is <i>System</i>, as the text editor does not know what it actually is.</li>\n"
"<li><i>Keep If Already Present: </i>save the file with a BOM if it already had one when it was loaded.</li>\n" "<li><i>Keep If Already Present: </i>save the file with a BOM if it already had one when it was loaded.</li>\n"
@@ -141,29 +141,29 @@ BehaviorSettingsWidget::BehaviorSettingsWidget(QWidget *parent)
d->defaultLineEndings = new QComboBox; d->defaultLineEndings = new QComboBox;
d->defaultLineEndings->addItems(ExtraEncodingSettings::lineTerminationModeNames()); d->defaultLineEndings->addItems(ExtraEncodingSettings::lineTerminationModeNames());
d->mouseHiding = new QCheckBox(tr("Hide mouse cursor while typing")); d->mouseHiding = new QCheckBox(Tr::tr("Hide mouse cursor while typing"));
d->mouseNavigation = new QCheckBox(tr("Enable &mouse navigation")); d->mouseNavigation = new QCheckBox(Tr::tr("Enable &mouse navigation"));
d->scrollWheelZooming = new QCheckBox(tr("Enable scroll &wheel zooming")); d->scrollWheelZooming = new QCheckBox(Tr::tr("Enable scroll &wheel zooming"));
d->camelCaseNavigation = new QCheckBox(tr("Enable built-in camel case &navigation")); d->camelCaseNavigation = new QCheckBox(Tr::tr("Enable built-in camel case &navigation"));
d->smartSelectionChanging = new QCheckBox(tr("Enable smart selection changing")); d->smartSelectionChanging = new QCheckBox(Tr::tr("Enable smart selection changing"));
d->smartSelectionChanging->setToolTip(tr("Using Select Block Up / Down actions will now provide smarter selections.")); d->smartSelectionChanging->setToolTip(Tr::tr("Using Select Block Up / Down actions will now provide smarter selections."));
d->keyboardTooltips = new QCheckBox(tr("Show help tooltips using keyboard shortcut (Alt)")); d->keyboardTooltips = new QCheckBox(Tr::tr("Show help tooltips using keyboard shortcut (Alt)"));
d->keyboardTooltips->setToolTip(tr("Pressing Alt displays context-sensitive help or type information as tooltips.")); d->keyboardTooltips->setToolTip(Tr::tr("Pressing Alt displays context-sensitive help or type information as tooltips."));
d->constrainTooltipsBox = new QComboBox; d->constrainTooltipsBox = new QComboBox;
d->constrainTooltipsBox->addItem(tr("On Mouseover")); d->constrainTooltipsBox->addItem(Tr::tr("On Mouseover"));
d->constrainTooltipsBox->addItem(tr("On Shift+Mouseover")); d->constrainTooltipsBox->addItem(Tr::tr("On Shift+Mouseover"));
d->groupBoxTyping = new QGroupBox(tr("Typing")); d->groupBoxTyping = new QGroupBox(Tr::tr("Typing"));
d->groupBoxStorageSettings = new QGroupBox(tr("Cleanups Upon Saving")); d->groupBoxStorageSettings = new QGroupBox(Tr::tr("Cleanups Upon Saving"));
d->groupBoxStorageSettings->setToolTip(tr("Cleanup actions which are automatically performed " d->groupBoxStorageSettings->setToolTip(Tr::tr("Cleanup actions which are automatically performed "
"right before the file is saved to disk.")); "right before the file is saved to disk."));
d->groupBoxEncodings = new QGroupBox(tr("File Encodings")); d->groupBoxEncodings = new QGroupBox(Tr::tr("File Encodings"));
d->groupBoxMouse = new QGroupBox(tr("Mouse and Keyboard")); d->groupBoxMouse = new QGroupBox(Tr::tr("Mouse and Keyboard"));
using namespace Utils::Layouting; using namespace Utils::Layouting;
@@ -171,9 +171,9 @@ BehaviorSettingsWidget::BehaviorSettingsWidget(QWidget *parent)
Column { Column {
d->autoIndent, d->autoIndent,
tr("Backspace indentation:"), Tr::tr("Backspace indentation:"),
indent(d->smartBackspaceBehavior), indent(d->smartBackspaceBehavior),
tr("Tab key performs auto-indent:"), Tr::tr("Tab key performs auto-indent:"),
indent(d->tabKeyBehavior), indent(d->tabKeyBehavior),
d->preferSingleLineComments d->preferSingleLineComments
}.attachTo(d->groupBoxTyping); }.attachTo(d->groupBoxTyping);
@@ -188,9 +188,9 @@ BehaviorSettingsWidget::BehaviorSettingsWidget(QWidget *parent)
Row { Row {
Form { Form {
tr("Default encoding:"), d->encodingBox, br, Tr::tr("Default encoding:"), d->encodingBox, br,
tr("UTF-8 BOM:"), d->utf8BomBox, br, Tr::tr("UTF-8 BOM:"), d->utf8BomBox, br,
tr("Default line endings:"), d->defaultLineEndings, br, Tr::tr("Default line endings:"), d->defaultLineEndings, br,
}, st }, st
}.attachTo(d->groupBoxEncodings); }.attachTo(d->groupBoxEncodings);
@@ -201,7 +201,7 @@ BehaviorSettingsWidget::BehaviorSettingsWidget(QWidget *parent)
d->camelCaseNavigation, d->camelCaseNavigation,
d->smartSelectionChanging, d->smartSelectionChanging,
d->keyboardTooltips, d->keyboardTooltips,
tr("Show help tooltips using the mouse:"), Tr::tr("Show help tooltips using the mouse:"),
Row { Space(30), d->constrainTooltipsBox, st } Row { Space(30), d->constrainTooltipsBox, st }
}.attachTo(d->groupBoxMouse); }.attachTo(d->groupBoxMouse);
@@ -332,10 +332,10 @@ void BehaviorSettingsWidget::updateConstrainTooltipsBoxTooltip() const
{ {
if (d->constrainTooltipsBox->currentIndex() == 0) { if (d->constrainTooltipsBox->currentIndex() == 0) {
d->constrainTooltipsBox->setToolTip( d->constrainTooltipsBox->setToolTip(
tr("Displays context-sensitive help or type information on mouseover.")); Tr::tr("Displays context-sensitive help or type information on mouseover."));
} else { } else {
d->constrainTooltipsBox->setToolTip( d->constrainTooltipsBox->setToolTip(
tr("Displays context-sensitive help or type information on Shift+Mouseover.")); Tr::tr("Displays context-sensitive help or type information on Shift+Mouseover."));
} }
} }

View File

@@ -2,8 +2,10 @@
// 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 "functionhintproposalwidget.h" #include "functionhintproposalwidget.h"
#include "ifunctionhintproposalmodel.h" #include "ifunctionhintproposalmodel.h"
#include "codeassistant.h" #include "codeassistant.h"
#include "../texteditortr.h"
#include <utils/algorithm.h> #include <utils/algorithm.h>
#include <utils/faketooltip.h> #include <utils/faketooltip.h>
@@ -341,7 +343,7 @@ bool FunctionHintProposalWidget::updateAndCheck(const QString &prefix)
void FunctionHintProposalWidget::updateContent() void FunctionHintProposalWidget::updateContent()
{ {
d->m_hintLabel->setText(d->m_model->text(d->m_currentHint)); d->m_hintLabel->setText(d->m_model->text(d->m_currentHint));
d->m_numberLabel->setText(tr("%1 of %2").arg(d->m_currentHint + 1).arg(d->m_totalHints)); d->m_numberLabel->setText(Tr::tr("%1 of %2").arg(d->m_currentHint + 1).arg(d->m_totalHints));
updatePosition(); updatePosition();
} }

View File

@@ -7,17 +7,18 @@
#include "icodestylepreferencesfactory.h" #include "icodestylepreferencesfactory.h"
#include "icodestylepreferences.h" #include "icodestylepreferences.h"
#include "codestyleselectorwidget.h" #include "codestyleselectorwidget.h"
#include "texteditorsettings.h" #include "texteditortr.h"
#include "displaysettings.h" #include "displaysettings.h"
#include "tabsettings.h" #include "tabsettings.h"
#include "indenter.h" #include "indenter.h"
#include "snippets/snippeteditor.h" #include "snippets/snippeteditor.h"
#include "snippets/snippetprovider.h" #include "snippets/snippetprovider.h"
#include <QVBoxLayout> #include <QVBoxLayout>
#include <QTextBlock> #include <QTextBlock>
#include <QLabel> #include <QLabel>
using namespace TextEditor; namespace TextEditor {
CodeStyleEditor::CodeStyleEditor(ICodeStylePreferencesFactory *factory, CodeStyleEditor::CodeStyleEditor(ICodeStylePreferencesFactory *factory,
ICodeStylePreferences *codeStyle, ICodeStylePreferences *codeStyle,
@@ -45,7 +46,7 @@ CodeStyleEditor::CodeStyleEditor(ICodeStylePreferencesFactory *factory,
} }
QLabel *label = new QLabel( QLabel *label = new QLabel(
tr("Edit preview contents to see how the current settings " Tr::tr("Edit preview contents to see how the current settings "
"are applied to custom code snippets. Changes in the preview " "are applied to custom code snippets. Changes in the preview "
"do not affect the current settings."), this); "do not affect the current settings."), this);
QFont font = label->font(); QFont font = label->font();
@@ -106,3 +107,5 @@ void CodeStyleEditor::finish()
if (m_widget) if (m_widget)
m_widget->finish(); m_widget->finish();
} }
} // TextEditor

View File

@@ -6,6 +6,7 @@
#include "icodestylepreferences.h" #include "icodestylepreferences.h"
#include "icodestylepreferencesfactory.h" #include "icodestylepreferencesfactory.h"
#include "codestylepool.h" #include "codestylepool.h"
#include "texteditortr.h"
#include <utils/fileutils.h> #include <utils/fileutils.h>
#include <utils/layoutbuilder.h> #include <utils/layoutbuilder.h>
@@ -21,7 +22,6 @@
#include <QMessageBox> #include <QMessageBox>
#include <QPushButton> #include <QPushButton>
using namespace TextEditor;
using namespace Utils; using namespace Utils;
namespace TextEditor { namespace TextEditor {
@@ -38,21 +38,21 @@ CodeStyleSelectorWidget::CodeStyleSelectorWidget(ICodeStylePreferencesFactory *f
m_delegateComboBox = new QComboBox(this); m_delegateComboBox = new QComboBox(this);
m_delegateComboBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); m_delegateComboBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
auto copyButton = new QPushButton(tr("Copy...")); auto copyButton = new QPushButton(Tr::tr("Copy..."));
m_removeButton = new QPushButton(tr("Remove")); m_removeButton = new QPushButton(Tr::tr("Remove"));
m_exportButton = new QPushButton(tr("Export...")); m_exportButton = new QPushButton(Tr::tr("Export..."));
m_exportButton->setEnabled(false); m_exportButton->setEnabled(false);
m_importButton = new QPushButton(tr("Import...")); m_importButton = new QPushButton(Tr::tr("Import..."));
m_importButton->setEnabled(false); m_importButton->setEnabled(false);
using namespace Utils::Layouting; using namespace Utils::Layouting;
Column { Column {
Grid { Grid {
tr("Current settings:"), Tr::tr("Current settings:"),
m_delegateComboBox, m_delegateComboBox,
copyButton, copyButton,
m_removeButton, m_removeButton,
@@ -157,10 +157,10 @@ void CodeStyleSelectorWidget::slotCopyClicked()
ICodeStylePreferences *currentPreferences = m_codeStyle->currentPreferences(); ICodeStylePreferences *currentPreferences = m_codeStyle->currentPreferences();
bool ok = false; bool ok = false;
const QString newName = QInputDialog::getText(this, const QString newName = QInputDialog::getText(this,
tr("Copy Code Style"), Tr::tr("Copy Code Style"),
tr("Code style name:"), Tr::tr("Code style name:"),
QLineEdit::Normal, QLineEdit::Normal,
tr("%1 (Copy)").arg(currentPreferences->displayName()), Tr::tr("%1 (Copy)").arg(currentPreferences->displayName()),
&ok); &ok);
if (!ok || newName.trimmed().isEmpty()) if (!ok || newName.trimmed().isEmpty())
return; return;
@@ -180,14 +180,14 @@ void CodeStyleSelectorWidget::slotRemoveClicked()
ICodeStylePreferences *currentPreferences = m_codeStyle->currentPreferences(); ICodeStylePreferences *currentPreferences = m_codeStyle->currentPreferences();
QMessageBox messageBox(QMessageBox::Warning, QMessageBox messageBox(QMessageBox::Warning,
tr("Delete Code Style"), Tr::tr("Delete Code Style"),
tr("Are you sure you want to delete this code style permanently?"), Tr::tr("Are you sure you want to delete this code style permanently?"),
QMessageBox::Discard | QMessageBox::Cancel, QMessageBox::Discard | QMessageBox::Cancel,
this); this);
// Change the text and role of the discard button // Change the text and role of the discard button
auto deleteButton = static_cast<QPushButton*>(messageBox.button(QMessageBox::Discard)); auto deleteButton = static_cast<QPushButton*>(messageBox.button(QMessageBox::Discard));
deleteButton->setText(tr("Delete")); deleteButton->setText(Tr::tr("Delete"));
messageBox.addButton(deleteButton, QMessageBox::AcceptRole); messageBox.addButton(deleteButton, QMessageBox::AcceptRole);
messageBox.setDefaultButton(deleteButton); messageBox.setDefaultButton(deleteButton);
@@ -199,25 +199,25 @@ void CodeStyleSelectorWidget::slotRemoveClicked()
void CodeStyleSelectorWidget::slotImportClicked() void CodeStyleSelectorWidget::slotImportClicked()
{ {
const FilePath fileName = const FilePath fileName =
FileUtils::getOpenFilePath(this, tr("Import Code Style"), {}, FileUtils::getOpenFilePath(this, Tr::tr("Import Code Style"), {},
tr("Code styles (*.xml);;All files (*)")); Tr::tr("Code styles (*.xml);;All files (*)"));
if (!fileName.isEmpty()) { if (!fileName.isEmpty()) {
CodeStylePool *codeStylePool = m_codeStyle->delegatingPool(); CodeStylePool *codeStylePool = m_codeStyle->delegatingPool();
ICodeStylePreferences *importedStyle = codeStylePool->importCodeStyle(fileName); ICodeStylePreferences *importedStyle = codeStylePool->importCodeStyle(fileName);
if (importedStyle) if (importedStyle)
m_codeStyle->setCurrentDelegate(importedStyle); m_codeStyle->setCurrentDelegate(importedStyle);
else else
QMessageBox::warning(this, tr("Import Code Style"), QMessageBox::warning(this, Tr::tr("Import Code Style"),
tr("Cannot import code style from %1"), fileName.toUserOutput()); Tr::tr("Cannot import code style from %1"), fileName.toUserOutput());
} }
} }
void CodeStyleSelectorWidget::slotExportClicked() void CodeStyleSelectorWidget::slotExportClicked()
{ {
ICodeStylePreferences *currentPreferences = m_codeStyle->currentPreferences(); ICodeStylePreferences *currentPreferences = m_codeStyle->currentPreferences();
const FilePath filePath = FileUtils::getSaveFilePath(this, tr("Export Code Style"), const FilePath filePath = FileUtils::getSaveFilePath(this, Tr::tr("Export Code Style"),
FilePath::fromString(QString::fromUtf8(currentPreferences->id() + ".xml")), FilePath::fromString(QString::fromUtf8(currentPreferences->id() + ".xml")),
tr("Code styles (*.xml);;All files (*)")); Tr::tr("Code styles (*.xml);;All files (*)"));
if (!filePath.isEmpty()) { if (!filePath.isEmpty()) {
CodeStylePool *codeStylePool = m_codeStyle->delegatingPool(); CodeStylePool *codeStylePool = m_codeStyle->delegatingPool();
codeStylePool->exportCodeStyle(filePath, currentPreferences); codeStylePool->exportCodeStyle(filePath, currentPreferences);
@@ -283,9 +283,9 @@ QString CodeStyleSelectorWidget::displayName(ICodeStylePreferences *codeStyle) c
{ {
QString name = codeStyle->displayName(); QString name = codeStyle->displayName();
if (codeStyle->currentDelegate()) if (codeStyle->currentDelegate())
name = tr("%1 [proxy: %2]").arg(name).arg(codeStyle->currentDelegate()->displayName()); name = Tr::tr("%1 [proxy: %2]").arg(name).arg(codeStyle->currentDelegate()->displayName());
if (codeStyle->isReadOnly()) if (codeStyle->isReadOnly())
name = tr("%1 [built-in]").arg(name); name = Tr::tr("%1 [built-in]").arg(name);
return name; return name;
} }

View File

@@ -4,6 +4,7 @@
#include "colorscheme.h" #include "colorscheme.h"
#include "texteditorconstants.h" #include "texteditorconstants.h"
#include "texteditortr.h"
#include <utils/fileutils.h> #include <utils/fileutils.h>
@@ -298,7 +299,7 @@ bool ColorSchemeReader::read(const FilePath &filePath, ColorScheme *scheme)
if (readNextStartElement() && name() == QLatin1String("style-scheme")) if (readNextStartElement() && name() == QLatin1String("style-scheme"))
readStyleScheme(); readStyleScheme();
else else
raiseError(QCoreApplication::translate("TextEditor::Internal::ColorScheme", "Not a color scheme file.")); raiseError(Tr::tr("Not a color scheme file."));
return true; return true;
} }

View File

@@ -3,6 +3,8 @@
#include "colorschemeedit.h" #include "colorschemeedit.h"
#include "texteditortr.h"
#include <utils/layoutbuilder.h> #include <utils/layoutbuilder.h>
#include <utils/theme/theme.h> #include <utils/theme/theme.h>
#include <utils/utilsicons.h> #include <utils/utilsicons.h>
@@ -138,7 +140,7 @@ ColorSchemeEdit::ColorSchemeEdit(QWidget *parent) :
auto unsetButton = [](const QString &toolTip) { auto unsetButton = [](const QString &toolTip) {
auto tb = new QPushButton; auto tb = new QPushButton;
tb->setToolTip(toolTip); tb->setToolTip(toolTip);
tb->setText(tr("Unset")); tb->setText(Tr::tr("Unset"));
return tb; return tb;
}; };
@@ -165,7 +167,7 @@ ColorSchemeEdit::ColorSchemeEdit(QWidget *parent) :
m_itemList->setUniformItemSizes(true); m_itemList->setUniformItemSizes(true);
m_builtinSchemeLabel = new QLabel( m_builtinSchemeLabel = new QLabel(
tr("<p align='center'><b>Builtin color schemes need to be <a href=\"copy\">copied</a><br/>" Tr::tr("<p align='center'><b>Builtin color schemes need to be <a href=\"copy\">copied</a><br/>"
" before they can be changed</b></p>")); " before they can be changed</b></p>"));
m_builtinSchemeLabel->setScaledContents(false); m_builtinSchemeLabel->setScaledContents(false);
@@ -173,33 +175,33 @@ ColorSchemeEdit::ColorSchemeEdit(QWidget *parent) :
//m_fontProperties->setContentsMargins(0, 0, 0, 0); //m_fontProperties->setContentsMargins(0, 0, 0, 0);
m_fontProperties->setMinimumWidth(212); m_fontProperties->setMinimumWidth(212);
m_foregroundLabel = new QLabel(tr("Foreground:")); m_foregroundLabel = new QLabel(Tr::tr("Foreground:"));
m_foregroundToolButton = colorButton(); m_foregroundToolButton = colorButton();
m_eraseForegroundToolButton = unsetButton(tr("Unset foreground.")); m_eraseForegroundToolButton = unsetButton(Tr::tr("Unset foreground."));
m_backgroundLabel = new QLabel(tr("Background:")); m_backgroundLabel = new QLabel(Tr::tr("Background:"));
m_backgroundToolButton = colorButton(); m_backgroundToolButton = colorButton();
m_eraseBackgroundToolButton = unsetButton(tr("Unset background.")); m_eraseBackgroundToolButton = unsetButton(Tr::tr("Unset background."));
m_relativeForegroundHeadline = headlineLabel(tr("Relative Foreground")); m_relativeForegroundHeadline = headlineLabel(Tr::tr("Relative Foreground"));
m_foregroundSaturationLabel = new QLabel(tr("Saturation:")); m_foregroundSaturationLabel = new QLabel(Tr::tr("Saturation:"));
m_foregroundSaturationSpinBox = spinBox(); m_foregroundSaturationSpinBox = spinBox();
m_foregroundLightnessLabel = new QLabel(tr("Lightness:")); m_foregroundLightnessLabel = new QLabel(Tr::tr("Lightness:"));
m_foregroundLightnessSpinBox = spinBox(); m_foregroundLightnessSpinBox = spinBox();
m_relativeBackgroundHeadline = headlineLabel(tr("Relative Background")); m_relativeBackgroundHeadline = headlineLabel(Tr::tr("Relative Background"));
m_backgroundSaturationLabel = new QLabel(tr("Saturation:")); m_backgroundSaturationLabel = new QLabel(Tr::tr("Saturation:"));
m_backgroundSaturationSpinBox = spinBox(); m_backgroundSaturationSpinBox = spinBox();
m_backgroundLightnessLabel = new QLabel(tr("Lightness:")); m_backgroundLightnessLabel = new QLabel(Tr::tr("Lightness:"));
m_backgroundLightnessSpinBox = spinBox(); m_backgroundLightnessSpinBox = spinBox();
m_fontHeadline = headlineLabel(tr("Font")); m_fontHeadline = headlineLabel(Tr::tr("Font"));
m_boldCheckBox = new QCheckBox(tr("Bold")); m_boldCheckBox = new QCheckBox(Tr::tr("Bold"));
m_italicCheckBox = new QCheckBox(tr("Italic")); m_italicCheckBox = new QCheckBox(Tr::tr("Italic"));
m_underlineHeadline = headlineLabel(tr("Underline")); m_underlineHeadline = headlineLabel(Tr::tr("Underline"));
m_underlineLabel = new QLabel(tr("Color:")); m_underlineLabel = new QLabel(Tr::tr("Color:"));
m_underlineColorToolButton = colorButton(); m_underlineColorToolButton = colorButton();
m_eraseUnderlineColorToolButton = unsetButton(tr("Unset background.")); m_eraseUnderlineColorToolButton = unsetButton(Tr::tr("Unset background."));
m_underlineComboBox = new QComboBox; m_underlineComboBox = new QComboBox;
m_itemList->setModel(m_formatsModel); m_itemList->setModel(m_formatsModel);
@@ -685,19 +687,19 @@ void ColorSchemeEdit::setItemListBackground(const QColor &color)
void ColorSchemeEdit::populateUnderlineStyleComboBox() void ColorSchemeEdit::populateUnderlineStyleComboBox()
{ {
m_underlineComboBox->addItem(tr("No Underline"), m_underlineComboBox->addItem(Tr::tr("No Underline"),
QVariant::fromValue(int(QTextCharFormat::NoUnderline))); QVariant::fromValue(int(QTextCharFormat::NoUnderline)));
m_underlineComboBox->addItem(tr("Single Underline"), m_underlineComboBox->addItem(Tr::tr("Single Underline"),
QVariant::fromValue(int(QTextCharFormat::SingleUnderline))); QVariant::fromValue(int(QTextCharFormat::SingleUnderline)));
m_underlineComboBox->addItem(tr("Wave Underline"), m_underlineComboBox->addItem(Tr::tr("Wave Underline"),
QVariant::fromValue(int(QTextCharFormat::WaveUnderline))); QVariant::fromValue(int(QTextCharFormat::WaveUnderline)));
m_underlineComboBox->addItem(tr("Dot Underline"), m_underlineComboBox->addItem(Tr::tr("Dot Underline"),
QVariant::fromValue(int(QTextCharFormat::DotLine))); QVariant::fromValue(int(QTextCharFormat::DotLine)));
m_underlineComboBox->addItem(tr("Dash Underline"), m_underlineComboBox->addItem(Tr::tr("Dash Underline"),
QVariant::fromValue(int(QTextCharFormat::DashUnderline))); QVariant::fromValue(int(QTextCharFormat::DashUnderline)));
m_underlineComboBox->addItem(tr("Dash-Dot Underline"), m_underlineComboBox->addItem(Tr::tr("Dash-Dot Underline"),
QVariant::fromValue(int(QTextCharFormat::DashDotLine))); QVariant::fromValue(int(QTextCharFormat::DashDotLine)));
m_underlineComboBox->addItem(tr("Dash-Dot-Dot Underline"), m_underlineComboBox->addItem(Tr::tr("Dash-Dot-Dot Underline"),
QVariant::fromValue(int(QTextCharFormat::DashDotDotLine))); QVariant::fromValue(int(QTextCharFormat::DashDotDotLine)));
} }

View File

@@ -5,6 +5,7 @@
#include "texteditorsettings.h" #include "texteditorsettings.h"
#include "texteditorconstants.h" #include "texteditorconstants.h"
#include "texteditortr.h"
#include <cppeditor/cpptoolssettings.h> #include <cppeditor/cpptoolssettings.h>
@@ -29,8 +30,6 @@ namespace Internal {
class CompletionSettingsPageWidget final : public Core::IOptionsPageWidget class CompletionSettingsPageWidget final : public Core::IOptionsPageWidget
{ {
Q_DECLARE_TR_FUNCTIONS(TextEditor::Internal::CompletionSettingsPage)
public: public:
explicit CompletionSettingsPageWidget(CompletionSettingsPage *owner); explicit CompletionSettingsPageWidget(CompletionSettingsPage *owner);
@@ -70,97 +69,97 @@ CompletionSettingsPageWidget::CompletionSettingsPageWidget(CompletionSettingsPag
resize(823, 756); resize(823, 756);
m_caseSensitivity = new QComboBox; m_caseSensitivity = new QComboBox;
m_caseSensitivity->addItem(tr("Full")); m_caseSensitivity->addItem(Tr::tr("Full"));
m_caseSensitivity->addItem(tr("None")); m_caseSensitivity->addItem(Tr::tr("None"));
m_caseSensitivity->addItem(tr("First Letter")); m_caseSensitivity->addItem(Tr::tr("First Letter"));
auto caseSensitivityLabel = new QLabel(tr("&Case-sensitivity:")); auto caseSensitivityLabel = new QLabel(Tr::tr("&Case-sensitivity:"));
caseSensitivityLabel->setBuddy(m_caseSensitivity); caseSensitivityLabel->setBuddy(m_caseSensitivity);
m_completionTrigger = new QComboBox; m_completionTrigger = new QComboBox;
m_completionTrigger->addItem(tr("Manually")); m_completionTrigger->addItem(Tr::tr("Manually"));
m_completionTrigger->addItem(tr("When Triggered")); m_completionTrigger->addItem(Tr::tr("When Triggered"));
m_completionTrigger->addItem(tr("Always")); m_completionTrigger->addItem(Tr::tr("Always"));
auto completionTriggerLabel = new QLabel(tr("Activate completion:")); auto completionTriggerLabel = new QLabel(Tr::tr("Activate completion:"));
auto automaticProposalTimeoutLabel = new QLabel(tr("Timeout in ms:")); auto automaticProposalTimeoutLabel = new QLabel(Tr::tr("Timeout in ms:"));
m_automaticProposalTimeoutSpinBox = new QSpinBox; m_automaticProposalTimeoutSpinBox = new QSpinBox;
m_automaticProposalTimeoutSpinBox->setMaximum(2000); m_automaticProposalTimeoutSpinBox->setMaximum(2000);
m_automaticProposalTimeoutSpinBox->setSingleStep(50); m_automaticProposalTimeoutSpinBox->setSingleStep(50);
m_automaticProposalTimeoutSpinBox->setValue(400); m_automaticProposalTimeoutSpinBox->setValue(400);
auto thresholdLabel = new QLabel(tr("Character threshold:")); auto thresholdLabel = new QLabel(Tr::tr("Character threshold:"));
m_thresholdSpinBox = new QSpinBox; m_thresholdSpinBox = new QSpinBox;
m_thresholdSpinBox->setMinimum(1); m_thresholdSpinBox->setMinimum(1);
m_partiallyComplete = new QCheckBox(tr("Autocomplete common &prefix")); m_partiallyComplete = new QCheckBox(Tr::tr("Autocomplete common &prefix"));
m_partiallyComplete->setToolTip(tr("Inserts the common prefix of available completion items.")); m_partiallyComplete->setToolTip(Tr::tr("Inserts the common prefix of available completion items."));
m_partiallyComplete->setChecked(true); m_partiallyComplete->setChecked(true);
m_autoSplitStrings = new QCheckBox(tr("Automatically split strings")); m_autoSplitStrings = new QCheckBox(Tr::tr("Automatically split strings"));
m_autoSplitStrings->setToolTip( m_autoSplitStrings->setToolTip(
tr("Splits a string into two lines by adding an end quote at the cursor position " Tr::tr("Splits a string into two lines by adding an end quote at the cursor position "
"when you press Enter and a start quote to the next line, before the rest " "when you press Enter and a start quote to the next line, before the rest "
"of the string.\n\n" "of the string.\n\n"
"In addition, Shift+Enter inserts an escape character at the cursor position " "In addition, Shift+Enter inserts an escape character at the cursor position "
"and moves the rest of the string to the next line.")); "and moves the rest of the string to the next line."));
m_insertBrackets = new QCheckBox(tr("Insert opening or closing brackets")); m_insertBrackets = new QCheckBox(Tr::tr("Insert opening or closing brackets"));
m_insertBrackets->setChecked(true); m_insertBrackets->setChecked(true);
m_insertQuotes = new QCheckBox(tr("Insert closing quote")); m_insertQuotes = new QCheckBox(Tr::tr("Insert closing quote"));
m_insertQuotes->setChecked(true); m_insertQuotes->setChecked(true);
m_surroundBrackets = new QCheckBox(tr("Surround text selection with brackets")); m_surroundBrackets = new QCheckBox(Tr::tr("Surround text selection with brackets"));
m_surroundBrackets->setChecked(true); m_surroundBrackets->setChecked(true);
m_surroundBrackets->setToolTip( m_surroundBrackets->setToolTip(
tr("When typing a matching bracket and there is a text selection, instead of " Tr::tr("When typing a matching bracket and there is a text selection, instead of "
"removing the selection, surrounds it with the corresponding characters.")); "removing the selection, surrounds it with the corresponding characters."));
m_spaceAfterFunctionName = new QCheckBox(tr("Insert &space after function name")); m_spaceAfterFunctionName = new QCheckBox(Tr::tr("Insert &space after function name"));
m_spaceAfterFunctionName->setEnabled(true); m_spaceAfterFunctionName->setEnabled(true);
m_surroundQuotes = new QCheckBox(tr("Surround text selection with quotes")); m_surroundQuotes = new QCheckBox(Tr::tr("Surround text selection with quotes"));
m_surroundQuotes->setChecked(true); m_surroundQuotes->setChecked(true);
m_surroundQuotes->setToolTip( m_surroundQuotes->setToolTip(
tr("When typing a matching quote and there is a text selection, instead of " Tr::tr("When typing a matching quote and there is a text selection, instead of "
"removing the selection, surrounds it with the corresponding characters.")); "removing the selection, surrounds it with the corresponding characters."));
m_animateAutoComplete = new QCheckBox(tr("Animate automatically inserted text")); m_animateAutoComplete = new QCheckBox(Tr::tr("Animate automatically inserted text"));
m_animateAutoComplete->setChecked(true); m_animateAutoComplete->setChecked(true);
m_animateAutoComplete->setToolTip(tr("Show a visual hint when for example a brace or a quote " m_animateAutoComplete->setToolTip(Tr::tr("Show a visual hint when for example a brace or a quote "
"is automatically inserted by the editor.")); "is automatically inserted by the editor."));
m_highlightAutoComplete = new QCheckBox(tr("Highlight automatically inserted text")); m_highlightAutoComplete = new QCheckBox(Tr::tr("Highlight automatically inserted text"));
m_highlightAutoComplete->setChecked(true); m_highlightAutoComplete->setChecked(true);
m_skipAutoComplete = new QCheckBox(tr("Skip automatically inserted character when typing")); m_skipAutoComplete = new QCheckBox(Tr::tr("Skip automatically inserted character when typing"));
m_skipAutoComplete->setToolTip(tr("Skip automatically inserted character if re-typed manually " m_skipAutoComplete->setToolTip(Tr::tr("Skip automatically inserted character if re-typed manually "
"after completion or by pressing tab.")); "after completion or by pressing tab."));
m_skipAutoComplete->setChecked(true); m_skipAutoComplete->setChecked(true);
m_removeAutoComplete = new QCheckBox(tr("Remove automatically inserted text on backspace")); m_removeAutoComplete = new QCheckBox(Tr::tr("Remove automatically inserted text on backspace"));
m_removeAutoComplete->setChecked(true); m_removeAutoComplete->setChecked(true);
m_removeAutoComplete->setToolTip(tr("Remove the automatically inserted character if the trigger " m_removeAutoComplete->setToolTip(Tr::tr("Remove the automatically inserted character if the trigger "
"is deleted by backspace after the completion.")); "is deleted by backspace after the completion."));
m_overwriteClosingChars = new QCheckBox(tr("Overwrite closing punctuation")); m_overwriteClosingChars = new QCheckBox(Tr::tr("Overwrite closing punctuation"));
m_overwriteClosingChars->setToolTip(tr("Automatically overwrite closing parentheses and quotes.")); m_overwriteClosingChars->setToolTip(Tr::tr("Automatically overwrite closing parentheses and quotes."));
m_enableDoxygenCheckBox = new QCheckBox(tr("Enable Doxygen blocks")); m_enableDoxygenCheckBox = new QCheckBox(Tr::tr("Enable Doxygen blocks"));
m_enableDoxygenCheckBox->setToolTip(tr("Automatically creates a Doxygen comment upon pressing " m_enableDoxygenCheckBox->setToolTip(Tr::tr("Automatically creates a Doxygen comment upon pressing "
"enter after a '/**', '/*!', '//!' or '///'.")); "enter after a '/**', '/*!', '//!' or '///'."));
m_generateBriefCheckBox = new QCheckBox(tr("Generate brief description")); m_generateBriefCheckBox = new QCheckBox(Tr::tr("Generate brief description"));
m_generateBriefCheckBox->setToolTip(tr("Generates a <i>brief</i> command with an initial " m_generateBriefCheckBox->setToolTip(Tr::tr("Generates a <i>brief</i> command with an initial "
"description for the corresponding declaration.")); "description for the corresponding declaration."));
m_leadingAsterisksCheckBox = new QCheckBox(tr("Add leading asterisks")); m_leadingAsterisksCheckBox = new QCheckBox(Tr::tr("Add leading asterisks"));
m_leadingAsterisksCheckBox->setToolTip( m_leadingAsterisksCheckBox->setToolTip(
tr("Adds leading asterisks when continuing C/C++ \"/*\", Qt \"/*!\" " Tr::tr("Adds leading asterisks when continuing C/C++ \"/*\", Qt \"/*!\" "
"and Java \"/**\" style comments on new lines.")); "and Java \"/**\" style comments on new lines."));
connect(m_completionTrigger, &QComboBox::currentIndexChanged, connect(m_completionTrigger, &QComboBox::currentIndexChanged,
@@ -227,7 +226,7 @@ CompletionSettingsPageWidget::CompletionSettingsPageWidget(CompletionSettingsPag
Column { Column {
Group { Group {
title(tr("Behavior")), title(Tr::tr("Behavior")),
Form { Form {
caseSensitivityLabel, m_caseSensitivity, st, br, caseSensitivityLabel, m_caseSensitivity, st, br,
completionTriggerLabel, m_completionTrigger, st, br, completionTriggerLabel, m_completionTrigger, st, br,
@@ -238,7 +237,7 @@ CompletionSettingsPageWidget::CompletionSettingsPageWidget(CompletionSettingsPag
} }
}, },
Group { Group {
title(tr("&Automatically insert matching characters")), title(Tr::tr("&Automatically insert matching characters")),
Row { Row {
Column { Column {
m_insertBrackets, m_insertBrackets,
@@ -258,7 +257,7 @@ CompletionSettingsPageWidget::CompletionSettingsPageWidget(CompletionSettingsPag
} }
}, },
Group { Group {
title(tr("Documentation Comments")), title(Tr::tr("Documentation Comments")),
Column { Column {
m_enableDoxygenCheckBox, m_enableDoxygenCheckBox,
indent(m_generateBriefCheckBox), indent(m_generateBriefCheckBox),
@@ -356,9 +355,9 @@ const CommentsSettings &CompletionSettingsPage::commentsSettings() const
CompletionSettingsPage::CompletionSettingsPage() CompletionSettingsPage::CompletionSettingsPage()
{ {
setId("P.Completion"); setId("P.Completion");
setDisplayName(CompletionSettingsPageWidget::tr("Completion")); setDisplayName(Tr::tr("Completion"));
setCategory(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY); setCategory(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("::TextEditor", "Text Editor")); setDisplayCategory(Tr::tr("Text Editor"));
setCategoryIconPath(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY_ICON_PATH); setCategoryIconPath(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY_ICON_PATH);
setWidgetCreator([this] { return new CompletionSettingsPageWidget(this); }); setWidgetCreator([this] { return new CompletionSettingsPageWidget(this); });

View File

@@ -7,10 +7,10 @@
#include "marginsettings.h" #include "marginsettings.h"
#include "texteditorconstants.h" #include "texteditorconstants.h"
#include "texteditorsettings.h" #include "texteditorsettings.h"
#include "texteditortr.h"
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <utils/layoutbuilder.h> #include <utils/layoutbuilder.h>
#include <QApplication> #include <QApplication>
@@ -39,17 +39,15 @@ DisplaySettingsPagePrivate::DisplaySettingsPagePrivate()
class DisplaySettingsWidget final : public Core::IOptionsPageWidget class DisplaySettingsWidget final : public Core::IOptionsPageWidget
{ {
Q_DECLARE_TR_FUNCTIONS(TextEditor::DisplaySettingsPage)
public: public:
DisplaySettingsWidget(DisplaySettingsPagePrivate *data) DisplaySettingsWidget(DisplaySettingsPagePrivate *data)
: m_data(data) : m_data(data)
{ {
resize(452, 458); resize(452, 458);
enableTextWrapping = new QCheckBox(tr("Enable text &wrapping")); enableTextWrapping = new QCheckBox(Tr::tr("Enable text &wrapping"));
enableTextWrappingHintLabel = new QLabel(tr("<i>Set <a href=\"font zoom\">font line spacing</a> " enableTextWrappingHintLabel = new QLabel(Tr::tr("<i>Set <a href=\"font zoom\">font line spacing</a> "
"to 100% to enable text wrapping option.</i>")); "to 100% to enable text wrapping option.</i>"));
fontSettingsPageLineSpacing = fontSettingsPageLineSpacingLink(); fontSettingsPageLineSpacing = fontSettingsPageLineSpacingLink();
@@ -74,8 +72,8 @@ public:
Core::ICore::showOptionsDialog(Constants::TEXT_EDITOR_FONT_SETTINGS); } ); Core::ICore::showOptionsDialog(Constants::TEXT_EDITOR_FONT_SETTINGS); } );
showWrapColumn = new QCheckBox(tr("Display right &margin at column:")); showWrapColumn = new QCheckBox(Tr::tr("Display right &margin at column:"));
tintMarginArea = new QCheckBox(tr("Tint whole margin area")); tintMarginArea = new QCheckBox(Tr::tr("Tint whole margin area"));
wrapColumn = new QSpinBox; wrapColumn = new QSpinBox;
wrapColumn->setMaximum(999); wrapColumn->setMaximum(999);
@@ -83,36 +81,36 @@ public:
connect(showWrapColumn, &QAbstractButton::toggled, wrapColumn, &QWidget::setEnabled); connect(showWrapColumn, &QAbstractButton::toggled, wrapColumn, &QWidget::setEnabled);
connect(showWrapColumn, &QAbstractButton::toggled, tintMarginArea, &QWidget::setEnabled); connect(showWrapColumn, &QAbstractButton::toggled, tintMarginArea, &QWidget::setEnabled);
useIndenter = new QCheckBox(tr("Use context-specific margin")); useIndenter = new QCheckBox(Tr::tr("Use context-specific margin"));
useIndenter->setToolTip(tr("If available, use a different margin. " useIndenter->setToolTip(Tr::tr("If available, use a different margin. "
"For example, the ColumnLimit from the ClangFormat plugin.")); "For example, the ColumnLimit from the ClangFormat plugin."));
animateMatchingParentheses = new QCheckBox(tr("&Animate matching parentheses")); animateMatchingParentheses = new QCheckBox(Tr::tr("&Animate matching parentheses"));
scrollBarHighlights = new QCheckBox(tr("Highlight search results on the scrollbar")); scrollBarHighlights = new QCheckBox(Tr::tr("Highlight search results on the scrollbar"));
displayLineNumbers = new QCheckBox(tr("Display line &numbers")); displayLineNumbers = new QCheckBox(Tr::tr("Display line &numbers"));
animateNavigationWithinFile = new QCheckBox(tr("Animate navigation within file")); animateNavigationWithinFile = new QCheckBox(Tr::tr("Animate navigation within file"));
highlightCurrentLine = new QCheckBox(tr("Highlight current &line")); highlightCurrentLine = new QCheckBox(Tr::tr("Highlight current &line"));
highlightBlocks = new QCheckBox(tr("Highlight &blocks")); highlightBlocks = new QCheckBox(Tr::tr("Highlight &blocks"));
markTextChanges = new QCheckBox(tr("Mark &text changes")); markTextChanges = new QCheckBox(Tr::tr("Mark &text changes"));
autoFoldFirstComment = new QCheckBox(tr("Auto-fold first &comment")); autoFoldFirstComment = new QCheckBox(Tr::tr("Auto-fold first &comment"));
displayFoldingMarkers = new QCheckBox(tr("Display &folding markers")); displayFoldingMarkers = new QCheckBox(Tr::tr("Display &folding markers"));
centerOnScroll = new QCheckBox(tr("Center &cursor on scroll")); centerOnScroll = new QCheckBox(Tr::tr("Center &cursor on scroll"));
visualizeIndent = new QCheckBox(tr("Visualize indent")); visualizeIndent = new QCheckBox(Tr::tr("Visualize indent"));
displayFileLineEnding = new QCheckBox(tr("Display file line ending")); displayFileLineEnding = new QCheckBox(Tr::tr("Display file line ending"));
displayFileEncoding = new QCheckBox(tr("Display file encoding")); displayFileEncoding = new QCheckBox(Tr::tr("Display file encoding"));
openLinksInNextSplit = new QCheckBox(tr("Always open links in another split")); openLinksInNextSplit = new QCheckBox(Tr::tr("Always open links in another split"));
highlightMatchingParentheses = new QCheckBox(tr("&Highlight matching parentheses")); highlightMatchingParentheses = new QCheckBox(Tr::tr("&Highlight matching parentheses"));
visualizeWhitespace = new QCheckBox(tr("&Visualize whitespace")); visualizeWhitespace = new QCheckBox(Tr::tr("&Visualize whitespace"));
visualizeWhitespace->setToolTip(tr("Shows tabs and spaces.")); visualizeWhitespace->setToolTip(Tr::tr("Shows tabs and spaces."));
leftAligned = new QRadioButton(tr("Next to editor content")); leftAligned = new QRadioButton(Tr::tr("Next to editor content"));
atMargin = new QRadioButton(tr("Next to right margin")); atMargin = new QRadioButton(Tr::tr("Next to right margin"));
rightAligned = new QRadioButton(tr("Aligned at right side")); rightAligned = new QRadioButton(Tr::tr("Aligned at right side"));
rightAligned->setChecked(true); rightAligned->setChecked(true);
betweenLines = new QRadioButton(tr("Between lines")); betweenLines = new QRadioButton(Tr::tr("Between lines"));
displayAnnotations = new QGroupBox(tr("Line annotations")), displayAnnotations = new QGroupBox(Tr::tr("Line annotations")),
displayAnnotations->setCheckable(true); displayAnnotations->setCheckable(true);
using namespace Utils::Layouting; using namespace Utils::Layouting;
@@ -126,21 +124,21 @@ public:
Column { Column {
Group { Group {
title(tr("Margin")), title(Tr::tr("Margin")),
Column { Column {
Row { showWrapColumn, wrapColumn, st }, Row { showWrapColumn, wrapColumn, st },
Row { useIndenter, tintMarginArea, st } Row { useIndenter, tintMarginArea, st }
} }
}, },
Group { Group {
title(tr("Wrapping")), title(Tr::tr("Wrapping")),
Column { Column {
enableTextWrapping, enableTextWrapping,
Row { enableTextWrappingHintLabel, st} Row { enableTextWrappingHintLabel, st}
} }
}, },
Group { Group {
title(tr("Display")), title(Tr::tr("Display")),
Row { Row {
Column { Column {
displayLineNumbers, displayLineNumbers,
@@ -345,9 +343,9 @@ DisplaySettingsPage::DisplaySettingsPage()
: d(new DisplaySettingsPagePrivate) : d(new DisplaySettingsPagePrivate)
{ {
setId(Constants::TEXT_EDITOR_DISPLAY_SETTINGS); setId(Constants::TEXT_EDITOR_DISPLAY_SETTINGS);
setDisplayName(DisplaySettingsWidget::tr("Display")); setDisplayName(Tr::tr("Display"));
setCategory(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY); setCategory(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("::TextEditor", "Text Editor")); setDisplayCategory(Tr::tr("Text Editor"));
setCategoryIconPath(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY_ICON_PATH); setCategoryIconPath(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY_ICON_PATH);
setWidgetCreator([this] { return new DisplaySettingsWidget(d); }); setWidgetCreator([this] { return new DisplaySettingsWidget(d); });
} }

View File

@@ -2,7 +2,9 @@
// 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 "extraencodingsettings.h" #include "extraencodingsettings.h"
#include "behaviorsettingswidget.h" #include "behaviorsettingswidget.h"
#include "texteditortr.h"
#include <utils/settingsutils.h> #include <utils/settingsutils.h>
@@ -54,6 +56,5 @@ bool ExtraEncodingSettings::equals(const ExtraEncodingSettings &s) const
QStringList ExtraEncodingSettings::lineTerminationModeNames() QStringList ExtraEncodingSettings::lineTerminationModeNames()
{ {
return {BehaviorSettingsWidget::tr("Unix (LF)"), return {Tr::tr("Unix (LF)"), Tr::tr("Windows (CRLF)")};
BehaviorSettingsWidget::tr("Windows (CRLF)")};
} }

View File

@@ -2,18 +2,20 @@
// 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 "findincurrentfile.h" #include "findincurrentfile.h"
#include "textdocument.h"
#include <utils/filesearch.h> #include "textdocument.h"
#include <utils/fileutils.h> #include "texteditortr.h"
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <coreplugin/editormanager/ieditor.h> #include <coreplugin/editormanager/ieditor.h>
#include <coreplugin/editormanager/editormanager.h> #include <coreplugin/editormanager/editormanager.h>
#include <utils/filesearch.h>
#include <utils/fileutils.h>
#include <QSettings> #include <QSettings>
using namespace TextEditor; namespace TextEditor::Internal {
using namespace TextEditor::Internal;
FindInCurrentFile::FindInCurrentFile() FindInCurrentFile::FindInCurrentFile()
{ {
@@ -29,7 +31,7 @@ QString FindInCurrentFile::id() const
QString FindInCurrentFile::displayName() const QString FindInCurrentFile::displayName() const
{ {
return tr("Current File"); return Tr::tr("Current File");
} }
Utils::FileIterator *FindInCurrentFile::files(const QStringList &nameFilters, Utils::FileIterator *FindInCurrentFile::files(const QStringList &nameFilters,
@@ -54,13 +56,13 @@ QVariant FindInCurrentFile::additionalParameters() const
QString FindInCurrentFile::label() const QString FindInCurrentFile::label() const
{ {
return tr("File \"%1\":").arg(m_currentDocument->filePath().fileName()); return Tr::tr("File \"%1\":").arg(m_currentDocument->filePath().fileName());
} }
QString FindInCurrentFile::toolTip() const QString FindInCurrentFile::toolTip() const
{ {
// %2 is filled by BaseFileFind::runNewSearch // %2 is filled by BaseFileFind::runNewSearch
return tr("File path: %1\n%2").arg(m_currentDocument->filePath().toUserOutput()); return Tr::tr("File path: %1\n%2").arg(m_currentDocument->filePath().toUserOutput());
} }
bool FindInCurrentFile::isEnabled() const bool FindInCurrentFile::isEnabled() const
@@ -96,3 +98,5 @@ void FindInCurrentFile::readSettings(QSettings *settings)
readCommonSettings(settings, "*", ""); readCommonSettings(settings, "*", "");
settings->endGroup(); settings->endGroup();
} }
} // TextEditor::Internal

View File

@@ -3,6 +3,8 @@
#include "findinfiles.h" #include "findinfiles.h"
#include "texteditortr.h"
#include <coreplugin/editormanager/editormanager.h> #include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/find/findplugin.h> #include <coreplugin/find/findplugin.h>
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
@@ -25,9 +27,10 @@
#include <QStackedWidget> #include <QStackedWidget>
using namespace Core; using namespace Core;
using namespace TextEditor;
using namespace Utils; using namespace Utils;
namespace TextEditor {
static FindInFiles *m_instance = nullptr; static FindInFiles *m_instance = nullptr;
static const char HistoryKey[] = "FindInFiles.Directories.History"; static const char HistoryKey[] = "FindInFiles.Directories.History";
@@ -52,7 +55,7 @@ QString FindInFiles::id() const
QString FindInFiles::displayName() const QString FindInFiles::displayName() const
{ {
return tr("Files in File System"); return Tr::tr("Files in File System");
} }
FileIterator *FindInFiles::files(const QStringList &nameFilters, FileIterator *FindInFiles::files(const QStringList &nameFilters,
@@ -77,7 +80,7 @@ QString FindInFiles::label() const
const QChar slash = QLatin1Char('/'); const QChar slash = QLatin1Char('/');
const QStringList &nonEmptyComponents = path().toFileInfo().absoluteFilePath() const QStringList &nonEmptyComponents = path().toFileInfo().absoluteFilePath()
.split(slash, Qt::SkipEmptyParts); .split(slash, Qt::SkipEmptyParts);
return tr("%1 \"%2\":") return Tr::tr("%1 \"%2\":")
.arg(title) .arg(title)
.arg(nonEmptyComponents.isEmpty() ? QString(slash) : nonEmptyComponents.last()); .arg(nonEmptyComponents.isEmpty() ? QString(slash) : nonEmptyComponents.last());
} }
@@ -85,7 +88,7 @@ QString FindInFiles::label() const
QString FindInFiles::toolTip() const QString FindInFiles::toolTip() const
{ {
//: the last arg is filled by BaseFileFind::runNewSearch //: the last arg is filled by BaseFileFind::runNewSearch
QString tooltip = tr("Path: %1\nFilter: %2\nExcluding: %3\n%4") QString tooltip = Tr::tr("Path: %1\nFilter: %2\nExcluding: %3\n%4")
.arg(path().toUserOutput()) .arg(path().toUserOutput())
.arg(fileNameFilters().join(',')) .arg(fileNameFilters().join(','))
.arg(fileExclusionFilters().join(',')); .arg(fileExclusionFilters().join(','));
@@ -128,7 +131,7 @@ QWidget *FindInFiles::createConfigWidget()
m_configWidget->setLayout(gridLayout); m_configWidget->setLayout(gridLayout);
int row = 0; int row = 0;
auto searchEngineLabel = new QLabel(tr("Search engine:")); auto searchEngineLabel = new QLabel(Tr::tr("Search engine:"));
gridLayout->addWidget(searchEngineLabel, row, 0, Qt::AlignRight); gridLayout->addWidget(searchEngineLabel, row, 0, Qt::AlignRight);
m_searchEngineCombo = new QComboBox; m_searchEngineCombo = new QComboBox;
connect(m_searchEngineCombo, &QComboBox::currentIndexChanged, connect(m_searchEngineCombo, &QComboBox::currentIndexChanged,
@@ -144,11 +147,11 @@ QWidget *FindInFiles::createConfigWidget()
} }
gridLayout->addWidget(m_searchEngineWidget, row++, 2); gridLayout->addWidget(m_searchEngineWidget, row++, 2);
QLabel *dirLabel = new QLabel(tr("Director&y:")); QLabel *dirLabel = new QLabel(Tr::tr("Director&y:"));
gridLayout->addWidget(dirLabel, row, 0, Qt::AlignRight); gridLayout->addWidget(dirLabel, row, 0, Qt::AlignRight);
m_directory = new PathChooser; m_directory = new PathChooser;
m_directory->setExpectedKind(PathChooser::ExistingDirectory); m_directory->setExpectedKind(PathChooser::ExistingDirectory);
m_directory->setPromptDialogTitle(tr("Directory to Search")); m_directory->setPromptDialogTitle(Tr::tr("Directory to Search"));
connect(m_directory.data(), &PathChooser::textChanged, this, connect(m_directory.data(), &PathChooser::textChanged, this,
[this] { pathChanged(m_directory->filePath()); }); [this] { pathChanged(m_directory->filePath()); });
m_directory->setHistoryCompleter(QLatin1String(HistoryKey), m_directory->setHistoryCompleter(QLatin1String(HistoryKey),
@@ -231,3 +234,5 @@ FindInFiles *FindInFiles::instance()
{ {
return m_instance; return m_instance;
} }
} // TextEditor

View File

@@ -2,17 +2,19 @@
// 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 "findinopenfiles.h" #include "findinopenfiles.h"
#include "textdocument.h"
#include <utils/filesearch.h> #include "textdocument.h"
#include "texteditortr.h"
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <coreplugin/editormanager/editormanager.h> #include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/editormanager/documentmodel.h> #include <coreplugin/editormanager/documentmodel.h>
#include <utils/filesearch.h>
#include <QSettings> #include <QSettings>
using namespace TextEditor; namespace TextEditor::Internal {
using namespace TextEditor::Internal;
FindInOpenFiles::FindInOpenFiles() FindInOpenFiles::FindInOpenFiles()
{ {
@@ -29,7 +31,7 @@ QString FindInOpenFiles::id() const
QString FindInOpenFiles::displayName() const QString FindInOpenFiles::displayName() const
{ {
return tr("Open Documents"); return Tr::tr("Open Documents");
} }
Utils::FileIterator *FindInOpenFiles::files(const QStringList &nameFilters, Utils::FileIterator *FindInOpenFiles::files(const QStringList &nameFilters,
@@ -65,13 +67,13 @@ QVariant FindInOpenFiles::additionalParameters() const
QString FindInOpenFiles::label() const QString FindInOpenFiles::label() const
{ {
return tr("Open documents:"); return Tr::tr("Open documents:");
} }
QString FindInOpenFiles::toolTip() const QString FindInOpenFiles::toolTip() const
{ {
// %1 is filled by BaseFileFind::runNewSearch // %1 is filled by BaseFileFind::runNewSearch
return tr("Open Documents\n%1"); return Tr::tr("Open Documents\n%1");
} }
bool FindInOpenFiles::isEnabled() const bool FindInOpenFiles::isEnabled() const
@@ -97,3 +99,5 @@ void FindInOpenFiles::updateEnabledState()
{ {
emit enabledChanged(isEnabled()); emit enabledChanged(isEnabled());
} }
} // TextEditor::Internal

View File

@@ -2,7 +2,9 @@
// 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 "fontsettings.h" #include "fontsettings.h"
#include "fontsettingspage.h" #include "fontsettingspage.h"
#include "texteditortr.h"
#include <utils/fileutils.h> #include <utils/fileutils.h>
#include <utils/hostosinfo.h> #include <utils/hostosinfo.h>
@@ -158,10 +160,8 @@ QTextCharFormat FontSettings::toTextCharFormat(TextStyle category) const
tf.setFontStyleStrategy(m_antialias ? QFont::PreferAntialias : QFont::NoAntialias); tf.setFontStyleStrategy(m_antialias ? QFont::PreferAntialias : QFont::NoAntialias);
} }
if (category == C_OCCURRENCES_UNUSED) { if (category == C_OCCURRENCES_UNUSED)
tf.setToolTip(QCoreApplication::translate("FontSettings_C_OCCURRENCES_UNUSED", tf.setToolTip(Tr::tr("Unused variable"));
"Unused variable"));
}
if (f.foreground().isValid() && !isOverlayCategory(category)) if (f.foreground().isValid() && !isOverlayCategory(category))
tf.setForeground(f.foreground()); tf.setForeground(f.foreground());

View File

@@ -6,6 +6,7 @@
#include "colorschemeedit.h" #include "colorschemeedit.h"
#include "fontsettings.h" #include "fontsettings.h"
#include "texteditorsettings.h" #include "texteditorsettings.h"
#include "texteditortr.h"
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
@@ -18,28 +19,24 @@
#include <utils/utilsicons.h> #include <utils/utilsicons.h>
#include <QAbstractItemModel> #include <QAbstractItemModel>
#include <QCheckBox>
#include <QComboBox>
#include <QDebug> #include <QDebug>
#include <QFileDialog> #include <QFileDialog>
#include <QFontComboBox>
#include <QFontDatabase> #include <QFontDatabase>
#include <QGroupBox>
#include <QInputDialog> #include <QInputDialog>
#include <QLabel>
#include <QMessageBox> #include <QMessageBox>
#include <QPalette> #include <QPalette>
#include <QPointer> #include <QPointer>
#include <QPushButton>
#include <QSettings> #include <QSettings>
#include <QSpacerItem>
#include <QSpinBox>
#include <QTimer> #include <QTimer>
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QFontComboBox>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QLabel>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QWidget>
using namespace TextEditor::Internal; using namespace TextEditor::Internal;
using namespace Utils; using namespace Utils;
@@ -102,8 +99,6 @@ private:
class FontSettingsPageWidget : public Core::IOptionsPageWidget class FontSettingsPageWidget : public Core::IOptionsPageWidget
{ {
Q_DECLARE_TR_FUNCTIONS(TextEditor::FontSettingsPageWidget)
public: public:
FontSettingsPageWidget(FontSettingsPage *q, const FormatDescriptions &fd, FontSettings *fontSettings) FontSettingsPageWidget(FontSettingsPage *q, const FormatDescriptions &fd, FontSettings *fontSettings)
: q(q), : q(q),
@@ -114,24 +109,24 @@ public:
resize(639, 306); resize(639, 306);
m_antialias = new QCheckBox(tr("Antialias")); m_antialias = new QCheckBox(Tr::tr("Antialias"));
m_antialias->setChecked(m_value.antialias()); m_antialias->setChecked(m_value.antialias());
m_zoomSpinBox = new QSpinBox; m_zoomSpinBox = new QSpinBox;
m_zoomSpinBox->setSuffix(tr("%")); m_zoomSpinBox->setSuffix(Tr::tr("%"));
m_zoomSpinBox->setRange(10, 3000); m_zoomSpinBox->setRange(10, 3000);
m_zoomSpinBox->setSingleStep(10); m_zoomSpinBox->setSingleStep(10);
m_zoomSpinBox->setValue(m_value.fontZoom()); m_zoomSpinBox->setValue(m_value.fontZoom());
m_lineSpacingSpinBox = new QSpinBox; m_lineSpacingSpinBox = new QSpinBox;
m_lineSpacingSpinBox->setObjectName(QLatin1String("FontSettingsPage.LineSpacingSpinBox")); m_lineSpacingSpinBox->setObjectName(QLatin1String("FontSettingsPage.LineSpacingSpinBox"));
m_lineSpacingSpinBox->setSuffix(tr("%")); m_lineSpacingSpinBox->setSuffix(Tr::tr("%"));
m_lineSpacingSpinBox->setRange(50, 3000); m_lineSpacingSpinBox->setRange(50, 3000);
m_lineSpacingSpinBox->setValue(m_value.relativeLineSpacing()); m_lineSpacingSpinBox->setValue(m_value.relativeLineSpacing());
m_lineSpacingWarningLabel = new QLabel; m_lineSpacingWarningLabel = new QLabel;
m_lineSpacingWarningLabel->setPixmap(Utils::Icons::WARNING.pixmap()); m_lineSpacingWarningLabel->setPixmap(Utils::Icons::WARNING.pixmap());
m_lineSpacingWarningLabel->setToolTip(tr("A line spacing value other than 100% disables " m_lineSpacingWarningLabel->setToolTip(Tr::tr("A line spacing value other than 100% disables "
"text wrapping.\nA value less than 100% can result " "text wrapping.\nA value less than 100% can result "
"in overlapping and misaligned graphics.")); "in overlapping and misaligned graphics."));
m_lineSpacingWarningLabel->setVisible(m_value.relativeLineSpacing() != 100); m_lineSpacingWarningLabel->setVisible(m_value.relativeLineSpacing() != 100);
@@ -145,13 +140,13 @@ public:
sizeValidator->setBottom(0); sizeValidator->setBottom(0);
m_sizeComboBox->setValidator(sizeValidator); m_sizeComboBox->setValidator(sizeValidator);
m_copyButton = new QPushButton(tr("Copy...")); m_copyButton = new QPushButton(Tr::tr("Copy..."));
m_deleteButton = new QPushButton(tr("Delete")); m_deleteButton = new QPushButton(Tr::tr("Delete"));
m_deleteButton->setEnabled(false); m_deleteButton->setEnabled(false);
auto importButton = new QPushButton(tr("Import")); auto importButton = new QPushButton(Tr::tr("Import"));
auto exportButton = new QPushButton(tr("Export")); auto exportButton = new QPushButton(Tr::tr("Export"));
m_schemeComboBox = new QComboBox; m_schemeComboBox = new QComboBox;
m_schemeComboBox->setModel(&m_schemeListModel); m_schemeComboBox->setModel(&m_schemeListModel);
@@ -166,19 +161,19 @@ public:
Column { Column {
Group { Group {
title(tr("Font")), title(Tr::tr("Font")),
Column { Column {
Row { Row {
tr("Family:"), m_fontComboBox, Space(20), Tr::tr("Family:"), m_fontComboBox, Space(20),
tr("Size:"), m_sizeComboBox, Space(20), Tr::tr("Size:"), m_sizeComboBox, Space(20),
tr("Zoom:"), m_zoomSpinBox, Space(20), Tr::tr("Zoom:"), m_zoomSpinBox, Space(20),
tr("Line spacing:"), m_lineSpacingSpinBox, m_lineSpacingWarningLabel, st Tr::tr("Line spacing:"), m_lineSpacingSpinBox, m_lineSpacingWarningLabel, st
}, },
m_antialias m_antialias
} }
}, },
Group { Group {
title(tr("Color Scheme for Theme \"%1\"") title(Tr::tr("Color Scheme for Theme \"%1\"")
.arg(Utils::creatorTheme()->displayName())), .arg(Utils::creatorTheme()->displayName())),
Column { Column {
Row { m_schemeComboBox, m_copyButton, m_deleteButton, importButton, exportButton }, Row { m_schemeComboBox, m_copyButton, m_deleteButton, importButton, exportButton },
@@ -525,9 +520,9 @@ void FontSettingsPageWidget::openCopyColorSchemeDialog()
QInputDialog *dialog = new QInputDialog(m_copyButton->window()); QInputDialog *dialog = new QInputDialog(m_copyButton->window());
dialog->setAttribute(Qt::WA_DeleteOnClose); dialog->setAttribute(Qt::WA_DeleteOnClose);
dialog->setInputMode(QInputDialog::TextInput); dialog->setInputMode(QInputDialog::TextInput);
dialog->setWindowTitle(tr("Copy Color Scheme")); dialog->setWindowTitle(Tr::tr("Copy Color Scheme"));
dialog->setLabelText(tr("Color scheme name:")); dialog->setLabelText(Tr::tr("Color scheme name:"));
dialog->setTextValue(tr("%1 (copy)").arg(m_value.colorScheme().displayName())); dialog->setTextValue(Tr::tr("%1 (copy)").arg(m_value.colorScheme().displayName()));
connect(dialog, &QInputDialog::textValueSelected, this, &FontSettingsPageWidget::copyColorScheme); connect(dialog, &QInputDialog::textValueSelected, this, &FontSettingsPageWidget::copyColorScheme);
dialog->open(); dialog->open();
@@ -572,14 +567,14 @@ void FontSettingsPageWidget::confirmDeleteColorScheme()
return; return;
QMessageBox *messageBox = new QMessageBox(QMessageBox::Warning, QMessageBox *messageBox = new QMessageBox(QMessageBox::Warning,
tr("Delete Color Scheme"), Tr::tr("Delete Color Scheme"),
tr("Are you sure you want to delete this color scheme permanently?"), Tr::tr("Are you sure you want to delete this color scheme permanently?"),
QMessageBox::Discard | QMessageBox::Cancel, QMessageBox::Discard | QMessageBox::Cancel,
m_deleteButton->window()); m_deleteButton->window());
// Change the text and role of the discard button // Change the text and role of the discard button
auto deleteButton = static_cast<QPushButton*>(messageBox->button(QMessageBox::Discard)); auto deleteButton = static_cast<QPushButton*>(messageBox->button(QMessageBox::Discard));
deleteButton->setText(tr("Delete")); deleteButton->setText(Tr::tr("Delete"));
messageBox->addButton(deleteButton, QMessageBox::AcceptRole); messageBox->addButton(deleteButton, QMessageBox::AcceptRole);
messageBox->setDefaultButton(deleteButton); messageBox->setDefaultButton(deleteButton);
@@ -604,9 +599,9 @@ void FontSettingsPageWidget::importScheme()
{ {
const FilePath importedFile const FilePath importedFile
= Utils::FileUtils::getOpenFilePath(this, = Utils::FileUtils::getOpenFilePath(this,
tr("Import Color Scheme"), Tr::tr("Import Color Scheme"),
{}, {},
tr("Color scheme (*.xml);;All files (*)")); Tr::tr("Color scheme (*.xml);;All files (*)"));
if (importedFile.isEmpty()) if (importedFile.isEmpty())
return; return;
@@ -617,8 +612,8 @@ void FontSettingsPageWidget::importScheme()
QInputDialog *dialog = new QInputDialog(m_copyButton->window()); QInputDialog *dialog = new QInputDialog(m_copyButton->window());
dialog->setAttribute(Qt::WA_DeleteOnClose); dialog->setAttribute(Qt::WA_DeleteOnClose);
dialog->setInputMode(QInputDialog::TextInput); dialog->setInputMode(QInputDialog::TextInput);
dialog->setWindowTitle(tr("Import Color Scheme")); dialog->setWindowTitle(Tr::tr("Import Color Scheme"));
dialog->setLabelText(tr("Color scheme name:")); dialog->setLabelText(Tr::tr("Color scheme name:"));
dialog->setTextValue(importedFile.baseName()); dialog->setTextValue(importedFile.baseName());
connect(dialog, connect(dialog,
@@ -653,9 +648,9 @@ void FontSettingsPageWidget::exportScheme()
const FilePath filePath const FilePath filePath
= Utils::FileUtils::getSaveFilePath(this, = Utils::FileUtils::getSaveFilePath(this,
tr("Export Color Scheme"), Tr::tr("Export Color Scheme"),
entry.filePath, entry.filePath,
tr("Color scheme (*.xml);;All files (*)")); Tr::tr("Color scheme (*.xml);;All files (*)"));
if (!filePath.isEmpty()) if (!filePath.isEmpty())
m_value.colorScheme().save(filePath, Core::ICore::dialogParent()); m_value.colorScheme().save(filePath, Core::ICore::dialogParent());
@@ -668,15 +663,15 @@ void FontSettingsPageWidget::maybeSaveColorScheme()
QMessageBox QMessageBox
messageBox(QMessageBox::Warning, messageBox(QMessageBox::Warning,
tr("Color Scheme Changed"), Tr::tr("Color Scheme Changed"),
tr("The color scheme \"%1\" was modified, do you want to save the changes?") Tr::tr("The color scheme \"%1\" was modified, do you want to save the changes?")
.arg(m_schemeEdit->colorScheme().displayName()), .arg(m_schemeEdit->colorScheme().displayName()),
QMessageBox::Discard | QMessageBox::Save, QMessageBox::Discard | QMessageBox::Save,
m_schemeComboBox->window()); m_schemeComboBox->window());
// Change the text of the discard button // Change the text of the discard button
auto discardButton = static_cast<QPushButton*>(messageBox.button(QMessageBox::Discard)); auto discardButton = static_cast<QPushButton*>(messageBox.button(QMessageBox::Discard));
discardButton->setText(tr("Discard")); discardButton->setText(Tr::tr("Discard"));
messageBox.addButton(discardButton, QMessageBox::DestructiveRole); messageBox.addButton(discardButton, QMessageBox::DestructiveRole);
messageBox.setDefaultButton(QMessageBox::Save); messageBox.setDefaultButton(QMessageBox::Save);
@@ -775,9 +770,9 @@ FontSettingsPage::FontSettingsPage(FontSettings *fontSettings, const FormatDescr
fontSettings->loadColorScheme(FontSettings::defaultSchemeFileName(), fd); fontSettings->loadColorScheme(FontSettings::defaultSchemeFileName(), fd);
setId(Constants::TEXT_EDITOR_FONT_SETTINGS); setId(Constants::TEXT_EDITOR_FONT_SETTINGS);
setDisplayName(FontSettingsPageWidget::tr("Font && Colors")); setDisplayName(Tr::tr("Font && Colors"));
setCategory(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY); setCategory(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("::TextEditor", "Text Editor")); setDisplayCategory(Tr::tr("Text Editor"));
setCategoryIconPath(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY_ICON_PATH); setCategoryIconPath(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY_ICON_PATH);
setWidgetCreator([this, fontSettings, fd] { return new FontSettingsPageWidget(this, fd, fontSettings); }); setWidgetCreator([this, fontSettings, fd] { return new FontSettingsPageWidget(this, fd, fontSettings); });
} }

View File

@@ -7,11 +7,13 @@
#include "tabsettings.h" #include "tabsettings.h"
#include "textdocumentlayout.h" #include "textdocumentlayout.h"
#include "texteditor.h" #include "texteditor.h"
#include "texteditortr.h"
#include "texteditorsettings.h" #include "texteditorsettings.h"
#include <coreplugin/editormanager/documentmodel.h> #include <coreplugin/editormanager/documentmodel.h>
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <coreplugin/messagemanager.h> #include <coreplugin/messagemanager.h>
#include <utils/mimeutils.h> #include <utils/mimeutils.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <utils/stylehelper.h> #include <utils/stylehelper.h>
@@ -229,7 +231,7 @@ void Highlighter::downloadDefinitions(std::function<void()> callback) {
auto downloader = auto downloader =
new KSyntaxHighlighting::DefinitionDownloader(highlightRepository()); new KSyntaxHighlighting::DefinitionDownloader(highlightRepository());
connect(downloader, &KSyntaxHighlighting::DefinitionDownloader::done, [downloader, callback]() { connect(downloader, &KSyntaxHighlighting::DefinitionDownloader::done, [downloader, callback]() {
Core::MessageManager::writeFlashing(tr("Highlighter updates: done")); Core::MessageManager::writeFlashing(Tr::tr("Highlighter updates: done"));
downloader->deleteLater(); downloader->deleteLater();
reload(); reload();
if (callback) if (callback)
@@ -238,9 +240,9 @@ void Highlighter::downloadDefinitions(std::function<void()> callback) {
connect(downloader, connect(downloader,
&KSyntaxHighlighting::DefinitionDownloader::informationMessage, &KSyntaxHighlighting::DefinitionDownloader::informationMessage,
[](const QString &message) { [](const QString &message) {
Core::MessageManager::writeSilently(tr("Highlighter updates:") + ' ' + message); Core::MessageManager::writeSilently(Tr::tr("Highlighter updates:") + ' ' + message);
}); });
Core::MessageManager::writeDisrupting(tr("Highlighter updates: starting")); Core::MessageManager::writeDisrupting(Tr::tr("Highlighter updates: starting"));
downloader->start(); downloader->start();
} }

View File

@@ -5,6 +5,7 @@
#include "highlightersettings.h" #include "highlightersettings.h"
#include "highlighter.h" #include "highlighter.h"
#include "texteditortr.h"
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
@@ -27,7 +28,6 @@ namespace Internal {
class HighlighterSettingsPageWidget : public QWidget class HighlighterSettingsPageWidget : public QWidget
{ {
Q_DECLARE_TR_FUNCTIONS(TextEditor::Internal::HighlighterSettingsPage)
public: public:
QLabel *definitionsInfolabel; QLabel *definitionsInfolabel;
QPushButton *downloadDefinitions; QPushButton *downloadDefinitions;
@@ -47,12 +47,12 @@ public:
definitionsInfolabel->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter); definitionsInfolabel->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
definitionsInfolabel->setWordWrap(true); definitionsInfolabel->setWordWrap(true);
definitionsInfolabel->setOpenExternalLinks(true); definitionsInfolabel->setOpenExternalLinks(true);
definitionsInfolabel->setText(tr("<html><head/><body><p>Highlight definitions are provided by the " definitionsInfolabel->setText(Tr::tr("<html><head/><body><p>Highlight definitions are provided by the "
"<a href=\"https://api.kde.org/frameworks/syntax-highlighting/html/index.html\">" "<a href=\"https://api.kde.org/frameworks/syntax-highlighting/html/index.html\">"
"KSyntaxHighlighting</a> engine.</p></body></html>")); "KSyntaxHighlighting</a> engine.</p></body></html>"));
downloadDefinitions = new QPushButton(tr("Download Definitions")); downloadDefinitions = new QPushButton(Tr::tr("Download Definitions"));
downloadDefinitions->setToolTip(tr("Download missing and update existing syntax definition files.")); downloadDefinitions->setToolTip(Tr::tr("Download missing and update existing syntax definition files."));
updateStatus = new QLabel; updateStatus = new QLabel;
updateStatus->setObjectName("updateStatus"); updateStatus->setObjectName("updateStatus");
@@ -61,11 +61,11 @@ public:
definitionFilesPath->setExpectedKind(PathChooser::ExistingDirectory); definitionFilesPath->setExpectedKind(PathChooser::ExistingDirectory);
definitionFilesPath->setHistoryCompleter("TextEditor.Highlighter.History"); definitionFilesPath->setHistoryCompleter("TextEditor.Highlighter.History");
reloadDefinitions = new QPushButton(tr("Reload Definitions")); reloadDefinitions = new QPushButton(Tr::tr("Reload Definitions"));
reloadDefinitions->setToolTip(tr("Reload externally modified definition files.")); reloadDefinitions->setToolTip(Tr::tr("Reload externally modified definition files."));
resetCache = new QPushButton(tr("Reset Remembered Definitions")); resetCache = new QPushButton(Tr::tr("Reset Remembered Definitions"));
resetCache->setToolTip(tr("Reset definitions remembered for files that can be " resetCache->setToolTip(Tr::tr("Reset definitions remembered for files that can be "
"associated with more than one highlighter definition.")); "associated with more than one highlighter definition."));
ignoreEdit = new QLineEdit; ignoreEdit = new QLineEdit;
@@ -75,15 +75,15 @@ public:
definitionsInfolabel, definitionsInfolabel,
Space(3), Space(3),
Group { Group {
title(tr("Syntax Highlight Definition Files")), title(Tr::tr("Syntax Highlight Definition Files")),
Column { Column {
Row { downloadDefinitions, updateStatus, st }, Row { downloadDefinitions, updateStatus, st },
Row { tr("User Highlight Definition Files"), Row { Tr::tr("User Highlight Definition Files"),
definitionFilesPath, reloadDefinitions }, definitionFilesPath, reloadDefinitions },
Row { st, resetCache } Row { st, resetCache }
} }
}, },
Row { tr("Ignored file patterns:"), ignoreEdit }, Row { Tr::tr("Ignored file patterns:"), ignoreEdit },
st st
}.attachTo(this); }.attachTo(this);
@@ -91,7 +91,7 @@ public:
[label = QPointer<QLabel>(updateStatus)]() { [label = QPointer<QLabel>(updateStatus)]() {
Highlighter::downloadDefinitions([label] { Highlighter::downloadDefinitions([label] {
if (label) if (label)
label->setText(tr("Download finished")); label->setText(Tr::tr("Download finished"));
}); });
}); });
@@ -110,8 +110,6 @@ using namespace Internal;
class HighlighterSettingsPagePrivate class HighlighterSettingsPagePrivate
{ {
Q_DECLARE_TR_FUNCTIONS(TextEditor::Internal::HighlighterSettingsPage)
public: public:
HighlighterSettingsPagePrivate() = default; HighlighterSettingsPagePrivate() = default;
@@ -156,9 +154,9 @@ HighlighterSettingsPage::HighlighterSettingsPage()
: d(new HighlighterSettingsPagePrivate) : d(new HighlighterSettingsPagePrivate)
{ {
setId(Constants::TEXT_EDITOR_HIGHLIGHTER_SETTINGS); setId(Constants::TEXT_EDITOR_HIGHLIGHTER_SETTINGS);
setDisplayName(HighlighterSettingsPagePrivate::tr("Generic Highlighter")); setDisplayName(Tr::tr("Generic Highlighter"));
setCategory(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY); setCategory(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("::TextEditor", "Text Editor")); setDisplayCategory(Tr::tr("Text Editor"));
setCategoryIconPath(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY_ICON_PATH); setCategoryIconPath(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY_ICON_PATH);
} }

View File

@@ -3,7 +3,7 @@
#include "linenumberfilter.h" #include "linenumberfilter.h"
#include "texteditor.h" #include "texteditortr.h"
#include <coreplugin/coreconstants.h> #include <coreplugin/coreconstants.h>
#include <coreplugin/editormanager/editormanager.h> #include <coreplugin/editormanager/editormanager.h>
@@ -18,16 +18,16 @@ using LineColumn = QPair<int, int>;
Q_DECLARE_METATYPE(LineColumn) Q_DECLARE_METATYPE(LineColumn)
using namespace Core; using namespace Core;
using namespace TextEditor;
using namespace TextEditor::Internal; namespace TextEditor::Internal {
LineNumberFilter::LineNumberFilter(QObject *parent) LineNumberFilter::LineNumberFilter(QObject *parent)
: ILocatorFilter(parent) : ILocatorFilter(parent)
{ {
setId("Line in current document"); setId("Line in current document");
setDisplayName(tr("Line in Current Document")); setDisplayName(Tr::tr("Line in Current Document"));
setDescription(tr("Jumps to the given line in the current document.")); setDescription(Tr::tr("Jumps to the given line in the current document."));
setDefaultSearchText(tr("<line>:<column>")); setDefaultSearchText(Tr::tr("<line>:<column>"));
setPriority(High); setPriority(High);
setDefaultShortcutString("l"); setDefaultShortcutString("l");
setDefaultIncludedByDefault(true); setDefaultIncludedByDefault(true);
@@ -59,11 +59,11 @@ QList<LocatorFilterEntry> LineNumberFilter::matchesFor(QFutureInterface<LocatorF
data.second = column - 1; // column API is 0-based data.second = column - 1; // column API is 0-based
QString text; QString text;
if (line > 0 && column > 0) if (line > 0 && column > 0)
text = tr("Line %1, Column %2").arg(line).arg(column); text = Tr::tr("Line %1, Column %2").arg(line).arg(column);
else if (line > 0) else if (line > 0)
text = tr("Line %1").arg(line); text = Tr::tr("Line %1").arg(line);
else else
text = tr("Column %1").arg(column); text = Tr::tr("Column %1").arg(column);
value.append(LocatorFilterEntry(this, text, QVariant::fromValue(data))); value.append(LocatorFilterEntry(this, text, QVariant::fromValue(data)));
} }
return value; return value;
@@ -85,3 +85,5 @@ void LineNumberFilter::accept(const LocatorFilterEntry &selection,
EditorManager::activateEditor(editor); EditorManager::activateEditor(editor);
} }
} }
} // TextEditor::Internal

View File

@@ -2,6 +2,9 @@
// 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 "outlinefactory.h" #include "outlinefactory.h"
#include "texteditortr.h"
#include <coreplugin/coreconstants.h> #include <coreplugin/coreconstants.h>
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <coreplugin/editormanager/editormanager.h> #include <coreplugin/editormanager/editormanager.h>
@@ -10,11 +13,10 @@
#include <utils/utilsicons.h> #include <utils/utilsicons.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <QToolButton> #include <QDebug>
#include <QLabel> #include <QLabel>
#include <QStackedWidget> #include <QStackedWidget>
#include <QToolButton>
#include <QDebug>
namespace TextEditor { namespace TextEditor {
@@ -43,7 +45,7 @@ OutlineWidgetStack::OutlineWidgetStack(OutlineFactory *factory) :
m_syncWithEditor(true), m_syncWithEditor(true),
m_sorted(false) m_sorted(false)
{ {
QLabel *label = new QLabel(tr("No outline available"), this); QLabel *label = new QLabel(Tr::tr("No outline available"), this);
label->setAlignment(Qt::AlignCenter); label->setAlignment(Qt::AlignCenter);
// set background to be white // set background to be white
@@ -56,7 +58,7 @@ OutlineWidgetStack::OutlineWidgetStack(OutlineFactory *factory) :
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->setChecked(true); m_toggleSync->setChecked(true);
m_toggleSync->setToolTip(tr("Synchronize with Editor")); m_toggleSync->setToolTip(Tr::tr("Synchronize with Editor"));
connect(m_toggleSync, &QAbstractButton::clicked, connect(m_toggleSync, &QAbstractButton::clicked,
this, &OutlineWidgetStack::toggleCursorSynchronization); this, &OutlineWidgetStack::toggleCursorSynchronization);
@@ -66,7 +68,7 @@ OutlineWidgetStack::OutlineWidgetStack(OutlineFactory *factory) :
// did not have a parent in that moment. // did not have a parent in that moment.
m_filterButton->setIcon(Utils::Icons::FILTER.icon()); m_filterButton->setIcon(Utils::Icons::FILTER.icon());
m_filterButton->setToolTip(tr("Filter tree")); m_filterButton->setToolTip(Tr::tr("Filter tree"));
m_filterButton->setPopupMode(QToolButton::InstantPopup); m_filterButton->setPopupMode(QToolButton::InstantPopup);
m_filterButton->setProperty("noArrow", true); m_filterButton->setProperty("noArrow", true);
m_filterMenu = new QMenu(m_filterButton); m_filterMenu = new QMenu(m_filterButton);
@@ -76,7 +78,7 @@ OutlineWidgetStack::OutlineWidgetStack(OutlineFactory *factory) :
m_toggleSort->setIcon(Utils::Icons::SORT_ALPHABETICALLY_TOOLBAR.icon()); m_toggleSort->setIcon(Utils::Icons::SORT_ALPHABETICALLY_TOOLBAR.icon());
m_toggleSort->setCheckable(true); m_toggleSort->setCheckable(true);
m_toggleSort->setChecked(false); m_toggleSort->setChecked(false);
m_toggleSort->setToolTip(tr("Sort Alphabetically")); m_toggleSort->setToolTip(Tr::tr("Sort Alphabetically"));
connect(m_toggleSort, &QAbstractButton::clicked, this, &OutlineWidgetStack::toggleSort); connect(m_toggleSort, &QAbstractButton::clicked, this, &OutlineWidgetStack::toggleSort);
connect(Core::EditorManager::instance(), &Core::EditorManager::currentEditorChanged, connect(Core::EditorManager::instance(), &Core::EditorManager::currentEditorChanged,
@@ -201,7 +203,7 @@ OutlineFactory::OutlineFactory()
{ {
QTC_CHECK(g_outlineFactory.isNull()); QTC_CHECK(g_outlineFactory.isNull());
g_outlineFactory = this; g_outlineFactory = this;
setDisplayName(tr("Outline")); setDisplayName(Tr::tr("Outline"));
setId("Outline"); setId("Outline");
setPriority(600); setPriority(600);
} }

View File

@@ -2,24 +2,24 @@
// 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 "refactoringchanges.h" #include "refactoringchanges.h"
#include "texteditor.h"
#include "textdocument.h"
#include <coreplugin/icore.h> #include "textdocument.h"
#include "texteditor.h"
#include "texteditortr.h"
#include <coreplugin/dialogs/readonlyfilesdialog.h> #include <coreplugin/dialogs/readonlyfilesdialog.h>
#include <coreplugin/documentmanager.h> #include <coreplugin/documentmanager.h>
#include <coreplugin/editormanager/editormanager.h> #include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/icore.h>
#include <utils/algorithm.h> #include <utils/algorithm.h>
#include <utils/fileutils.h> #include <utils/fileutils.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <QFile>
#include <QFileInfo>
#include <QTextBlock> #include <QTextBlock>
#include <QTextCursor> #include <QTextCursor>
#include <QTextDocument> #include <QTextDocument>
#include <QDebug> #include <QDebug>
#include <QApplication>
using namespace Core; using namespace Core;
using namespace Utils; using namespace Utils;
@@ -297,9 +297,7 @@ bool RefactoringFile::apply()
// test file permissions // test file permissions
if (!m_filePath.toFileInfo().isWritable()) { if (!m_filePath.toFileInfo().isWritable()) {
ReadOnlyFilesDialog roDialog(m_filePath, ICore::dialogParent()); ReadOnlyFilesDialog roDialog(m_filePath, ICore::dialogParent());
const QString &failDetailText = QApplication::translate("RefactoringFile::apply", roDialog.setShowFailWarning(true, Tr::tr("Refactoring cannot be applied."));
"Refactoring cannot be applied.");
roDialog.setShowFailWarning(true, failDetailText);
if (roDialog.exec() == ReadOnlyFilesDialog::RO_Cancel) if (roDialog.exec() == ReadOnlyFilesDialog::RO_Cancel)
return false; return false;
} }

View File

@@ -3,6 +3,8 @@
#include "snippet.h" #include "snippet.h"
#include "../texteditortr.h"
#include <utils/algorithm.h> #include <utils/algorithm.h>
#include <utils/macroexpander.h> #include <utils/macroexpander.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
@@ -10,7 +12,7 @@
#include <QTextDocument> #include <QTextDocument>
using namespace TextEditor; namespace TextEditor {
const char UCMANGLER_ID[] = "TextEditor::UppercaseMangler"; const char UCMANGLER_ID[] = "TextEditor::UppercaseMangler";
const char LCMANGLER_ID[] = "TextEditor::LowercaseMangler"; const char LCMANGLER_ID[] = "TextEditor::LowercaseMangler";
@@ -221,7 +223,7 @@ SnippetParseResult Snippet::parse(const QString &snippet)
} }
if (mangler) { if (mangler) {
return SnippetParseResult{SnippetParseError{tr("Expected delimiter after mangler ID."), return SnippetParseResult{SnippetParseError{Tr::tr("Expected delimiter after mangler ID."),
preprocessedSnippet, preprocessedSnippet,
i}}; i}};
} }
@@ -236,7 +238,7 @@ SnippetParseResult Snippet::parse(const QString &snippet)
mangler = &tcMangler; mangler = &tcMangler;
} else { } else {
return SnippetParseResult{ return SnippetParseResult{
SnippetParseError{tr("Expected mangler ID \"l\" (lowercase), \"u\" (uppercase), " SnippetParseError{Tr::tr("Expected mangler ID \"l\" (lowercase), \"u\" (uppercase), "
"or \"c\" (titlecase) after colon."), "or \"c\" (titlecase) after colon."),
preprocessedSnippet, preprocessedSnippet,
i}}; i}};
@@ -259,7 +261,7 @@ SnippetParseResult Snippet::parse(const QString &snippet)
if (inVar) { if (inVar) {
return SnippetParseResult{ return SnippetParseResult{
SnippetParseError{tr("Missing closing variable delimiter for:"), currentPart.text, 0}}; SnippetParseError{Tr::tr("Missing closing variable delimiter for:"), currentPart.text, 0}};
} }
if (!currentPart.text.isEmpty()) if (!currentPart.text.isEmpty())
@@ -268,6 +270,10 @@ SnippetParseResult Snippet::parse(const QString &snippet)
return SnippetParseResult(result); return SnippetParseResult(result);
} }
} // Texteditor
using namespace TextEditor;
#ifdef WITH_TESTS #ifdef WITH_TESTS
# include <QTest> # include <QTest>

View File

@@ -16,7 +16,6 @@ namespace TextEditor {
class TEXTEDITOR_EXPORT Snippet class TEXTEDITOR_EXPORT Snippet
{ {
Q_DECLARE_TR_FUNCTIONS(Snippet)
public: public:
explicit Snippet(const QString &groupId = QString(), const QString &id = QString()); explicit Snippet(const QString &groupId = QString(), const QString &id = QString());
~Snippet(); ~Snippet();

View File

@@ -2,17 +2,19 @@
// 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 "snippetscollection.h" #include "snippetscollection.h"
#include "snippetprovider.h" #include "snippetprovider.h"
#include "reuse.h" #include "reuse.h"
#include "../texteditortr.h"
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <extensionsystem/pluginmanager.h> #include <extensionsystem/pluginmanager.h>
#include <utils/algorithm.h> #include <utils/algorithm.h>
#include <utils/fileutils.h> #include <utils/fileutils.h>
#include <QLatin1String>
#include <QFile> #include <QFile>
#include <QFileInfo>
#include <QDir> #include <QDir>
#include <QDebug> #include <QDebug>
#include <QXmlStreamReader> #include <QXmlStreamReader>
@@ -282,7 +284,7 @@ void SnippetsCollection::reload()
bool SnippetsCollection::synchronize(QString *errorString) bool SnippetsCollection::synchronize(QString *errorString)
{ {
if (!m_userSnippetsFile.parentDir().ensureWritableDir()) { if (!m_userSnippetsFile.parentDir().ensureWritableDir()) {
*errorString = tr("Cannot create user snippet directory %1") *errorString = Tr::tr("Cannot create user snippet directory %1")
.arg(m_userSnippetsFile.parentDir().toUserOutput()); .arg(m_userSnippetsFile.parentDir().toUserOutput());
return false; return false;
} }
@@ -354,8 +356,7 @@ QList<Snippet> SnippetsCollection::readXML(const FilePath &fileName, const QStri
} else if (isGroupKnown(groupId) && (snippetId.isEmpty() || snippetId == id)) { } else if (isGroupKnown(groupId) && (snippetId.isEmpty() || snippetId == id)) {
Snippet snippet(groupId, id); Snippet snippet(groupId, id);
snippet.setTrigger(trigger); snippet.setTrigger(trigger);
snippet.setComplement(QCoreApplication::translate( snippet.setComplement(QCoreApplication::translate("::TextEditor",
"TextEditor::Internal::Snippets",
atts.value(kComplement).toString().toLatin1(), atts.value(kComplement).toString().toLatin1(),
atts.value(kId).toString().toLatin1())); atts.value(kId).toString().toLatin1()));
snippet.setIsRemoved(toBool(atts.value(kRemoved).toString())); snippet.setIsRemoved(toBool(atts.value(kRemoved).toString()));

View File

@@ -2,18 +2,22 @@
// 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 "snippetssettingspage.h" #include "snippetssettingspage.h"
#include "snippeteditor.h" #include "snippeteditor.h"
#include "snippetprovider.h" #include "snippetprovider.h"
#include "snippet.h" #include "snippet.h"
#include "snippetscollection.h" #include "snippetscollection.h"
#include "snippetssettings.h" #include "snippetssettings.h"
#include "../fontsettings.h"
#include "../textdocument.h"
#include "../texteditorconstants.h"
#include "../texteditorsettings.h"
#include "../texteditortr.h"
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <texteditor/fontsettings.h>
#include <texteditor/textdocument.h>
#include <texteditor/texteditorconstants.h>
#include <texteditor/texteditorsettings.h>
#include <extensionsystem/pluginmanager.h> #include <extensionsystem/pluginmanager.h>
#include <utils/headerviewstretcher.h> #include <utils/headerviewstretcher.h>
#include <utils/itemviews.h> #include <utils/itemviews.h>
#include <utils/layoutbuilder.h> #include <utils/layoutbuilder.h>
@@ -118,8 +122,8 @@ bool SnippetsTableModel::setData(const QModelIndex &modelIndex, const QVariant &
if (!Snippet::isValidTrigger(s)) { if (!Snippet::isValidTrigger(s)) {
QMessageBox::critical( QMessageBox::critical(
Core::ICore::dialogParent(), Core::ICore::dialogParent(),
tr("Error"), Tr::tr("Error"),
tr("Not a valid trigger. A valid trigger can only contain letters, " Tr::tr("Not a valid trigger. A valid trigger can only contain letters, "
"numbers, or underscores, where the first character is " "numbers, or underscores, where the first character is "
"limited to letter or underscore.")); "limited to letter or underscore."));
if (snippet.trigger().isEmpty()) if (snippet.trigger().isEmpty())
@@ -143,9 +147,9 @@ QVariant SnippetsTableModel::headerData(int section, Qt::Orientation orientation
return QVariant(); return QVariant();
if (section == 0) if (section == 0)
return tr("Trigger"); return Tr::tr("Trigger");
else else
return tr("Trigger Variant"); return Tr::tr("Trigger Variant");
} }
void SnippetsTableModel::load(const QString &groupId) void SnippetsTableModel::load(const QString &groupId)
@@ -197,8 +201,8 @@ void SnippetsTableModel::revertBuitInSnippet(const QModelIndex &modelIndex)
{ {
const Snippet &snippet = m_collection->revertedSnippet(modelIndex.row(), m_activeGroupId); const Snippet &snippet = m_collection->revertedSnippet(modelIndex.row(), m_activeGroupId);
if (snippet.id().isEmpty()) { if (snippet.id().isEmpty()) {
QMessageBox::critical(Core::ICore::dialogParent(), tr("Error"), QMessageBox::critical(Core::ICore::dialogParent(), Tr::tr("Error"),
tr("Error reverting snippet.")); Tr::tr("Error reverting snippet."));
return; return;
} }
replaceSnippet(snippet, modelIndex); replaceSnippet(snippet, modelIndex);
@@ -243,8 +247,6 @@ void SnippetsTableModel::replaceSnippet(const Snippet &snippet, const QModelInde
// SnippetsSettingsPagePrivate // SnippetsSettingsPagePrivate
class SnippetsSettingsPagePrivate : public QObject class SnippetsSettingsPagePrivate : public QObject
{ {
Q_DECLARE_TR_FUNCTIONS(TextEditor::Internal::SnippetsSettingsPage)
public: public:
SnippetsSettingsPagePrivate(); SnippetsSettingsPagePrivate();
~SnippetsSettingsPagePrivate() override { delete m_model; } ~SnippetsSettingsPagePrivate() override { delete m_model; }
@@ -321,7 +323,7 @@ void SnippetsSettingsPagePrivate::configureUi(QWidget *w)
m_snippetsTable->setRootIsDecorated(false); m_snippetsTable->setRootIsDecorated(false);
m_snippetsTable->setModel(m_model); m_snippetsTable->setModel(m_model);
m_revertButton = new QPushButton(tr("Revert Built-in")); m_revertButton = new QPushButton(Tr::tr("Revert Built-in"));
m_revertButton->setEnabled(false); m_revertButton->setEnabled(false);
auto snippetSplitter = new QSplitter(Qt::Vertical); auto snippetSplitter = new QSplitter(Qt::Vertical);
@@ -332,18 +334,18 @@ void SnippetsSettingsPagePrivate::configureUi(QWidget *w)
using namespace Utils::Layouting; using namespace Utils::Layouting;
Column { Column {
Row { tr("Group:"), m_groupCombo, st }, Row { Tr::tr("Group:"), m_groupCombo, st },
Row { Row {
snippetSplitter, snippetSplitter,
Column { Column {
PushButton { text(tr("Add")), PushButton { text(Tr::tr("Add")),
onClicked([this] { addSnippet(); }, this) }, onClicked([this] { addSnippet(); }, this) },
PushButton { text(tr("Remove")), PushButton { text(Tr::tr("Remove")),
onClicked([this] { removeSnippet(); }, this) }, onClicked([this] { removeSnippet(); }, this) },
m_revertButton, m_revertButton,
PushButton { text(tr("Restore Removed Built-ins")), PushButton { text(Tr::tr("Restore Removed Built-ins")),
onClicked([this] { restoreRemovedBuiltInSnippets(); }, this) }, onClicked([this] { restoreRemovedBuiltInSnippets(); }, this) },
PushButton { text(tr("Reset All")), PushButton { text(Tr::tr("Reset All")),
onClicked([this] { resetAllSnippets(); }, this) }, onClicked([this] { resetAllSnippets(); }, this) },
st, st,
} }
@@ -395,7 +397,7 @@ void SnippetsSettingsPagePrivate::apply()
m_snippetsCollectionChanged = false; m_snippetsCollectionChanged = false;
} else { } else {
QMessageBox::critical(Core::ICore::dialogParent(), QMessageBox::critical(Core::ICore::dialogParent(),
tr("Error While Saving Snippet Collection"), errorString); Tr::tr("Error While Saving Snippet Collection"), errorString);
} }
} }
} }
@@ -467,7 +469,7 @@ void SnippetsSettingsPagePrivate::removeSnippet()
{ {
const QModelIndex &modelIndex = m_snippetsTable->selectionModel()->currentIndex(); const QModelIndex &modelIndex = m_snippetsTable->selectionModel()->currentIndex();
if (!modelIndex.isValid()) { if (!modelIndex.isValid()) {
QMessageBox::critical(Core::ICore::dialogParent(), tr("Error"), tr("No snippet selected.")); QMessageBox::critical(Core::ICore::dialogParent(), Tr::tr("Error"), Tr::tr("No snippet selected."));
return; return;
} }
m_model->removeSnippet(modelIndex); m_model->removeSnippet(modelIndex);
@@ -546,13 +548,14 @@ void SnippetsSettingsPagePrivate::decorateEditors(const TextEditor::FontSettings
} }
// SnippetsSettingsPage // SnippetsSettingsPage
SnippetsSettingsPage::SnippetsSettingsPage() SnippetsSettingsPage::SnippetsSettingsPage()
: d(new SnippetsSettingsPagePrivate) : d(new SnippetsSettingsPagePrivate)
{ {
setId(Constants::TEXT_EDITOR_SNIPPETS_SETTINGS); setId(Constants::TEXT_EDITOR_SNIPPETS_SETTINGS);
setDisplayName(SnippetsSettingsPagePrivate::tr("Snippets")); setDisplayName(Tr::tr("Snippets"));
setCategory(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY); setCategory(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("::TextEditor", "Text Editor")); setDisplayCategory(Tr::tr("Text Editor"));
setCategoryIconPath(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY_ICON_PATH); setCategoryIconPath(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY_ICON_PATH);
} }

View File

@@ -4,6 +4,7 @@
#include "tabsettingswidget.h" #include "tabsettingswidget.h"
#include "tabsettings.h" #include "tabsettings.h"
#include "texteditortr.h"
#include <QApplication> #include <QApplication>
#include <QComboBox> #include <QComboBox>
@@ -18,7 +19,7 @@ namespace TextEditor {
QString continuationTooltip() QString continuationTooltip()
{ {
// FIXME: This is unfair towards translators. // FIXME: This is unfair towards translators.
return QCoreApplication::translate("TextEditor::TabSettingsWidget", return Tr::tr(
"<html><head/><body>\n" "<html><head/><body>\n"
"Influences the indentation of continuation lines.\n" "Influences the indentation of continuation lines.\n"
"\n" "\n"
@@ -50,37 +51,37 @@ TabSettingsWidget::TabSettingsWidget(QWidget *parent) :
QGroupBox(parent) QGroupBox(parent)
{ {
resize(254, 189); resize(254, 189);
setTitle(tr("Tabs And Indentation")); setTitle(Tr::tr("Tabs And Indentation"));
m_codingStyleWarning = new QLabel( m_codingStyleWarning = new QLabel(
tr("<i>Code indentation is configured in <a href=\"C++\">C++</a> " Tr::tr("<i>Code indentation is configured in <a href=\"C++\">C++</a> "
"and <a href=\"QtQuick\">Qt Quick</a> settings.</i>")); "and <a href=\"QtQuick\">Qt Quick</a> settings.</i>"));
m_codingStyleWarning->setVisible(false); m_codingStyleWarning->setVisible(false);
m_codingStyleWarning->setWordWrap(true); m_codingStyleWarning->setWordWrap(true);
m_codingStyleWarning->setToolTip( m_codingStyleWarning->setToolTip(
tr("The text editor indentation setting is used for non-code files only. See the C++ " Tr::tr("The text editor indentation setting is used for non-code files only. See the C++ "
"and Qt Quick coding style settings to configure indentation for code files.")); "and Qt Quick coding style settings to configure indentation for code files."));
m_tabPolicy = new QComboBox(this); m_tabPolicy = new QComboBox(this);
m_tabPolicy->setMinimumContentsLength(28); m_tabPolicy->setMinimumContentsLength(28);
m_tabPolicy->addItem(tr("Spaces Only")); m_tabPolicy->addItem(Tr::tr("Spaces Only"));
m_tabPolicy->addItem(tr("Tabs Only")); m_tabPolicy->addItem(Tr::tr("Tabs Only"));
m_tabPolicy->addItem(tr("Mixed")); m_tabPolicy->addItem(Tr::tr("Mixed"));
auto tabSizeLabel = new QLabel(tr("Ta&b size:")); auto tabSizeLabel = new QLabel(Tr::tr("Ta&b size:"));
m_tabSize = new QSpinBox(this); m_tabSize = new QSpinBox(this);
m_tabSize->setRange(1, 20); m_tabSize->setRange(1, 20);
auto indentSizeLabel = new QLabel(tr("&Indent size:")); auto indentSizeLabel = new QLabel(Tr::tr("&Indent size:"));
m_indentSize = new QSpinBox(this); m_indentSize = new QSpinBox(this);
m_indentSize->setRange(1, 20); m_indentSize->setRange(1, 20);
m_continuationAlignBehavior = new QComboBox; m_continuationAlignBehavior = new QComboBox;
m_continuationAlignBehavior->addItem(tr("Not At All")); m_continuationAlignBehavior->addItem(Tr::tr("Not At All"));
m_continuationAlignBehavior->addItem(tr("With Spaces")); m_continuationAlignBehavior->addItem(Tr::tr("With Spaces"));
m_continuationAlignBehavior->addItem(tr("With Regular Indent")); m_continuationAlignBehavior->addItem(Tr::tr("With Regular Indent"));
m_continuationAlignBehavior->setToolTip(continuationTooltip()); m_continuationAlignBehavior->setToolTip(continuationTooltip());
tabSizeLabel->setBuddy(m_tabSize); tabSizeLabel->setBuddy(m_tabSize);
@@ -91,10 +92,10 @@ TabSettingsWidget::TabSettingsWidget(QWidget *parent) :
Column { Column {
m_codingStyleWarning, m_codingStyleWarning,
tr("Tab policy:"), Tr::tr("Tab policy:"),
indent(m_tabPolicy), indent(m_tabPolicy),
Row { tabSizeLabel, m_tabSize, indentSizeLabel, m_indentSize, st }, Row { tabSizeLabel, m_tabSize, indentSizeLabel, m_indentSize, st },
tr("Align continuation lines:"), Tr::tr("Align continuation lines:"),
indent(m_continuationAlignBehavior) indent(m_continuationAlignBehavior)
}.attachTo(this); }.attachTo(this);

View File

@@ -10,31 +10,31 @@
#include "tabsettings.h" #include "tabsettings.h"
#include "textdocumentlayout.h" #include "textdocumentlayout.h"
#include "texteditor.h" #include "texteditor.h"
#include "texteditorconstants.h" #include "texteditortr.h"
#include "textindenter.h" #include "textindenter.h"
#include "typingsettings.h" #include "typingsettings.h"
#include <coreplugin/coreconstants.h>
#include <coreplugin/diffservice.h> #include <coreplugin/diffservice.h>
#include <coreplugin/editormanager/documentmodel.h> #include <coreplugin/editormanager/documentmodel.h>
#include <coreplugin/editormanager/editormanager.h> #include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/icore.h>
#include <coreplugin/progressmanager/progressmanager.h>
#include <extensionsystem/pluginmanager.h> #include <extensionsystem/pluginmanager.h>
#include <utils/guard.h> #include <utils/guard.h>
#include <utils/mimeutils.h> #include <utils/mimeutils.h>
#include <utils/qtcassert.h>
#include <utils/textutils.h> #include <utils/textutils.h>
#include <QAction> #include <QAction>
#include <QApplication> #include <QApplication>
#include <QDir>
#include <QFileInfo>
#include <QFutureInterface> #include <QFutureInterface>
#include <QScrollBar> #include <QScrollBar>
#include <QStringList> #include <QStringList>
#include <QTextCodec> #include <QTextCodec>
#include <coreplugin/coreconstants.h>
#include <coreplugin/icore.h>
#include <coreplugin/progressmanager/progressmanager.h>
#include <utils/qtcassert.h>
using namespace Core; using namespace Core;
using namespace Utils; using namespace Utils;
@@ -368,7 +368,7 @@ QAction *TextDocument::createDiffAgainstCurrentFileAction(
if (diffService && !leftFilePath.isEmpty() && !rightFilePath.isEmpty()) if (diffService && !leftFilePath.isEmpty() && !rightFilePath.isEmpty())
diffService->diffFiles(leftFilePath, rightFilePath); diffService->diffFiles(leftFilePath, rightFilePath);
}; };
auto diffAction = new QAction(tr("Diff Against Current File"), parent); auto diffAction = new QAction(Tr::tr("Diff Against Current File"), parent);
QObject::connect(diffAction, &QAction::triggered, parent, diffAgainstCurrentFile); QObject::connect(diffAction, &QAction::triggered, parent, diffAgainstCurrentFile);
return diffAction; return diffAction;
} }
@@ -770,7 +770,7 @@ Core::IDocument::OpenResult TextDocument::openImpl(QString *errorString,
} else if (chunks > 1) { } else if (chunks > 1) {
QFutureInterface<void> interface; QFutureInterface<void> interface;
interface.setProgressRange(0, chunks); interface.setProgressRange(0, chunks);
ProgressManager::addTask(interface.future(), tr("Opening File"), ProgressManager::addTask(interface.future(), Tr::tr("Opening File"),
Constants::TASK_OPEN_FILE); Constants::TASK_OPEN_FILE);
interface.reportStarted(); interface.reportStarted();

View File

@@ -2,22 +2,24 @@
// 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 "texteditor.h" #include "texteditor.h"
#include "texteditor_p.h"
#include "displaysettings.h"
#include "marginsettings.h"
#include "fontsettings.h"
#include "texteditoractionhandler.h"
#include "autocompleter.h" #include "autocompleter.h"
#include "basehoverhandler.h" #include "basehoverhandler.h"
#include "behaviorsettings.h" #include "behaviorsettings.h"
#include "circularclipboard.h" #include "circularclipboard.h"
#include "circularclipboardassist.h" #include "circularclipboardassist.h"
#include "codeassist/assistinterface.h"
#include "codeassist/codeassistant.h"
#include "codeassist/completionassistprovider.h"
#include "codeassist/documentcontentcompletion.h"
#include "completionsettings.h" #include "completionsettings.h"
#include "displaysettings.h"
#include "extraencodingsettings.h" #include "extraencodingsettings.h"
#include "fontsettings.h"
#include "highlighter.h" #include "highlighter.h"
#include "highlightersettings.h" #include "highlightersettings.h"
#include "icodestylepreferences.h" #include "icodestylepreferences.h"
#include "marginsettings.h"
#include "refactoroverlay.h" #include "refactoroverlay.h"
#include "snippets/snippetoverlay.h" #include "snippets/snippetoverlay.h"
#include "storagesettings.h" #include "storagesettings.h"
@@ -25,17 +27,16 @@
#include "tabsettings.h" #include "tabsettings.h"
#include "textdocument.h" #include "textdocument.h"
#include "textdocumentlayout.h" #include "textdocumentlayout.h"
#include "texteditor_p.h"
#include "texteditoractionhandler.h"
#include "texteditorconstants.h" #include "texteditorconstants.h"
#include "texteditoroverlay.h" #include "texteditoroverlay.h"
#include "texteditorsettings.h" #include "texteditorsettings.h"
#include "texteditortr.h"
#include "typingsettings.h" #include "typingsettings.h"
#include <texteditor/codeassist/assistinterface.h>
#include <texteditor/codeassist/codeassistant.h>
#include <texteditor/codeassist/completionassistprovider.h>
#include <texteditor/codeassist/documentcontentcompletion.h>
#include <aggregation/aggregate.h> #include <aggregation/aggregate.h>
#include <coreplugin/actionmanager/actioncontainer.h> #include <coreplugin/actionmanager/actioncontainer.h>
#include <coreplugin/actionmanager/actionmanager.h> #include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/actionmanager/command.h> #include <coreplugin/actionmanager/command.h>
@@ -45,6 +46,7 @@
#include <coreplugin/find/highlightscrollbarcontroller.h> #include <coreplugin/find/highlightscrollbarcontroller.h>
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <coreplugin/manhattanstyle.h> #include <coreplugin/manhattanstyle.h>
#include <utils/algorithm.h> #include <utils/algorithm.h>
#include <utils/camelcasecursor.h> #include <utils/camelcasecursor.h>
#include <utils/dropsupport.h> #include <utils/dropsupport.h>
@@ -153,7 +155,7 @@ public:
: FixedSizeClickLabel(parent) : FixedSizeClickLabel(parent)
, m_editor(parent) , m_editor(parent)
{ {
setMaxText(TextEditorWidget::tr("Line: 9999, Col: 999")); setMaxText(Tr::tr("Line: 9999, Col: 999"));
connect(m_editor, &QPlainTextEdit::cursorPositionChanged, this, &LineColumnLabel::update); connect(m_editor, &QPlainTextEdit::cursorPositionChanged, this, &LineColumnLabel::update);
connect(this, &FixedSizeClickLabel::clicked, ActionManager::instance(), [this] { connect(this, &FixedSizeClickLabel::clicked, ActionManager::instance(), [this] {
emit m_editor->activateEditor(EditorManager::IgnoreNavigationHistory); emit m_editor->activateEditor(EditorManager::IgnoreNavigationHistory);
@@ -174,9 +176,9 @@ private:
const int line = block.blockNumber() + 1; const int line = block.blockNumber() + 1;
const TabSettings &tabSettings = m_editor->textDocument()->tabSettings(); const TabSettings &tabSettings = m_editor->textDocument()->tabSettings();
const int column = tabSettings.columnAt(block.text(), cursor.positionInBlock()) + 1; const int column = tabSettings.columnAt(block.text(), cursor.positionInBlock()) + 1;
const QString text = TextEditorWidget::tr("Line: %1, Col: %2"); const QString text = Tr::tr("Line: %1, Col: %2");
setText(text.arg(line).arg(column)); setText(text.arg(line).arg(column));
const QString toolTipText = TextEditorWidget::tr("Cursor position: %1"); const QString toolTipText = Tr::tr("Cursor position: %1");
setToolTip(toolTipText.arg(QString::number(cursor.position()))); setToolTip(toolTipText.arg(QString::number(cursor.position())));
QFont f = font(); QFont f = font();
f.setItalic(m_editor->multiTextCursor().hasMultipleCursors()); f.setItalic(m_editor->multiTextCursor().hasMultipleCursors());
@@ -1056,7 +1058,7 @@ static QLayout *createSeparatorLayout()
QFrame* separator1 = createSeparator(styleSheet); QFrame* separator1 = createSeparator(styleSheet);
QFrame* separator2 = createSeparator(styleSheet); QFrame* separator2 = createSeparator(styleSheet);
auto label = new QLabel(TextEditorWidget::tr("Other annotations")); auto label = new QLabel(Tr::tr("Other annotations"));
label->setStyleSheet(styleSheet); label->setStyleSheet(styleSheet);
auto layout = new QHBoxLayout; auto layout = new QHBoxLayout;
@@ -1333,7 +1335,7 @@ void TextEditorWidget::print(QPrinter *printer)
const bool oldFullPage = printer->fullPage(); const bool oldFullPage = printer->fullPage();
printer->setFullPage(true); printer->setFullPage(true);
auto dlg = new QPrintDialog(printer, this); auto dlg = new QPrintDialog(printer, this);
dlg->setWindowTitle(tr("Print Document")); dlg->setWindowTitle(Tr::tr("Print Document"));
if (dlg->exec() == QDialog::Accepted) if (dlg->exec() == QDialog::Accepted)
d->print(printer); d->print(printer);
printer->setFullPage(oldFullPage); printer->setFullPage(oldFullPage);
@@ -1653,7 +1655,7 @@ void TextEditorWidget::selectEncoding()
case CodecSelector::Reload: { case CodecSelector::Reload: {
QString errorString; QString errorString;
if (!doc->reload(&errorString, codecSelector.selectedCodec())) { if (!doc->reload(&errorString, codecSelector.selectedCodec())) {
QMessageBox::critical(this, tr("File Error"), errorString); QMessageBox::critical(this, Tr::tr("File Error"), errorString);
break; break;
} }
break; } break; }
@@ -1690,7 +1692,7 @@ void TextEditorWidget::updateTextCodecLabel()
QString TextEditorWidget::msgTextTooLarge(quint64 size) QString TextEditorWidget::msgTextTooLarge(quint64 size)
{ {
return tr("The text is too large to be displayed (%1 MB)."). return Tr::tr("The text is too large to be displayed (%1 MB).").
arg(size >> 20); arg(size >> 20);
} }
@@ -1720,9 +1722,9 @@ void TextEditorWidgetPrivate::updateCannotDecodeInfo()
if (!infoBar->canInfoBeAdded(selectEncodingId)) if (!infoBar->canInfoBeAdded(selectEncodingId))
return; return;
InfoBarEntry info(selectEncodingId, InfoBarEntry info(selectEncodingId,
TextEditorWidget::tr("<b>Error:</b> Could not decode \"%1\" with \"%2\"-encoding. Editing not possible.") Tr::tr("<b>Error:</b> Could not decode \"%1\" with \"%2\"-encoding. Editing not possible.")
.arg(m_document->displayName(), QString::fromLatin1(m_document->codec()->name()))); .arg(m_document->displayName(), QString::fromLatin1(m_document->codec()->name())));
info.addCustomButton(TextEditorWidget::tr("Select Encoding"), [this] { q->selectEncoding(); }); info.addCustomButton(Tr::tr("Select Encoding"), [this] { q->selectEncoding(); });
infoBar->addInfo(info); infoBar->addInfo(info);
} else { } else {
infoBar->removeInfo(selectEncodingId); infoBar->removeInfo(selectEncodingId);
@@ -2876,7 +2878,7 @@ void TextEditorWidget::insertCodeSnippet(const QTextCursor &cursor_arg,
SnippetParseResult result = parse(snippet); SnippetParseResult result = parse(snippet);
if (std::holds_alternative<SnippetParseError>(result)) { if (std::holds_alternative<SnippetParseError>(result)) {
const auto &error = std::get<SnippetParseError>(result); const auto &error = std::get<SnippetParseError>(result);
QMessageBox::warning(this, tr("Snippet Parse Error"), error.htmlMessage()); QMessageBox::warning(this, Tr::tr("Snippet Parse Error"), error.htmlMessage());
return; return;
} }
QTC_ASSERT(std::holds_alternative<ParsedSnippet>(result), return); QTC_ASSERT(std::holds_alternative<ParsedSnippet>(result), return);
@@ -3367,10 +3369,10 @@ void TextEditorWidgetPrivate::updateSyntaxInfoBar(const Highlighter::Definitions
if (definitions.isEmpty() && infoBar->canInfoBeAdded(missing) if (definitions.isEmpty() && infoBar->canInfoBeAdded(missing)
&& !TextEditorSettings::highlighterSettings().isIgnoredFilePattern(fileName)) { && !TextEditorSettings::highlighterSettings().isIgnoredFilePattern(fileName)) {
InfoBarEntry info(missing, InfoBarEntry info(missing,
BaseTextEditor::tr("A highlight definition was not found for this file. " Tr::tr("A highlight definition was not found for this file. "
"Would you like to download additional highlight definition files?"), "Would you like to download additional highlight definition files?"),
InfoBarEntry::GlobalSuppression::Enabled); InfoBarEntry::GlobalSuppression::Enabled);
info.addCustomButton(BaseTextEditor::tr("Download Definitions"), [missing, this]() { info.addCustomButton(Tr::tr("Download Definitions"), [missing, this]() {
m_document->infoBar()->removeInfo(missing); m_document->infoBar()->removeInfo(missing);
Highlighter::downloadDefinitions(); Highlighter::downloadDefinitions();
}); });
@@ -3379,14 +3381,14 @@ void TextEditorWidgetPrivate::updateSyntaxInfoBar(const Highlighter::Definitions
infoBar->addInfo(info); infoBar->addInfo(info);
} else if (definitions.size() > 1) { } else if (definitions.size() > 1) {
InfoBarEntry info(multiple, InfoBarEntry info(multiple,
BaseTextEditor::tr("More than one highlight definition was found for this file. " Tr::tr("More than one highlight definition was found for this file. "
"Which one should be used to highlight this file?")); "Which one should be used to highlight this file?"));
info.setComboInfo(Utils::transform(definitions, &Highlighter::Definition::name), info.setComboInfo(Utils::transform(definitions, &Highlighter::Definition::name),
[this](const InfoBarEntry::ComboInfo &info) { [this](const InfoBarEntry::ComboInfo &info) {
this->configureGenericHighlighter(Highlighter::definitionForName(info.displayText)); this->configureGenericHighlighter(Highlighter::definitionForName(info.displayText));
}); });
info.addCustomButton(BaseTextEditor::tr("Remember My Choice"), [multiple, this]() { info.addCustomButton(Tr::tr("Remember My Choice"), [multiple, this]() {
m_document->infoBar()->removeInfo(multiple); m_document->infoBar()->removeInfo(multiple);
rememberCurrentSyntaxDefinition(); rememberCurrentSyntaxDefinition();
}); });
@@ -6316,8 +6318,7 @@ void TextEditorWidget::wheelEvent(QWheelEvent *e)
static void showZoomIndicator(QWidget *editor, const int newZoom) static void showZoomIndicator(QWidget *editor, const int newZoom)
{ {
Utils::FadingIndicator::showText(editor, Utils::FadingIndicator::showText(editor,
QCoreApplication::translate("TextEditor::TextEditorWidget", Tr::tr("Zoom: %1%").arg(newZoom),
"Zoom: %1%").arg(newZoom),
Utils::FadingIndicator::SmallText); Utils::FadingIndicator::SmallText);
} }
@@ -8077,8 +8078,8 @@ void TextEditorWidget::appendStandardContextMenuActions(QMenu *menu)
TextDocument *doc = textDocument(); TextDocument *doc = textDocument();
if (doc->codec()->name() == QByteArray("UTF-8") && doc->supportsUtf8Bom()) { if (doc->codec()->name() == QByteArray("UTF-8") && doc->supportsUtf8Bom()) {
a->setVisible(true); a->setVisible(true);
a->setText(doc->format().hasUtf8Bom ? tr("Delete UTF-8 BOM on Save") a->setText(doc->format().hasUtf8Bom ? Tr::tr("Delete UTF-8 BOM on Save")
: tr("Add UTF-8 BOM on Save")); : Tr::tr("Add UTF-8 BOM on Save"));
} else { } else {
a->setVisible(false); a->setVisible(false);
} }

View File

@@ -7,8 +7,8 @@
#include "displaysettings.h" #include "displaysettings.h"
#include "fontsettings.h" #include "fontsettings.h"
#include "linenumberfilter.h" #include "linenumberfilter.h"
#include "texteditorconstants.h"
#include "texteditorplugin.h" #include "texteditorplugin.h"
#include "texteditortr.h"
#include "texteditorsettings.h" #include "texteditorsettings.h"
#include <aggregation/aggregate.h> #include <aggregation/aggregate.h>
@@ -20,6 +20,7 @@
#include <coreplugin/actionmanager/actionmanager.h> #include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/actionmanager/actioncontainer.h> #include <coreplugin/actionmanager/actioncontainer.h>
#include <coreplugin/actionmanager/command.h> #include <coreplugin/actionmanager/command.h>
#include <utils/hostosinfo.h> #include <utils/hostosinfo.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
@@ -33,8 +34,6 @@ namespace Internal {
class TextEditorActionHandlerPrivate : public QObject class TextEditorActionHandlerPrivate : public QObject
{ {
Q_DECLARE_TR_FUNCTIONS(TextEditor::Internal::TextEditorActionHandler)
public: public:
TextEditorActionHandlerPrivate(Utils::Id editorId, Utils::Id contextId, uint optionalActions); TextEditorActionHandlerPrivate(Utils::Id editorId, Utils::Id contextId, uint optionalActions);
@@ -147,9 +146,9 @@ void TextEditorActionHandlerPrivate::createActions()
using namespace TextEditor::Constants; using namespace TextEditor::Constants;
m_undoAction = registerAction(UNDO, m_undoAction = registerAction(UNDO,
[] (TextEditorWidget *w) { w->undo(); }, true, tr("&Undo")); [] (TextEditorWidget *w) { w->undo(); }, true, Tr::tr("&Undo"));
m_redoAction = registerAction(REDO, m_redoAction = registerAction(REDO,
[] (TextEditorWidget *w) { w->redo(); }, true, tr("&Redo")); [] (TextEditorWidget *w) { w->redo(); }, true, Tr::tr("&Redo"));
m_copyAction = registerAction(COPY, m_copyAction = registerAction(COPY,
[] (TextEditorWidget *w) { w->copy(); }, true); [] (TextEditorWidget *w) { w->copy(); }, true);
m_cutAction = registerAction(CUT, m_cutAction = registerAction(CUT,
@@ -164,110 +163,110 @@ void TextEditorActionHandlerPrivate::createActions()
m_modifyingActions << registerAction(PRINT, m_modifyingActions << registerAction(PRINT,
[] (TextEditorWidget *widget) { widget->print(Core::ICore::printer()); }); [] (TextEditorWidget *widget) { widget->print(Core::ICore::printer()); });
m_modifyingActions << registerAction(DELETE_LINE, m_modifyingActions << registerAction(DELETE_LINE,
[] (TextEditorWidget *w) { w->deleteLine(); }, true, tr("Delete &Line")); [] (TextEditorWidget *w) { w->deleteLine(); }, true, Tr::tr("Delete &Line"));
m_modifyingActions << registerAction(DELETE_END_OF_LINE, m_modifyingActions << registerAction(DELETE_END_OF_LINE,
[] (TextEditorWidget *w) { w->deleteEndOfLine(); }, true, tr("Delete Line from Cursor On")); [] (TextEditorWidget *w) { w->deleteEndOfLine(); }, true, Tr::tr("Delete Line from Cursor On"));
m_modifyingActions << registerAction(DELETE_END_OF_WORD, m_modifyingActions << registerAction(DELETE_END_OF_WORD,
[] (TextEditorWidget *w) { w->deleteEndOfWord(); }, true, tr("Delete Word from Cursor On")); [] (TextEditorWidget *w) { w->deleteEndOfWord(); }, true, Tr::tr("Delete Word from Cursor On"));
m_modifyingActions << registerAction(DELETE_END_OF_WORD_CAMEL_CASE, m_modifyingActions << registerAction(DELETE_END_OF_WORD_CAMEL_CASE,
[] (TextEditorWidget *w) { w->deleteEndOfWordCamelCase(); }, true, tr("Delete Word Camel Case from Cursor On")); [] (TextEditorWidget *w) { w->deleteEndOfWordCamelCase(); }, true, Tr::tr("Delete Word Camel Case from Cursor On"));
m_modifyingActions << registerAction(DELETE_START_OF_LINE, m_modifyingActions << registerAction(DELETE_START_OF_LINE,
[] (TextEditorWidget *w) { w->deleteStartOfLine(); }, true, tr("Delete Line up to Cursor"), [] (TextEditorWidget *w) { w->deleteStartOfLine(); }, true, Tr::tr("Delete Line up to Cursor"),
Core::useMacShortcuts ? QKeySequence(tr("Ctrl+Backspace")) : QKeySequence()); Core::useMacShortcuts ? QKeySequence(Tr::tr("Ctrl+Backspace")) : QKeySequence());
m_modifyingActions << registerAction(DELETE_START_OF_WORD, m_modifyingActions << registerAction(DELETE_START_OF_WORD,
[] (TextEditorWidget *w) { w->deleteStartOfWord(); }, true, tr("Delete Word up to Cursor")); [] (TextEditorWidget *w) { w->deleteStartOfWord(); }, true, Tr::tr("Delete Word up to Cursor"));
m_modifyingActions << registerAction(DELETE_START_OF_WORD_CAMEL_CASE, m_modifyingActions << registerAction(DELETE_START_OF_WORD_CAMEL_CASE,
[] (TextEditorWidget *w) { w->deleteStartOfWordCamelCase(); }, true, tr("Delete Word Camel Case up to Cursor")); [] (TextEditorWidget *w) { w->deleteStartOfWordCamelCase(); }, true, Tr::tr("Delete Word Camel Case up to Cursor"));
registerAction(GOTO_BLOCK_START_WITH_SELECTION, registerAction(GOTO_BLOCK_START_WITH_SELECTION,
[] (TextEditorWidget *w) { w->gotoBlockStartWithSelection(); }, true, tr("Go to Block Start with Selection"), [] (TextEditorWidget *w) { w->gotoBlockStartWithSelection(); }, true, Tr::tr("Go to Block Start with Selection"),
QKeySequence(tr("Ctrl+{"))); QKeySequence(Tr::tr("Ctrl+{")));
registerAction(GOTO_BLOCK_END_WITH_SELECTION, registerAction(GOTO_BLOCK_END_WITH_SELECTION,
[] (TextEditorWidget *w) { w->gotoBlockEndWithSelection(); }, true, tr("Go to Block End with Selection"), [] (TextEditorWidget *w) { w->gotoBlockEndWithSelection(); }, true, Tr::tr("Go to Block End with Selection"),
QKeySequence(tr("Ctrl+}"))); QKeySequence(Tr::tr("Ctrl+}")));
m_modifyingActions << registerAction(MOVE_LINE_UP, m_modifyingActions << registerAction(MOVE_LINE_UP,
[] (TextEditorWidget *w) { w->moveLineUp(); }, true, tr("Move Line Up"), [] (TextEditorWidget *w) { w->moveLineUp(); }, true, Tr::tr("Move Line Up"),
QKeySequence(tr("Ctrl+Shift+Up"))); QKeySequence(Tr::tr("Ctrl+Shift+Up")));
m_modifyingActions << registerAction(MOVE_LINE_DOWN, m_modifyingActions << registerAction(MOVE_LINE_DOWN,
[] (TextEditorWidget *w) { w->moveLineDown(); }, true, tr("Move Line Down"), [] (TextEditorWidget *w) { w->moveLineDown(); }, true, Tr::tr("Move Line Down"),
QKeySequence(tr("Ctrl+Shift+Down"))); QKeySequence(Tr::tr("Ctrl+Shift+Down")));
m_modifyingActions << registerAction(COPY_LINE_UP, m_modifyingActions << registerAction(COPY_LINE_UP,
[] (TextEditorWidget *w) { w->copyLineUp(); }, true, tr("Copy Line Up"), [] (TextEditorWidget *w) { w->copyLineUp(); }, true, Tr::tr("Copy Line Up"),
QKeySequence(tr("Ctrl+Alt+Up"))); QKeySequence(Tr::tr("Ctrl+Alt+Up")));
m_modifyingActions << registerAction(COPY_LINE_DOWN, m_modifyingActions << registerAction(COPY_LINE_DOWN,
[] (TextEditorWidget *w) { w->copyLineDown(); }, true, tr("Copy Line Down"), [] (TextEditorWidget *w) { w->copyLineDown(); }, true, Tr::tr("Copy Line Down"),
QKeySequence(tr("Ctrl+Alt+Down"))); QKeySequence(Tr::tr("Ctrl+Alt+Down")));
m_modifyingActions << registerAction(JOIN_LINES, m_modifyingActions << registerAction(JOIN_LINES,
[] (TextEditorWidget *w) { w->joinLines(); }, true, tr("Join Lines"), [] (TextEditorWidget *w) { w->joinLines(); }, true, Tr::tr("Join Lines"),
QKeySequence(tr("Ctrl+J"))); QKeySequence(Tr::tr("Ctrl+J")));
m_modifyingActions << registerAction(INSERT_LINE_ABOVE, m_modifyingActions << registerAction(INSERT_LINE_ABOVE,
[] (TextEditorWidget *w) { w->insertLineAbove(); }, true, tr("Insert Line Above Current Line"), [] (TextEditorWidget *w) { w->insertLineAbove(); }, true, Tr::tr("Insert Line Above Current Line"),
QKeySequence(tr("Ctrl+Shift+Return"))); QKeySequence(Tr::tr("Ctrl+Shift+Return")));
m_modifyingActions << registerAction(INSERT_LINE_BELOW, m_modifyingActions << registerAction(INSERT_LINE_BELOW,
[] (TextEditorWidget *w) { w->insertLineBelow(); }, true, tr("Insert Line Below Current Line"), [] (TextEditorWidget *w) { w->insertLineBelow(); }, true, Tr::tr("Insert Line Below Current Line"),
QKeySequence(tr("Ctrl+Return"))); QKeySequence(Tr::tr("Ctrl+Return")));
m_modifyingActions << registerAction(SWITCH_UTF8BOM, m_modifyingActions << registerAction(SWITCH_UTF8BOM,
[] (TextEditorWidget *w) { w->switchUtf8bom(); }, true, tr("Toggle UTF-8 BOM")); [] (TextEditorWidget *w) { w->switchUtf8bom(); }, true, Tr::tr("Toggle UTF-8 BOM"));
m_modifyingActions << registerAction(INDENT, m_modifyingActions << registerAction(INDENT,
[] (TextEditorWidget *w) { w->indent(); }, true, tr("Indent")); [] (TextEditorWidget *w) { w->indent(); }, true, Tr::tr("Indent"));
m_modifyingActions << registerAction(UNINDENT, m_modifyingActions << registerAction(UNINDENT,
[] (TextEditorWidget *w) { w->unindent(); }, true, tr("Unindent")); [] (TextEditorWidget *w) { w->unindent(); }, true, Tr::tr("Unindent"));
m_followSymbolAction = registerAction(FOLLOW_SYMBOL_UNDER_CURSOR, m_followSymbolAction = registerAction(FOLLOW_SYMBOL_UNDER_CURSOR,
[] (TextEditorWidget *w) { w->openLinkUnderCursor(); }, true, tr("Follow Symbol Under Cursor"), [] (TextEditorWidget *w) { w->openLinkUnderCursor(); }, true, Tr::tr("Follow Symbol Under Cursor"),
QKeySequence(Qt::Key_F2)); QKeySequence(Qt::Key_F2));
m_followSymbolInNextSplitAction = registerAction(FOLLOW_SYMBOL_UNDER_CURSOR_IN_NEXT_SPLIT, m_followSymbolInNextSplitAction = registerAction(FOLLOW_SYMBOL_UNDER_CURSOR_IN_NEXT_SPLIT,
[] (TextEditorWidget *w) { w->openLinkUnderCursorInNextSplit(); }, true, tr("Follow Symbol Under Cursor in Next Split"), [] (TextEditorWidget *w) { w->openLinkUnderCursorInNextSplit(); }, true, Tr::tr("Follow Symbol Under Cursor in Next Split"),
QKeySequence(Utils::HostOsInfo::isMacHost() ? tr("Meta+E, F2") : tr("Ctrl+E, F2"))); QKeySequence(Utils::HostOsInfo::isMacHost() ? Tr::tr("Meta+E, F2") : Tr::tr("Ctrl+E, F2")));
m_findUsageAction = registerAction(FIND_USAGES, m_findUsageAction = registerAction(FIND_USAGES,
[] (TextEditorWidget *w) { w->findUsages(); }, true, tr("Find References to Symbol Under Cursor"), [] (TextEditorWidget *w) { w->findUsages(); }, true, Tr::tr("Find References to Symbol Under Cursor"),
QKeySequence(tr("Ctrl+Shift+U"))); QKeySequence(Tr::tr("Ctrl+Shift+U")));
m_renameSymbolAction = registerAction(RENAME_SYMBOL, m_renameSymbolAction = registerAction(RENAME_SYMBOL,
[] (TextEditorWidget *w) { w->renameSymbolUnderCursor(); }, true, tr("Rename Symbol Under Cursor"), [] (TextEditorWidget *w) { w->renameSymbolUnderCursor(); }, true, Tr::tr("Rename Symbol Under Cursor"),
QKeySequence(tr("Ctrl+Shift+R"))); QKeySequence(Tr::tr("Ctrl+Shift+R")));
m_jumpToFileAction = registerAction(JUMP_TO_FILE_UNDER_CURSOR, m_jumpToFileAction = registerAction(JUMP_TO_FILE_UNDER_CURSOR,
[] (TextEditorWidget *w) { w->openLinkUnderCursor(); }, true, tr("Jump to File Under Cursor"), [] (TextEditorWidget *w) { w->openLinkUnderCursor(); }, true, Tr::tr("Jump to File Under Cursor"),
QKeySequence(Qt::Key_F2)); QKeySequence(Qt::Key_F2));
m_jumpToFileInNextSplitAction = registerAction(JUMP_TO_FILE_UNDER_CURSOR_IN_NEXT_SPLIT, m_jumpToFileInNextSplitAction = registerAction(JUMP_TO_FILE_UNDER_CURSOR_IN_NEXT_SPLIT,
[] (TextEditorWidget *w) { w->openLinkUnderCursorInNextSplit(); }, true, tr("Jump to File Under Cursor in Next Split"), [] (TextEditorWidget *w) { w->openLinkUnderCursorInNextSplit(); }, true, Tr::tr("Jump to File Under Cursor in Next Split"),
QKeySequence(Utils::HostOsInfo::isMacHost() ? tr("Meta+E, F2") : tr("Ctrl+E, F2")).toString()); QKeySequence(Utils::HostOsInfo::isMacHost() ? Tr::tr("Meta+E, F2") : Tr::tr("Ctrl+E, F2")).toString());
registerAction(VIEW_PAGE_UP, registerAction(VIEW_PAGE_UP,
[] (TextEditorWidget *w) { w->viewPageUp(); }, true, tr("Move the View a Page Up and Keep the Cursor Position"), [] (TextEditorWidget *w) { w->viewPageUp(); }, true, Tr::tr("Move the View a Page Up and Keep the Cursor Position"),
QKeySequence(tr("Ctrl+PgUp"))); QKeySequence(Tr::tr("Ctrl+PgUp")));
registerAction(VIEW_PAGE_DOWN, registerAction(VIEW_PAGE_DOWN,
[] (TextEditorWidget *w) { w->viewPageDown(); }, true, tr("Move the View a Page Down and Keep the Cursor Position"), [] (TextEditorWidget *w) { w->viewPageDown(); }, true, Tr::tr("Move the View a Page Down and Keep the Cursor Position"),
QKeySequence(tr("Ctrl+PgDown"))); QKeySequence(Tr::tr("Ctrl+PgDown")));
registerAction(VIEW_LINE_UP, registerAction(VIEW_LINE_UP,
[] (TextEditorWidget *w) { w->viewLineUp(); }, true, tr("Move the View a Line Up and Keep the Cursor Position"), [] (TextEditorWidget *w) { w->viewLineUp(); }, true, Tr::tr("Move the View a Line Up and Keep the Cursor Position"),
QKeySequence(tr("Ctrl+Up"))); QKeySequence(Tr::tr("Ctrl+Up")));
registerAction(VIEW_LINE_DOWN, registerAction(VIEW_LINE_DOWN,
[] (TextEditorWidget *w) { w->viewLineDown(); }, true, tr("Move the View a Line Down and Keep the Cursor Position"), [] (TextEditorWidget *w) { w->viewLineDown(); }, true, Tr::tr("Move the View a Line Down and Keep the Cursor Position"),
QKeySequence(tr("Ctrl+Down"))); QKeySequence(Tr::tr("Ctrl+Down")));
// register "Edit" Menu Actions // register "Edit" Menu Actions
Core::ActionContainer *editMenu = Core::ActionManager::actionContainer(M_EDIT); Core::ActionContainer *editMenu = Core::ActionManager::actionContainer(M_EDIT);
registerAction(SELECT_ENCODING, registerAction(SELECT_ENCODING,
[] (TextEditorWidget *w) { w->selectEncoding(); }, false, tr("Select Encoding..."), [] (TextEditorWidget *w) { w->selectEncoding(); }, false, Tr::tr("Select Encoding..."),
QKeySequence(), G_EDIT_OTHER, editMenu); QKeySequence(), G_EDIT_OTHER, editMenu);
m_modifyingActions << registerAction(CIRCULAR_PASTE, m_modifyingActions << registerAction(CIRCULAR_PASTE,
[] (TextEditorWidget *w) { w->circularPaste(); }, false, tr("Paste from Clipboard History"), [] (TextEditorWidget *w) { w->circularPaste(); }, false, Tr::tr("Paste from Clipboard History"),
QKeySequence(tr("Ctrl+Shift+V")), G_EDIT_COPYPASTE, editMenu); QKeySequence(Tr::tr("Ctrl+Shift+V")), G_EDIT_COPYPASTE, editMenu);
m_modifyingActions << registerAction(NO_FORMAT_PASTE, m_modifyingActions << registerAction(NO_FORMAT_PASTE,
[] (TextEditorWidget *w) { w->pasteWithoutFormat(); }, false, tr("Paste Without Formatting"), [] (TextEditorWidget *w) { w->pasteWithoutFormat(); }, false, Tr::tr("Paste Without Formatting"),
QKeySequence(Core::useMacShortcuts ? tr("Ctrl+Alt+Shift+V") : QString()), G_EDIT_COPYPASTE, editMenu); QKeySequence(Core::useMacShortcuts ? Tr::tr("Ctrl+Alt+Shift+V") : QString()), G_EDIT_COPYPASTE, editMenu);
// register "Edit -> Advanced" Menu Actions // register "Edit -> Advanced" Menu Actions
Core::ActionContainer *advancedEditMenu = Core::ActionManager::actionContainer(M_EDIT_ADVANCED); Core::ActionContainer *advancedEditMenu = Core::ActionManager::actionContainer(M_EDIT_ADVANCED);
m_autoIndentAction = registerAction(AUTO_INDENT_SELECTION, m_autoIndentAction = registerAction(AUTO_INDENT_SELECTION,
[] (TextEditorWidget *w) { w->autoIndent(); }, true, tr("Auto-&indent Selection"), [] (TextEditorWidget *w) { w->autoIndent(); }, true, Tr::tr("Auto-&indent Selection"),
QKeySequence(tr("Ctrl+I")), QKeySequence(Tr::tr("Ctrl+I")),
G_EDIT_FORMAT, advancedEditMenu); G_EDIT_FORMAT, advancedEditMenu);
m_autoFormatAction = registerAction(AUTO_FORMAT_SELECTION, m_autoFormatAction = registerAction(AUTO_FORMAT_SELECTION,
[] (TextEditorWidget *w) { w->autoFormat(); }, true, tr("Auto-&format Selection"), [] (TextEditorWidget *w) { w->autoFormat(); }, true, Tr::tr("Auto-&format Selection"),
QKeySequence(tr("Ctrl+;")), QKeySequence(Tr::tr("Ctrl+;")),
G_EDIT_FORMAT, advancedEditMenu); G_EDIT_FORMAT, advancedEditMenu);
m_modifyingActions << registerAction(REWRAP_PARAGRAPH, m_modifyingActions << registerAction(REWRAP_PARAGRAPH,
[] (TextEditorWidget *w) { w->rewrapParagraph(); }, true, tr("&Rewrap Paragraph"), [] (TextEditorWidget *w) { w->rewrapParagraph(); }, true, Tr::tr("&Rewrap Paragraph"),
QKeySequence(Core::useMacShortcuts ? tr("Meta+E, R") : tr("Ctrl+E, R")), QKeySequence(Core::useMacShortcuts ? Tr::tr("Meta+E, R") : Tr::tr("Ctrl+E, R")),
G_EDIT_FORMAT, advancedEditMenu); G_EDIT_FORMAT, advancedEditMenu);
m_visualizeWhitespaceAction = registerBoolAction(VISUALIZE_WHITESPACE, m_visualizeWhitespaceAction = registerBoolAction(VISUALIZE_WHITESPACE,
[] (TextEditorWidget *widget, bool checked) { [] (TextEditorWidget *widget, bool checked) {
@@ -277,12 +276,12 @@ void TextEditorActionHandlerPrivate::createActions()
widget->setDisplaySettings(ds); widget->setDisplaySettings(ds);
} }
}, },
false, tr("&Visualize Whitespace"), false, Tr::tr("&Visualize Whitespace"),
QKeySequence(Core::useMacShortcuts ? tr("Meta+E, Meta+V") : tr("Ctrl+E, Ctrl+V")), QKeySequence(Core::useMacShortcuts ? Tr::tr("Meta+E, Meta+V") : Tr::tr("Ctrl+E, Ctrl+V")),
G_EDIT_FORMAT, advancedEditMenu); G_EDIT_FORMAT, advancedEditMenu);
m_visualizeWhitespaceAction->setCheckable(true); m_visualizeWhitespaceAction->setCheckable(true);
m_modifyingActions << registerAction(CLEAN_WHITESPACE, m_modifyingActions << registerAction(CLEAN_WHITESPACE,
[] (TextEditorWidget *w) { w->cleanWhitespace(); }, true, tr("Clean Whitespace"), [] (TextEditorWidget *w) { w->cleanWhitespace(); }, true, Tr::tr("Clean Whitespace"),
QKeySequence(), QKeySequence(),
G_EDIT_FORMAT, advancedEditMenu); G_EDIT_FORMAT, advancedEditMenu);
m_textWrappingAction = registerBoolAction(TEXT_WRAPPING, m_textWrappingAction = registerBoolAction(TEXT_WRAPPING,
@@ -293,145 +292,145 @@ void TextEditorActionHandlerPrivate::createActions()
widget->setDisplaySettings(ds); widget->setDisplaySettings(ds);
} }
}, },
false, tr("Enable Text &Wrapping"), false, Tr::tr("Enable Text &Wrapping"),
QKeySequence(Core::useMacShortcuts ? tr("Meta+E, Meta+W") : tr("Ctrl+E, Ctrl+W")), QKeySequence(Core::useMacShortcuts ? Tr::tr("Meta+E, Meta+W") : Tr::tr("Ctrl+E, Ctrl+W")),
G_EDIT_FORMAT, advancedEditMenu); G_EDIT_FORMAT, advancedEditMenu);
m_textWrappingAction->setCheckable(true); m_textWrappingAction->setCheckable(true);
m_unCommentSelectionAction = registerAction(UN_COMMENT_SELECTION, m_unCommentSelectionAction = registerAction(UN_COMMENT_SELECTION,
[] (TextEditorWidget *w) { w->unCommentSelection(); }, true, tr("Toggle Comment &Selection"), [] (TextEditorWidget *w) { w->unCommentSelection(); }, true, Tr::tr("Toggle Comment &Selection"),
QKeySequence(tr("Ctrl+/")), QKeySequence(Tr::tr("Ctrl+/")),
G_EDIT_FORMAT, advancedEditMenu); G_EDIT_FORMAT, advancedEditMenu);
m_modifyingActions << registerAction(CUT_LINE, m_modifyingActions << registerAction(CUT_LINE,
[] (TextEditorWidget *w) { w->cutLine(); }, true, tr("Cut &Line"), [] (TextEditorWidget *w) { w->cutLine(); }, true, Tr::tr("Cut &Line"),
QKeySequence(tr("Shift+Del")), QKeySequence(Tr::tr("Shift+Del")),
G_EDIT_TEXT, advancedEditMenu); G_EDIT_TEXT, advancedEditMenu);
registerAction(COPY_LINE, registerAction(COPY_LINE,
[] (TextEditorWidget *w) { w->copyLine(); }, false, tr("Copy &Line"), [] (TextEditorWidget *w) { w->copyLine(); }, false, Tr::tr("Copy &Line"),
QKeySequence(tr("Ctrl+Ins")), QKeySequence(Tr::tr("Ctrl+Ins")),
G_EDIT_TEXT, advancedEditMenu); G_EDIT_TEXT, advancedEditMenu);
m_copyHtmlAction = registerAction(COPY_WITH_HTML, m_copyHtmlAction = registerAction(COPY_WITH_HTML,
[] (TextEditorWidget *w) { w->copyWithHtml(); }, true, tr("Copy With Highlighting"), [] (TextEditorWidget *w) { w->copyWithHtml(); }, true, Tr::tr("Copy With Highlighting"),
QKeySequence(), G_EDIT_TEXT, advancedEditMenu); QKeySequence(), G_EDIT_TEXT, advancedEditMenu);
registerAction(ADD_CURSORS_TO_LINE_ENDS, registerAction(ADD_CURSORS_TO_LINE_ENDS,
[] (TextEditorWidget *w) { w->addCursorsToLineEnds(); }, false, tr("Create Cursors at Selected Line Ends"), [] (TextEditorWidget *w) { w->addCursorsToLineEnds(); }, false, Tr::tr("Create Cursors at Selected Line Ends"),
QKeySequence(tr("Alt+Shift+I")), QKeySequence(Tr::tr("Alt+Shift+I")),
G_EDIT_TEXT, advancedEditMenu); G_EDIT_TEXT, advancedEditMenu);
registerAction(ADD_SELECT_NEXT_FIND_MATCH, registerAction(ADD_SELECT_NEXT_FIND_MATCH,
[] (TextEditorWidget *w) { w->addSelectionNextFindMatch(); }, false, tr("Add Next Occurrence to Selection"), [] (TextEditorWidget *w) { w->addSelectionNextFindMatch(); }, false, Tr::tr("Add Next Occurrence to Selection"),
QKeySequence(tr("Ctrl+D")), QKeySequence(Tr::tr("Ctrl+D")),
G_EDIT_TEXT, advancedEditMenu); G_EDIT_TEXT, advancedEditMenu);
m_modifyingActions << registerAction(DUPLICATE_SELECTION, m_modifyingActions << registerAction(DUPLICATE_SELECTION,
[] (TextEditorWidget *w) { w->duplicateSelection(); }, false, tr("&Duplicate Selection"), [] (TextEditorWidget *w) { w->duplicateSelection(); }, false, Tr::tr("&Duplicate Selection"),
QKeySequence(), QKeySequence(),
G_EDIT_TEXT, advancedEditMenu); G_EDIT_TEXT, advancedEditMenu);
m_modifyingActions << registerAction(DUPLICATE_SELECTION_AND_COMMENT, m_modifyingActions << registerAction(DUPLICATE_SELECTION_AND_COMMENT,
[] (TextEditorWidget *w) { w->duplicateSelectionAndComment(); }, false, tr("&Duplicate Selection and Comment"), [] (TextEditorWidget *w) { w->duplicateSelectionAndComment(); }, false, Tr::tr("&Duplicate Selection and Comment"),
QKeySequence(), QKeySequence(),
G_EDIT_TEXT, advancedEditMenu); G_EDIT_TEXT, advancedEditMenu);
m_modifyingActions << registerAction(UPPERCASE_SELECTION, m_modifyingActions << registerAction(UPPERCASE_SELECTION,
[] (TextEditorWidget *w) { w->uppercaseSelection(); }, true, tr("Uppercase Selection"), [] (TextEditorWidget *w) { w->uppercaseSelection(); }, true, Tr::tr("Uppercase Selection"),
QKeySequence(Core::useMacShortcuts ? tr("Meta+Shift+U") : tr("Alt+Shift+U")), QKeySequence(Core::useMacShortcuts ? Tr::tr("Meta+Shift+U") : Tr::tr("Alt+Shift+U")),
G_EDIT_TEXT, advancedEditMenu); G_EDIT_TEXT, advancedEditMenu);
m_modifyingActions << registerAction(LOWERCASE_SELECTION, m_modifyingActions << registerAction(LOWERCASE_SELECTION,
[] (TextEditorWidget *w) { w->lowercaseSelection(); }, true, tr("Lowercase Selection"), [] (TextEditorWidget *w) { w->lowercaseSelection(); }, true, Tr::tr("Lowercase Selection"),
QKeySequence(Core::useMacShortcuts ? tr("Meta+U") : tr("Alt+U")), QKeySequence(Core::useMacShortcuts ? Tr::tr("Meta+U") : Tr::tr("Alt+U")),
G_EDIT_TEXT, advancedEditMenu); G_EDIT_TEXT, advancedEditMenu);
m_modifyingActions << registerAction(SORT_SELECTED_LINES, m_modifyingActions << registerAction(SORT_SELECTED_LINES,
[] (TextEditorWidget *w) { w->sortSelectedLines(); }, false, tr("&Sort Selected Lines"), [] (TextEditorWidget *w) { w->sortSelectedLines(); }, false, Tr::tr("&Sort Selected Lines"),
QKeySequence(Core::useMacShortcuts ? tr("Meta+Shift+S") : tr("Alt+Shift+S")), QKeySequence(Core::useMacShortcuts ? Tr::tr("Meta+Shift+S") : Tr::tr("Alt+Shift+S")),
G_EDIT_TEXT, advancedEditMenu); G_EDIT_TEXT, advancedEditMenu);
registerAction(FOLD, registerAction(FOLD,
[] (TextEditorWidget *w) { w->fold(); }, true, tr("Fold"), [] (TextEditorWidget *w) { w->fold(); }, true, Tr::tr("Fold"),
QKeySequence(tr("Ctrl+<")), QKeySequence(Tr::tr("Ctrl+<")),
G_EDIT_COLLAPSING, advancedEditMenu); G_EDIT_COLLAPSING, advancedEditMenu);
registerAction(UNFOLD, registerAction(UNFOLD,
[] (TextEditorWidget *w) { w->unfold(); }, true, tr("Unfold"), [] (TextEditorWidget *w) { w->unfold(); }, true, Tr::tr("Unfold"),
QKeySequence(tr("Ctrl+>")), QKeySequence(Tr::tr("Ctrl+>")),
G_EDIT_COLLAPSING, advancedEditMenu); G_EDIT_COLLAPSING, advancedEditMenu);
m_unfoldAllAction = registerAction(UNFOLD_ALL, m_unfoldAllAction = registerAction(UNFOLD_ALL,
[] (TextEditorWidget *w) { w->unfoldAll(); }, true, tr("Toggle &Fold All"), [] (TextEditorWidget *w) { w->unfoldAll(); }, true, Tr::tr("Toggle &Fold All"),
QKeySequence(), QKeySequence(),
G_EDIT_COLLAPSING, advancedEditMenu); G_EDIT_COLLAPSING, advancedEditMenu);
registerAction(INCREASE_FONT_SIZE, registerAction(INCREASE_FONT_SIZE,
[] (TextEditorWidget *w) { w->zoomF(1.f); }, false, tr("Increase Font Size"), [] (TextEditorWidget *w) { w->zoomF(1.f); }, false, Tr::tr("Increase Font Size"),
QKeySequence(tr("Ctrl++")), QKeySequence(Tr::tr("Ctrl++")),
G_EDIT_FONT, advancedEditMenu); G_EDIT_FONT, advancedEditMenu);
registerAction(DECREASE_FONT_SIZE, registerAction(DECREASE_FONT_SIZE,
[] (TextEditorWidget *w) { w->zoomF(-1.f); }, false, tr("Decrease Font Size"), [] (TextEditorWidget *w) { w->zoomF(-1.f); }, false, Tr::tr("Decrease Font Size"),
QKeySequence(tr("Ctrl+-")), QKeySequence(Tr::tr("Ctrl+-")),
G_EDIT_FONT, advancedEditMenu); G_EDIT_FONT, advancedEditMenu);
registerAction(RESET_FONT_SIZE, registerAction(RESET_FONT_SIZE,
[] (TextEditorWidget *w) { w->zoomReset(); }, false, tr("Reset Font Size"), [] (TextEditorWidget *w) { w->zoomReset(); }, false, Tr::tr("Reset Font Size"),
QKeySequence(Core::useMacShortcuts ? tr("Meta+0") : tr("Ctrl+0")), QKeySequence(Core::useMacShortcuts ? Tr::tr("Meta+0") : Tr::tr("Ctrl+0")),
G_EDIT_FONT, advancedEditMenu); G_EDIT_FONT, advancedEditMenu);
registerAction(GOTO_BLOCK_START, registerAction(GOTO_BLOCK_START,
[] (TextEditorWidget *w) { w->gotoBlockStart(); }, true, tr("Go to Block Start"), [] (TextEditorWidget *w) { w->gotoBlockStart(); }, true, Tr::tr("Go to Block Start"),
QKeySequence(tr("Ctrl+[")), QKeySequence(Tr::tr("Ctrl+[")),
G_EDIT_BLOCKS, advancedEditMenu); G_EDIT_BLOCKS, advancedEditMenu);
registerAction(GOTO_BLOCK_END, registerAction(GOTO_BLOCK_END,
[] (TextEditorWidget *w) { w->gotoBlockEnd(); }, true, tr("Go to Block End"), [] (TextEditorWidget *w) { w->gotoBlockEnd(); }, true, Tr::tr("Go to Block End"),
QKeySequence(tr("Ctrl+]")), QKeySequence(Tr::tr("Ctrl+]")),
G_EDIT_BLOCKS, advancedEditMenu); G_EDIT_BLOCKS, advancedEditMenu);
registerAction(SELECT_BLOCK_UP, registerAction(SELECT_BLOCK_UP,
[] (TextEditorWidget *w) { w->selectBlockUp(); }, true, tr("Select Block Up"), [] (TextEditorWidget *w) { w->selectBlockUp(); }, true, Tr::tr("Select Block Up"),
QKeySequence(tr("Ctrl+U")), QKeySequence(Tr::tr("Ctrl+U")),
G_EDIT_BLOCKS, advancedEditMenu); G_EDIT_BLOCKS, advancedEditMenu);
registerAction(SELECT_BLOCK_DOWN, registerAction(SELECT_BLOCK_DOWN,
[] (TextEditorWidget *w) { w->selectBlockDown(); }, true, tr("Select Block Down"), [] (TextEditorWidget *w) { w->selectBlockDown(); }, true, Tr::tr("Select Block Down"),
QKeySequence(tr("Ctrl+Shift+Alt+U")), QKeySequence(Tr::tr("Ctrl+Shift+Alt+U")),
G_EDIT_BLOCKS, advancedEditMenu); G_EDIT_BLOCKS, advancedEditMenu);
registerAction(SELECT_WORD_UNDER_CURSOR, registerAction(SELECT_WORD_UNDER_CURSOR,
[] (TextEditorWidget *w) { w->selectWordUnderCursor(); }, true, [] (TextEditorWidget *w) { w->selectWordUnderCursor(); }, true,
tr("Select Word Under Cursor")); Tr::tr("Select Word Under Cursor"));
// register GOTO Actions // register GOTO Actions
registerAction(GOTO_DOCUMENT_START, registerAction(GOTO_DOCUMENT_START,
[] (TextEditorWidget *w) { w->gotoDocumentStart(); }, true, tr("Go to Document Start")); [] (TextEditorWidget *w) { w->gotoDocumentStart(); }, true, Tr::tr("Go to Document Start"));
registerAction(GOTO_DOCUMENT_END, registerAction(GOTO_DOCUMENT_END,
[] (TextEditorWidget *w) { w->gotoDocumentEnd(); }, true, tr("Go to Document End")); [] (TextEditorWidget *w) { w->gotoDocumentEnd(); }, true, Tr::tr("Go to Document End"));
registerAction(GOTO_LINE_START, registerAction(GOTO_LINE_START,
[] (TextEditorWidget *w) { w->gotoLineStart(); }, true, tr("Go to Line Start")); [] (TextEditorWidget *w) { w->gotoLineStart(); }, true, Tr::tr("Go to Line Start"));
registerAction(GOTO_LINE_END, registerAction(GOTO_LINE_END,
[] (TextEditorWidget *w) { w->gotoLineEnd(); }, true, tr("Go to Line End")); [] (TextEditorWidget *w) { w->gotoLineEnd(); }, true, Tr::tr("Go to Line End"));
registerAction(GOTO_NEXT_LINE, registerAction(GOTO_NEXT_LINE,
[] (TextEditorWidget *w) { w->gotoNextLine(); }, true, tr("Go to Next Line")); [] (TextEditorWidget *w) { w->gotoNextLine(); }, true, Tr::tr("Go to Next Line"));
registerAction(GOTO_PREVIOUS_LINE, registerAction(GOTO_PREVIOUS_LINE,
[] (TextEditorWidget *w) { w->gotoPreviousLine(); }, true, tr("Go to Previous Line")); [] (TextEditorWidget *w) { w->gotoPreviousLine(); }, true, Tr::tr("Go to Previous Line"));
registerAction(GOTO_PREVIOUS_CHARACTER, registerAction(GOTO_PREVIOUS_CHARACTER,
[] (TextEditorWidget *w) { w->gotoPreviousCharacter(); }, true, tr("Go to Previous Character")); [] (TextEditorWidget *w) { w->gotoPreviousCharacter(); }, true, Tr::tr("Go to Previous Character"));
registerAction(GOTO_NEXT_CHARACTER, registerAction(GOTO_NEXT_CHARACTER,
[] (TextEditorWidget *w) { w->gotoNextCharacter(); }, true, tr("Go to Next Character")); [] (TextEditorWidget *w) { w->gotoNextCharacter(); }, true, Tr::tr("Go to Next Character"));
registerAction(GOTO_PREVIOUS_WORD, registerAction(GOTO_PREVIOUS_WORD,
[] (TextEditorWidget *w) { w->gotoPreviousWord(); }, true, tr("Go to Previous Word")); [] (TextEditorWidget *w) { w->gotoPreviousWord(); }, true, Tr::tr("Go to Previous Word"));
registerAction(GOTO_NEXT_WORD, registerAction(GOTO_NEXT_WORD,
[] (TextEditorWidget *w) { w->gotoNextWord(); }, true, tr("Go to Next Word")); [] (TextEditorWidget *w) { w->gotoNextWord(); }, true, Tr::tr("Go to Next Word"));
registerAction(GOTO_PREVIOUS_WORD_CAMEL_CASE, registerAction(GOTO_PREVIOUS_WORD_CAMEL_CASE,
[] (TextEditorWidget *w) { w->gotoPreviousWordCamelCase(); }, false, tr("Go to Previous Word Camel Case")); [] (TextEditorWidget *w) { w->gotoPreviousWordCamelCase(); }, false, Tr::tr("Go to Previous Word Camel Case"));
registerAction(GOTO_NEXT_WORD_CAMEL_CASE, registerAction(GOTO_NEXT_WORD_CAMEL_CASE,
[] (TextEditorWidget *w) { w->gotoNextWordCamelCase(); }, false, tr("Go to Next Word Camel Case")); [] (TextEditorWidget *w) { w->gotoNextWordCamelCase(); }, false, Tr::tr("Go to Next Word Camel Case"));
// register GOTO actions with selection // register GOTO actions with selection
registerAction(GOTO_LINE_START_WITH_SELECTION, registerAction(GOTO_LINE_START_WITH_SELECTION,
[] (TextEditorWidget *w) { w->gotoLineStartWithSelection(); }, true, tr("Go to Line Start with Selection")); [] (TextEditorWidget *w) { w->gotoLineStartWithSelection(); }, true, Tr::tr("Go to Line Start with Selection"));
registerAction(GOTO_LINE_END_WITH_SELECTION, registerAction(GOTO_LINE_END_WITH_SELECTION,
[] (TextEditorWidget *w) { w->gotoLineEndWithSelection(); }, true, tr("Go to Line End with Selection")); [] (TextEditorWidget *w) { w->gotoLineEndWithSelection(); }, true, Tr::tr("Go to Line End with Selection"));
registerAction(GOTO_NEXT_LINE_WITH_SELECTION, registerAction(GOTO_NEXT_LINE_WITH_SELECTION,
[] (TextEditorWidget *w) { w->gotoNextLineWithSelection(); }, true, tr("Go to Next Line with Selection")); [] (TextEditorWidget *w) { w->gotoNextLineWithSelection(); }, true, Tr::tr("Go to Next Line with Selection"));
registerAction(GOTO_PREVIOUS_LINE_WITH_SELECTION, registerAction(GOTO_PREVIOUS_LINE_WITH_SELECTION,
[] (TextEditorWidget *w) { w->gotoPreviousLineWithSelection(); }, true, tr("Go to Previous Line with Selection")); [] (TextEditorWidget *w) { w->gotoPreviousLineWithSelection(); }, true, Tr::tr("Go to Previous Line with Selection"));
registerAction(GOTO_PREVIOUS_CHARACTER_WITH_SELECTION, registerAction(GOTO_PREVIOUS_CHARACTER_WITH_SELECTION,
[] (TextEditorWidget *w) { w->gotoPreviousCharacterWithSelection(); }, true, tr("Go to Previous Character with Selection")); [] (TextEditorWidget *w) { w->gotoPreviousCharacterWithSelection(); }, true, Tr::tr("Go to Previous Character with Selection"));
registerAction(GOTO_NEXT_CHARACTER_WITH_SELECTION, registerAction(GOTO_NEXT_CHARACTER_WITH_SELECTION,
[] (TextEditorWidget *w) { w->gotoNextCharacterWithSelection(); }, true, tr("Go to Next Character with Selection")); [] (TextEditorWidget *w) { w->gotoNextCharacterWithSelection(); }, true, Tr::tr("Go to Next Character with Selection"));
registerAction(GOTO_PREVIOUS_WORD_WITH_SELECTION, registerAction(GOTO_PREVIOUS_WORD_WITH_SELECTION,
[] (TextEditorWidget *w) { w->gotoPreviousWordWithSelection(); }, true, tr("Go to Previous Word with Selection")); [] (TextEditorWidget *w) { w->gotoPreviousWordWithSelection(); }, true, Tr::tr("Go to Previous Word with Selection"));
registerAction(GOTO_NEXT_WORD_WITH_SELECTION, registerAction(GOTO_NEXT_WORD_WITH_SELECTION,
[] (TextEditorWidget *w) { w->gotoNextWordWithSelection(); }, true, tr("Go to Next Word with Selection")); [] (TextEditorWidget *w) { w->gotoNextWordWithSelection(); }, true, Tr::tr("Go to Next Word with Selection"));
registerAction(GOTO_PREVIOUS_WORD_CAMEL_CASE_WITH_SELECTION, registerAction(GOTO_PREVIOUS_WORD_CAMEL_CASE_WITH_SELECTION,
[] (TextEditorWidget *w) { w->gotoPreviousWordCamelCaseWithSelection(); }, false, tr("Go to Previous Word Camel Case with Selection")); [] (TextEditorWidget *w) { w->gotoPreviousWordCamelCaseWithSelection(); }, false, Tr::tr("Go to Previous Word Camel Case with Selection"));
registerAction(GOTO_NEXT_WORD_CAMEL_CASE_WITH_SELECTION, registerAction(GOTO_NEXT_WORD_CAMEL_CASE_WITH_SELECTION,
[] (TextEditorWidget *w) { w->gotoNextWordCamelCaseWithSelection(); }, false, tr("Go to Next Word Camel Case with Selection")); [] (TextEditorWidget *w) { w->gotoNextWordCamelCaseWithSelection(); }, false, Tr::tr("Go to Next Word Camel Case with Selection"));
// Collect additional modifying actions so we can check for them inside a readonly file // Collect additional modifying actions so we can check for them inside a readonly file
// and disable them // and disable them

View File

@@ -8,14 +8,16 @@
#include "findinopenfiles.h" #include "findinopenfiles.h"
#include "fontsettings.h" #include "fontsettings.h"
#include "highlighter.h" #include "highlighter.h"
#include "icodestylepreferences.h"
#include "linenumberfilter.h" #include "linenumberfilter.h"
#include "outlinefactory.h" #include "outlinefactory.h"
#include "plaintexteditorfactory.h" #include "plaintexteditorfactory.h"
#include "snippets/snippetprovider.h" #include "snippets/snippetprovider.h"
#include "tabsettings.h"
#include "textdocument.h" #include "textdocument.h"
#include "texteditor.h" #include "texteditor.h"
#include "texteditoractionhandler.h"
#include "texteditorsettings.h" #include "texteditorsettings.h"
#include "texteditortr.h"
#include <coreplugin/actionmanager/actioncontainer.h> #include <coreplugin/actionmanager/actioncontainer.h>
#include <coreplugin/actionmanager/actionmanager.h> #include <coreplugin/actionmanager/actionmanager.h>
@@ -24,31 +26,26 @@
#include <coreplugin/externaltoolmanager.h> #include <coreplugin/externaltoolmanager.h>
#include <coreplugin/foldernavigationwidget.h> #include <coreplugin/foldernavigationwidget.h>
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <extensionsystem/pluginmanager.h>
#include <texteditor/icodestylepreferences.h> #include <extensionsystem/pluginmanager.h>
#include <texteditor/tabsettings.h>
#include <utils/fancylineedit.h> #include <utils/fancylineedit.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <utils/macroexpander.h> #include <utils/macroexpander.h>
#include <QAction>
#include <QDir>
using namespace Core; using namespace Core;
using namespace Utils; using namespace Utils;
namespace TextEditor { namespace TextEditor {
namespace Internal { namespace Internal {
static const char kCurrentDocumentSelection[] = "CurrentDocument:Selection"; const char kCurrentDocumentSelection[] = "CurrentDocument:Selection";
static const char kCurrentDocumentRow[] = "CurrentDocument:Row"; const char kCurrentDocumentRow[] = "CurrentDocument:Row";
static const char kCurrentDocumentColumn[] = "CurrentDocument:Column"; const char kCurrentDocumentColumn[] = "CurrentDocument:Column";
static const char kCurrentDocumentRowCount[] = "CurrentDocument:RowCount"; const char kCurrentDocumentRowCount[] = "CurrentDocument:RowCount";
static const char kCurrentDocumentColumnCount[] = "CurrentDocument:ColumnCount"; const char kCurrentDocumentColumnCount[] = "CurrentDocument:ColumnCount";
static const char kCurrentDocumentFontSize[] = "CurrentDocument:FontSize"; const char kCurrentDocumentFontSize[] = "CurrentDocument:FontSize";
static const char kCurrentDocumentWordUnderCursor[] = "CurrentDocument:WordUnderCursor"; const char kCurrentDocumentWordUnderCursor[] = "CurrentDocument:WordUnderCursor";
class TextEditorPluginPrivate : public QObject class TextEditorPluginPrivate : public QObject
{ {
@@ -101,9 +98,9 @@ bool TextEditorPlugin::initialize(const QStringList &arguments, QString *errorMe
Context context(TextEditor::Constants::C_TEXTEDITOR); Context context(TextEditor::Constants::C_TEXTEDITOR);
// Add shortcut for invoking automatic completion // Add shortcut for invoking automatic completion
QAction *completionAction = new QAction(tr("Trigger Completion"), this); QAction *completionAction = new QAction(Tr::tr("Trigger Completion"), this);
Command *command = ActionManager::registerAction(completionAction, Constants::COMPLETE_THIS, context); Command *command = ActionManager::registerAction(completionAction, Constants::COMPLETE_THIS, context);
command->setDefaultKeySequence(QKeySequence(useMacShortcuts ? tr("Meta+Space") : tr("Ctrl+Space"))); command->setDefaultKeySequence(QKeySequence(useMacShortcuts ? Tr::tr("Meta+Space") : Tr::tr("Ctrl+Space")));
connect(completionAction, &QAction::triggered, this, [] { connect(completionAction, &QAction::triggered, this, [] {
if (BaseTextEditor *editor = BaseTextEditor::currentTextEditor()) if (BaseTextEditor *editor = BaseTextEditor::currentTextEditor())
editor->editorWidget()->invokeAssist(Completion); editor->editorWidget()->invokeAssist(Completion);
@@ -114,25 +111,25 @@ bool TextEditorPlugin::initialize(const QStringList &arguments, QString *errorMe
Utils::FancyLineEdit::setCompletionShortcut(command->keySequence()); Utils::FancyLineEdit::setCompletionShortcut(command->keySequence());
// Add shortcut for invoking function hint completion // Add shortcut for invoking function hint completion
QAction *functionHintAction = new QAction(tr("Display Function Hint"), this); QAction *functionHintAction = new QAction(Tr::tr("Display Function Hint"), this);
command = ActionManager::registerAction(functionHintAction, Constants::FUNCTION_HINT, context); command = ActionManager::registerAction(functionHintAction, Constants::FUNCTION_HINT, context);
command->setDefaultKeySequence(QKeySequence(useMacShortcuts ? tr("Meta+Shift+D") command->setDefaultKeySequence(QKeySequence(useMacShortcuts ? Tr::tr("Meta+Shift+D")
: tr("Ctrl+Shift+D"))); : Tr::tr("Ctrl+Shift+D")));
connect(functionHintAction, &QAction::triggered, this, [] { connect(functionHintAction, &QAction::triggered, this, [] {
if (BaseTextEditor *editor = BaseTextEditor::currentTextEditor()) if (BaseTextEditor *editor = BaseTextEditor::currentTextEditor())
editor->editorWidget()->invokeAssist(FunctionHint); editor->editorWidget()->invokeAssist(FunctionHint);
}); });
// Add shortcut for invoking quick fix options // Add shortcut for invoking quick fix options
QAction *quickFixAction = new QAction(tr("Trigger Refactoring Action"), this); QAction *quickFixAction = new QAction(Tr::tr("Trigger Refactoring Action"), this);
Command *quickFixCommand = ActionManager::registerAction(quickFixAction, Constants::QUICKFIX_THIS, context); Command *quickFixCommand = ActionManager::registerAction(quickFixAction, Constants::QUICKFIX_THIS, context);
quickFixCommand->setDefaultKeySequence(QKeySequence(tr("Alt+Return"))); quickFixCommand->setDefaultKeySequence(QKeySequence(Tr::tr("Alt+Return")));
connect(quickFixAction, &QAction::triggered, this, [] { connect(quickFixAction, &QAction::triggered, this, [] {
if (BaseTextEditor *editor = BaseTextEditor::currentTextEditor()) if (BaseTextEditor *editor = BaseTextEditor::currentTextEditor())
editor->editorWidget()->invokeAssist(QuickFix); editor->editorWidget()->invokeAssist(QuickFix);
}); });
QAction *showContextMenuAction = new QAction(tr("Show Context Menu"), this); QAction *showContextMenuAction = new QAction(Tr::tr("Show Context Menu"), this);
ActionManager::registerAction(showContextMenuAction, ActionManager::registerAction(showContextMenuAction,
Constants::SHOWCONTEXTMENU, Constants::SHOWCONTEXTMENU,
context); context);
@@ -143,7 +140,7 @@ bool TextEditorPlugin::initialize(const QStringList &arguments, QString *errorMe
// Add text snippet provider. // Add text snippet provider.
SnippetProvider::registerGroup(Constants::TEXT_SNIPPET_GROUP_ID, SnippetProvider::registerGroup(Constants::TEXT_SNIPPET_GROUP_ID,
tr("Text", "SnippetProvider")); Tr::tr("Text", "SnippetProvider"));
d->createStandardContextMenu(); d->createStandardContextMenu();
@@ -184,7 +181,7 @@ void TextEditorPlugin::extensionsInitialized()
Utils::MacroExpander *expander = Utils::globalMacroExpander(); Utils::MacroExpander *expander = Utils::globalMacroExpander();
expander->registerVariable(kCurrentDocumentSelection, expander->registerVariable(kCurrentDocumentSelection,
tr("Selected text within the current document."), Tr::tr("Selected text within the current document."),
[]() -> QString { []() -> QString {
QString value; QString value;
if (BaseTextEditor *editor = BaseTextEditor::currentTextEditor()) { if (BaseTextEditor *editor = BaseTextEditor::currentTextEditor()) {
@@ -195,42 +192,42 @@ void TextEditorPlugin::extensionsInitialized()
}); });
expander->registerIntVariable(kCurrentDocumentRow, expander->registerIntVariable(kCurrentDocumentRow,
tr("Line number of the text cursor position in current document (starts with 1)."), Tr::tr("Line number of the text cursor position in current document (starts with 1)."),
[]() -> int { []() -> int {
BaseTextEditor *editor = BaseTextEditor::currentTextEditor(); BaseTextEditor *editor = BaseTextEditor::currentTextEditor();
return editor ? editor->currentLine() : 0; return editor ? editor->currentLine() : 0;
}); });
expander->registerIntVariable(kCurrentDocumentColumn, expander->registerIntVariable(kCurrentDocumentColumn,
tr("Column number of the text cursor position in current document (starts with 0)."), Tr::tr("Column number of the text cursor position in current document (starts with 0)."),
[]() -> int { []() -> int {
BaseTextEditor *editor = BaseTextEditor::currentTextEditor(); BaseTextEditor *editor = BaseTextEditor::currentTextEditor();
return editor ? editor->currentColumn() : 0; return editor ? editor->currentColumn() : 0;
}); });
expander->registerIntVariable(kCurrentDocumentRowCount, expander->registerIntVariable(kCurrentDocumentRowCount,
tr("Number of lines visible in current document."), Tr::tr("Number of lines visible in current document."),
[]() -> int { []() -> int {
BaseTextEditor *editor = BaseTextEditor::currentTextEditor(); BaseTextEditor *editor = BaseTextEditor::currentTextEditor();
return editor ? editor->rowCount() : 0; return editor ? editor->rowCount() : 0;
}); });
expander->registerIntVariable(kCurrentDocumentColumnCount, expander->registerIntVariable(kCurrentDocumentColumnCount,
tr("Number of columns visible in current document."), Tr::tr("Number of columns visible in current document."),
[]() -> int { []() -> int {
BaseTextEditor *editor = BaseTextEditor::currentTextEditor(); BaseTextEditor *editor = BaseTextEditor::currentTextEditor();
return editor ? editor->columnCount() : 0; return editor ? editor->columnCount() : 0;
}); });
expander->registerIntVariable(kCurrentDocumentFontSize, expander->registerIntVariable(kCurrentDocumentFontSize,
tr("Current document's font size in points."), Tr::tr("Current document's font size in points."),
[]() -> int { []() -> int {
BaseTextEditor *editor = BaseTextEditor::currentTextEditor(); BaseTextEditor *editor = BaseTextEditor::currentTextEditor();
return editor ? editor->widget()->font().pointSize() : 0; return editor ? editor->widget()->font().pointSize() : 0;
}); });
expander->registerVariable(kCurrentDocumentWordUnderCursor, expander->registerVariable(kCurrentDocumentWordUnderCursor,
tr("Word under the current document's text cursor."), [] { Tr::tr("Word under the current document's text cursor."), [] {
BaseTextEditor *editor = BaseTextEditor::currentTextEditor(); BaseTextEditor *editor = BaseTextEditor::currentTextEditor();
if (!editor) if (!editor)
return QString(); return QString();

View File

@@ -17,15 +17,15 @@
#include "icodestylepreferencesfactory.h" #include "icodestylepreferencesfactory.h"
#include "marginsettings.h" #include "marginsettings.h"
#include "storagesettings.h" #include "storagesettings.h"
#include "tabsettings.h" #include "texteditortr.h"
#include "texteditor.h"
#include "typingsettings.h" #include "typingsettings.h"
#include "snippets/snippetssettingspage.h"
#include <texteditor/snippets/snippetssettingspage.h>
#include <extensionsystem/pluginmanager.h>
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <coreplugin/messagemanager.h> #include <coreplugin/messagemanager.h>
#include <extensionsystem/pluginmanager.h>
#include <utils/fancylineedit.h> #include <utils/fancylineedit.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
@@ -39,8 +39,6 @@ namespace Internal {
class TextEditorSettingsPrivate class TextEditorSettingsPrivate
{ {
Q_DECLARE_TR_FUNCTIONS(TextEditor::TextEditorSettings)
public: public:
FontSettings m_fontSettings; FontSettings m_fontSettings;
FontSettingsPage m_fontSettingsPage{&m_fontSettings, initialFormats()}; FontSettingsPage m_fontSettingsPage{&m_fontSettings, initialFormats()};
@@ -65,55 +63,55 @@ FormatDescriptions TextEditorSettingsPrivate::initialFormats()
// Add font preference page // Add font preference page
FormatDescriptions formatDescr; FormatDescriptions formatDescr;
formatDescr.reserve(C_LAST_STYLE_SENTINEL); formatDescr.reserve(C_LAST_STYLE_SENTINEL);
formatDescr.emplace_back(C_TEXT, tr("Text"), formatDescr.emplace_back(C_TEXT, Tr::tr("Text"),
tr("Generic text and punctuation tokens.\n" Tr::tr("Generic text and punctuation tokens.\n"
"Applied to text that matched no other rule."), "Applied to text that matched no other rule."),
Format{Qt::black, Qt::white}); Format{Qt::black, Qt::white});
// Special categories // Special categories
const QPalette p = QApplication::palette(); const QPalette p = QApplication::palette();
formatDescr.emplace_back(C_LINK, tr("Link"), formatDescr.emplace_back(C_LINK, Tr::tr("Link"),
tr("Links that follow symbol under cursor."), Qt::blue); Tr::tr("Links that follow symbol under cursor."), Qt::blue);
formatDescr.emplace_back(C_SELECTION, tr("Selection"), tr("Selected text."), formatDescr.emplace_back(C_SELECTION, Tr::tr("Selection"), Tr::tr("Selected text."),
p.color(QPalette::HighlightedText)); p.color(QPalette::HighlightedText));
formatDescr.emplace_back(C_LINE_NUMBER, tr("Line Number"), formatDescr.emplace_back(C_LINE_NUMBER, Tr::tr("Line Number"),
tr("Line numbers located on the left side of the editor."), Tr::tr("Line numbers located on the left side of the editor."),
FormatDescription::ShowAllAbsoluteControlsExceptUnderline); FormatDescription::ShowAllAbsoluteControlsExceptUnderline);
formatDescr.emplace_back(C_SEARCH_RESULT, tr("Search Result"), formatDescr.emplace_back(C_SEARCH_RESULT, Tr::tr("Search Result"),
tr("Highlighted search results inside the editor."), Tr::tr("Highlighted search results inside the editor."),
FormatDescription::ShowBackgroundControl); FormatDescription::ShowBackgroundControl);
formatDescr.emplace_back(C_SEARCH_RESULT_ALT1, tr("Search Result (Alternative 1)"), formatDescr.emplace_back(C_SEARCH_RESULT_ALT1, Tr::tr("Search Result (Alternative 1)"),
tr("Highlighted search results inside the editor.\n" Tr::tr("Highlighted search results inside the editor.\n"
"Used to mark read accesses to C++ symbols."), "Used to mark read accesses to C++ symbols."),
FormatDescription::ShowBackgroundControl); FormatDescription::ShowBackgroundControl);
formatDescr.emplace_back(C_SEARCH_RESULT_ALT2, tr("Search Result (Alternative 2)"), formatDescr.emplace_back(C_SEARCH_RESULT_ALT2, Tr::tr("Search Result (Alternative 2)"),
tr("Highlighted search results inside the editor.\n" Tr::tr("Highlighted search results inside the editor.\n"
"Used to mark write accesses to C++ symbols."), "Used to mark write accesses to C++ symbols."),
FormatDescription::ShowBackgroundControl); FormatDescription::ShowBackgroundControl);
formatDescr.emplace_back(C_SEARCH_RESULT_CONTAINING_FUNCTION, formatDescr.emplace_back(C_SEARCH_RESULT_CONTAINING_FUNCTION,
tr("Search Result Containing function"), Tr::tr("Search Result Containing function"),
tr("Highlighted search results inside the editor.\n" Tr::tr("Highlighted search results inside the editor.\n"
"Used to mark containing function of the symbol usage."), "Used to mark containing function of the symbol usage."),
FormatDescription::ShowForeAndBackgroundControl); FormatDescription::ShowForeAndBackgroundControl);
formatDescr.emplace_back(C_SEARCH_SCOPE, tr("Search Scope"), formatDescr.emplace_back(C_SEARCH_SCOPE, Tr::tr("Search Scope"),
tr("Section where the pattern is searched in."), Tr::tr("Section where the pattern is searched in."),
FormatDescription::ShowBackgroundControl); FormatDescription::ShowBackgroundControl);
formatDescr.emplace_back(C_PARENTHESES, tr("Parentheses"), formatDescr.emplace_back(C_PARENTHESES, Tr::tr("Parentheses"),
tr("Displayed when matching parentheses, square brackets " Tr::tr("Displayed when matching parentheses, square brackets "
"or curly brackets are found.")); "or curly brackets are found."));
formatDescr.emplace_back(C_PARENTHESES_MISMATCH, tr("Mismatched Parentheses"), formatDescr.emplace_back(C_PARENTHESES_MISMATCH, Tr::tr("Mismatched Parentheses"),
tr("Displayed when mismatched parentheses, " Tr::tr("Displayed when mismatched parentheses, "
"square brackets, or curly brackets are found.")); "square brackets, or curly brackets are found."));
formatDescr.emplace_back(C_AUTOCOMPLETE, tr("Auto Complete"), formatDescr.emplace_back(C_AUTOCOMPLETE, Tr::tr("Auto Complete"),
tr("Displayed when a character is automatically inserted " Tr::tr("Displayed when a character is automatically inserted "
"like brackets or quotes.")); "like brackets or quotes."));
formatDescr.emplace_back(C_CURRENT_LINE, tr("Current Line"), formatDescr.emplace_back(C_CURRENT_LINE, Tr::tr("Current Line"),
tr("Line where the cursor is placed in."), Tr::tr("Line where the cursor is placed in."),
FormatDescription::ShowBackgroundControl); FormatDescription::ShowBackgroundControl);
FormatDescription currentLineNumber(C_CURRENT_LINE_NUMBER, FormatDescription currentLineNumber(C_CURRENT_LINE_NUMBER,
tr("Current Line Number"), Tr::tr("Current Line Number"),
tr("Line number located on the left side of the " Tr::tr("Line number located on the left side of the "
"editor where the cursor is placed in."), "editor where the cursor is placed in."),
Qt::darkGray, Qt::darkGray,
FormatDescription::ShowAllAbsoluteControlsExceptUnderline); FormatDescription::ShowAllAbsoluteControlsExceptUnderline);
@@ -121,287 +119,287 @@ FormatDescriptions TextEditorSettingsPrivate::initialFormats()
formatDescr.push_back(std::move(currentLineNumber)); formatDescr.push_back(std::move(currentLineNumber));
formatDescr.emplace_back(C_OCCURRENCES, tr("Occurrences"), formatDescr.emplace_back(C_OCCURRENCES, Tr::tr("Occurrences"),
tr("Occurrences of the symbol under the cursor.\n" Tr::tr("Occurrences of the symbol under the cursor.\n"
"(Only the background will be applied.)"), "(Only the background will be applied.)"),
FormatDescription::ShowBackgroundControl); FormatDescription::ShowBackgroundControl);
formatDescr.emplace_back(C_OCCURRENCES_UNUSED, formatDescr.emplace_back(C_OCCURRENCES_UNUSED,
tr("Unused Occurrence"), Tr::tr("Unused Occurrence"),
tr("Occurrences of unused variables."), Tr::tr("Occurrences of unused variables."),
Qt::darkYellow, Qt::darkYellow,
QTextCharFormat::SingleUnderline); QTextCharFormat::SingleUnderline);
formatDescr.emplace_back(C_OCCURRENCES_RENAME, tr("Renaming Occurrence"), formatDescr.emplace_back(C_OCCURRENCES_RENAME, Tr::tr("Renaming Occurrence"),
tr("Occurrences of a symbol that will be renamed."), Tr::tr("Occurrences of a symbol that will be renamed."),
FormatDescription::ShowBackgroundControl); FormatDescription::ShowBackgroundControl);
// Standard categories // Standard categories
formatDescr.emplace_back(C_NUMBER, tr("Number"), tr("Number literal."), formatDescr.emplace_back(C_NUMBER, Tr::tr("Number"), Tr::tr("Number literal."),
Qt::darkBlue); Qt::darkBlue);
formatDescr.emplace_back(C_STRING, tr("String"), formatDescr.emplace_back(C_STRING, Tr::tr("String"),
tr("Character and string literals."), Qt::darkGreen); Tr::tr("Character and string literals."), Qt::darkGreen);
formatDescr.emplace_back(C_PRIMITIVE_TYPE, tr("Primitive Type"), formatDescr.emplace_back(C_PRIMITIVE_TYPE, Tr::tr("Primitive Type"),
tr("Name of a primitive data type."), Qt::darkYellow); Tr::tr("Name of a primitive data type."), Qt::darkYellow);
formatDescr.emplace_back(C_TYPE, tr("Type"), tr("Name of a type."), formatDescr.emplace_back(C_TYPE, Tr::tr("Type"), Tr::tr("Name of a type."),
Qt::darkMagenta); Qt::darkMagenta);
formatDescr.emplace_back(C_NAMESPACE, tr("Namespace"), tr("Name of a namespace."), formatDescr.emplace_back(C_NAMESPACE, Tr::tr("Namespace"), Tr::tr("Name of a namespace."),
Qt::darkGreen); Qt::darkGreen);
formatDescr.emplace_back(C_LOCAL, tr("Local"), formatDescr.emplace_back(C_LOCAL, Tr::tr("Local"),
tr("Local variables."), QColor(9, 46, 100)); Tr::tr("Local variables."), QColor(9, 46, 100));
formatDescr.emplace_back(C_PARAMETER, tr("Parameter"), formatDescr.emplace_back(C_PARAMETER, Tr::tr("Parameter"),
tr("Function or method parameters."), QColor(9, 46, 100)); Tr::tr("Function or method parameters."), QColor(9, 46, 100));
formatDescr.emplace_back(C_FIELD, tr("Field"), formatDescr.emplace_back(C_FIELD, Tr::tr("Field"),
tr("Class' data members."), Qt::darkRed); Tr::tr("Class' data members."), Qt::darkRed);
formatDescr.emplace_back(C_GLOBAL, tr("Global"), formatDescr.emplace_back(C_GLOBAL, Tr::tr("Global"),
tr("Global variables."), QColor(206, 92, 0)); Tr::tr("Global variables."), QColor(206, 92, 0));
formatDescr.emplace_back(C_ENUMERATION, tr("Enumeration"), formatDescr.emplace_back(C_ENUMERATION, Tr::tr("Enumeration"),
tr("Applied to enumeration items."), Qt::darkMagenta); Tr::tr("Applied to enumeration items."), Qt::darkMagenta);
Format functionFormat; Format functionFormat;
functionFormat.setForeground(QColor(0, 103, 124)); functionFormat.setForeground(QColor(0, 103, 124));
formatDescr.emplace_back(C_FUNCTION, tr("Function"), tr("Name of a function."), formatDescr.emplace_back(C_FUNCTION, Tr::tr("Function"), Tr::tr("Name of a function."),
functionFormat); functionFormat);
Format declarationFormat; Format declarationFormat;
declarationFormat.setBold(true); declarationFormat.setBold(true);
formatDescr.emplace_back(C_DECLARATION, formatDescr.emplace_back(C_DECLARATION,
tr("Declaration"), Tr::tr("Declaration"),
tr("Style adjustments to declarations."), Tr::tr("Style adjustments to declarations."),
declarationFormat, declarationFormat,
FormatDescription::ShowAllControls); FormatDescription::ShowAllControls);
formatDescr.emplace_back(C_FUNCTION_DEFINITION, formatDescr.emplace_back(C_FUNCTION_DEFINITION,
tr("Function Definition"), Tr::tr("Function Definition"),
tr("Name of function at its definition."), Tr::tr("Name of function at its definition."),
FormatDescription::ShowAllControls); FormatDescription::ShowAllControls);
Format virtualFunctionFormat(functionFormat); Format virtualFunctionFormat(functionFormat);
virtualFunctionFormat.setItalic(true); virtualFunctionFormat.setItalic(true);
formatDescr.emplace_back(C_VIRTUAL_METHOD, tr("Virtual Function"), formatDescr.emplace_back(C_VIRTUAL_METHOD, Tr::tr("Virtual Function"),
tr("Name of function declared as virtual."), Tr::tr("Name of function declared as virtual."),
virtualFunctionFormat); virtualFunctionFormat);
formatDescr.emplace_back(C_BINDING, tr("QML Binding"), formatDescr.emplace_back(C_BINDING, Tr::tr("QML Binding"),
tr("QML item property, that allows a " Tr::tr("QML item property, that allows a "
"binding to another property."), "binding to another property."),
Qt::darkRed); Qt::darkRed);
Format qmlLocalNameFormat; Format qmlLocalNameFormat;
qmlLocalNameFormat.setItalic(true); qmlLocalNameFormat.setItalic(true);
formatDescr.emplace_back(C_QML_LOCAL_ID, tr("QML Local Id"), formatDescr.emplace_back(C_QML_LOCAL_ID, Tr::tr("QML Local Id"),
tr("QML item id within a QML file."), qmlLocalNameFormat); Tr::tr("QML item id within a QML file."), qmlLocalNameFormat);
formatDescr.emplace_back(C_QML_ROOT_OBJECT_PROPERTY, formatDescr.emplace_back(C_QML_ROOT_OBJECT_PROPERTY,
tr("QML Root Object Property"), Tr::tr("QML Root Object Property"),
tr("QML property of a parent item."), qmlLocalNameFormat); Tr::tr("QML property of a parent item."), qmlLocalNameFormat);
formatDescr.emplace_back(C_QML_SCOPE_OBJECT_PROPERTY, formatDescr.emplace_back(C_QML_SCOPE_OBJECT_PROPERTY,
tr("QML Scope Object Property"), Tr::tr("QML Scope Object Property"),
tr("Property of the same QML item."), qmlLocalNameFormat); Tr::tr("Property of the same QML item."), qmlLocalNameFormat);
formatDescr.emplace_back(C_QML_STATE_NAME, tr("QML State Name"), formatDescr.emplace_back(C_QML_STATE_NAME, Tr::tr("QML State Name"),
tr("Name of a QML state."), qmlLocalNameFormat); Tr::tr("Name of a QML state."), qmlLocalNameFormat);
formatDescr.emplace_back(C_QML_TYPE_ID, tr("QML Type Name"), formatDescr.emplace_back(C_QML_TYPE_ID, Tr::tr("QML Type Name"),
tr("Name of a QML type."), Qt::darkMagenta); Tr::tr("Name of a QML type."), Qt::darkMagenta);
Format qmlExternalNameFormat = qmlLocalNameFormat; Format qmlExternalNameFormat = qmlLocalNameFormat;
qmlExternalNameFormat.setForeground(Qt::darkBlue); qmlExternalNameFormat.setForeground(Qt::darkBlue);
formatDescr.emplace_back(C_QML_EXTERNAL_ID, tr("QML External Id"), formatDescr.emplace_back(C_QML_EXTERNAL_ID, Tr::tr("QML External Id"),
tr("QML id defined in another QML file."), Tr::tr("QML id defined in another QML file."),
qmlExternalNameFormat); qmlExternalNameFormat);
formatDescr.emplace_back(C_QML_EXTERNAL_OBJECT_PROPERTY, formatDescr.emplace_back(C_QML_EXTERNAL_OBJECT_PROPERTY,
tr("QML External Object Property"), Tr::tr("QML External Object Property"),
tr("QML property defined in another QML file."), Tr::tr("QML property defined in another QML file."),
qmlExternalNameFormat); qmlExternalNameFormat);
Format jsLocalFormat; Format jsLocalFormat;
jsLocalFormat.setForeground(QColor(41, 133, 199)); // very light blue jsLocalFormat.setForeground(QColor(41, 133, 199)); // very light blue
jsLocalFormat.setItalic(true); jsLocalFormat.setItalic(true);
formatDescr.emplace_back(C_JS_SCOPE_VAR, tr("JavaScript Scope Var"), formatDescr.emplace_back(C_JS_SCOPE_VAR, Tr::tr("JavaScript Scope Var"),
tr("Variables defined inside the JavaScript file."), Tr::tr("Variables defined inside the JavaScript file."),
jsLocalFormat); jsLocalFormat);
Format jsGlobalFormat; Format jsGlobalFormat;
jsGlobalFormat.setForeground(QColor(0, 85, 175)); // light blue jsGlobalFormat.setForeground(QColor(0, 85, 175)); // light blue
jsGlobalFormat.setItalic(true); jsGlobalFormat.setItalic(true);
formatDescr.emplace_back(C_JS_IMPORT_VAR, tr("JavaScript Import"), formatDescr.emplace_back(C_JS_IMPORT_VAR, Tr::tr("JavaScript Import"),
tr("Name of a JavaScript import inside a QML file."), Tr::tr("Name of a JavaScript import inside a QML file."),
jsGlobalFormat); jsGlobalFormat);
formatDescr.emplace_back(C_JS_GLOBAL_VAR, tr("JavaScript Global Variable"), formatDescr.emplace_back(C_JS_GLOBAL_VAR, Tr::tr("JavaScript Global Variable"),
tr("Variables defined outside the script."), Tr::tr("Variables defined outside the script."),
jsGlobalFormat); jsGlobalFormat);
formatDescr.emplace_back(C_KEYWORD, tr("Keyword"), formatDescr.emplace_back(C_KEYWORD, Tr::tr("Keyword"),
tr("Reserved keywords of the programming language except " Tr::tr("Reserved keywords of the programming language except "
"keywords denoting primitive types."), Qt::darkYellow); "keywords denoting primitive types."), Qt::darkYellow);
formatDescr.emplace_back(C_PUNCTUATION, tr("Punctuation"), formatDescr.emplace_back(C_PUNCTUATION, Tr::tr("Punctuation"),
tr("Punctuation excluding operators.")); Tr::tr("Punctuation excluding operators."));
formatDescr.emplace_back(C_OPERATOR, tr("Operator"), formatDescr.emplace_back(C_OPERATOR, Tr::tr("Operator"),
tr("Non user-defined language operators.\n" Tr::tr("Non user-defined language operators.\n"
"To style user-defined operators, use Overloaded Operator."), "To style user-defined operators, use Overloaded Operator."),
FormatDescription::ShowAllControls); FormatDescription::ShowAllControls);
formatDescr.emplace_back(C_OVERLOADED_OPERATOR, formatDescr.emplace_back(C_OVERLOADED_OPERATOR,
tr("Overloaded Operators"), Tr::tr("Overloaded Operators"),
tr("Calls and declarations of overloaded (user-defined) operators."), Tr::tr("Calls and declarations of overloaded (user-defined) operators."),
functionFormat, functionFormat,
FormatDescription::ShowAllControls); FormatDescription::ShowAllControls);
formatDescr.emplace_back(C_PREPROCESSOR, tr("Preprocessor"), formatDescr.emplace_back(C_PREPROCESSOR, Tr::tr("Preprocessor"),
tr("Preprocessor directives."), Qt::darkBlue); Tr::tr("Preprocessor directives."), Qt::darkBlue);
formatDescr.emplace_back(C_MACRO, tr("Macro"), formatDescr.emplace_back(C_MACRO, Tr::tr("Macro"),
tr("Macros."), functionFormat); Tr::tr("Macros."), functionFormat);
formatDescr.emplace_back(C_LABEL, tr("Label"), tr("Labels for goto statements."), formatDescr.emplace_back(C_LABEL, Tr::tr("Label"), Tr::tr("Labels for goto statements."),
Qt::darkRed); Qt::darkRed);
formatDescr.emplace_back(C_COMMENT, tr("Comment"), formatDescr.emplace_back(C_COMMENT, Tr::tr("Comment"),
tr("All style of comments except Doxygen comments."), Tr::tr("All style of comments except Doxygen comments."),
Qt::darkGreen); Qt::darkGreen);
formatDescr.emplace_back(C_DOXYGEN_COMMENT, tr("Doxygen Comment"), formatDescr.emplace_back(C_DOXYGEN_COMMENT, Tr::tr("Doxygen Comment"),
tr("Doxygen comments."), Qt::darkBlue); Tr::tr("Doxygen comments."), Qt::darkBlue);
formatDescr.emplace_back(C_DOXYGEN_TAG, tr("Doxygen Tag"), tr("Doxygen tags."), formatDescr.emplace_back(C_DOXYGEN_TAG, Tr::tr("Doxygen Tag"), Tr::tr("Doxygen tags."),
Qt::blue); Qt::blue);
formatDescr.emplace_back(C_VISUAL_WHITESPACE, tr("Visual Whitespace"), formatDescr.emplace_back(C_VISUAL_WHITESPACE, Tr::tr("Visual Whitespace"),
tr("Whitespace.\nWill not be applied to whitespace " Tr::tr("Whitespace.\nWill not be applied to whitespace "
"in comments and strings."), Qt::lightGray); "in comments and strings."), Qt::lightGray);
formatDescr.emplace_back(C_DISABLED_CODE, tr("Disabled Code"), formatDescr.emplace_back(C_DISABLED_CODE, Tr::tr("Disabled Code"),
tr("Code disabled by preprocessor directives.")); Tr::tr("Code disabled by preprocessor directives."));
// Diff categories // Diff categories
formatDescr.emplace_back(C_ADDED_LINE, tr("Added Line"), formatDescr.emplace_back(C_ADDED_LINE, Tr::tr("Added Line"),
tr("Applied to added lines in differences (in diff editor)."), Tr::tr("Applied to added lines in differences (in diff editor)."),
QColor(0, 170, 0)); QColor(0, 170, 0));
formatDescr.emplace_back(C_REMOVED_LINE, tr("Removed Line"), formatDescr.emplace_back(C_REMOVED_LINE, Tr::tr("Removed Line"),
tr("Applied to removed lines in differences (in diff editor)."), Tr::tr("Applied to removed lines in differences (in diff editor)."),
Qt::red); Qt::red);
formatDescr.emplace_back(C_DIFF_FILE, tr("Diff File"), formatDescr.emplace_back(C_DIFF_FILE, Tr::tr("Diff File"),
tr("Compared files (in diff editor)."), Qt::darkBlue); Tr::tr("Compared files (in diff editor)."), Qt::darkBlue);
formatDescr.emplace_back(C_DIFF_LOCATION, tr("Diff Location"), formatDescr.emplace_back(C_DIFF_LOCATION, Tr::tr("Diff Location"),
tr("Location in the files where the difference is " Tr::tr("Location in the files where the difference is "
"(in diff editor)."), Qt::blue); "(in diff editor)."), Qt::blue);
// New diff categories // New diff categories
formatDescr.emplace_back(C_DIFF_FILE_LINE, tr("Diff File Line"), formatDescr.emplace_back(C_DIFF_FILE_LINE, Tr::tr("Diff File Line"),
tr("Applied to lines with file information " Tr::tr("Applied to lines with file information "
"in differences (in side-by-side diff editor)."), "in differences (in side-by-side diff editor)."),
Format(QColor(), QColor(255, 255, 0))); Format(QColor(), QColor(255, 255, 0)));
formatDescr.emplace_back(C_DIFF_CONTEXT_LINE, tr("Diff Context Line"), formatDescr.emplace_back(C_DIFF_CONTEXT_LINE, Tr::tr("Diff Context Line"),
tr("Applied to lines describing hidden context " Tr::tr("Applied to lines describing hidden context "
"in differences (in side-by-side diff editor)."), "in differences (in side-by-side diff editor)."),
Format(QColor(), QColor(175, 215, 231))); Format(QColor(), QColor(175, 215, 231)));
formatDescr.emplace_back(C_DIFF_SOURCE_LINE, tr("Diff Source Line"), formatDescr.emplace_back(C_DIFF_SOURCE_LINE, Tr::tr("Diff Source Line"),
tr("Applied to source lines with changes " Tr::tr("Applied to source lines with changes "
"in differences (in side-by-side diff editor)."), "in differences (in side-by-side diff editor)."),
Format(QColor(), QColor(255, 223, 223))); Format(QColor(), QColor(255, 223, 223)));
formatDescr.emplace_back(C_DIFF_SOURCE_CHAR, tr("Diff Source Character"), formatDescr.emplace_back(C_DIFF_SOURCE_CHAR, Tr::tr("Diff Source Character"),
tr("Applied to removed characters " Tr::tr("Applied to removed characters "
"in differences (in side-by-side diff editor)."), "in differences (in side-by-side diff editor)."),
Format(QColor(), QColor(255, 175, 175))); Format(QColor(), QColor(255, 175, 175)));
formatDescr.emplace_back(C_DIFF_DEST_LINE, tr("Diff Destination Line"), formatDescr.emplace_back(C_DIFF_DEST_LINE, Tr::tr("Diff Destination Line"),
tr("Applied to destination lines with changes " Tr::tr("Applied to destination lines with changes "
"in differences (in side-by-side diff editor)."), "in differences (in side-by-side diff editor)."),
Format(QColor(), QColor(223, 255, 223))); Format(QColor(), QColor(223, 255, 223)));
formatDescr.emplace_back(C_DIFF_DEST_CHAR, tr("Diff Destination Character"), formatDescr.emplace_back(C_DIFF_DEST_CHAR, Tr::tr("Diff Destination Character"),
tr("Applied to added characters " Tr::tr("Applied to added characters "
"in differences (in side-by-side diff editor)."), "in differences (in side-by-side diff editor)."),
Format(QColor(), QColor(175, 255, 175))); Format(QColor(), QColor(175, 255, 175)));
formatDescr.emplace_back(C_LOG_CHANGE_LINE, tr("Log Change Line"), formatDescr.emplace_back(C_LOG_CHANGE_LINE, Tr::tr("Log Change Line"),
tr("Applied to lines describing changes in VCS log."), Tr::tr("Applied to lines describing changes in VCS log."),
Format(QColor(192, 0, 0), QColor())); Format(QColor(192, 0, 0), QColor()));
formatDescr.emplace_back(C_LOG_AUTHOR_NAME, tr("Log Author Name"), formatDescr.emplace_back(C_LOG_AUTHOR_NAME, Tr::tr("Log Author Name"),
tr("Applied to author names in VCS log."), Tr::tr("Applied to author names in VCS log."),
Format(QColor(0x007af4), QColor())); Format(QColor(0x007af4), QColor()));
formatDescr.emplace_back(C_LOG_COMMIT_DATE, tr("Log Commit Date"), formatDescr.emplace_back(C_LOG_COMMIT_DATE, Tr::tr("Log Commit Date"),
tr("Applied to commit dates in VCS log."), Tr::tr("Applied to commit dates in VCS log."),
Format(QColor(0x006600), QColor())); Format(QColor(0x006600), QColor()));
formatDescr.emplace_back(C_LOG_COMMIT_HASH, tr("Log Commit Hash"), formatDescr.emplace_back(C_LOG_COMMIT_HASH, Tr::tr("Log Commit Hash"),
tr("Applied to commit hashes in VCS log."), Tr::tr("Applied to commit hashes in VCS log."),
Format(QColor(0xff0000), QColor())); Format(QColor(0xff0000), QColor()));
formatDescr.emplace_back(C_LOG_DECORATION, tr("Log Decoration"), formatDescr.emplace_back(C_LOG_DECORATION, Tr::tr("Log Decoration"),
tr("Applied to commit decorations in VCS log."), Tr::tr("Applied to commit decorations in VCS log."),
Format(QColor(0xff00ff), QColor())); Format(QColor(0xff00ff), QColor()));
formatDescr.emplace_back(C_LOG_COMMIT_SUBJECT, tr("Log Commit Subject"), formatDescr.emplace_back(C_LOG_COMMIT_SUBJECT, Tr::tr("Log Commit Subject"),
tr("Applied to commit subjects in VCS log."), Tr::tr("Applied to commit subjects in VCS log."),
Format{QColor{}, QColor{}}); Format{QColor{}, QColor{}});
// Mixin categories // Mixin categories
formatDescr.emplace_back(C_ERROR, formatDescr.emplace_back(C_ERROR,
tr("Error"), Tr::tr("Error"),
tr("Underline color of error diagnostics."), Tr::tr("Underline color of error diagnostics."),
QColor(255,0, 0), QColor(255,0, 0),
QTextCharFormat::SingleUnderline, QTextCharFormat::SingleUnderline,
FormatDescription::ShowAllControls); FormatDescription::ShowAllControls);
formatDescr.emplace_back(C_ERROR_CONTEXT, formatDescr.emplace_back(C_ERROR_CONTEXT,
tr("Error Context"), Tr::tr("Error Context"),
tr("Underline color of the contexts of error diagnostics."), Tr::tr("Underline color of the contexts of error diagnostics."),
QColor(255,0, 0), QColor(255,0, 0),
QTextCharFormat::DotLine, QTextCharFormat::DotLine,
FormatDescription::ShowAllControls); FormatDescription::ShowAllControls);
formatDescr.emplace_back(C_WARNING, formatDescr.emplace_back(C_WARNING,
tr("Warning"), Tr::tr("Warning"),
tr("Underline color of warning diagnostics."), Tr::tr("Underline color of warning diagnostics."),
QColor(255, 190, 0), QColor(255, 190, 0),
QTextCharFormat::SingleUnderline, QTextCharFormat::SingleUnderline,
FormatDescription::ShowAllControls); FormatDescription::ShowAllControls);
formatDescr.emplace_back(C_WARNING_CONTEXT, formatDescr.emplace_back(C_WARNING_CONTEXT,
tr("Warning Context"), Tr::tr("Warning Context"),
tr("Underline color of the contexts of warning diagnostics."), Tr::tr("Underline color of the contexts of warning diagnostics."),
QColor(255, 190, 0), QColor(255, 190, 0),
QTextCharFormat::DotLine, QTextCharFormat::DotLine,
FormatDescription::ShowAllControls); FormatDescription::ShowAllControls);
Format outputArgumentFormat; Format outputArgumentFormat;
outputArgumentFormat.setItalic(true); outputArgumentFormat.setItalic(true);
formatDescr.emplace_back(C_OUTPUT_ARGUMENT, formatDescr.emplace_back(C_OUTPUT_ARGUMENT,
tr("Output Argument"), Tr::tr("Output Argument"),
tr("Writable arguments of a function call."), Tr::tr("Writable arguments of a function call."),
outputArgumentFormat, outputArgumentFormat,
FormatDescription::ShowAllControls); FormatDescription::ShowAllControls);
formatDescr.emplace_back(C_STATIC_MEMBER, formatDescr.emplace_back(C_STATIC_MEMBER,
tr("Static Member"), Tr::tr("Static Member"),
tr("Names of static fields or member functions."), Tr::tr("Names of static fields or member functions."),
FormatDescription::ShowAllControls); FormatDescription::ShowAllControls);
const auto cocoControls = FormatDescription::ShowControls( const auto cocoControls = FormatDescription::ShowControls(
FormatDescription::ShowAllAbsoluteControls | FormatDescription::ShowRelativeControls); FormatDescription::ShowAllAbsoluteControls | FormatDescription::ShowRelativeControls);
formatDescr.emplace_back(C_COCO_CODE_ADDED, formatDescr.emplace_back(C_COCO_CODE_ADDED,
tr("Code Coverage Added Code"), Tr::tr("Code Coverage Added Code"),
tr("New code that was not checked for tests."), Tr::tr("New code that was not checked for tests."),
cocoControls); cocoControls);
formatDescr.emplace_back(C_COCO_PARTIALLY_COVERED, formatDescr.emplace_back(C_COCO_PARTIALLY_COVERED,
tr("Partially Covered Code"), Tr::tr("Partially Covered Code"),
tr("Partial branch/condition coverage."), Tr::tr("Partial branch/condition coverage."),
Qt::darkYellow, Qt::darkYellow,
cocoControls); cocoControls);
formatDescr.emplace_back(C_COCO_NOT_COVERED, formatDescr.emplace_back(C_COCO_NOT_COVERED,
tr("Uncovered Code"), Tr::tr("Uncovered Code"),
tr("Not covered at all."), Tr::tr("Not covered at all."),
Qt::red, Qt::red,
cocoControls); cocoControls);
formatDescr.emplace_back(C_COCO_FULLY_COVERED, formatDescr.emplace_back(C_COCO_FULLY_COVERED,
tr("Fully Covered Code"), Tr::tr("Fully Covered Code"),
tr("Fully covered code."), Tr::tr("Fully covered code."),
Qt::green, Qt::green,
cocoControls); cocoControls);
formatDescr.emplace_back(C_COCO_MANUALLY_VALIDATED, formatDescr.emplace_back(C_COCO_MANUALLY_VALIDATED,
tr("Manually Validated Code"), Tr::tr("Manually Validated Code"),
tr("User added validation."), Tr::tr("User added validation."),
Qt::blue, Qt::blue,
cocoControls); cocoControls);
formatDescr.emplace_back(C_COCO_DEAD_CODE, formatDescr.emplace_back(C_COCO_DEAD_CODE,
tr("Code Coverage Dead Code"), Tr::tr("Code Coverage Dead Code"),
tr("Unreachable code."), Tr::tr("Unreachable code."),
Qt::magenta, Qt::magenta,
cocoControls); cocoControls);
formatDescr.emplace_back(C_COCO_EXECUTION_COUNT_TOO_LOW, formatDescr.emplace_back(C_COCO_EXECUTION_COUNT_TOO_LOW,
tr("Code Coverage Execution Count Too Low"), Tr::tr("Code Coverage Execution Count Too Low"),
tr("Minimum count not reached."), Tr::tr("Minimum count not reached."),
Qt::red, Qt::red,
cocoControls); cocoControls);
formatDescr.emplace_back(C_COCO_NOT_COVERED_INFO, formatDescr.emplace_back(C_COCO_NOT_COVERED_INFO,
tr("Implicitly Not Covered Code"), Tr::tr("Implicitly Not Covered Code"),
tr("PLACEHOLDER"), Tr::tr("PLACEHOLDER"),
Qt::red, Qt::red,
cocoControls); cocoControls);
formatDescr.emplace_back(C_COCO_COVERED_INFO, formatDescr.emplace_back(C_COCO_COVERED_INFO,
tr("Implicitly Covered Code"), Tr::tr("Implicitly Covered Code"),
tr("PLACEHOLDER"), Tr::tr("PLACEHOLDER"),
Qt::green, Qt::green,
cocoControls); cocoControls);
formatDescr.emplace_back(C_COCO_MANUALLY_VALIDATED_INFO, formatDescr.emplace_back(C_COCO_MANUALLY_VALIDATED_INFO,
tr("Implicit Manual Coverage Validation"), Tr::tr("Implicit Manual Coverage Validation"),
tr("PLACEHOLDER"), Tr::tr("PLACEHOLDER"),
Qt::blue, Qt::blue,
cocoControls); cocoControls);

View File

@@ -299,7 +299,7 @@ void TextMark::addToToolTipLayout(QGridLayout *target) const
if (m_settingsPage.isValid()) { if (m_settingsPage.isValid()) {
auto settingsAction = new QAction; auto settingsAction = new QAction;
settingsAction->setIcon(Utils::Icons::SETTINGS_TOOLBAR.icon()); settingsAction->setIcon(Utils::Icons::SETTINGS_TOOLBAR.icon());
settingsAction->setToolTip(tr("Show Diagnostic Settings")); settingsAction->setToolTip(Tr::tr("Show Diagnostic Settings"));
QObject::connect(settingsAction, &QAction::triggered, Core::ICore::instance(), QObject::connect(settingsAction, &QAction::triggered, Core::ICore::instance(),
[id = m_settingsPage] { Core::ICore::showOptionsDialog(id); }, [id = m_settingsPage] { Core::ICore::showOptionsDialog(id); },
Qt::QueuedConnection); Qt::QueuedConnection);

View File

@@ -37,7 +37,6 @@ public:
class TEXTEDITOR_EXPORT TextMark class TEXTEDITOR_EXPORT TextMark
{ {
Q_DECLARE_TR_FUNCTIONS(TextEditor::TextMark)
public: public:
TextMark(const Utils::FilePath &fileName, TextMark(const Utils::FilePath &fileName,
int lineNumber, int lineNumber,