diff --git a/share/qtcreator/translations/qtcreator_cs.ts b/share/qtcreator/translations/qtcreator_cs.ts index c3ae4c4dba1..2cbab15a01c 100644 --- a/share/qtcreator/translations/qtcreator_cs.ts +++ b/share/qtcreator/translations/qtcreator_cs.ts @@ -12991,20 +12991,6 @@ Další podrobnosti hledejte v /etc/sysctl.d/10-ptrace.conf Zápis o vytvoření pomocné knihovny pro výstup dat o ladění - - Snippets::Internal::SnippetsPlugin - - Snippets - Kousky - - - - Snippets::Internal::SnippetsWindow - - Snippets - Kousky - - StartExternalDialog @@ -13485,7 +13471,7 @@ Další podrobnosti hledejte v /etc/sysctl.d/10-ptrace.conf - TextEditor::BaseFileFind + ::TextEditor Search Hledat @@ -13494,10 +13480,6 @@ Další podrobnosti hledejte v /etc/sysctl.d/10-ptrace.conf Aborting replace. Ruší se nahrazování. - - %1 found - %1 nalezen - List of comma separated wildcard filters Seznam filtrů se vzory hledání oddělených čárkou @@ -13510,9 +13492,6 @@ Další podrobnosti hledejte v /etc/sysctl.d/10-ptrace.conf Use Regular E&xpressions Používat pravidelně se opakující &výrazy - - - TextEditor::BaseTextDocument untitled bez názvu @@ -13525,25 +13504,6 @@ Další podrobnosti hledejte v /etc/sysctl.d/10-ptrace.conf Opening file Otevírán soubor - - <em>Binary data</em> - <em>Binární data</em> - - - - TextEditor::BaseTextEditor - - Print Document - Vytisknout dokument - - - <b>Error:</b> Could not decode "%1" with "%2"-encoding. Editing not possible. - <b>Chyba:</b> Soubor "%1" se nepodařilo rozluštit s kódováním "%2". Nelze jej upravovat. - - - Select Encoding - Vybrat kódování - Line: %1, Col: %2 Řádek: %1, sloupec: %2 @@ -13552,144 +13512,11 @@ Další podrobnosti hledejte v /etc/sysctl.d/10-ptrace.conf Line: 9999, Col: 999 Řádek: 9999, sloupec: 999 - - - TextEditor::BaseTextEditorEditable - - Line: %1, Col: %2 - Řádek: %1, sloupec: %2 - - - Line: %1, Col: 999 - Řádek: %1, sloupec: 999 - - - - TextEditor::BehaviorSettingsPage - - Storage - Ukládání - - - Removes trailing whitespace on saving. - Odstraní při ukládání prázdné znaky na konci řádků. - - - &Clean whitespace - &Vyčistit prázdné znaky - - - Clean whitespace in entire document instead of only for changed parts. - Vyčistí prázdné znaky v celém dokumentu a nejen ve změněných částech. - - - In entire &document - V celém &dokumentu - - - Correct leading whitespace according to tab settings. - Opraví prázdné znaky na začátku řádků podle nastavení zarážek. - - - Clean indentation - Opravit odsazení - - - &Ensure newline at end of file - &Doplnit nový řádek na konci souboru - - - Tabs and Indentation - Zarážky odsazení - - - Ta&b size: - Šířka &zarážky: - - - &Indent size: - &Velikost odsazení: - - - Backspace will go back one indentation level instead of one space. - Zpětná klávesa (Backspace) jde zpět o jednu stupeň odsazení. Sleduje tedy hloubku odsazení místo toho, aby smazala jen jeden znak. - - - &Backspace follows indentation - &Zpětná klávesa sleduje hloubku odsazení - - - Insert &spaces instead of tabs - Vložit místo zarážek prázdné &znaky (mezery) - - - Enable automatic &indentation - Povolit automatické &odsazení - - - Tab key performs auto-indent: - Klávesa pro zarážku provede automatické odsazení: - - - Never - Nikdy - - - Always - Vždy - - - In leading white space - Pouze v prázdných znacích (mezerách) na začátku řádku - - - Automatically determine based on the nearest indented line (previous line preferred over next line) - Automaticky určit založeno na nejbližším odsazeném řádku (předchozí řádek upřednostňován před dalším řádkem) - - - Based on the surrounding lines - Založeno na okolních řádcích - - - Block indentation style: - Styl odsazení bloku: - - - Exclude Braces - Vyloučit závorky - - - Include Braces - Zahrnout závorky - - - GNU Style - Styl GNU - - - In Leading White Space - Pouze v prázdném místu na začátku řádku - - - Mouse - Myš - - - Enable &mouse navigation - Povolit navádění &myší - - - Enable scroll &wheel zooming - Povolit přibližování a oddalování pomocí &kolečka myši - Global Settings Celkové - - - TextEditor::DisplaySettingsPage Animate matching parentheses Rozhýbat odpovídající závorky @@ -13698,17 +13525,10 @@ Další podrobnosti hledejte v /etc/sysctl.d/10-ptrace.conf Navigation Navedení - - Enable &mouse navigation - Povolit navádění &myší - Mark text changes Vyznačit textové změny - - - TextEditor::FontSettingsPage Font & Colors Písmo & barvy @@ -13757,9 +13577,6 @@ Další podrobnosti hledejte v /etc/sysctl.d/10-ptrace.conf Discard Zahodit - - - TextEditor::Internal::CodecSelector Text Encoding Kódování textu @@ -13786,9 +13603,6 @@ Zdá se, že následující kódování odpovídají souboru: Save with Encoding Uložit s kódováním - - - TextEditor::Internal::FindInCurrentFile Current File Nynější soubor @@ -13803,36 +13617,6 @@ Zdá se, že následující kódování odpovídají souboru: Souborová cesta: %1 %2 - - - TextEditor::Internal::FindInFiles - - Files on Disk - Soubory na nosiči dat - - - Files on File System - Soubory v souborovém systému - - - &Directory: - &Adresář: - - - &Browse - &Procházet - - - File &pattern: - &Vzor hledání pro názvy souborů: - - - Directory to search - Adresář k prohledání - - - - TextEditor::FontSettingsPageWidget Font Písmo @@ -13857,10 +13641,6 @@ Zdá se, že následující kódování odpovídají souboru: Copy... Kopírovat... - - Delete - Smazat - % % @@ -13869,9 +13649,6 @@ Zdá se, že následující kódování odpovídají souboru: Zoom: Zvětšení: - - - TextEditor::Internal::LineNumberFilter Line in current document Řádek v nynějším dokumentu @@ -13892,9 +13669,6 @@ Zdá se, že následující kódování odpovídají souboru: Line in Current Document Řádek v nynějším dokumentu - - - TextEditor::Internal::TextEditorPlugin Creates a text file (.txt). Vytvoří textový soubor (.txt). @@ -13963,9 +13737,6 @@ Zdá se, že následující kódování odpovídají souboru: Current document's font size in points. Velikost písma v nynějším dokumentu. - - - TextEditor::TextEditorActionHandler &Undo &Zpět @@ -14526,9 +14297,6 @@ Zdá se, že následující kódování odpovídají souboru: Ctrl+Alt+Down Ctrl+Alt+Down - - - TextEditor::TextEditorSettings Text Text @@ -14977,10 +14745,6 @@ Nepoužije se na mezeru v poznámkách a řetězcích. Diff Location Porovnávané umístění - - Text Editor - Textový editor - Behavior Chování @@ -16589,7 +16353,7 @@ Toho se dosáhne vložením této zkratky v zadávacím poli vyhledávače, nás - TextEditor::Internal::ColorSchemeEdit + ::TextEditor Bold Tučné @@ -19265,14 +19029,11 @@ S60 emulator run configuration default display name, %1 is base pro-File name - TextEditor::Internal::ColorScheme + ::TextEditor Not a color scheme file. Není souborem znázornění barev. - - - TextEditor::Internal::FontSettings Customized Uživatelsky stanovený @@ -28918,169 +28679,15 @@ Vyžaduje Qt 4.7.4 nebo novější, a soubor součástek nainstalovaný pro tuto - BehaviorSettingsWidget - - Cleanup actions which are automatically performed right before the file is saved to disk. - Opravy, které se automaticky provádějí bezprostředně před uložením souboru na disk. - - - Cleanups Upon Saving - Opravy při uložení - - - Removes trailing whitespace upon saving. - Odstraní při ukládání prázdné znaky na konci řádků. - - - &Clean whitespace - &Vyčistit prázdné znaky - - - Clean whitespace in entire document instead of only for changed parts. - Vyčistí prázdné znaky v celém dokumentu a nejen ve změněných částech. - - - In entire &document - V celém &dokumentu - - - Correct leading whitespace according to tab settings. - Opraví prázdné znaky na začátku řádků podle nastavení zarážek. - - - Clean indentation - Opravit odsazení - - - &Ensure newline at end of file - &Doplnit nový řádek na konci souboru - - - File Encodings - Kódování souborů - + ::TextEditor Default encoding: Výchozí kódování: - - UTF-8 BOM: - UTF-8 BOM: - - - <html><head/><body> -<p>How text editors should deal with UTF-8 Byte Order Marks. The options are:</p> -<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 Qt Creator does not know what it actually is.</li> -<li><i>Keep If Already Present: </i>save the file with a BOM if it already had one when it was loaded.</li> -<li><i>Always Delete:</i> never write an UTF-8 BOM, possibly deleting a pre-existing one.</li></ul> -<p>Note that UTF-8 BOMs are uncommon and treated incorrectly by some editors, so it usually makes little sense to add any.</p> -<p>This setting does <b>not</b> influence the use of UTF-16 and UTF-32 BOMs.</p></body></html> - <html><head/><body> -<p>Udává, jak se chovají textové editory, co se týče UTF-8 BOM (Byte Order Marks). Na výběr je:</p> -<ul ><li><i>Přidat, je-li kódování UTF-8</i> 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í <i>System</i>, neboť Qt Creator v tomto případě kódování nedokáže určit.</li> -<li><i>Zachovat, je-li už přítomno: </i>Uložit soubor s BOM, pokud jej mělo již při nahrání, což bylo zjištěno.</li> -<li><i>Smazat vždy:</i> Nikdy nezapisovat UTF-8 BOM, existující podle okolností odstranit.</li></ul> -<p>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.</p> -<p>Toto nastavení <b>neovlivní</b> používání UTF-16 a UTF-32 BOMs.</p></body></html> - - - Add If Encoding Is UTF-8 - Přidat, pokud je kódování UTF-8 - - - Keep If Already Present - Zachovat, pokud je už přítomno - - - Always Delete - Smazat vždy - Mouse Myš - - Enable &mouse navigation - Povolit navádění &myší - - - Enable scroll &wheel zooming - Povolit přibližování a oddalování pomocí &kolečka myši - - - Typing - Při psaní - - - Enable automatic &indentation - Povolit automatické &odsazení - - - Backspace indentation: - Odsazení při zpětné klávese (Backspace): - - - <html><head/><body> -Specifies how backspace interacts with indentation. - -<ul> -<li>None: No interaction at all. Regular plain backspace behavior. -</li> - -<li>Follows Previous Indents: In leading white space it will take the cursor back to the nearest indentation level used in previous lines. -</li> - -<li>Unindents: If the character behind the cursor is a space it behaves as a backtab. -</li> -</ul></body></html> - - <html><head/><body> -Určuje, jak se chová zpětná klávesa (backspace) co se týče odsazování. - -<ul> -<li>Žádné: Žádné zvláštní chování. Obvyklé chování zpětné klávesy. -</li> - -<li>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. -</li> - -<li>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. -</li> -</ul></body></html> - - - - None - Žádné - - - Follows Previous Indents - Sledovat předchozí odsazení - - - Unindents - Zrušit odsazení - - - Tab key performs auto-indent: - Klávesa pro zarážku provede automatické odsazení: - - - Never - Nikdy - - - Always - Vždy - - - In Leading White Space - Pouze v prázdném místu na začátku řádku - - - Always write a newline character at the end of the file. - Vždy psát znak pro nový řádek na konci souboru. - Enable &tooltips only when Shift key is down Ukazovat &vysvětlivky jen při stisknuté klávese Shift @@ -29151,89 +28758,15 @@ Určuje, jak se chová zpětná klávesa (backspace) co se týče odsazování. - SnippetsSettingsPage - - Form - Formulář - - - Group: - Skupina: - - - Add - Přidat - - - Remove - Odstranit - - - Revert Built-in - Vrátit zpět vnitřní kousek - - - Restore Removed Built-ins - Obnovit všechny vnitřní kousky - - - Reset All - Nastavit znovu vše - - - - TextEditor::TabPreferencesWidget - - Form - Formulář - - - Tab settings: - Nastavení zarážek: - - - - TextEditor::TabSettingsWidget - - Insert &spaces instead of tabs - Vložit místo zarážek prázdné &znaky (mezery) - + ::TextEditor Automatically determine based on the nearest indented line (previous line preferred over next line) Automaticky určit vycházeje z nejbližšího odsazeného řádku (předchozí řádek upřednostňován před dalším řádkem) - - Based on the surrounding lines - Založeno na okolních řádcích - - - Enable automatic &indentation - Povolit automatické &odsazení - Backspace will go back one indentation level instead of one space. Zpětná klávesa (Backspace) jde zpět o jednu úroveň odsazení. Sleduje tedy hloubku odsazení místo toho, aby smazala jen jeden znak. - - &Backspace follows indentation - &Zpětná klávesa sleduje hloubku odsazení - - - Tab key performs auto-indent: - Klávesa pro zarážku provede automatické odsazení: - - - Never - Nikdy - - - Always - Vždy - - - In Leading White Space - Pouze v prázdném místu na začátku řádku - ::Valgrind @@ -37811,7 +37344,7 @@ Chcete je přidat do projektu?</html> - TextEditor::BaseTextEditorWidget + ::TextEditor CTRL+D CTRL+D @@ -37844,16 +37377,10 @@ Chcete je přidat do projektu?</html> Add UTF-8 BOM on Save Přidat UTF-8 BOM při uložení - - - TextEditor::FunctionHintProposalWidget %1 of %2 %1 z %2 - - - TextEditor::FallbackSelectorWidget Settings: Nastavení: @@ -37871,17 +37398,10 @@ Chcete je přidat do projektu?</html> Restore Obnovit - - - TextEditor::HighlighterSettingsPage Generic Highlighter Obecné zvýrazňování - - Download Definitions - Stáhnout vymezení - Download Definitions... Stáhnout definici... @@ -37906,9 +37426,6 @@ Chcete je přidat do projektu?</html> Not possible to retrieve data. Nepodařilo se dostat žádná data. - - - TextEditor::Internal::ManageDefinitionsDialog Name Název @@ -37957,9 +37474,6 @@ Chcete je přidat do projektu?</html> Download Selected Definitions Stáhnout vybrané soubory s definicemi - - - TextEditor::Internal::Manager Registering definitions Přihlašují se definice @@ -37990,9 +37504,6 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. Download Error Chyba při stahování - - - TextEditor::Internal::OutlineWidgetStack No outline available Přehled není dostupný @@ -38005,16 +37516,10 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. Filter tree Přefiltrovat strom - - - TextEditor::Internal::OutlineFactory Outline Přehled - - - TextEditor::Internal::PlainTextEditorFactory A highlight definition was not found for this file. Would you like to try to find one? Pro tento soubor se nepodařilo najít žádnou definici zvýrazňování skladby. Chcete se pokusit nějakou definici najít? @@ -38031,23 +37536,10 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. Show highlighter options Ukázat nastavení vymezení zvýrazňování skladby - - - TextEditor::Internal::PlainTextSnippetProvider - - Text - Text - - - - TextEditor::Internal::SnippetsCollection Cannot create user snippet directory %1 Nepodařilo se vytvořit adresář na uživatelské úryvky %1 - - - TextEditor::Internal::SnippetsTableModel Error Chyba @@ -38068,9 +37560,6 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. Error reverting snippet. Chyba při vracení úryvku zpět. - - - TextEditor::Internal::SnippetsSettingsPagePrivate Snippets Úryvky @@ -38079,10 +37568,6 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. Error While Saving Snippet Collection Chyba při ukládání sbírky úryvků - - Error - Chyba - No snippet selected. Žádný úryvek nebyl vybrán. @@ -39363,35 +38848,7 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. - TextEditor::CodeStyleSelectorWidget - - Form - Formulář - - - Current settings: - Nynější nastavení: - - - Copy... - Kopírovat... - - - Edit... - Upravit... - - - Remove - Odstranit - - - Export... - Vyvést... - - - Import... - Zavést... - + ::TextEditor Copy Code Style Kopírovat styl kódování @@ -39412,10 +38869,6 @@ Prověřte, prosím, oprávnění pro přístup k adresáři. Are you sure you want to delete this code style permanently? Jste si jist, že chcete tento styl kódování smazat natrvalo? - - Delete - Smazat - Import Code Style Importovat styl kódování @@ -40535,22 +39988,15 @@ Vzdálený chybový výstup byl: %1 - TextEditor::CodeStyleEditor + ::TextEditor 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. 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í. - - - TextEditor::Internal::CodeStyleDialog Edit Code Style Upravit styl kódování - - Code style name: - Název stylu kódování: - You cannot save changes to a built-in code style. Copy it first to create your own version. 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. @@ -40559,13 +40005,6 @@ Vzdálený chybový výstup byl: %1 Copy Built-in Code Style Kopírovat vestavěný styl kódování - - %1 (Copy) - %1 (kopie) - - - - TextEditor::FindInFiles Files on File System Soubory v souborovém systému @@ -42681,14 +42120,11 @@ Tyto předpony se používají dodatečně k nynějšímu názvu souboru na Pře - TextEditor::Internal::BehaviorSettingsPage + ::TextEditor Form Formulář - - - TextEditor::BehaviorSettingsWidget Typing Při psaní @@ -42903,21 +42339,10 @@ Určuje, jak se chová zpětná klávesa (backspace) co se týče odsazování. Pressing Alt displays context-sensitive help or type information as tooltips. Stisknutí klávesy Alt zobrazí vysvětlivky s kontextovou nápovědou nebo informací o typu. - - - TextEditor::Internal::CodeStyleSelectorWidget - - Form - Formulář - Current settings: Nynější nastavení: - - Copy... - Kopírovat... - Edit... Upravit... @@ -42934,13 +42359,6 @@ Určuje, jak se chová zpětná klávesa (backspace) co se týče odsazování. Import... Importovat... - - - TextEditor::DisplaySettingsPage - - Display - Zobrazení - Display line &numbers Zo&brazit čísla řádků @@ -43009,13 +42427,6 @@ Určuje, jak se chová zpětná klávesa (backspace) co se týče odsazování. Shows tabs and spaces. Ukáže tabulátory a mezery. - - - TextEditor::Internal::HighlighterSettingsPage - - Form - Formulář - <html><head/><body> <p>Highlight definitions are provided by the <a href="http://kate-editor.org/">Kate Text Editor</a>.</p></body></html> @@ -43034,10 +42445,6 @@ Určuje, jak se chová zpětná klávesa (backspace) co se týče odsazování. Use fallback location Použít záložní umístění - - Behavior - Chování - Alert when a highlight definition is not found Zobrazit upozornění, pokud se nepodařilo najít žádný soubor s definicí @@ -43046,13 +42453,6 @@ Určuje, jak se chová zpětná klávesa (backspace) co se týče odsazování. Ignored file patterns: Vyloučené soubory (vzor hledání): - - - TextEditor::Internal::SnippetsSettingsPage - - Form - Formulář - Group: Skupina: @@ -43061,10 +42461,6 @@ Určuje, jak se chová zpětná klávesa (backspace) co se týče odsazování. Add Přidat - - Remove - Odstranit - Revert Built-in Vrátit zpět vestavěný @@ -43077,13 +42473,6 @@ Určuje, jak se chová zpětná klávesa (backspace) co se týče odsazování. Reset All Nastavit znovu vše - - - TextEditor::TabSettingsWidget - - Form - Formulář - Tabs And Indentation Tabulátory a odsazení @@ -46620,14 +46009,11 @@ Je zapotřebí mít nějakou verzi Qt a sadu nástrojů, aby modely kódu C++ a - TextEditor::Internal::CountingLabel + ::TextEditor %1 found %1 nalezen - - - TextEditor::Internal::FindInOpenFiles Open Documents Otevřené dokumenty @@ -52547,7 +51933,7 @@ Vzdálený: %4 - TextEditor::BehaviorSettingsWidget + ::TextEditor Display context-sensitive help or type information on mouseover. Zobrazit kontextově citlivou nápovědu nebo informace o typu, když se ukazovátko myši nachází nad prvkem. @@ -54381,7 +53767,7 @@ Tento průvodce vás provede základními kroky, které jsou nutné pro nasazen - RefactoringFile::apply + ::TextEditor Refactoring cannot be applied. Refaktoring se nepodařilo použít. @@ -55539,7 +54925,7 @@ Soubory ve zdrojovém adresáři balíčku pro Android jsou zkopírovány do adr - TextEditor::QuickFixFactory + ::TextEditor Create Getter and Setter Member Functions Vytvořit funkce Getter a Setter @@ -57990,7 +57376,7 @@ Tento průvodce vás provede základními kroky, které jsou nutné pro nasazen - FontSettings_C_OCCURRENCES_UNUSED + ::TextEditor Unused variable Nepoužívaná proměnná diff --git a/share/qtcreator/translations/qtcreator_da.ts b/share/qtcreator/translations/qtcreator_da.ts index 35f60b94932..a2938b4ad8a 100644 --- a/share/qtcreator/translations/qtcreator_da.ts +++ b/share/qtcreator/translations/qtcreator_da.ts @@ -15320,7 +15320,7 @@ når de ikke kræves, hvilket i de fleste tilfælde vil forbedre ydelsen. - FontSettings_C_OCCURRENCES_UNUSED + ::TextEditor Unused variable Ubrugt variabel @@ -31622,7 +31622,7 @@ For flere detaljer, se /etc/sysctl.d/10-ptrace.conf - RefactoringFile::apply + ::TextEditor Refactoring cannot be applied. Genfaktoring kan ikke anvendes. @@ -34001,9 +34001,6 @@ med en adgangskode, som du kan indtaste herunder. Text Editor Tekstredigering - - - TextEditor::BaseFileFind Searching Søger @@ -34026,9 +34023,6 @@ med en adgangskode, som du kan indtaste herunder. Aborting replace. Afbryder erstat. - - - TextEditor::BaseTextEditor A highlight definition was not found for this file. Would you like to try to find one? En fremhævningsdefinitioner blev ikke fundet til denne fil. Vil du prøve at finde en? @@ -34037,17 +34031,11 @@ med en adgangskode, som du kan indtaste herunder. Show Highlighter Options... Vis fremhæver-valgmuligheder... - - - TextEditor::BehaviorSettingsPage Global Settings Globale - - - TextEditor::BehaviorSettingsWidget Displays context-sensitive help or type information on mouseover. Viser kontekstfølsom hjælp eller skriv information ved musover. @@ -34056,16 +34044,10 @@ med en adgangskode, som du kan indtaste herunder. Displays context-sensitive help or type information on Shift+Mouseover. Viser kontekstfølsom hjælp eller skriv information ved Skift+musover. - - - TextEditor::CodeStyleEditor 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. Rediger forhåndsvisningens indhold for at se hvordan de aktuelle indstillinger anvendes på brugerdefineret kode-snippets. Ændringer i forhåndsvisningen påvirker ikke de aktuelle indstillinger. - - - TextEditor::CodeStyleSelectorWidget Copy Code Style Kopiér kodestil @@ -34114,9 +34096,6 @@ med en adgangskode, som du kan indtaste herunder. %1 [built-in] %1 [indbygget] - - - TextEditor::FindInFiles Files in File System Filer i filsystem @@ -34148,9 +34127,6 @@ Ekskludering: %3 Directory to Search Mappe der skal søges i - - - TextEditor::FontSettingsPage Font && Colors Skrifttype og farver @@ -34179,10 +34155,6 @@ Ekskludering: %3 Are you sure you want to delete this color scheme permanently? Er du sikker på, at du vil slette dette farveskema permanent? - - Delete - Slet - Color Scheme Changed Farveskema ændret @@ -34195,16 +34167,10 @@ Ekskludering: %3 Discard Forkast - - - TextEditor::FunctionHintProposalWidget %1 of %2 %1 af %2 - - - TextEditor::HighlighterSettingsPage Generic Highlighter Generisk fremhæver @@ -34233,9 +34199,6 @@ Ekskludering: %3 Not possible to retrieve data. Ikke muligt at hente data. - - - TextEditor::BehaviorSettingsWidget Typing Skrivning @@ -34278,10 +34241,6 @@ Angiver hvordan backspace interagerer med indrykning. </ul></body></html> - - None - Ingen - Follows Previous Indents Følger forrige indrykninger @@ -34434,17 +34393,10 @@ Angiver hvordan backspace interagerer med indrykning. <p>Bemærk at UTF-8 BOM'er er ualmindelige og behandles ukorrekt af nogle redigeringer, så det giver faktisk ikke så meget mening at tilføje det.</p> <p>Indstillingen påvirker <b>ikke</b> brugen af UTF-16 og UTF-32 BOM'er.</p></body></html> - - - TextEditor::Internal::CodeStyleDialog Edit Code Style Rediger kodestil - - Code style name: - Kodestilnavn: - You cannot save changes to a built-in code style. Copy it first to create your own version. Du kan ikke gemme ændringer til en indbygget kodestil. Kopiér den først for at oprette din egen version. @@ -34453,13 +34405,6 @@ Angiver hvordan backspace interagerer med indrykning. Copy Built-in Code Style Kopiér indbygget kodestil - - %1 (Copy) - %1 (kopi) - - - - TextEditor::Internal::CodeStyleSelectorWidget Current settings: Aktuelle indstillinger: @@ -34484,9 +34429,6 @@ Angiver hvordan backspace interagerer med indrykning. Import... Importér... - - - TextEditor::Internal::CodecSelector Text Encoding Tekstkodning @@ -34507,16 +34449,10 @@ Angiver hvordan backspace interagerer med indrykning. Save with Encoding Gem med kodning - - - TextEditor::Internal::ColorScheme Not a color scheme file. Ikke en farvetema-fil. - - - TextEditor::Internal::ColorSchemeEdit Foreground: Forgrund: @@ -34601,9 +34537,6 @@ Angiver hvordan backspace interagerer med indrykning. Relative Background Relativ baggrund - - - TextEditor::Internal::CompletionSettingsPage Behavior Adfærd @@ -34636,10 +34569,6 @@ Angiver hvordan backspace interagerer med indrykning. When Triggered Når udløst - - Always - Altid - Timeout in ms: Timeout i ms: @@ -34756,9 +34685,6 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt Completion Færdiggørelse - - - TextEditor::DisplaySettingsPage Text Wrapping Tekstombrydning @@ -34855,9 +34781,6 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt Between lines Mellem linjer - - - TextEditor::Internal::FindInCurrentFile Current File Aktuel fil @@ -34872,9 +34795,6 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt Filsti: %1 %2 - - - TextEditor::Internal::FindInOpenFiles Open Documents Åbne dokumenter @@ -34889,13 +34809,6 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt Åbne dokumenter %1 - - - TextEditor::FontSettingsPageWidget - - Font - Skrifttype - Antialias Udjævning @@ -34920,17 +34833,6 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt Color Scheme Farveskema - - Copy... - Kopiér... - - - Delete - Slet - - - - TextEditor::Internal::HighlighterSettingsPage <html><head/><body> <p>Highlight definitions are provided by the <a href="http://kate-editor.org/">Kate Text Editor</a>.</p></body></html> @@ -34949,17 +34851,10 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt Use fallback location Brug tilbagefaldsplacering - - Behavior - Adfærd - Ignored file patterns: Ignoreret filmønstre: - - - TextEditor::Internal::LineNumberFilter Line in Current Document Linje i aktuelt dokument @@ -34976,9 +34871,6 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt Column %1 Kolonne %1 - - - TextEditor::Internal::ManageDefinitionsDialog Dialog Dialog @@ -35027,9 +34919,6 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt There is already one download in progress. Please wait until it is finished. Der er allerede en download i gang. Vent venligst til den er færdig. - - - TextEditor::Internal::MultiDefinitionDownloader Downloading Highlighting Definitions Downloader fremhævningsdefinitioner @@ -35050,16 +34939,10 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt Download Error Fejl ved download - - - TextEditor::Internal::OutlineFactory Outline Overblik - - - TextEditor::Internal::OutlineWidgetStack No outline available Intet overblik tilgængeligt @@ -35072,24 +34955,14 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt Filter tree Filtrer træ - - - TextEditor::Internal::SnippetsCollection Cannot create user snippet directory %1 Kan ikke oprette bruger snippet-mappen %1 - - - TextEditor::Internal::SnippetsSettingsPage Add Tilføj - - Remove - Fjern - Revert Built-in Tilbagefør indbygget @@ -35106,9 +34979,6 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt Group: Gruppe: - - - TextEditor::Internal::SnippetsSettingsPagePrivate Snippets Snippets @@ -35125,13 +34995,6 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt No snippet selected. Ingen snippet valgt. - - - TextEditor::Internal::SnippetsTableModel - - Error - Fejl - Not a valid trigger. Ikke en gyldig udløser. @@ -35148,9 +35011,6 @@ Derudover indsætter Skift+Enter et undvigetegn ved markørens placering og flyt Error reverting snippet. Fejl ved hentning af snippet. - - - TextEditor::TabSettingsWidget Tabs And Indentation Tabulatorer og indrykning @@ -35255,9 +35115,6 @@ Påvirker indrykningen af fortsatte linjer. <i>Code indentation is configured in <a href="C++">C++</a> and <a href="QtQuick">Qt Quick</a> settings.</i> <i>Kodeindrykning er konfigureret i <a href="C++">C++-</a> og <a href="QtQuick">Qt Quick</a>-indstillinger.</i> - - - TextEditor::Internal::TextEditorActionHandler &Undo &Fortryd @@ -35734,9 +35591,6 @@ Påvirker indrykningen af fortsatte linjer. Go to Next Word Camel Case with Selection Gå til næste ord med markering (camel case) - - - TextEditor::Internal::TextEditorPlugin Trigger Completion Udløs færdiggørelse @@ -35790,16 +35644,10 @@ Påvirker indrykningen af fortsatte linjer. Current document's font size in points. Aktuelt dokuments skriftstørrelse i punkter. - - - TextEditor::SearchEngine Internal Intern - - - TextEditor::TextDocument Diff Against Current File Diff mod aktuelle fil @@ -35808,16 +35656,10 @@ Påvirker indrykningen af fortsatte linjer. Opening File Åbner fil - - - TextEditor::TextEditorActionHandler <line>:<column> <linje>:<kolonne> - - - TextEditor::TextEditorSettings Text Tekst @@ -36290,10 +36132,6 @@ Vil blive anvendt på blanktegn i kommentarer og strenge. Applied to lines describing changes in VCS log. Anvendt på linjer som beskriver ændringer i VCS-log. - - Error - Fejl - Underline color of error diagnostics. Understregningsfarve til fejldiagnostik. @@ -36330,17 +36168,6 @@ Vil blive anvendt på blanktegn i kommentarer og strenge. Writable arguments of a function call. Skrivbare argumenter af et funktionskald. - - Behavior - Adfærd - - - Display - Visning - - - - TextEditor::TextEditorWidget Print Document Udskriv dokument @@ -41383,7 +41210,7 @@ Gemning mislykkedes. - TextEditor::Internal::Snippets + ::TextEditor 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. diff --git a/share/qtcreator/translations/qtcreator_de.ts b/share/qtcreator/translations/qtcreator_de.ts index 45c68fc0659..bdc2e94779e 100644 --- a/share/qtcreator/translations/qtcreator_de.ts +++ b/share/qtcreator/translations/qtcreator_de.ts @@ -11848,7 +11848,7 @@ Rename %2 to %3 anyway? - TextEditor::BaseFileFind + ::TextEditor Searching Suche @@ -11871,9 +11871,6 @@ Rename %2 to %3 anyway? Aborting replace. Breche Ersetzung ab. - - - TextEditor::BaseTextEditor A highlight definition was not found for this file. Would you like to download additional highlight definition files? Für diese Datei ist keine Definition der Syntaxhervorhebung vorhanden. Möchten Sie weitere Definitionen der Syntaxhervorhebung herunterladen? @@ -11890,16 +11887,10 @@ Rename %2 to %3 anyway? Remember My Choice Meine Auswahl speichern - - - TextEditor::Internal::ColorScheme Not a color scheme file. Keine Farbschema-Datei. - - - TextEditor::Internal::ColorSchemeEdit Bold Fett @@ -11988,9 +11979,6 @@ Rename %2 to %3 anyway? <p align='center'><b>Builtin color schemes need to be <a href="copy">copied</a><br/> before they can be changed</b></p> <p align='center'><b>Mitgelieferte Farbschemata müssen <a href="copy">kopiert</a><br/> werden, bevor sie geändert werden können</b></p> - - - TextEditor::Internal::FindInCurrentFile Current File Aktuelle Datei @@ -12005,13 +11993,6 @@ Rename %2 to %3 anyway? Pfad zu Datei: %1 %2 - - - TextEditor::FontSettingsPageWidget - - Font - Zeichensatz - Family: Name: @@ -12110,9 +12091,6 @@ Werte kleiner als 100% können überlappende und falsch ausgerichtete Darstellun Font && Colors Zeichensatz && Farben - - - TextEditor::Internal::LineNumberFilter Jumps to the given line in the current document. Springt im aktuellen Dokument zur angegebenen Zeile. @@ -15239,7 +15217,7 @@ Für CMake-Projekte stellen Sie sicher, dass die Variable QML_IMPORT_PATH in CMa - TextEditor::Internal::TextEditorPlugin + ::TextEditor Ctrl+Space Ctrl+Space @@ -15973,7 +15951,7 @@ Möchten Sie sie überschreiben? - TextEditor::Internal::OutlineWidgetStack + ::TextEditor No outline available Überblick nicht verfügbar @@ -15990,9 +15968,6 @@ Möchten Sie sie überschreiben? Sort Alphabetically Alphabetisch sortieren - - - TextEditor::Internal::OutlineFactory Outline Überblick @@ -16611,7 +16586,7 @@ konnte nicht unter Versionsverwaltung (%2) gestellt werden - TextEditor::Internal::SnippetsTableModel + ::TextEditor Error Fehler @@ -19646,7 +19621,7 @@ Speichern fehlgeschlagen. - TextEditor::BehaviorSettingsPage + ::TextEditor Global Settings @@ -19656,16 +19631,10 @@ Speichern fehlgeschlagen. Behavior Verhalten - - - TextEditor::FunctionHintProposalWidget %1 of %2 %1 von %2 - - - TextEditor::Internal::SnippetsCollection Cannot create user snippet directory %1 Das Snippet-Verzeichnis des Nutzers konnte nicht erstellt werden: %1 @@ -21027,11 +20996,7 @@ When disabled, moves targets straight to the current mouse position. - TextEditor::CodeStyleSelectorWidget - - Copy... - Kopieren... - + ::TextEditor Remove Entfernen @@ -21068,10 +21033,6 @@ When disabled, moves targets straight to the current mouse position. Are you sure you want to delete this code style permanently? Möchten Sie diesen Coding-Stil endgültig löschen? - - Delete - Löschen - Import Code Style Coding Style importieren @@ -21096,9 +21057,6 @@ When disabled, moves targets straight to the current mouse position. %1 [built-in] %1 [eingebaut] - - - TextEditor::FindInFiles Files in File System Dateien aus Dateisystem @@ -21184,7 +21142,7 @@ Außer: %3 - TextEditor::CodeStyleEditor + ::TextEditor 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. Ä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. @@ -22095,7 +22053,7 @@ Bitte aktualisieren Sie Ihr Kit (%3) oder wählen Sie eine mkspec für qmake, di - TextEditor::BehaviorSettingsWidget + ::TextEditor Typing Beim Tippen @@ -22330,9 +22288,6 @@ Gibt an, wie sich die Rücktaste bezüglich Einrückung verhält. Windows (CRLF) Windows (CRLF) - - - TextEditor::DisplaySettingsPage Display Anzeige @@ -22457,9 +22412,6 @@ Gibt an, wie sich die Rücktaste bezüglich Einrückung verhält. Between lines Zwischen den Zeilen - - - TextEditor::Internal::HighlighterSettingsPage Syntax Highlight Definition Files Definitionsdateien für die Syntaxhervorhebung @@ -22488,10 +22440,6 @@ Gibt an, wie sich die Rücktaste bezüglich Einrückung verhält. Download missing and update existing syntax definition files. Fehlende Syntax-Definitionsdateien herunterladen und bestehende aktualisieren. - - Download Definitions - Definitionen herunterladen - Reload externally modified definition files. Extern geänderte Definitionsdateien neu laden. @@ -22508,17 +22456,10 @@ Gibt an, wie sich die Rücktaste bezüglich Einrückung verhält. Download finished Herunterladen beendet - - - TextEditor::Internal::SnippetsSettingsPage Add Hinzufügen - - Remove - Entfernen - Revert Built-in Internes Snippet zurücksetzen @@ -22539,10 +22480,6 @@ Gibt an, wie sich die Rücktaste bezüglich Einrückung verhält. Error While Saving Snippet Collection Fehler beim Speichern der Snippet-Sammlung - - Error - Fehler - No snippet selected. Kein Snippet ausgewählt. @@ -22551,9 +22488,6 @@ Gibt an, wie sich die Rücktaste bezüglich Einrückung verhält. Snippets Snippets - - - TextEditor::TabSettingsWidget Tabs And Indentation Tabulatoren und Einrückung @@ -24670,7 +24604,7 @@ the manifest file by overriding your settings. Allow override? - TextEditor::Internal::FindInOpenFiles + ::TextEditor Open Documents Offene Dokumente @@ -27921,7 +27855,7 @@ The affected files are: - RefactoringFile::apply + ::TextEditor Refactoring cannot be applied. Refaktorisierung konnte nicht angewandt werden. @@ -30871,7 +30805,7 @@ Möchten Sie es beenden? - FontSettings_C_OCCURRENCES_UNUSED + ::TextEditor Unused variable Unbenutzte Variable @@ -34277,7 +34211,7 @@ Benutzen Sie dies nur für Prototypen. Sie können damit keine vollständige Anw - TextEditor::TextDocument + ::TextEditor Diff Against Current File Mit aktueller Datei vergleichen @@ -34286,9 +34220,6 @@ Benutzen Sie dies nur für Prototypen. Sie können damit keine vollständige Anw Opening File Öffne Datei - - - TextEditor::TextEditorWidget Cursor position: %1 Position der Einfügemarke: %1 @@ -35491,7 +35422,7 @@ Error: - TextEditor::Internal::TextEditorActionHandler + ::TextEditor &Undo &Rückgängig @@ -38224,11 +38155,7 @@ Sie werden erhalten. - TextEditor::Internal::CompletionSettingsPage - - Behavior - Verhalten - + ::TextEditor Activate completion: Code-Vervollständigung aktivieren: @@ -38241,10 +38168,6 @@ Sie werden erhalten. Full Vollständig - - None - Keine - First Letter Erster Buchstabe @@ -38257,10 +38180,6 @@ Sie werden erhalten. When Triggered Auf Anforderung - - Always - Immer - Timeout in ms: Zeitüberschreitung nach (ms): @@ -40270,7 +40189,7 @@ Ablaufdatum: %3 - TextEditor::TextEditorSettings + ::TextEditor Text Text @@ -40829,10 +40748,6 @@ Außer Leerzeichen innerhalb von Kommentaren und Zeichenketten. Applied to commit subjects in VCS log. Wird auf Titel von Commits in einem Versionskontroll-Log angewendet. - - Error - Fehler - Underline color of error diagnostics. Unterstreichung von Fehlern. @@ -40974,7 +40889,7 @@ Außer Leerzeichen innerhalb von Kommentaren und Zeichenketten. - TextEditor::SearchEngine + ::TextEditor Internal Intern @@ -41369,7 +41284,7 @@ Are you sure? - TextEditor::Internal::Snippets + ::TextEditor derived from QObject group:'C++' trigger:'class' @@ -43592,7 +43507,7 @@ You might find further explanations in the Application Output view. - TextEditor::Highlighter + ::TextEditor Highlighter updates: done Aktualisierungen der Syntaxhervorhebung: abgeschlossen @@ -56181,7 +56096,7 @@ Failed to open file "%1" - Snippet + ::TextEditor Expected delimiter after mangler ID. @@ -56194,9 +56109,6 @@ Failed to open file "%1" Missing closing variable delimiter for: - - - TextEditor::TextMark Show Diagnostic Settings Diagnosekonfiguration anzeigen diff --git a/share/qtcreator/translations/qtcreator_es.ts b/share/qtcreator/translations/qtcreator_es.ts index c5476797aff..89779ab97e3 100644 --- a/share/qtcreator/translations/qtcreator_es.ts +++ b/share/qtcreator/translations/qtcreator_es.ts @@ -9359,14 +9359,7 @@ Para hacerlo, introduzca el atajo y un espacio en el campo Localización, y lueg - Snippets::Internal::SnippetsPlugin - - Snippets - Fragmentos - - - - Snippets::Internal::SnippetsWindow + ::TextEditor Snippets Fragmentos @@ -9665,7 +9658,7 @@ Para hacerlo, introduzca el atajo y un espacio en el campo Localización, y lueg - TextEditor::BaseFileFind + ::TextEditor %1 found %1 encontrado @@ -9678,9 +9671,6 @@ Para hacerlo, introduzca el atajo y un espacio en el campo Localización, y lueg Use Regular E&xpressions Usar &expresiones regulares - - - TextEditor::BaseTextDocument untitled sin título @@ -9689,9 +9679,6 @@ Para hacerlo, introduzca el atajo y un espacio en el campo Localización, y lueg <em>Binary data</em> <em>Datos binarios</em> - - - TextEditor::BaseTextEditor Print Document Imprimir documento @@ -9704,9 +9691,6 @@ Para hacerlo, introduzca el atajo y un espacio en el campo Localización, y lueg Select Encoding Seleccióne codificación - - - TextEditor::BaseTextEditorEditable Line: %1, Col: %2 Línea: %1, Col: %2 @@ -9715,9 +9699,6 @@ Para hacerlo, introduzca el atajo y un espacio en el campo Localización, y lueg Line: %1, Col: 999 Línea: %1, Col: 999 - - - TextEditor::BehaviorSettingsPage Storage Almacenamiento @@ -9812,9 +9793,6 @@ Para hacerlo, introduzca el atajo y un espacio en el campo Localización, y lueg In leading white space Cuando empiece con un espacio - - - TextEditor::DisplaySettingsPage Display Mostrar @@ -9884,9 +9862,6 @@ Para hacerlo, introduzca el atajo y un espacio en el campo Localización, y lueg Mark text changes - - - TextEditor::FontSettingsPage Font & Colors Fuentes & colores @@ -9932,9 +9907,6 @@ Para hacerlo, introduzca el atajo y un espacio en el campo Localización, y lueg This is only an example. Esto es simplemente un ejemplo. - - - TextEditor::Internal::CodecSelector Text Encoding Codificación de caracteres @@ -9956,16 +9928,10 @@ The following encodings are likely to fit: Save with Encoding Guardar con codificación - - - TextEditor::Internal::FindInCurrentFile Current File Archivo actual - - - TextEditor::Internal::FindInFiles Files on Disk Archivos en disco @@ -9986,9 +9952,6 @@ The following encodings are likely to fit: Directory to search Directorio a buscar - - - TextEditor::FontSettingsPageWidget Font Fuente @@ -10047,9 +10010,6 @@ The following encodings are likely to fit: Delete Suprimir - - - TextEditor::Internal::LineNumberFilter Line in current document Línea en el documento actual @@ -10058,9 +10018,6 @@ The following encodings are likely to fit: Line %1 Línea %1 - - - TextEditor::Internal::TextEditorPlugin Creates a text file (.txt). Crea un archivo de texto (.txt). @@ -10093,9 +10050,6 @@ The following encodings are likely to fit: Alt+Return - - - TextEditor::TextEditorActionHandler &Undo Des&hacer @@ -10280,9 +10234,6 @@ The following encodings are likely to fit: <line number> <número de línea> - - - TextEditor::TextEditorSettings Text Texto @@ -11495,7 +11446,7 @@ p, li { white-space: pre-wrap; } - TextEditor::Internal::ColorSchemeEdit + ::TextEditor Bold Negritas @@ -12754,14 +12705,11 @@ Check if the phone is connected and the TRK application is running. - TextEditor::Internal::ColorScheme + ::TextEditor Not a color scheme file. - - - TextEditor::Internal::FontSettings Customized diff --git a/share/qtcreator/translations/qtcreator_fr.ts b/share/qtcreator/translations/qtcreator_fr.ts index 766ba0df217..21538ddfad4 100644 --- a/share/qtcreator/translations/qtcreator_fr.ts +++ b/share/qtcreator/translations/qtcreator_fr.ts @@ -13283,20 +13283,6 @@ To do this, you type this shortcut and a space in the Locator entry field, and t Journal de compilation de l'assistant de debogage - - Snippets::Internal::SnippetsPlugin - - Snippets - Extraits de code - - - - Snippets::Internal::SnippetsWindow - - Snippets - Extraits de code - - Subversion::Internal::SettingsPage @@ -13671,7 +13657,7 @@ To do this, you type this shortcut and a space in the Locator entry field, and t - TextEditor::BaseFileFind + ::TextEditor Search Rechercher @@ -13680,67 +13666,20 @@ To do this, you type this shortcut and a space in the Locator entry field, and t Aborting replace. Annulation du remplacement. - - %1 found - %1 élément(s) trouvé(s) - List of comma separated wildcard filters wildcard -> joker mais est-ce le terme pour les expressions régulières en français ? Liste de filtres 'joker' séparés par des virgules - - Use regular e&xpressions - Utiliser des e&xpressions régulières - - - Use Regular E&xpressions - Utiliser des e&xpressions régulières - - - - TextEditor::BaseTextDocument untitled document ? (en plus c'est plus long...) sans titre - - Out of memory - Mémoire insuffisante - Opening file Ouverture du fichier - - <em>Binary data</em> - <em>Données binaire</em> - - - - TextEditor::BaseTextEditor - - CTRL+D - Ctrl+D - - - Print Document - Imprimer le document - - - <b>Error:</b> Could not decode "%1" with "%2"-encoding. Editing not possible. - error -> erreur ;) - <b>Erreur :</b> Impossible de décoder "%1" avec l'encodage "%2". L'édition est impossible. - - - Select Encoding - Choisir l'encodage - - - The text is too large to be displayed (%1 MB). - Le texte est trop lourd pour être affiché (%1 Mo). - Line: %1, Col: %2 Ligne %1, colonne %2 @@ -13749,136 +13688,6 @@ To do this, you type this shortcut and a space in the Locator entry field, and t Line: 9999, Col: 999 Ligne 9999, colonne 999 - - - TextEditor::BaseTextEditorEditable - - Line: %1, Col: %2 - Ligne : %1, Col : %2 - - - Line: %1, Col: 999 - Ligne : %1, Col : 999 - - - - TextEditor::BehaviorSettingsPage - - Tabs and Indentation - Tabulation et indentation - - - Insert &spaces instead of tabs - Insérer des e&spaces au lieu de tabulations - - - Enable automatic &indentation - Activer l'&indentation automatique - - - Backspace will go back one indentation level instead of one space. - La touche retour reviendra un niveau d'indentation en arrière au lieux d'un caractère espace. - - - &Backspace follows indentation - La touche &retour arrière suit l'indentation - - - Ta&b size: - Taille de &tabulation : - - - &Indent size: - Taille de l'in&dentation : - - - Tab key performs auto-indent: - La touche tabulation active l'identation automatique : - - - Never - Jamais - - - Always - Toujours - - - In leading white space - En début de ligne uniquement - - - Storage - Sauvegarde - - - Removes trailing whitespace on saving. - Supprime les caractères d'espacement à la fin des lignes lors de la sauvegarde. - - - &Clean whitespace - &Nettoyer les espaces - - - Clean whitespace in entire document instead of only for changed parts. - Nettoyer les espaces dans tout le document au lieu de limiter le nettoyage aux parties modifiées. - - - In entire &document - Dans tout le &document - - - Correct leading whitespace according to tab settings. - Corriger les espaces à l'avant des lignes pour respecter la configuration des tabulations. - - - Clean indentation - Nettoyer l'indentation - - - &Ensure newline at end of file - &Forcer un retour de ligne à la fin du fichier - - - Automatically determine based on the nearest indented line (previous line preferred over next line) - Déterminer automatiquement en se basant sur la ligne indentée la plus proche (ligne précédente préférée à la ligne suivante) - - - Based on the surrounding lines - Basé sur les lignes environnantes - - - Block indentation style: - Style d'indentation de bloc : - - - Exclude Braces - Exclure les accolades - - - Include Braces - Inclure les accolades - - - GNU Style - Style GNU - - - In Leading White Space - Dans des espaces en début de ligne - - - Mouse - Souris - - - Enable &mouse navigation - Activer la navigation à la &souris - - - Enable scroll &wheel zooming - Activer le zoom via la &roulette - <html><head/><body> Controls the indentation style of curly brace blocks. @@ -13960,81 +13769,11 @@ void foo() </li> </ul></body></html> - - Align continuation lines: - continuation line: lors du passage à la ligne automatique (text wrap) - Aligner les lignes de continuation : - - - <html><head/><body> -Influences the indentation of continuation lines. - -<ul> -<li>Not At All: Do not align at all. Lines will only be indented to the current logical indentation depth. -<pre> -(tab)int i = foo(a, b -(tab)c, d); -</pre> -</li> - -<li>With Spaces: Always use spaces for alignment, regardless of the other indentation settings. -<pre> -(tab)int i = foo(a, b -(tab) c, d); -</pre> -</li> - -<li>With Regular Indent: Use tabs and/or spaces for alignment, as configured above. -<pre> -(tab)int i = foo(a, b -(tab)(tab)(tab) c, d); -</pre> -</li> -</ul></body></html> - continuation line ? - <html><head/><body> -Influence l'indentation des lignes de continuation. -<ul> -<li>Pas du tout : ne pas aligner. Les lignes ne seront indentées jusqu'à la profondeur d'indentation logique. -<pre> -(tab)int i = foo(a, b -(tab)c, d); -</pre> -</li> -<li>Avec espaces : toujours utiliser des espaces pour l'alignement, sans tenir compte des autres paramètres d'indentation. -<pre> -(tab)int i = foo(a, b -(tab) c, d); -</pre> -</li> -<li>Avec indentation régulière : utiliser des tabulations et/ou des espaces pour l'alignement, en fonction de la configuration. -<pre> -(tab)int i = foo(a, b -(tab)(tab)(tab) c, d); -</pre> -</li> -</ul></body></html> - - - Not At All - Pas du tout - - - With Spaces - Avec espaces - - - With Regular Indent - Avec indentation régulière - Global Settings Globaux - - - TextEditor::DisplaySettingsPage Animate matching parentheses Animer les parenthèses correspondantes @@ -14043,18 +13782,11 @@ Influence l'indentation des lignes de continuation. Navigation Navigation - - Enable &mouse navigation - Activer la navigation à la &souris - Mark text changes Put a red mark next to the text that has been modified since the last save Marquer le texte modifié - - - TextEditor::FontSettingsPage Font & Colors Polices & couleurs @@ -14108,9 +13840,6 @@ Influence l'indentation des lignes de continuation. This is only an example. \n\tCeci est seulement un exemple. - - - TextEditor::Internal::CodecSelector Text Encoding Encodage du texte @@ -14133,9 +13862,6 @@ Les encodages suivants pourraient convenir : Save with Encoding Sauver avec l'encodage - - - TextEditor::Internal::FindInCurrentFile Current File lower character at the beginning because this is indented after "Rechercher dans..." @@ -14151,38 +13877,6 @@ Les encodages suivants pourraient convenir : Chemin de fichier : %1 %2 - - - TextEditor::Internal::FindInFiles - - Files on Disk - lower character at the beginning because this is indented after "Rechercher dans..." - fichiers sur le disque - - - Files on File System - Fichiers dans le système de fichiers - - - &Directory: - &Dossier : - - - &Browse - &Parcourir - - - File &pattern: - Schéma ou motif ? (motif ça fait penser au style du même nom...) - &Motif de fichier : - - - Directory to search - Dossier dans lequel effectuer la recherche - - - - TextEditor::FontSettingsPageWidget Font Police @@ -14204,38 +13898,10 @@ Les encodages suivants pourraient convenir : Color Scheme Jeu de couleurs - - Bold - Gras - - - Italic - Italique - - - Background: - Arrière plan : - - - Foreground: - Premier plan : - - - Erase background - Effacer l'arrière plan - - - Preview: - Aperçu : - Copy... Copier... - - Delete - Supprimer - % % @@ -14244,9 +13910,6 @@ Les encodages suivants pourraient convenir : Zoom: Zoom : - - - TextEditor::Internal::LineNumberFilter Line %1, Column %2 Ligne %1, colonne %2 @@ -14267,9 +13930,6 @@ Les encodages suivants pourraient convenir : Line in Current Document Ligne du document courant - - - TextEditor::Internal::TextEditorPlugin Creates a text file (.txt). Créer un fichier texte (.txt). @@ -14338,9 +13998,6 @@ Les encodages suivants pourraient convenir : Current document's font size in points. Taille de la police du document courant en points. - - - TextEditor::TextEditorActionHandler &Undo Annu&ler @@ -14911,9 +14568,6 @@ Les encodages suivants pourraient convenir : <line number> <numéro de ligne> - - - TextEditor::TextEditorSettings Text Texte @@ -15354,10 +15008,6 @@ Ne sera pas appliquée aux espaces dans les commentaires et les chaînes.Diff Location Emplacement du Diff - - Text Editor - Éditeur de texte - Behavior Comportement @@ -16679,7 +16329,7 @@ p, li { white-space: pre-wrap; } - TextEditor::Internal::ColorSchemeEdit + ::TextEditor Bold Gras @@ -18422,15 +18072,12 @@ S60 emulator run configuration default display name, %1 is base pro-File name - TextEditor::Internal::ColorScheme + ::TextEditor Not a color scheme file. Pas sur ? Pas un fichier de jeu de couleur. - - - TextEditor::Internal::FontSettings Customized Personnalisé @@ -28637,15 +28284,11 @@ Requiert <b>Qt 4.7.0</b> ou plus récent. - TextEditor::HighlighterSettingsPage + ::TextEditor Generic Highlighter Coloration syntaxique générique - - Download Definitions - Télécharger des définitions - Download Definitions... Téléchargement des définitions... @@ -28670,9 +28313,6 @@ Requiert <b>Qt 4.7.0</b> ou plus récent. Not possible to retrieve data. Impossile d'obtenir les données. - - - TextEditor::Internal::ManageDefinitionsDialog Name Nom @@ -28723,9 +28363,6 @@ Requiert <b>Qt 4.7.0</b> ou plus récent. Download Selected Definitions Télécharger les définitions sélectionnées - - - TextEditor::Internal::Manager Registering definitions Enregistrement des définitions @@ -28752,9 +28389,6 @@ Veuillez vérifier les droits d'accès du répertoire. Download Error Erreur lors du téléchargement - - - TextEditor::Internal::OutlineWidgetStack No outline available Aucun contour disponible @@ -28767,16 +28401,10 @@ Veuillez vérifier les droits d'accès du répertoire. Filter tree Filtrer l'arbre - - - TextEditor::Internal::OutlineFactory Outline Contour - - - TextEditor::Internal::PlainTextEditorFactory A highlight definition was not found for this file. Would you like to try to find one? Aucune définition de coloration syntaxique trouvée pour ce fichier. Voulez vous essayer d'en chercher une ? @@ -29789,7 +29417,7 @@ Les version de Qt précédentes ont des limitations lors de la compilation des f - BehaviorSettingsWidget + ::TextEditor Tabs and Indentation Tabulation et indentation @@ -29798,10 +29426,6 @@ Les version de Qt précédentes ont des limitations lors de la compilation des f Insert &spaces instead of tabs Insérer des e&spaces au lieu de tabulations - - Ta&b size: - Taille de &tabulation : - Automatically determine based on the nearest indented line (previous line preferred over next line) Déterminer automatiquement en se basant sur la ligne indentée la plus proche (ligne précédente préférée à la ligne suivante) @@ -29810,14 +29434,6 @@ Les version de Qt précédentes ont des limitations lors de la compilation des f Based on the surrounding lines Basé sur les lignes environnantes - - &Indent size: - Taille de l'in&dentation : - - - Enable automatic &indentation - Activer l'&indentation automatique - Backspace will go back one indentation level instead of one space. La touche retour reviendra un niveau d'indentation en arrière au lieux d'un caractère espace. @@ -29830,355 +29446,11 @@ Les version de Qt précédentes ont des limitations lors de la compilation des f Block indentation style: Style d'indentation de bloc : - - <html><head/><body> -Controls the indentation style of curly brace blocks. - -<ul> -<li>Exclude Braces: The braces are not indented. -<pre> -void foo() -{ - if (a) - { - bar(); - } -} -</pre> -</li> - -<li>Include Braces: The braces are indented. The contents of the block are on the same level as the braces. -<pre> -void foo() - { - if (a) - { - bar(); - } - } -</pre> -</li> - -<li>GNU Style: Indent the braces for blocks in statements. The contents are indented twice. -<pre> -void foo() -{ - if (a) - { - bar(); - } -} -</pre> -</li> -</ul></body></html> - <html><head/><body> -Contrôle le style d'indentation des blocs entre accolades. -<ul> -<li>Accolades exclusives : elles ne sont pas indentées. -<pre> -void foo() -{ - if (a) - { - bar(); - } -} -</pre> -</li> - -<li>Accolades inclusives : elles sont indentées. Le contenu du bloc est au même niveau que les accolades. -<pre> -void foo() - { - if (a) - { - bar(); - } - } -</pre> -</li> - -<li>Style GNU : indenter les accolades de blocs dans des déclarations. Le contenu est indenté deux fois. -<pre> -void foo() -{ - if (a) - { - bar(); - } -} -</pre> -</li> -</ul></body></html> - - - Exclude Braces - Exclure les accolades - - - Include Braces - Inclure les accolades - - - GNU Style - Style GNU - - - Tab key performs auto-indent: - La touche tabulation active l'identation automatique : - - - Never - Jamais - - - Always - Toujours - - - In Leading White Space - Dans des espaces en début de ligne - - - Align continuation lines: - Aligner les lignes de continuation : - - - <html><head/><body> -Influences the indentation of continuation lines. - -<ul> -<li>Not At All: Do not align at all. Lines will only be indented to the current logical indentation depth. -<pre> -(tab)int i = foo(a, b -(tab)c, d); -</pre> -</li> - -<li>With Spaces: Always use spaces for alignment, regardless of the other indentation settings. -<pre> -(tab)int i = foo(a, b -(tab) c, d); -</pre> -</li> - -<li>With Regular Indent: Use tabs and/or spaces for alignment, as configured above. -<pre> -(tab)int i = foo(a, b -(tab)(tab)(tab) c, d); -</pre> -</li> -</ul></body></html> - <html><head/><body> -Influence l'indentation des lignes de continuation. -<ul> -<li>Pas du tout : ne pas aligner. Les lignes ne seront indentées jusqu'à la profondeur d'indentation logique. -<pre> -(tab)int i = foo(a, b -(tab)c, d); -</pre> -</li> -<li>Avec espaces : toujours utiliser des espaces pour l'alignement, sans tenir compte des autres paramètres d'indentation. -<pre> -(tab)int i = foo(a, b -(tab) c, d); -</pre> -</li> -<li>Avec indentation régulière : utiliser des tabulations et/ou des espaces pour l'alignement, en fonction de la configuration. -<pre> -(tab)int i = foo(a, b -(tab)(tab)(tab) c, d); -</pre> -</li> -</ul></body></html> - - - Not At All - Pas du tout - - - With Spaces - Avec espaces - - - With Regular Indent - Avec indentation régulière - - - Cleanup actions which are automatically performed right before the file is saved to disk. - Actions de nettoyage qui sont effectuées automatiquement avant d'enregistrer le fichier sur le disque. - - - Cleanups Upon Saving - Nettoyage à la sauvegarde - - - Removes trailing whitespace upon saving. - Supprime les caractères d'espacement à la fin des lignes lors de la sauvegarde. - - - &Clean whitespace - &Nettoyer les espaces - - - Clean whitespace in entire document instead of only for changed parts. - Nettoyer les espaces dans tout le document au lieu de limiter le nettoyage aux parties modifiées. - - - In entire &document - Dans tout le &document - - - Correct leading whitespace according to tab settings. - Corriger les espaces à l'avant des lignes pour respecter la configuration des tabulations. - - - Clean indentation - Nettoyer l'indentation - - - &Ensure newline at end of file - &Forcer un retour de ligne à la fin du fichier - - - File Encodings - Encodages de fichier - - - Default encoding: - Encodage par défaut : - - - UTF-8 BOM: - UTF-8 BOM : - - - <html><head/><body> -<p>How text editors should deal with UTF-8 Byte Order Marks. The options are:</p> -<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 Qt Creator does not know what it actually is.</li> -<li><i>Keep If Already Present: </i>save the file with a BOM if it already had one when it was loaded.</li> -<li><i>Always Delete:</i> never write an UTF-8 BOM, possibly deleting a pre-existing one.</li></ul> -<p>Note that UTF-8 BOMs are uncommon and treated incorrectly by some editors, so it usually makes little sense to add any.</p> -<p>This setting does <b>not</b> influence the use of UTF-16 and UTF-32 BOMs.</p></body></html> - <html><head/><body> -<p>Comment les éditeurs de textes devrait gérer les BOM UTF-8. Les options sont : </p> -<ul ><li><i>ajouter si l'encodage est UTF-8 :</i> toujours ajouter un BOM à la sauvegarde d'un fichier en UTF-8 ; notez que ceci ne fonctionnera pas si l'encodage est <i>System</i>, puisque Qt Creator ne sait pas ce qu'il en est réellement ; </li> -<li><i>garder si déjà présent :</i> sauvegarder le fichier avec un BOM s'il en avait déjà un au chargement ; </li> -<li><i>toujours supprimer :</i> ne jamais écrire de BOM, parfois en supprimant l'existant.</li></ul> -<p>Notez que les BOM UTF-8 ne sont pas courants et sont traités de manière incorrecte par certains éditeurs, cela n'a que rarement du sens que d'en ajouter un. </p> -<p>Ce paramètre n'influence <b>pas</b> l'utilisation des BOM UTF-16 et UTF-32.</p></body></html> - - - Add If Encoding Is UTF-8 - Ajouter si l'encodage est UTF-8 - - - Keep If Already Present - Garder si déjà présent - - - Always Delete - Toujours supprimer - - - Mouse - Souris - - - Enable &mouse navigation - Activer la navigation à la &souris - - - Enable scroll &wheel zooming - Activer le zoom via la &roulette - - - Typing - au sens au clavier - Frappe - - - Backspace indentation: - Indentation pour retour arrière : - - - <html><head/><body> -Specifies how backspace interacts with indentation. - -<ul> -<li>None: No interaction at all. Regular plain backspace behavior. -</li> - -<li>Follows Previous Indents: In leading white space it will take the cursor back to the nearest indentation level used in previous lines. -</li> - -<li>Unindents: If the character behind the cursor is a space it behaves as a backtab. -</li> -</ul></body></html> - - <html><head/><body> -Specifie comment retour arrière se comporte avec l'indentation. - -<ul> -<li>Aucune: Aucune interaction. Comportement habituel de la touche retour arrière. -</li> - -<li>Suit l'indentation qui précède : dans des espaces de début de ligne, ramène le curseur au niveau d'indentation le plus proche utilisé dans les lignes précédentes. -</li> - -<li>Désindente : Si le caractère après le curseur est un espace, se comporte comme une tabulation arrière. -</li> -</ul></body></html> - - - - None - Aucune - - - Follows Previous Indents - Suit l'indentation qui précède - - - Unindents - Désindente - Enable &tooltips only when Shift key is down Activer les info-&bulles seulement lorsque la touche Shift est appuyée - - SnippetsSettingsPage - - Form - Formulaire - - - Group: - Groupe : - - - Add - Ajouter - - - Remove - Supprimer - - - Revert Built-in - Rétablir l'intégration - - - Restore Removed Built-ins - Rétablir les intégrations distantes - - - Reset All - Réinitialiser tout - - ::Valgrind @@ -33315,7 +32587,7 @@ Voys pouvez compiler l'application et la déployer sur desktop et mobile. P - TextEditor::BaseTextEditorWidget + ::TextEditor CTRL+D Ctrl+D @@ -33348,16 +32620,6 @@ Voys pouvez compiler l'application et la déployer sur desktop et mobile. P The text is too large to be displayed (%1 MB). Le texte est trop lourd pour être affiché (%1 Mo). - - - TextEditor::Internal::PlainTextSnippetProvider - - Text - Texte - - - - TextEditor::Internal::SnippetsTableModel Error Erreur @@ -33378,9 +32640,6 @@ Voys pouvez compiler l'application et la déployer sur desktop et mobile. P Error reverting snippet. Erreur lors de la restauration du snippet. - - - TextEditor::Internal::SnippetsSettingsPagePrivate Snippets Extraits de code @@ -33389,10 +32648,6 @@ Voys pouvez compiler l'application et la déployer sur desktop et mobile. P Error While Saving Snippet Collection Erreur lors de l'enregistrement de la collection de snippets - - Error - Erreur - No snippet selected. Pas de snippet sélectionné. @@ -34401,71 +33656,6 @@ Ils requièrent Qt 4.7.4 ou supérieur et l'ensemble de composants install Le fichier contenant la clé privée de l'utilisateur : - - LinuxDeviceFactorySelectionDialog - - Device Configuration Wizard Selection - Sélection de l'assistant de configuration du périphérique - - - Available device types: - Types de périphérique disponibles : - - - - TextEditor::TabPreferencesWidget - - Form - Formulaire - - - Tab settings: - Paramètres d'onglets : - - - - TextEditor::TabSettingsWidget - - Insert &spaces instead of tabs - Insérer des e&spaces au lieu de tabulations - - - Automatically determine based on the nearest indented line (previous line preferred over next line) - Déterminer automatiquement en se basant sur la ligne indentée la plus proche (ligne précédente préférée à la ligne suivante) - - - Based on the surrounding lines - Basé sur les lignes environnantes - - - Enable automatic &indentation - Activer l'&indentation automatique - - - Backspace will go back one indentation level instead of one space. - La touche retour reviendra un niveau d'indentation en arrière au lieux d'un caractère espace. - - - &Backspace follows indentation - La touche &retour arrière suit l'indentation - - - Tab key performs auto-indent: - La touche tabulation active l'identation automatique : - - - Never - Jamais - - - Always - Toujours - - - In Leading White Space - En début de ligne uniquement - - ::Valgrind @@ -37439,14 +36629,11 @@ Remote error output was: %1 - TextEditor::FunctionHintProposalWidget + ::TextEditor %1 of %2 %1 de %2 - - - TextEditor::FallbackSelectorWidget Settings: Paramètres : @@ -37464,9 +36651,6 @@ Remote error output was: %1 Restore Restaurer - - - TextEditor::Internal::SnippetsCollection Cannot create user snippet directory %1 Impossible de créer le dossier utilisateur de snippets %1 @@ -38297,35 +37481,7 @@ Pour compiler l'observateur QML, allez à la page des versions de Qt, séle - TextEditor::CodeStyleSelectorWidget - - Form - Formulaire - - - Current settings: - Paramètres actuels : - - - Copy... - Copier... - - - Edit... - Modifier... - - - Remove - Supprimer - - - Export... - Exporter... - - - Import... - Importer... - + ::TextEditor Copy Code Style Copier le style de code @@ -38346,10 +37502,6 @@ Pour compiler l'observateur QML, allez à la page des versions de Qt, séle Are you sure you want to delete this code style permanently? Êtes vous sur de vouloir supprimer ce style de code ? - - Delete - Supprimer - Import Code Style Importer un style de code @@ -39444,22 +38596,15 @@ Remote stderr was: '%1' - TextEditor::CodeStyleEditor + ::TextEditor 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. Éditer le prévisualisation du contenu pour voir la manière dont les paramètres actuels sont appliqués dans le snippets de code personnalisé. Les changements dans la zone de prévisualisation n'affectent pas les paramètres actuels. - - - TextEditor::Internal::CodeStyleDialog Edit Code Style Editez le style de code - - Code style name: - Nom du style de code : - You cannot save changes to a built-in code style. Copy it first to create your own version. Vous ne pouvez pas sauvegarder les changements dans un code de style préfabriqué. Copiez le d'abord pour créer votre propre version. @@ -39468,13 +38613,6 @@ Remote stderr was: '%1' Copy Built-in Code Style Copier le style de code préfabriqué - - %1 (Copy) - %1 (Copie) - - - - TextEditor::FindInFiles Files on File System Fichiers dans le système de fichiers @@ -39500,10 +38638,6 @@ Filtre : %2 &Browse... &Parcourir... - - &Browse - &Parcourir - Fi&le pattern: Pat&ron de fichier : @@ -40345,14 +39479,11 @@ Ces chemines sont utilisés en complément au répertoire courant pour basculer - TextEditor::Internal::BehaviorSettingsPage + ::TextEditor Form Formulaire - - - TextEditor::BehaviorSettingsWidget Typing Frappe @@ -40547,21 +39678,10 @@ Specifie comment retour arrière se comporte avec l'indentation. Show help tooltips using the mouse: Afficher les info-bulles d'aide en utilisant la souris : - - - TextEditor::Internal::CodeStyleSelectorWidget - - Form - Formulaire - Current settings: Paramètres actuels : - - Copy... - Copier... - Edit... Modifier... @@ -40578,13 +39698,6 @@ Specifie comment retour arrière se comporte avec l'indentation. Import... Importer... - - - TextEditor::DisplaySettingsPage - - Display - Affichage - Display line &numbers Afficher les &numéros de ligne @@ -40651,13 +39764,6 @@ francis : en effet, une erreur de ma part --> validé. Display file encoding Afficher l'encodage du fichier - - - TextEditor::Internal::HighlighterSettingsPage - - Form - Formulaire - <html><head/><body> <p>Highlight definitions are provided by the <a href="http://kate-editor.org/">Kate Text Editor</a>.</p></body></html> @@ -40676,10 +39782,6 @@ francis : en effet, une erreur de ma part --> validé. Use fallback location Utiliser un emplacement de repli - - Behavior - Comportement - Alert when a highlight definition is not found Prévenir si une définition de coloration syntaxique n'est pas trouvée @@ -40688,13 +39790,6 @@ francis : en effet, une erreur de ma part --> validé. Ignored file patterns: Motifs de fichier ignorés : - - - TextEditor::Internal::SnippetsSettingsPage - - Form - Formulaire - Group: Groupe : @@ -40703,10 +39798,6 @@ francis : en effet, une erreur de ma part --> validé. Add Ajouter - - Remove - Supprimer - Revert Built-in Rétablir l'intégration @@ -40719,13 +39810,6 @@ francis : en effet, une erreur de ma part --> validé. Reset All Tout réinitialiser - - - TextEditor::TabSettingsWidget - - Form - Formulaire - Tabs And Indentation Tabulation et indentation @@ -42518,14 +41602,11 @@ Les modèles de code C++ et QML ont besoin d'une version de Qt et d'un - TextEditor::Internal::CountingLabel + ::TextEditor %1 found %1 élément(s) trouvé(s) - - - TextEditor::Internal::FindInOpenFiles Open Documents Documents ouverts @@ -47242,7 +46323,7 @@ n'a pas pu être trouvé dans le dossier. - TextEditor::BehaviorSettingsWidget + ::TextEditor Display context-sensitive help or type information on mouseover. Afficher l'aide contextuelle ou l'information du type lors d'un survol de souris. @@ -51508,7 +50589,7 @@ Cet assistant vous guidera à travers les étapes essentielles pour déployez un - RefactoringFile::apply + ::TextEditor Refactoring cannot be applied. La refactorisation ne peut être appliquée. @@ -52599,7 +51680,7 @@ réinitialisation du moniteur - TextEditor::QuickFixFactory + ::TextEditor Create Getter and Setter Member Functions Créer des fonctions membres accesseurs et mutateurs diff --git a/share/qtcreator/translations/qtcreator_hr.ts b/share/qtcreator/translations/qtcreator_hr.ts index 271aabf3e10..4309fc8075d 100644 --- a/share/qtcreator/translations/qtcreator_hr.ts +++ b/share/qtcreator/translations/qtcreator_hr.ts @@ -7793,7 +7793,7 @@ Sigurno želiš nastaviti? - TextEditor::BehaviorSettingsWidget + ::TextEditor Typing Tipkanje @@ -7986,9 +7986,6 @@ Specificira način uvlačenja s povratnom tipkom. On Shift+Mouseover Shift+Miš iznad objekta - - - TextEditor::Internal::CodeStyleSelectorWidget Current settings: Trenutačne postavke: @@ -8013,9 +8010,6 @@ Specificira način uvlačenja s povratnom tipkom. Import... Uvezi … - - - TextEditor::Internal::ColorSchemeEdit <p align='center'><b>Builtin color schemes need to be <a href="copy">copied</a><br/> before they can be changed</b></p> <p align='center'><b>Ugrađene sustave boja moraš <a href="copy">kopirati</a><br/> prije nego što ih možeš promijeniti</b></p> @@ -8104,9 +8098,6 @@ Specificira način uvlačenja s povratnom tipkom. Dash-Dot-Dot Underline Crtica-točka-točka podcrtavanje - - - TextEditor::Internal::CompletionSettingsPage Behavior Način ponašanja @@ -8123,10 +8114,6 @@ Specificira način uvlačenja s povratnom tipkom. Full Potpuno - - None - Bez - First Letter Prvo slovo @@ -8139,10 +8126,6 @@ Specificira način uvlačenja s povratnom tipkom. When Triggered Prilikom okidanja - - Always - Uvijek - Timeout in ms: Vremensko ograničenje u ms: @@ -8257,9 +8240,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Completion Dovršavanje - - - TextEditor::DisplaySettingsPage Text Wrapping Prelamanje teksta @@ -8356,13 +8336,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Between lines Između redaka - - - TextEditor::FontSettingsPageWidget - - Font - Font - Size: Veličina: @@ -8387,17 +8360,10 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Color Scheme Shema boja - - Copy... - Kopiraj … - Delete Ukloni - - - TextEditor::Internal::HighlighterSettingsPage <html><head/><body><p>Highlight definitions are provided by the <a href="https://api.kde.org/frameworks/syntax-highlighting/html/index.html">KSyntaxHighlighting</a> engine.</p></body></html> <html><head/><body><p>Definicije za isticanje omogućuje <a href="https://api.kde.org/frameworks/syntax-highlighting/html/index.html">KSyntaxHighlighting</a>.</p></body></html> @@ -8426,17 +8392,10 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Ignored file patterns: Zanemareni uzorci za datoteke: - - - TextEditor::Internal::SnippetsSettingsPage Add Dodaj - - Remove - Ukloni - Revert Built-in Vrati ugrađene @@ -8453,9 +8412,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Group: - - - TextEditor::TabSettingsWidget Tabs And Indentation Tabulatori i uvlake @@ -33972,14 +33928,11 @@ Row: %4, Column: %5 - TextEditor::SearchEngine + ::TextEditor Internal Unutarnje - - - TextEditor::BaseFileFind Searching Pretraživanje @@ -34004,17 +33957,11 @@ Row: %4, Column: %5 %n nađenih. - - - TextEditor::BehaviorSettingsPage Global Settings Globalno - - - TextEditor::BehaviorSettingsWidget Displays context-sensitive help or type information on mouseover. Prikazuje kontekstnu pomoć ili upiši podatke prilikom korištenja "Miš iznad objekta". @@ -34023,16 +33970,10 @@ Row: %4, Column: %5 Displays context-sensitive help or type information on Shift+Mouseover. Prikazuje kontekstnu pomoć ili upiši podatke prilikom korištenja "Shift+Miš iznad objekta". - - - TextEditor::FunctionHintProposalWidget %1 of %2 %1 od %2 - - - TextEditor::Internal::CodecSelector Text Encoding Vrsta kodiranja teksta @@ -34053,16 +33994,10 @@ Row: %4, Column: %5 Save with Encoding Spremi s kodiranjem - - - TextEditor::CodeStyleEditor 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. 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. - - - TextEditor::Internal::CodeStyleDialog Edit Code Style @@ -34083,21 +34018,10 @@ Row: %4, Column: %5 %1 (Copy) - - - TextEditor::CodeStyleSelectorWidget Copy Code Style - - Code style name: - - - - %1 (Copy) - - Delete Code Style @@ -34106,10 +34030,6 @@ Row: %4, Column: %5 Are you sure you want to delete this code style permanently? - - Delete - Ukloni - Import Code Style @@ -34134,16 +34054,10 @@ Row: %4, Column: %5 %1 [built-in] - - - TextEditor::Internal::ColorScheme Not a color scheme file. - - - TextEditor::Internal::FindInCurrentFile Current File @@ -34157,9 +34071,6 @@ Row: %4, Column: %5 %2 - - - TextEditor::FindInFiles Files in File System Datoteke u datotečnom sustavu @@ -34188,9 +34099,6 @@ Excluding: %3 Directory to Search - - - TextEditor::Internal::FindInOpenFiles Open Documents Otvori dokumente @@ -34204,16 +34112,10 @@ Excluding: %3 %1 - - - FontSettings_C_OCCURRENCES_UNUSED Unused variable Neupotrijebljena varijabla - - - TextEditor::FontSettingsPage Font && Colors Font &i boje @@ -34242,10 +34144,6 @@ Excluding: %3 Are you sure you want to delete this color scheme permanently? Zaista želiš zauvijek ukloniti ovaj sustav boja? - - Delete - Ukloni - Color Scheme Changed Sustav boja se je promijenio @@ -34258,9 +34156,6 @@ Excluding: %3 Discard Odbaci - - - ::TextEditor Cannot create temporary file "%1": %2. Nije moguće stvoriti privremenu datoteku "%1": %2. @@ -34301,9 +34196,6 @@ Excluding: %3 Text Editor Uređivač teksta - - - TextEditor::Highlighter Highlighter updates: done Aktualiziranja alata za isticanje: gotovo @@ -34312,9 +34204,6 @@ Excluding: %3 Highlighter updates: Aktualiziranja alata za isticanje: - - - TextEditor::HighlighterSettingsPage Generic Highlighter Generični alat za isticanje @@ -34323,9 +34212,6 @@ Excluding: %3 Update finished Aktualiziranje je dovršeno - - - TextEditor::Internal::LineNumberFilter Line in Current Document Redak u trenutačnom dokumentu @@ -34342,9 +34228,6 @@ Excluding: %3 Column %1 %1. stupac - - - TextEditor::Internal::OutlineWidgetStack No outline available Nema obrisa @@ -34357,23 +34240,14 @@ Excluding: %3 Filter tree Filtriraj stablo - - - TextEditor::Internal::OutlineFactory Outline Obris - - - RefactoringFile::apply Refactoring cannot be applied. Nije moguće primijeniti refactoring. - - - TextEditor::Internal::Snippets 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. @@ -34454,16 +34328,10 @@ Excluding: %3 group:'Text' trigger:'global' - - - TextEditor::Internal::SnippetsCollection Cannot create user snippet directory %1 Nije moguće stvoriti direktorij %1 za korisničke isječke - - - TextEditor::Internal::SnippetsTableModel Error Greška @@ -34484,9 +34352,6 @@ Excluding: %3 Error reverting snippet. Greška prilikom vraćanja isječka. - - - TextEditor::Internal::SnippetsSettingsPagePrivate Snippets Isječci @@ -34495,17 +34360,10 @@ Excluding: %3 Error While Saving Snippet Collection Greška prilikom spremanja kolekcije isječaka - - Error - Greška - No snippet selected. Nijedan isječak nije odabran. - - - TextEditor::TextDocument Diff Against Current File Razlike prema odabranoj datoteci @@ -34514,9 +34372,6 @@ Excluding: %3 Opening File Otvaranje datoteke - - - TextEditor::TextEditorWidget Line: 9999, Col: 999 9999. redak, 999. stupac @@ -34561,17 +34416,10 @@ Excluding: %3 Add UTF-8 BOM on Save Dodaj UTF-8 BOM prilikom spremanja - - - TextEditor::BaseTextEditor A highlight definition was not found for this file. Would you like to update highlight definition files? - - Update Definitions - Aktualiziraj definicije - More than one highlight definition was found for this file. Which one should be used to highlight this file? @@ -34580,9 +34428,6 @@ Excluding: %3 Remember My Choice - - - TextEditor::Internal::TextEditorActionHandler &Undo &Poništi @@ -35067,16 +34912,10 @@ Excluding: %3 Go to Next Word Camel Case with Selection Prijeđi na sljedeću „dvogrbu” riječ s odabirom - - - TextEditor::TextEditorActionHandler <line>:<column> <redak>:<stupac> - - - TextEditor::Internal::TextEditorPlugin Trigger Completion Okini kompletiranje @@ -35130,9 +34969,6 @@ Excluding: %3 Current document's font size in points. Font veličina trenutačnog dokumenta, u točkama. - - - TextEditor::TextEditorSettings Text Tekst @@ -35613,10 +35449,6 @@ Neće se primijeniti na bjeline u komentarima i znakovnim nizovima.Applied to lines describing changes in VCS log. Primijenjuje se retke koji opisuju promjene u VCS log-zapisu. - - Error - Greška - Underline color of error diagnostics. Boja podcrtavanja dijagnoza za greške. @@ -35653,14 +35485,6 @@ Neće se primijeniti na bjeline u komentarima i znakovnim nizovima.Writable arguments of a function call. Pisani argumenti poziva funkcije. - - Behavior - Način ponašanja - - - Display - Prikaz - ::Todo diff --git a/share/qtcreator/translations/qtcreator_hu.ts b/share/qtcreator/translations/qtcreator_hu.ts index e7c65847017..03aee2ac615 100644 --- a/share/qtcreator/translations/qtcreator_hu.ts +++ b/share/qtcreator/translations/qtcreator_hu.ts @@ -15208,21 +15208,11 @@ Hogy ezt megtehesse, gépelje be ezt a gyorsbillentyűt és egy szóközt a Lok - Snippets::Internal::0 + ::TextEditor Snippets Kódrészlet - - - Snippets::Internal::SnippetsPlugin - - Snippets - Kódrészlet - - - - Snippets::Internal::SnippetsWindow Snippets Kódrészlet @@ -15729,7 +15719,7 @@ Hogy ezt megtehesse, gépelje be ezt a gyorsbillentyűt és egy szóközt a Lok - TextEditor::0 + ::TextEditor %1 found %1 gefunden @@ -16192,9 +16182,6 @@ Hogy ezt megtehesse, gépelje be ezt a gyorsbillentyűt és egy szóközt a Lok Behavior Viselkedés - - - TextEditor::BaseFileFind %1 found %1 gefunden @@ -16207,9 +16194,6 @@ Hogy ezt megtehesse, gépelje be ezt a gyorsbillentyűt és egy szóközt a Lok Use Regular E&xpressions Reguláris kife&jezések használata - - - TextEditor::BaseTextDocument untitled címtelen @@ -16218,9 +16202,6 @@ Hogy ezt megtehesse, gépelje be ezt a gyorsbillentyűt és egy szóközt a Lok <em>Binary data</em> <em>Binäre Daten</em> - - - TextEditor::BaseTextEditor Print Document Dokumentum nyomtatása @@ -16233,9 +16214,6 @@ Hogy ezt megtehesse, gépelje be ezt a gyorsbillentyűt és egy szóközt a Lok Select Encoding Kódolás kiválasztása - - - TextEditor::BaseTextEditorEditable Line: %1, Col: %2 Sor: %1, Oszlop: %2 @@ -16244,9 +16222,6 @@ Hogy ezt megtehesse, gépelje be ezt a gyorsbillentyűt és egy szóközt a Lok Line: %1, Col: 999 Sor: %1, Oszlop: 999 - - - TextEditor::BehaviorSettingsPage Tabs and Indentation Tabulátorok és behúzás @@ -16323,9 +16298,6 @@ Hogy ezt megtehesse, gépelje be ezt a gyorsbillentyűt és egy szóközt a Lok &Ensure newline at end of file &Győzödjön meg, hogy újsor van a fájlok végén - - - TextEditor::DisplaySettingsPage Display Kijelzés @@ -16382,9 +16354,6 @@ Hogy ezt megtehesse, gépelje be ezt a gyorsbillentyűt és egy szóközt a Lok Enable &mouse navigation &Egér navigálás engedélyezése - - - TextEditor::FontSettingsPage Font & Colors Betű & színek @@ -16425,9 +16394,6 @@ Hogy ezt megtehesse, gépelje be ezt a gyorsbillentyűt és egy szóközt a Lok Discard Eldobás - - - TextEditor::Internal::0 Text Encoding Szöveg kódolás @@ -16558,9 +16524,6 @@ A következő kódolás valószínűleg erre illik: Meta+Space Meta+Space - - - TextEditor::Internal::CodecSelector Text Encoding Szöveg kódolás @@ -16583,16 +16546,10 @@ A következő kódolás valószínűleg erre illik: Save with Encoding Mentés kódolással - - - TextEditor::Internal::ColorScheme Not a color scheme file. Ez nem egy színterv fájl. - - - TextEditor::Internal::ColorSchemeEdit Bold Félkövér @@ -16617,16 +16574,10 @@ A következő kódolás valószínűleg erre illik: x x - - - TextEditor::Internal::FindInCurrentFile Current File Aktuális fájl - - - TextEditor::Internal::FindInFiles Files on Disk Lemezen levő fájlok @@ -16647,16 +16598,10 @@ A következő kódolás valószínűleg erre illik: Directory to search Könyvtárra keresés - - - TextEditor::Internal::FontSettings Customized Felöltöztetett - - - TextEditor::FontSettingsPageWidget Font Betű @@ -16681,13 +16626,6 @@ A következő kódolás valószínűleg erre illik: Copy... Másolás... - - Delete - Törlés - - - - TextEditor::Internal::LineNumberFilter Line %1 %1-es sor @@ -16696,9 +16634,6 @@ A következő kódolás valószínűleg erre illik: Line in current document Sor az aktuális dokumentumban - - - TextEditor::Internal::TextEditorPlugin Creates a text file (.txt). Szöveges fájl létrehozása(.txt. @@ -16731,9 +16666,6 @@ A következő kódolás valószínűleg erre illik: Alt+Return Alt+Return - - - TextEditor::TextEditorActionHandler &Undo &Visszacsinál @@ -16926,9 +16858,6 @@ A következő kódolás valószínűleg erre illik: <line number> - - - TextEditor::TextEditorSettings Text Szöveg @@ -17049,10 +16978,6 @@ A következő kódolás valószínűleg erre illik: Behavior Viselkedés - - Display - Kijelzés - ToolChain diff --git a/share/qtcreator/translations/qtcreator_it.ts b/share/qtcreator/translations/qtcreator_it.ts index 76c21446b10..e5e2e4e6e22 100644 --- a/share/qtcreator/translations/qtcreator_it.ts +++ b/share/qtcreator/translations/qtcreator_it.ts @@ -9234,14 +9234,7 @@ Per eseguire la ricerca, scrivi questo prefisso, uno spazio e poi il termine da - Snippets::Internal::SnippetsPlugin - - Snippets - Frammenti - - - - Snippets::Internal::SnippetsWindow + ::TextEditor Snippets Frammenti @@ -9540,7 +9533,7 @@ Per eseguire la ricerca, scrivi questo prefisso, uno spazio e poi il termine da - TextEditor::BaseFileFind + ::TextEditor %1 found %1 trovati @@ -9553,9 +9546,6 @@ Per eseguire la ricerca, scrivi questo prefisso, uno spazio e poi il termine da Use Regular E&xpressions Usa &Espressioni Regolari - - - TextEditor::BaseTextDocument untitled senza titolo @@ -9564,9 +9554,6 @@ Per eseguire la ricerca, scrivi questo prefisso, uno spazio e poi il termine da <em>Binary data</em> <em>Dati binari</em> - - - TextEditor::BaseTextEditor Print Document Stampa il Documento @@ -9579,9 +9566,6 @@ Per eseguire la ricerca, scrivi questo prefisso, uno spazio e poi il termine da Select Encoding Seleziona Codifica - - - TextEditor::BaseTextEditorEditable Line: %1, Col: %2 Riga: %1, Col: %2 @@ -9590,9 +9574,6 @@ Per eseguire la ricerca, scrivi questo prefisso, uno spazio e poi il termine da Line: %1, Col: 999 Riga: %1, Col: 999 - - - TextEditor::BehaviorSettingsPage Storage Salvataggio @@ -9687,9 +9668,6 @@ Per eseguire la ricerca, scrivi questo prefisso, uno spazio e poi il termine da In leading white space Sugli spazi all'inizio - - - TextEditor::DisplaySettingsPage Display Visualizzazione @@ -9759,9 +9737,6 @@ Per eseguire la ricerca, scrivi questo prefisso, uno spazio e poi il termine da Mark text changes - - - TextEditor::FontSettingsPage Font & Colors Font & Colori @@ -9808,9 +9783,6 @@ Per eseguire la ricerca, scrivi questo prefisso, uno spazio e poi il termine da Questo è solo un esempio. - - - TextEditor::Internal::CodecSelector Text Encoding Codifica del Testo @@ -9833,16 +9805,10 @@ Queste codifiche dovrebbero andare bene: Save with Encoding Salva con Codifica - - - TextEditor::Internal::FindInCurrentFile Current File File Corrente - - - TextEditor::Internal::FindInFiles Files on Disk File sul Disco @@ -9863,9 +9829,6 @@ Queste codifiche dovrebbero andare bene: Directory to search Cartella di ricerca - - - TextEditor::FontSettingsPageWidget Font Tipo di carattere @@ -9928,9 +9891,6 @@ Queste codifiche dovrebbero andare bene: Delete Elimina - - - TextEditor::Internal::LineNumberFilter Line %1 Riga %1 @@ -9939,9 +9899,6 @@ Queste codifiche dovrebbero andare bene: Line in current document Riga nel documento corrente - - - TextEditor::Internal::TextEditorPlugin Creates a text file (.txt). Crea un file di testo (.txt). @@ -9974,9 +9931,6 @@ Queste codifiche dovrebbero andare bene: Alt+Return - - - TextEditor::TextEditorActionHandler &Undo &Annulla @@ -10161,9 +10115,6 @@ Queste codifiche dovrebbero andare bene: <line number> <numero di riga> - - - TextEditor::TextEditorSettings Text Testo @@ -10284,10 +10235,6 @@ Queste codifiche dovrebbero andare bene: Behavior Comportamento - - Display - Visualizzazione - TopicChooser @@ -11329,7 +11276,7 @@ p, li { white-space: pre-wrap; } - TextEditor::Internal::ColorSchemeEdit + ::TextEditor Bold Grassetto @@ -12514,14 +12461,11 @@ Check if the phone is connected and the TRK application is running. - TextEditor::Internal::ColorScheme + ::TextEditor Not a color scheme file. - - - TextEditor::Internal::FontSettings Customized diff --git a/share/qtcreator/translations/qtcreator_ja.ts b/share/qtcreator/translations/qtcreator_ja.ts index eb5d5325006..21dde5fa7ef 100644 --- a/share/qtcreator/translations/qtcreator_ja.ts +++ b/share/qtcreator/translations/qtcreator_ja.ts @@ -1881,7 +1881,7 @@ p, li { white-space: pre-wrap; } - TextEditor::Internal::CompletionSettingsPage + ::TextEditor Behavior 動作 @@ -1914,10 +1914,6 @@ p, li { white-space: pre-wrap; } When Triggered トリガー時 - - Always - 常時 - Timeout in ms: タイムアウト(ミリ秒): @@ -5979,14 +5975,11 @@ Add, modify, and remove document filters, which determine the documentation set - TextEditor::Internal::BehaviorSettingsPage + ::TextEditor Form フォーム - - - TextEditor::BehaviorSettingsWidget Typing タイピング @@ -6029,10 +6022,6 @@ Backspace キーが押された時のインデントの動作を指定します </ul></body></html> - - None - しない - Follows Previous Indents 前のインデントにあわせる @@ -6221,13 +6210,6 @@ Backspace キーが押された時のインデントの動作を指定します Prefer single line comments 一行形式のコメントを優先する - - - TextEditor::Internal::CodeStyleSelectorWidget - - Form - フォーム - Current settings: 現在の設定: @@ -6252,9 +6234,6 @@ Backspace キーが押された時のインデントの動作を指定します Import... インポート... - - - TextEditor::Internal::ColorSchemeEdit Foreground: 前景色: @@ -6347,9 +6326,6 @@ Backspace キーが押された時のインデントの動作を指定します Color: 色: - - - TextEditor::DisplaySettingsPage Text Wrapping 行の折り返し @@ -6462,13 +6438,6 @@ Backspace キーが押された時のインデントの動作を指定します Use context-specific margin 文脈に応じたマージンを使用する - - - TextEditor::FontSettingsPageWidget - - Font - フォント - Family: フォント名: @@ -6493,21 +6462,10 @@ Backspace キーが押された時のインデントの動作を指定します Color Scheme カラースキーム - - Copy... - コピー... - Delete 削除 - - - TextEditor::Internal::HighlighterSettingsPage - - Form - フォーム - <html><head/><body> <p>Highlight definitions are provided by the <a href="http://kate-editor.org/">Kate Text Editor</a>.</p></body></html> @@ -6526,10 +6484,6 @@ Backspace キーが押された時のインデントの動作を指定します Use fallback location 代替パスを使用する - - Behavior - 動作 - Ignored file patterns: 無視するファイルパターン: @@ -6574,9 +6528,6 @@ Backspace キーが押された時のインデントの動作を指定します Download finished ダウンロードの完了 - - - TextEditor::Internal::ManageDefinitionsDialog Dialog ダイアログ @@ -6613,10 +6564,6 @@ Backspace キーが押された時のインデントの動作を指定します Available 利用可能 - - Download Definitions - 定義をダウンロード - Download Information ダウンロード情報 @@ -6625,13 +6572,6 @@ Backspace キーが押された時のインデントの動作を指定します There is already one download in progress. Please wait until it is finished. 実行中のダウンロードが完了するまでお待ちください。 - - - TextEditor::Internal::SnippetsSettingsPage - - Form - フォーム - Group: グループ: @@ -6640,10 +6580,6 @@ Backspace キーが押された時のインデントの動作を指定します Add 追加 - - Remove - 削除 - Revert Built-in ビルトインに戻す @@ -6672,13 +6608,6 @@ Backspace キーが押された時のインデントの動作を指定します Snippets テンプレート - - - TextEditor::TabSettingsWidget - - Form - フォーム - Tabs And Indentation タブとインデント @@ -14674,7 +14603,7 @@ to version control (%2) - TextEditor::QuickFixFactory + ::TextEditor Convert to Stack Variable スタック変数に変換 @@ -29818,7 +29747,7 @@ In addition, device connectivity will be tested. - TextEditor::BaseFileFind + ::TextEditor Searching 検索中 @@ -29843,35 +29772,19 @@ In addition, device connectivity will be tested. Aborting replace. 置換を中止しています。 - - - TextEditor::Internal::CountingLabel %1 found 一致 %1 件 - - - TextEditor::BehaviorSettingsPage Global Settings グローバル - - Behavior - 動作 - - - - TextEditor::FunctionHintProposalWidget %1 of %2 %1/%2 - - - TextEditor::Internal::CodecSelector Text Encoding 文字コードの指定 @@ -29892,16 +29805,10 @@ In addition, device connectivity will be tested. Save with Encoding 指定された文字コードで保存 - - - TextEditor::CodeStyleEditor 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. プレビューの内容を編集して現在の設定がコードにどのような影響を与えるかを確認してください。プレビューでの変更内容は現在の設定には何も影響を与えません。 - - - TextEditor::Internal::CodeStyleDialog Edit Code Style コードスタイルを編集 @@ -29922,21 +29829,10 @@ In addition, device connectivity will be tested. %1 (Copy) %1 (コピー) - - - TextEditor::CodeStyleSelectorWidget Copy Code Style コードスタイルをコピー - - Code style name: - コードスタイル名: - - - %1 (Copy) - %1 (コピー) - Delete Code Style コードスタイルを削除 @@ -29945,10 +29841,6 @@ In addition, device connectivity will be tested. Are you sure you want to delete this code style permanently? このコードスタイルを完全に削除しますか? - - Delete - 削除 - Import Code Style コードスタイルをインポート @@ -29973,16 +29865,10 @@ In addition, device connectivity will be tested. %1 [built-in] %1 [ビルトイン] - - - TextEditor::Internal::ColorScheme Not a color scheme file. カラースキームファイルではありません。 - - - TextEditor::Internal::FindInCurrentFile Current File 現在のファイル @@ -29997,9 +29883,6 @@ In addition, device connectivity will be tested. ファイルパス: %1 %2 - - - TextEditor::FindInFiles Directory ディレクトリ @@ -30033,9 +29916,6 @@ Filter: %2 Files in File System ファイルシステム上のファイル - - - TextEditor::Internal::FindInOpenFiles Open Documents 開いているドキュメント @@ -30050,9 +29930,6 @@ Filter: %2 開いているドキュメント %1 - - - TextEditor::FontSettingsPage Font && Colors フォント && 色 @@ -30081,10 +29958,6 @@ Filter: %2 Are you sure you want to delete this color scheme permanently? このカラースキームを完全に削除しますか? - - Delete - 削除 - Color Scheme Changed 変更されたカラースキーム @@ -30097,13 +29970,6 @@ Filter: %2 Discard 破棄 - - - TextEditor::HighlighterSettingsPage - - Generic Highlighter - 汎用ハイライタ - Download Definitions... 定義をダウンロード... @@ -30128,9 +29994,6 @@ Filter: %2 Not possible to retrieve data. データを受信できません。 - - - TextEditor::Internal::LineNumberFilter Line in Current Document 現在のドキュメントの行番号 @@ -30147,9 +30010,6 @@ Filter: %2 Column %1 %1 列 - - - TextEditor::Internal::OutlineWidgetStack No outline available アウトライン利用不可 @@ -30166,41 +30026,22 @@ Filter: %2 Sort Alphabetically アルファベット順にソート - - - TextEditor::Internal::OutlineFactory Outline アウトライン - - - RefactoringFile::apply Refactoring cannot be applied. リファクターを適用出来ませんでした。 - - - TextEditor::Internal::PlainTextSnippetProvider Text テキスト - - - TextEditor::Internal::SnippetsCollection Cannot create user snippet directory %1 ユーザーテンプレートディレクトリ %1 を作成できません - - - TextEditor::Internal::SnippetsTableModel - - Error - エラー - Not a valid trigger. 有効なトリガーではありません。 @@ -30217,28 +30058,6 @@ Filter: %2 Error reverting snippet. テンプレートを元に戻そうとしてエラーが発生しました。 - - - TextEditor::Internal::SnippetsSettingsPagePrivate - - Snippets - テンプレート - - - Error While Saving Snippet Collection - テンプレートコレクション保存中にエラー - - - Error - エラー - - - No snippet selected. - テンプレートが選択されていません。 - - - - TextEditor::Internal::TextEditorPlugin Meta+Space Meta+Space @@ -30288,13 +30107,6 @@ Filter: %2 Current document's font size in points. 現在のドキュメントのフォントサイズです。 - - - TextEditorSettings - - Text - テキスト - Generic text. Applied to text, if no other rules matching. @@ -30737,10 +30549,6 @@ Will not be applied to whitespace in comments and strings. Applied to lines describing changes in VCS log. バージョン管理システムのログにおいて変更を記載した行に適用されます。 - - Error - エラー - Underline color of error diagnostics. エラー判定時の下線の色です。 @@ -30777,14 +30585,6 @@ Will not be applied to whitespace in comments and strings. Declaration of a function, variable, and so on. 関数や変数などの宣言です。 - - Behavior - 動作 - - - Display - 表示 - ::Todo @@ -32930,7 +32730,7 @@ kill しますか? - TextEditor::BehaviorSettingsWidget + ::TextEditor Displays context-sensitive help or type information on mouseover. マウスオーバーでコンテキストヘルプや型情報を表示します。 @@ -32939,9 +32739,6 @@ kill しますか? Displays context-sensitive help or type information on Shift+Mouseover. Shift+マウスオーバーでコンテキストヘルプや型情報を表示します。 - - - FontSettings_C_OCCURRENCES_UNUSED Unused variable 未使用の変数 @@ -34034,7 +33831,7 @@ API バージョンが %1 以上の SDK をインストールしてください - TextEditor::Internal::MultiDefinitionDownloader + ::TextEditor Downloading Highlighting Definitions ハイライト定義をダウンロード中 @@ -41502,14 +41299,11 @@ Android パッケージソースディレクトリのファイルはビルドデ - TextEditor::TextDocument + ::TextEditor Opening File ファイルを開いています - - - TextEditor::BaseTextEditor A highlight definition was not found for this file. Would you like to try to find one? このファイル用のハイライト定義が見つかりませんでした。定義を探しますか? @@ -41518,13 +41312,6 @@ Android パッケージソースディレクトリのファイルはビルドデ Show Highlighter Options... ハイライトオプションの表示... - - Download Definitions - 定義をダウンロード - - - - TextEditor::TextEditorWidget Line: 9999, Col: 999 行番号: 9999, 列位置: 999 @@ -41565,32 +41352,10 @@ Android パッケージソースディレクトリのファイルはビルドデ Add UTF-8 BOM on Save 保存時に UTF-8 BOM を追加 - - - TextEditorWidget CTRL+D CTRL+D - - <b>Error:</b> Could not decode "%1" with "%2"-encoding. Editing not possible. - <b>エラー:</b> "%1" を文字コード "%2" ではデコードできませんでした。編集できません。 - - - Select Encoding - 文字コードの選択 - - - Line: %1, Col: %2 - 行番号: %1, 列位置: %2 - - - Line: 9999, Col: 999 - 行番号: 9999, 列位置: 999 - - - - TextEditor::Internal::TextEditorActionHandler &Undo 元に戻す(&U) @@ -42044,13 +41809,6 @@ Android パッケージソースディレクトリのファイルはビルドデ 次の単語のキャメルケースに移動し、選択状態にする - - TextEditor::TextEditorActionHandler - - <line>:<column> - <行>:<列> - - UpdateInfo::Internal::SettingsPage @@ -49262,504 +49020,7 @@ Row: %4, Column: %5 - TextEditor::DisplaySettingsPage - - - TextEditor::FontSettingsPageWidget - - Copy Color Scheme - カラースキームをコピー - - - Color scheme name: - カラースキーム名: - - - %1 (copy) - %1 (コピー) - - - Delete Color Scheme - カラースキームを削除 - - - Are you sure you want to delete this color scheme permanently? - このカラースキームを完全に削除しますか? - - - Color Scheme Changed - 変更されたカラースキーム - - - The color scheme "%1" was modified, do you want to save the changes? - このカラースキーム "%1" は変更されています。変更内容をセーブしますか? - - - Discard - 破棄 - - - Font && Colors - フォント && 色 - - - - TextEditor::TextEditorSettings - - Text - テキスト - - - Link - リンク - - - Links that follow symbol under cursor. - カーソル位置のシンボルの定義へのリンクです。 - - - Selection - 選択部分 - - - Selected text. - 選択したテキストです。 - - - Line Number - 行番号 - - - Line numbers located on the left side of the editor. - エディタの左側に配置される行番号です。 - - - Search Result - 検索結果 - - - Highlighted search results inside the editor. - エディタ内で強調表示される検索結果です。 - - - Search Scope - 検索範囲 - - - Section where the pattern is searched in. - パターンの検索範囲です。 - - - Parentheses - 括弧 - - - Displayed when matching parentheses, square brackets or curly brackets are found. - 対応する括弧や鍵括弧、波括弧が見つかっている時の表示です。 - - - Mismatched Parentheses - 未対応の括弧 - - - Displayed when mismatched parentheses, square brackets, or curly brackets are found. - 対応する括弧や鍵括弧、波括弧が見つからない時の表示です。 - - - Auto Complete - 自動補完 - - - Displayed when a character is automatically inserted like brackets or quotes. - 括弧や引用符などの文字が自動的に挿入された場合に表示されます。 - - - Current Line - 現在行 - - - Line where the cursor is placed in. - カーソルの存在する行です。 - - - Current Line Number - 現在の行番号 - - - Line number located on the left side of the editor where the cursor is placed in. - カーソルが存在するエディタの左側に配置される行番号です。 - - - Occurrences - 出現箇所 - - - Occurrences of the symbol under the cursor. -(Only the background will be applied.) - カーソルの位置にあるシンボルの出現箇所です。 -(バックグラウンドだけ適用されます。) - - - Unused Occurrence - 未使用変数の出現箇所 - - - Occurrences of unused variables. - 未使用の変数の出現箇所です。 - - - Renaming Occurrence - 名前変更中シンボルの出現箇所 - - - Occurrences of a symbol that will be renamed. - 名前を変更しようとしているシンボルの出現箇所です。 - - - Number literal. - 数字リテラルです。 - - - String - 文字列 - - - Character and string literals. - 文字と文字列リテラルです。 - - - Primitive Type - プリミティブ型 - - - Name of a primitive data type. - プリミティブなデータ型の名前です。 - - - Name of a type. - 型名です。 - - - Local variables. - ローカル変数です。 - - - Field - フィールド - - - Class' data members. - クラスのデータメンバです。 - - - Global variables. - グローバル変数です。 - - - Enumeration - 列挙型 - - - Applied to enumeration items. - 列挙型のアイテムに適用されます。 - - - Function - 関数 - - - Name of a function. - 関数名です。 - - - Virtual Function - 仮想関数 - - - Name of function declared as virtual. - virtual として宣言されている関数名です。 - - - QML Binding - QML バインディング - - - QML item property, that allows a binding to another property. - 別のプロパティにバインド可能な QML アイテムのプロパティです。 - - - QML Local Id - QML ローカル ID - - - QML item id within a QML file. - QML ファイル内の QML アイテムの ID です。 - - - QML Root Object Property - QML ルートオブジェクトプロパティ - - - QML property of a parent item. - 親アイテムの QML プロパティです。 - - - QML Scope Object Property - QML スコープオブジェクトプロパティ - - - Property of the same QML item. - 同一 QML アイテムのプロパティです。 - - - QML State Name - QML 状態名 - - - Name of a QML state. - QML の状態名です。 - - - QML Type Name - QML 型名 - - - Name of a QML type. - QML の型名です。 - - - QML External Id - QML 外部 ID - - - QML id defined in another QML file. - 別の QML ファイルで定義されている QML ID です。 - - - QML External Object Property - QML 外部オブジェクトプロパティ - - - QML property defined in another QML file. - 別の QML ファイルで定義されている QML プロパティです。 - - - JavaScript Scope Var - JavaScript スコープ変数 - - - Variables defined inside the JavaScript file. - JavaScript ファイル内で定義されている変数です。 - - - JavaScript Import - JavaScript Import - - - Name of a JavaScript import inside a QML file. - QML ファイル内でインポートされている JavaScript の名前です。 - - - JavaScript Global Variable - JavaScript グローバル変数 - - - Variables defined outside the script. - 外部のスクリプトで定義されている変数です。 - - - Keyword - キーワード - - - Reserved keywords of the programming language except keywords denoting primitive types. - プログラム言語によって予約されているキーワードです(プリミティブ型を示すキーワードを除く)。 - - - Operator - 演算子 - - - Preprocessor - プリプロセッサ - - - Preprocessor directives. - プリプロセッサディレクティブです。 - - - Label - ラベル - - - Labels for goto statements. - goto ステートメント用のラベルです。 - - - Comment - コメント - - - All style of comments except Doxygen comments. - Doxgen 用のコメント以外のすべてのコメントです。 - - - Doxygen Comment - Doxygen 用コメント - - - Doxygen comments. - Doxygen 用のコメントです。 - - - Doxygen Tag - Doxygen 用タグ - - - Doxygen tags. - Doxygen 用のタグです。 - - - Visual Whitespace - 空白の可視化 - - - Whitespace. -Will not be applied to whitespace in comments and strings. - 空白です。 -コメントや文字列内の空白には適用されません。 - - - Disabled Code - 無効化されたコード - - - Code disabled by preprocessor directives. - プリプロセッサ ディレクティブによって無効化されたコードです。 - - - Added Line - 追加された行 - - - Applied to added lines in differences (in diff editor). - 差分内の追加された行に適用されます (差分エディタ)。 - - - Removed Line - 削除された行 - - - Applied to removed lines in differences (in diff editor). - 差分内の削除された行に適用されます (差分エディタ)。 - - - Diff File - 差分ファイル - - - Compared files (in diff editor). - 比較しているファイルです (差分エディタ)。 - - - Diff Location - 差分の位置 - - - Location in the files where the difference is (in diff editor). - ファイルの差分がある位置です(差分エディタ)。 - - - Diff File Line - 差分のファイル行 - - - Applied to lines with file information in differences (in side-by-side diff editor). - 差分のファイル情報が含まれる行に適用されます(サイドバイサイド差分エディタにて)。 - - - Diff Context Line - 差分のコンテキスト行 - - - Applied to lines describing hidden context in differences (in side-by-side diff editor). - 差分の隠されたコンテキストが記述された行に適用されます(サイドバイサイド差分エディタにて)。 - - - Diff Source Line - 差分の比較元の行 - - - Applied to source lines with changes in differences (in side-by-side diff editor). - 差分の比較元の変更された行に適用されます(サイドバイサイド差分エディタにて)。 - - - Diff Source Character - 差分の比較元の文字 - - - Applied to removed characters in differences (in side-by-side diff editor). - 差分の削除された文字列に適用されます(サイドバイサイド差分エディタにて)。 - - - Diff Destination Line - 差分の比較先の行 - - - Applied to destination lines with changes in differences (in side-by-side diff editor). - 差分の比較先の変更された行に適用されます(サイドバイサイド差分エディタにて)。 - - - Diff Destination Character - 差分の比較先の文字 - - - Applied to added characters in differences (in side-by-side diff editor). - 差分の追加された文字列に適用されます(サイドバイサイド差分エディタにて)。 - - - Log Change Line - ログの変更行 - - - Applied to lines describing changes in VCS log. - バージョン管理システムのログにおいて変更を記載した行に適用されます。 - - - Error - エラー - - - Underline color of error diagnostics. - エラー判定時の下線の色です。 - - - Error Context - エラーコンテキスト - - - Underline color of the contexts of error diagnostics. - エラー判定時のコンテキストの下線の色です。 - - - Warning - 警告 - - - Underline color of warning diagnostics. - 警告判定時の下線の色です。 - - - Warning Context - 警告コンテキスト - - - Underline color of the contexts of warning diagnostics. - 警告判定時のコンテキストの下線の色です。 - - - - TextEditor::TextMark + ::TextEditor Show Diagnostic Settings 診断設定を表示する diff --git a/share/qtcreator/translations/qtcreator_pl.ts b/share/qtcreator/translations/qtcreator_pl.ts index 8904864b113..63db34ffd76 100644 --- a/share/qtcreator/translations/qtcreator_pl.ts +++ b/share/qtcreator/translations/qtcreator_pl.ts @@ -1200,7 +1200,7 @@ - TextEditor::Internal::ColorSchemeEdit + ::TextEditor Bold Pogrubiony @@ -1285,13 +1285,6 @@ Color: Kolor: - - - TextEditor::FontSettingsPageWidget - - Font - Czcionka - Family: Rodzina: @@ -8823,7 +8816,7 @@ Wstępnie wybiera wersję desktopową Qt do budowania aplikacji (jeśli jest dos - TextEditor::BaseFileFind + ::TextEditor Searching Przeszukiwanie @@ -8848,9 +8841,6 @@ Wstępnie wybiera wersję desktopową Qt do budowania aplikacji (jeśli jest dos %n znalezień. - - - TextEditor::BaseTextEditor A highlight definition was not found for this file. Would you like to try to find one? Definicja podświetleń dla tego pliku nie została znaleziona. Czy chcesz spróbować ją znaleźć? @@ -8859,9 +8849,6 @@ Wstępnie wybiera wersję desktopową Qt do budowania aplikacji (jeśli jest dos Show Highlighter Options... Pokaż opcje podświetlania... - - - TextEditor::Internal::CodecSelector Text Encoding Kodowanie tekstu @@ -8882,16 +8869,10 @@ Wstępnie wybiera wersję desktopową Qt do budowania aplikacji (jeśli jest dos Save with Encoding Zachowaj z kodowaniem - - - TextEditor::Internal::ColorScheme Not a color scheme file. Nie jest to plik ze schematem kolorów. - - - TextEditor::Internal::FindInCurrentFile Current File Bieżący plik @@ -8906,9 +8887,6 @@ Wstępnie wybiera wersję desktopową Qt do budowania aplikacji (jeśli jest dos Ścieżka pliku: %1 %2 - - - TextEditor::FontSettingsPage Font && Colors Czcionki i kolory @@ -8937,10 +8915,6 @@ Wstępnie wybiera wersję desktopową Qt do budowania aplikacji (jeśli jest dos Are you sure you want to delete this color scheme permanently? Czy usunąć ten schemat kolorów bezpowrotnie? - - Delete - Usuń - Color Scheme Changed Schemat kolorów został zmieniony @@ -8953,9 +8927,6 @@ Wstępnie wybiera wersję desktopową Qt do budowania aplikacji (jeśli jest dos Discard Odrzuć - - - TextEditor::Internal::LineNumberFilter Line %1, Column %2 Linia %1, kolumna %2 @@ -8972,16 +8943,10 @@ Wstępnie wybiera wersję desktopową Qt do budowania aplikacji (jeśli jest dos Line in Current Document Linia w bieżącym dokumencie - - - TextEditor::TextEditorActionHandler <line>:<column> <linia>:<kolumna> - - - TextEditor::Internal::TextEditorPlugin Ctrl+Space Ctrl+Space @@ -9035,9 +9000,6 @@ Wstępnie wybiera wersję desktopową Qt do budowania aplikacji (jeśli jest dos Current document's font size in points. Rozmiar czcionki bieżącego dokumentu w punktach. - - - TextEditor::TextEditorSettings Text Tekst @@ -9484,10 +9446,6 @@ Nie zostanie zastosowane do białych znaków w komentarzach i ciągach znakowych Applied to lines describing changes in VCS log. Stosowane do linii opisujących zmiany w logu systemu kontroli wersji. - - Error - Błędy - Underline color of error diagnostics. Kolor podkreślenia błędów. @@ -13331,7 +13289,7 @@ Adds the library and include paths to the .pro file. - TextEditor::HighlighterSettingsPage + ::TextEditor Generic Highlighter Ogólne podświetlanie @@ -13360,9 +13318,6 @@ Adds the library and include paths to the .pro file. Not possible to retrieve data. Nie można odebrać danych. - - - TextEditor::Internal::ManageDefinitionsDialog Name Nazwa @@ -13411,9 +13366,6 @@ Adds the library and include paths to the .pro file. Download Selected Definitions Pobierz zaznaczone definicje - - - TextEditor::Internal::OutlineWidgetStack No outline available Konspekt nie jest dostępny @@ -13426,9 +13378,6 @@ Adds the library and include paths to the .pro file. Filter tree Przefiltruj drzewo - - - TextEditor::Internal::OutlineFactory Outline Konspekt @@ -15486,7 +15435,7 @@ Ponowić próbę? - TextEditor::Internal::SnippetsTableModel + ::TextEditor Error Błąd @@ -15507,9 +15456,6 @@ Ponowić próbę? Error reverting snippet. Nie można odwrócić urywku. - - - TextEditor::Internal::SnippetsSettingsPagePrivate Snippets Urywki @@ -15518,10 +15464,6 @@ Ponowić próbę? Error While Saving Snippet Collection Błąd zapisu kolekcji urywków - - Error - Błąd - No snippet selected. Nie wybrano urywku. @@ -17203,22 +17145,16 @@ Do you want to save the data first? - TextEditor::BehaviorSettingsPage + ::TextEditor Global Settings Globalne - - - TextEditor::FunctionHintProposalWidget %1 of %2 %1 z %2 - - - TextEditor::Internal::SnippetsCollection Cannot create user snippet directory %1 Nie można utworzyć katalogu z urywkami użytkownika %1 @@ -18243,14 +18179,11 @@ Dodatkowo, przetestowane zostanie połączenie z urządzeniem. - TextEditor::CodeStyleEditor + ::TextEditor 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. 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. - - - TextEditor::Internal::CodeStyleDialog Edit Code Style Zmodyfikuj styl kodu @@ -18271,21 +18204,10 @@ Dodatkowo, przetestowane zostanie połączenie z urządzeniem. %1 (Copy) %1 (Kopia) - - - TextEditor::CodeStyleSelectorWidget Copy Code Style Skopiuj styl kodu - - Code style name: - Nazwa stylu kodu: - - - %1 (Copy) - %1 (Kopia) - Delete Code Style Usuń styl kodu @@ -18294,10 +18216,6 @@ Dodatkowo, przetestowane zostanie połączenie z urządzeniem. Are you sure you want to delete this code style permanently? Czy usunąć ten styl kodu bezpowrotnie? - - Delete - Usuń - Import Code Style Zaimportuj styl kodu @@ -18322,9 +18240,6 @@ Dodatkowo, przetestowane zostanie połączenie z urządzeniem. %1 [built-in] %1 [wbudowane] - - - TextEditor::FindInFiles Files in File System Pliki w systemie plików @@ -19332,14 +19247,11 @@ Przedrostki te, w dodatku do nazwy bieżącego pliku, używane są do przełącz - TextEditor::Internal::BehaviorSettingsPage + ::TextEditor Form Formularz - - - TextEditor::BehaviorSettingsWidget Typing Pisanie @@ -19539,21 +19451,10 @@ Ustala, jak klawisz "Backspace" reaguje na wcięcia. Enable smart selection changing - - - TextEditor::Internal::CodeStyleSelectorWidget - - Form - Formularz - Current settings: Bieżące ustawienia: - - Copy... - Kopiuj... - Edit... Modyfikuj... @@ -19570,13 +19471,6 @@ Ustala, jak klawisz "Backspace" reaguje na wcięcia. Import... Importuj... - - - TextEditor::DisplaySettingsPage - - Display - Wyświetlanie - Display line &numbers Wyświetlaj &numery linii @@ -19665,13 +19559,6 @@ Ustala, jak klawisz "Backspace" reaguje na wcięcia. Aligned at right side Wyrównane do prawej strony - - - TextEditor::Internal::HighlighterSettingsPage - - Form - Formularz - <html><head/><body> <p>Highlight definitions are provided by the <a href="http://kate-editor.org/">Kate Text Editor</a>.</p></body></html> @@ -19690,21 +19577,10 @@ Ustala, jak klawisz "Backspace" reaguje na wcięcia. Use fallback location Użyj położenia zastępczego - - Behavior - Zachowanie - Ignored file patterns: Ignorowane wzorce plików: - - - TextEditor::Internal::SnippetsSettingsPage - - Form - Formularz - Group: Grupa: @@ -19713,10 +19589,6 @@ Ustala, jak klawisz "Backspace" reaguje na wcięcia. Add Dodaj - - Remove - Usuń - Revert Built-in Odwróć zmiany we wbudowanych @@ -19729,13 +19601,6 @@ Ustala, jak klawisz "Backspace" reaguje na wcięcia. Reset All Przywróć wszystko - - - TextEditor::TabSettingsWidget - - Form - Formularz - Tabs And Indentation Tabulatory i wcięcia @@ -21817,7 +21682,7 @@ poinstruuje Qt Creatora o URI. - TextEditor::Internal::FindInOpenFiles + ::TextEditor Open Documents Otwarte dokumenty @@ -25402,7 +25267,7 @@ Zdalny: %4 - TextEditor::BehaviorSettingsWidget + ::TextEditor Displays context-sensitive help or type information on mouseover. Pokazuje pomoc kontekstową lub informację o typie po najechaniu kursorem myszy. @@ -25411,9 +25276,6 @@ Zdalny: %4 Displays context-sensitive help or type information on Shift+Mouseover. Pokazuje pomoc kontekstową lub informację o typie po naciśnięciu klawisza Shift i najechaniu kursorem myszy. - - - RefactoringFile::apply Refactoring cannot be applied. Nie można zrefaktoryzować. @@ -27989,7 +27851,7 @@ Czy przerwać ją? - FontSettings_C_OCCURRENCES_UNUSED + ::TextEditor Unused variable Nieużywana zmienna @@ -31831,7 +31693,7 @@ Pliki z katalogu źródłowego pakietu Android są kopiowane do katalogu budowan - TextEditor::Internal::MultiDefinitionDownloader + ::TextEditor Downloading Highlighting Definitions Pobieranie definicji podświetleń @@ -31852,16 +31714,10 @@ Pliki z katalogu źródłowego pakietu Android są kopiowane do katalogu budowan Download Error Błąd pobierania - - - TextEditor::TextDocument Opening File Otwieranie pliku - - - TextEditor::TextEditorWidget Print Document Wydruk dokumentu @@ -33113,7 +32969,7 @@ Ustawianie pułapek w liniach plików może się nie udać. - TextEditor::Internal::TextEditorActionHandler + ::TextEditor &Undo &Cofnij @@ -36053,7 +35909,7 @@ Ustaw prawdziwy plik wykonywalny Clang. - TextEditor::QuickFixFactory + ::TextEditor Create Getter and Setter Member Functions Dodaj metodę zwracającą (getter) i ustawiającą (setter) @@ -36662,11 +36518,7 @@ Czy nadpisać go? - TextEditor::Internal::CompletionSettingsPage - - Behavior - Zachowanie - + ::TextEditor Activate completion: Uaktywniaj uzupełnianie: @@ -36679,10 +36531,6 @@ Czy nadpisać go? Full Pełne - - None - Brak - First Letter Tylko pierwsza litera @@ -36695,10 +36543,6 @@ Czy nadpisać go? When Triggered Po wyzwoleniu - - Always - Zawsze - Timeout in ms: Limit czasu @@ -38878,7 +38722,7 @@ Wiersz: %4, kolumna: %5 - TextEditorWidget + ::TextEditor <b>Error:</b> Could not decode "%1" with "%2"-encoding. Editing not possible. <b>Błąd:</b> Nie można odkodować "%1" używając kodowania "%2". Edycja nie jest możliwa. @@ -40309,7 +40153,7 @@ Termin wygaśnięcia: %3 - TextEditor::Internal::InternalEngine + ::TextEditor Internal Wewnętrzny @@ -40769,7 +40613,7 @@ Błąd: %5 - TextEditorWidgetPrivate + ::TextEditor Other annotations: Inne adnotacje: diff --git a/share/qtcreator/translations/qtcreator_ru.ts b/share/qtcreator/translations/qtcreator_ru.ts index a258f3a6f89..7e22c1c5c35 100644 --- a/share/qtcreator/translations/qtcreator_ru.ts +++ b/share/qtcreator/translations/qtcreator_ru.ts @@ -19247,7 +19247,7 @@ when they are not required, which will improve performance in most cases. - FontSettings_C_OCCURRENCES_UNUSED + ::TextEditor Unused variable Неиспользуемая переменная @@ -40867,7 +40867,7 @@ For more details, see /etc/sysctl.d/10-ptrace.conf - RefactoringFile::apply + ::TextEditor Refactoring cannot be applied. Невозможно применить рефакторинг. @@ -43735,9 +43735,6 @@ Row: %4, Column: %5 File was modified. Файл изменился. - - - TextEditor::BaseFileFind Searching Идёт поиск @@ -43762,9 +43759,6 @@ Row: %4, Column: %5 %n найдено. - - - TextEditor::BaseTextEditor A highlight definition was not found for this file. Would you like to download additional highlight definition files? Не удалось найти определения подсветки для этого файла. Загрузить дополнительные файлы определений подсветки? @@ -43781,9 +43775,6 @@ Row: %4, Column: %5 Remember My Choice Запомнить мой выбор - - - TextEditor::BehaviorSettingsPage Global Settings @@ -43793,9 +43784,6 @@ Row: %4, Column: %5 Behavior Поведение - - - TextEditor::BehaviorSettingsWidget Displays context-sensitive help or type information on mouseover. Отображать контекстную справку или информацию о типе при наведении курсора мыши. @@ -43812,16 +43800,10 @@ Row: %4, Column: %5 Windows (CRLF) Windows (CRLF) - - - TextEditor::CodeStyleEditor 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. Измените текст предпросмотра, чтобы увидеть, как текущие настройки влияют на разные участки кода. Изменения предпросмотра не влияют на текущие настройки. - - - TextEditor::CodeStyleSelectorWidget Copy Code Style Копирование стиля кода @@ -43870,16 +43852,10 @@ Row: %4, Column: %5 %1 [built-in] %1 [встроенный] - - - TextEditor::DisplaySettingsPage Display Отображение - - - TextEditor::FindInFiles Files in File System Файлы в системе @@ -43911,9 +43887,6 @@ Excluding: %3 Directory to Search Каталог поиска - - - TextEditor::FontSettingsPageWidget Color Scheme for Theme "%1" Цветовая схема темы «%1» @@ -43938,10 +43911,6 @@ Excluding: %3 Are you sure you want to delete this color scheme permanently? Вы действительно желаете навсегда удалить эту цветовую схему? - - Delete - Удалить - Color Scheme Changed Цветовая схема изменена @@ -43958,16 +43927,10 @@ Excluding: %3 Font && Colors Шрифт и цвета - - - TextEditor::FunctionHintProposalWidget %1 of %2 %1 из %2 - - - TextEditor::Highlighter Highlighter updates: done Обновление подсветки: готово @@ -43976,9 +43939,6 @@ Excluding: %3 Highlighter updates: Обновление подсветки: - - - TextEditor::BehaviorSettingsWidget Typing Набор текста @@ -44021,10 +43981,6 @@ Specifies how backspace interacts with indentation. </ul></body></html> - - None - Обычное - Follows Previous Indents Следовать предыдущим отступам @@ -44196,17 +44152,10 @@ Specifies how backspace interacts with indentation. List of wildcard-aware file patterns, separated by commas or semicolons. Список шаблонов имён файлов, разделенных запятыми или точками с запятой. - - - TextEditor::Internal::CodeStyleDialog Edit Code Style Изменение стиля кода - - Code style name: - Имя стиля кода: - You cannot save changes to a built-in code style. Copy it first to create your own version. Нельзя сохранять изменения во встроенный стиль. Сначала его следует скопировать. @@ -44215,13 +44164,6 @@ Specifies how backspace interacts with indentation. Copy Built-in Code Style Скопировать встроенный стиль - - %1 (Copy) - %1 (копия) - - - - TextEditor::Internal::CodeStyleSelectorWidget Current settings: Текущие настройки: @@ -44246,16 +44188,10 @@ Specifies how backspace interacts with indentation. Import... Импорт... - - - TextEditor::Internal::ColorScheme Not a color scheme file. Это не файл цветовой схемы. - - - TextEditor::Internal::ColorSchemeEdit Bold Жирный @@ -44345,13 +44281,6 @@ Specifies how backspace interacts with indentation. <p align='center'><b>Builtin color schemes need to be <a href="copy">copied</a><br/> before they can be changed</b></p> <p align='center'><b>Чтобы изменить встроенные цветовые схемы,<br/>необходимо их сначала <a href="copy">скопировать</a></b></p> - - - TextEditor::Internal::CompletionSettingsPage - - Behavior - Поведение - Activate completion: Вызывать дополнение: @@ -44380,10 +44309,6 @@ Specifies how backspace interacts with indentation. When Triggered Когда явно требуется - - Always - Всегда - Timeout in ms: Таймаут, мс: @@ -44508,9 +44433,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Overwrite closing punctuation Переписывать закрывающую пунктуацию - - - TextEditor::DisplaySettingsPage Display line &numbers Показывать &номера строк @@ -44603,9 +44525,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Between lines Между строк - - - TextEditor::Internal::FindInCurrentFile Current File Текущий файл @@ -44620,9 +44539,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Путь к файлу: %1 %2 - - - TextEditor::Internal::FindInOpenFiles Open Documents Открытые документы @@ -44637,13 +44553,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Открытые документы %1 - - - TextEditor::FontSettingsPageWidget - - Font - Шрифт - Family: Название: @@ -44660,10 +44569,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Color Scheme Цветовая схема - - Copy... - Копировать... - % % @@ -44672,9 +44577,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Zoom: Масштаб: - - - TextEditor::Internal::HighlighterSettingsPage Syntax Highlight Definition Files Файлы определений подсветки синтаксиса @@ -44704,10 +44606,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Download missing and update existing syntax definition files. Загрузить отсутствующие и обновить существующие файлы определения синтаксиса. - - Download Definitions - Загрузить - Reload externally modified definition files. Перезагрузить из-вне изменённые файлы определений. @@ -44724,9 +44622,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Download finished Загрузка завершена - - - TextEditor::Internal::LineNumberFilter Line %1, Column %2 Строка %1, столбец %2 @@ -44743,16 +44638,10 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Line in Current Document Строка в текущем документе - - - TextEditor::Internal::OutlineFactory Outline Контур - - - TextEditor::Internal::OutlineWidgetStack No outline available Обзор недоступен @@ -44769,9 +44658,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Sort Alphabetically Сортировать по алфавиту - - - TextEditor::Internal::Snippets 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. @@ -44857,16 +44743,10 @@ In addition, Shift+Enter inserts an escape character at the cursor position and group:'Text' trigger:'global' пример - - - TextEditor::Internal::SnippetsCollection Cannot create user snippet directory %1 Не удалось создать каталог пользовательских фрагментов %1 - - - TextEditor::Internal::SnippetsSettingsPage Group: Группа: @@ -44875,10 +44755,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Add Добавить - - Remove - Удалить - Revert Built-in Откатить встроенное @@ -44907,13 +44783,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Snippets Фрагменты - - - TextEditor::Internal::SnippetsTableModel - - Error - Ошибка - Not a valid trigger. Неверный инициатор. @@ -44930,9 +44799,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Error reverting snippet. Ошибка отката фрагмента. - - - TextEditor::TabSettingsWidget Tabs And Indentation Табуляция и отступы @@ -45037,9 +44903,6 @@ Influences the indentation of continuation lines. <i>Code indentation is configured in <a href="C++">C++</a> and <a href="QtQuick">Qt Quick</a> settings.</i> <i>Отступы в коде задаются в настройках <a href="C++">C++</a> и <a href="QtQuick">Qt Quick</a>.</i> - - - TextEditor::Internal::TextEditorActionHandler &Undo &Отменить @@ -45544,9 +45407,6 @@ Influences the indentation of continuation lines. Go to Next Word Camel Case with Selection Перейти к следующему слову с выделением с учётом Верблюжьего Регистра - - - TextEditor::Internal::TextEditorPlugin Ctrl+Space @@ -45600,16 +45460,10 @@ Influences the indentation of continuation lines. Current document's font size in points. Размер шрифта в точках в текущем документе. - - - TextEditor::SearchEngine Internal Внутренний - - - TextEditor::TextDocument Diff Against Current File Сравнить с текущим файлом @@ -45618,9 +45472,6 @@ Influences the indentation of continuation lines. Opening File Открытие файла - - - TextEditor::TextEditorSettings Text Текст @@ -46117,10 +45968,6 @@ Will not be applied to whitespace in comments and strings. Applied to commit subjects in VCS log. Применимо к заголовкам фиксаций в истории VCS. - - Error - Ошибка - Underline color of error diagnostics. Цвет подчёркивания ошибок. @@ -46181,9 +46028,6 @@ Will not be applied to whitespace in comments and strings. Writable arguments of a function call. Записываемые аргументы вызова функции. - - - TextEditor::TextEditorWidget Cursor position: %1 Положение курсора: %1 diff --git a/share/qtcreator/translations/qtcreator_sl.ts b/share/qtcreator/translations/qtcreator_sl.ts index d2906e10a86..af4f676144f 100644 --- a/share/qtcreator/translations/qtcreator_sl.ts +++ b/share/qtcreator/translations/qtcreator_sl.ts @@ -9139,7 +9139,7 @@ Preselects a desktop Qt for building the application if available. - TextEditor::BaseFileFind + ::TextEditor %1 found najdenih: %1 @@ -9152,9 +9152,6 @@ Preselects a desktop Qt for building the application if available. Use regular e&xpressions Uporabi r&egularne izraze - - - TextEditor::BaseTextDocument untitled neimenovana @@ -9171,9 +9168,6 @@ Preselects a desktop Qt for building the application if available. <em>Binary data</em> <em>Dvojiški podatki</em> - - - TextEditor::BaseTextEditor Line: %1, Col: %2 Vrstica: %1, Stolpec: %2 @@ -9182,141 +9176,11 @@ Preselects a desktop Qt for building the application if available. Line: 9999, Col: 999 Vrstica: 9999, Stolpec: 999 - - Print Document - Natisni dokument - - - <b>Error:</b> Could not decode "%1" with "%2"-encoding. Editing not possible. - <b>Napaka:</b> »%1« ni moč dekodirati z naborom znakov »%2«. Urejanje ni možno. - - - Select Encoding - Izberite nabor znakov - - - - TextEditor::BehaviorSettingsPage Global Settings Globalno - - Storage - Shranjevanje - - - Removes trailing whitespace on saving. - Pri shranjevanju odstrani presledke na koncu vrstic. - - - &Clean whitespace - &Počisti presledke - - - Clean whitespace in entire document instead of only for changed parts. - Počisti presledke v celotnem dokumentu in ne samo v spremenjenih vrsticah. - - - In entire &document - V celotnem &dokumentu - - - Correct leading whitespace according to tab settings. - Popravi presledke na začetku vrstic v skladu z nastavitvami tabulatorja. - - - Clean indentation - Počisti zamikanje - - - &Ensure newline at end of file - &Zagotovi novo vrstico na koncu datoteke - - - Tabs and Indentation - Tabulator in zamikanje - - - Ta&b size: - Velikost &tabulatorja: - - - &Indent size: - Velikost &zamika: - - - Backspace will go back one indentation level instead of one space. - Vračalka gre nazaj za en zamik in ne za en presledek. - - - &Backspace follows indentation - &Vračalka sledi zamikom - - - Insert &spaces instead of tabs - Vstavi &presledke in ne tabulatorjev - - - Enable automatic &indentation - Omogoči &samodejno zamikanje - - - Tab key performs auto-indent: - Tabulator izvede samodejni zamik: - - - Never - Nikoli - - - Always - Vedno - - - Automatically determine based on the nearest indented line (previous line preferred over next line) - Ugotovi samodejno glede na najbližjo zamaknjeno vrstico (predhodna vrstica ima prednost pred naslednjo) - - - Based on the surrounding lines - Temelječe na okoliških vrsticah - - - Block indentation style: - Slog zamikanja bloka: - - - Exclude Braces - Izvzemi oklepaje - - - Include Braces - Vključi oklepaje - - - GNU Style - GNU-jevski slog - - - In Leading White Space - V praznini na začetku - - - Mouse - Miška - - - Enable &mouse navigation - Omogoči krmarjenje z &miško - - - Enable scroll &wheel zooming - Omogoči povečevanje/zmanjševanje s &koleščkom - - - - TextEditor::DisplaySettingsPage Display Prikaz @@ -9386,9 +9250,6 @@ Preselects a desktop Qt for building the application if available. Center &cursor on scroll Ob premiku &usredišči kazalec - - - TextEditor::FontSettingsPage Copy Color Scheme Skopiraj barvno shemo @@ -9413,10 +9274,6 @@ Preselects a desktop Qt for building the application if available. Are you sure you want to delete this color scheme permanently? Ali res želite trajno izbrisati to barvno shemo? - - Delete - Izbriši - Color Scheme Changed Spremenjena barvna shema @@ -9429,9 +9286,6 @@ Preselects a desktop Qt for building the application if available. Discard Zavrzi - - - TextEditor::Internal::CodecSelector Text Encoding Nabor znakov @@ -9454,9 +9308,6 @@ Naslednji nabori znakov so verjetno ustrezni: Save with Encoding Shrani z naborom znakov - - - TextEditor::Internal::FindInFiles Files on File System Datoteke v datotečnem sistemu @@ -9477,9 +9328,6 @@ Naslednji nabori znakov so verjetno ustrezni: Directory to search Išči v mapi - - - TextEditor::FontSettingsPageWidget Font Pisava @@ -9524,9 +9372,6 @@ Naslednji nabori znakov so verjetno ustrezni: Zoom: Povečava: - - - TextEditor::Internal::LineNumberFilter Line %1 Vrstica %1 @@ -9539,9 +9384,6 @@ Naslednji nabori znakov so verjetno ustrezni: Line in current document Vrstica v trenutnem dokumentu - - - TextEditor::Internal::TextEditorPlugin Creates a text file. The default file extension is <tt>.txt</tt>. You can specify a different extension as part of the filename. Ustvari besedilno datoteko. Privzeta končnica datoteke je <tt>.txt</tt>. Kot del imena datoteke lahko določite drugo končnico. @@ -9598,9 +9440,6 @@ Naslednji nabori znakov so verjetno ustrezni: Current document's font size in points. Velikost pisave trenutnega dokumenta v pikah. - - - TextEditor::TextEditorActionHandler &Undo &Razveljavi @@ -9941,9 +9780,6 @@ Naslednji nabori znakov so verjetno ustrezni: (Un)&Collapse All Raz&širi/skrči vse - - - TextEditor::TextEditorSettings Text Besedilo @@ -10076,10 +9912,6 @@ Naslednji nabori znakov so verjetno ustrezni: Behavior Obnašanje - - Display - Prikaz - TopicChooser @@ -11232,7 +11064,7 @@ Za uporabo v polje Iskalnika vtipkajte to bližnjico in presledek ter nato iskan - TextEditor::Internal::ColorSchemeEdit + ::TextEditor Bold Polkrepko @@ -12802,21 +12634,15 @@ Razlog: %2 - TextEditor::Internal::ColorScheme + ::TextEditor Not a color scheme file. Ni datoteka z barvno shemo. - - - TextEditor::Internal::FindInCurrentFile Current File Trenutna datoteka - - - TextEditor::Internal::FontSettings Customized Prilagojeno @@ -20014,7 +19840,7 @@ Potreben je Qt 4.7.4 ali novejši in nabor komponent za vašo različico Qt. - BehaviorSettingsWidget + ::TextEditor Cleanup actions which are automatically performed right before the file is saved to disk. Dejanja čiščenja, ki se samodejno izvedejo tik pred shranjevanjem datoteke na disk. @@ -20199,7 +20025,7 @@ Potreben je Qt 4.7.4 ali novejši in nabor komponent za vašo različico Qt. - SnippetsSettingsPage + ::TextEditor Form Obrazec @@ -20234,24 +20060,10 @@ Potreben je Qt 4.7.4 ali novejši in nabor komponent za vašo različico Qt.Reset All Ponastavi vse - - - TextEditor::TabPreferencesWidget - - Form - Obrazec - Tab settings: Nastavitve tabulatorja: - - - TextEditor::TabSettingsWidget - - Form - Obrazec - Tabs And Indentation @@ -27777,7 +27589,7 @@ Ali jih želite dodati v projekt? - TextEditor::BaseTextEditorWidget + ::TextEditor CTRL+D CTRL+D @@ -27802,16 +27614,10 @@ Ali jih želite dodati v projekt? Select Encoding Izberite kodiranje - - - TextEditor::FunctionHintProposalWidget %1 of %2 %1 od %2 - - - TextEditor::FallbackSelectorWidget Settings: Nastavitve: @@ -27829,9 +27635,6 @@ Ali jih želite dodati v projekt? Restore Obnovi - - - TextEditor::HighlighterSettingsPage Generic Highlighter Splošno poudarjanje @@ -27860,9 +27663,6 @@ Ali jih želite dodati v projekt? Not possible to retrieve data. Podatkov ni moč pridobiti. - - - TextEditor::Internal::ManageDefinitionsDialog Name Ime @@ -27875,10 +27675,6 @@ Ali jih želite dodati v projekt? Available Na voljo - - Download Definitions - Dobi določila - Download Information Podatki o prejemanju @@ -27887,9 +27683,6 @@ Ali jih želite dodati v projekt? There is already one download in progress. Please wait until it is finished. Eno prejemanje je že v teku. Počakajte, da se zaključi. - - - TextEditor::Internal::Manager Registering definitions Registriranje definicij @@ -27916,9 +27709,6 @@ Preverite pravice za dostop do mape. Download Error Napaka pri prejemanju - - - TextEditor::Internal::OutlineWidgetStack No outline available Na voljo ni nobenega obrisa @@ -27931,16 +27721,10 @@ Preverite pravice za dostop do mape. Filter tree Filtriraj drevo - - - TextEditor::Internal::OutlineFactory Outline Obris - - - TextEditor::Internal::PlainTextEditorFactory A highlight definition was not found for this file. Would you like to try to find one? Za to datoteko ni bilo moč najti določila za poudarjanje. Ali ga želite poskusiti najti? @@ -27949,23 +27733,10 @@ Preverite pravice za dostop do mape. Show highlighter options Prikaži možnosti poudarjanja ... - - - TextEditor::Internal::PlainTextSnippetProvider - - Text - Besedilo - - - - TextEditor::Internal::SnippetsCollection Cannot create user snippet directory %1 Uporabniške mape za izrezke (%1) ni moč ustvariti. - - - TextEditor::Internal::SnippetsTableModel Error Napaka @@ -27986,9 +27757,6 @@ Preverite pravice za dostop do mape. Error reverting snippet. Napaka pri povrnitvi izrezka. - - - TextEditor::Internal::SnippetsSettingsPagePrivate Snippets Izrezki @@ -27997,10 +27765,6 @@ Preverite pravice za dostop do mape. Error While Saving Snippet Collection Napaka med shranjevanjem zbirke izrezkov - - Error - Napaka - No snippet selected. Izbran ni noben izrezek. @@ -29595,31 +29359,6 @@ p, li { white-space: pre-wrap; } Vzorec - - Snippets::Internal::SnippetsPlugin - - Snippets - Odseki - - - - Snippets::Internal::SnippetsWindow - - Snippets - Odseki - - - - TextEditor::BaseTextEditorEditable - - Line: %1, Col: %2 - Vrstica: %1, Stolpec: %2 - - - Line: %1, Col: 999 - Vrstica: %1, Stolpec: 999 - - VcsBase::VcsBaseEditor diff --git a/share/qtcreator/translations/qtcreator_uk.ts b/share/qtcreator/translations/qtcreator_uk.ts index e3c55c90185..5af0c73a8e1 100644 --- a/share/qtcreator/translations/qtcreator_uk.ts +++ b/share/qtcreator/translations/qtcreator_uk.ts @@ -19061,9 +19061,6 @@ with a password, which you can enter below. Translate this string Перекласти цей рядок - - - TextEditor::BaseFileFind Search Пошук @@ -19092,32 +19089,6 @@ with a password, which you can enter below. Aborting replace. Скасування заміни. - - - TextEditor::BaseTextDocument - - untitled - без назви - - - Opening file - Відкриття файлу - - - Opening File - Відкриття файлу - - - - TextEditor::BaseTextEditor - - Line: %1, Col: %2 - Рядок: %1, Стовпець: %2 - - - Line: 9999, Col: 999 - Рядок: 9999, Стовпець: 999 - A highlight definition was not found for this file. Would you like to try to find one? Визначення підсвітки не було знайдено для цього файлу. Бажаєте спробувати знайти? @@ -19126,44 +19097,6 @@ with a password, which you can enter below. Show Highlighter Options... Показати опції підсвітки... - - - TextEditor::BaseTextEditorWidget - - CTRL+D - CTRL+D - - - Print Document - Друк документа - - - <b>Error:</b> Could not decode "%1" with "%2"-encoding. Editing not possible. - <b>Помилка:</b> Не вдалось декодувати "%1" з кодуванням "%2". Редагування неможливе. - - - Select Encoding - Обрати кодування - - - Delete UTF-8 BOM on Save - Видалити UTF-8 BOM при збереженні - - - Add UTF-8 BOM on Save - Додати UTF-8 BOM при збереженні - - - File Error - Помилка файлу - - - The text is too large to be displayed (%1 MB). - Текст завеликий для відображення (%1 МБ). - - - - TextEditor::BehaviorSettingsPage Global Settings @@ -19173,16 +19106,10 @@ with a password, which you can enter below. Global Глобальні - - - TextEditor::CodeStyleEditor 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. Змініть текст попереднього перегляду, щоб побачити як поточні налаштування застосовуються до власних фрагментів коду. Зміни в попередньому перегляді не впливають на поточні налаштування. - - - TextEditor::CodeStyleSelectorWidget Copy Code Style Копіювати стиль коду @@ -19231,9 +19158,6 @@ with a password, which you can enter below. %1 [built-in] %1 [вбудований] - - - TextEditor::FindInFiles Files on File System Файли в файловій системі @@ -19287,9 +19211,6 @@ Filter: %2 Directory to search Тека пошуку - - - TextEditor::FontSettingsPage Font && Colors Шрифти та кольори @@ -19318,10 +19239,6 @@ Filter: %2 Are you sure you want to delete this color scheme permanently? Ви впевнені, що хочете назавжди видалити цю кольорову схему? - - Delete - Видалити - Color Scheme Changed Кольорова схема змінена @@ -19334,16 +19251,10 @@ Filter: %2 Discard Відкинути - - - TextEditor::FunctionHintProposalWidget %1 of %2 %1 з %2 - - - TextEditor::HighlighterSettingsPage Generic Highlighter Типова підсвітка @@ -19372,17 +19283,10 @@ Filter: %2 Not possible to retrieve data. Неможливо отримати дані. - - - TextEditor::Internal::CodeStyleDialog Edit Code Style Редагування стиля коду - - Code style name: - Назва стиля коду: - You cannot save changes to a built-in code style. Copy it first to create your own version. Ви не можете зберігати зміни до вбудованого стилів коду. Спочатку скопіюйте його, щоб створити вашу власну версію. @@ -19391,13 +19295,6 @@ Filter: %2 Copy Built-in Code Style Копіювати вбудований стиль коду - - %1 (Copy) - %1 (копія) - - - - TextEditor::Internal::CodecSelector Text Encoding Кодування тексту @@ -19424,16 +19321,10 @@ The following encodings are likely to fit: Save with Encoding Зберегти в кодуванні - - - TextEditor::Internal::ColorScheme Not a color scheme file. Не є файлом кольорової схеми. - - - TextEditor::Internal::ColorSchemeEdit Bold Жирний @@ -19502,9 +19393,6 @@ The following encodings are likely to fit: Dash-Dot-Dot Underline Штрих-пунктир з двома крапкам - - - TextEditor::Internal::FindInCurrentFile Current File Поточний файл @@ -19523,16 +19411,10 @@ The following encodings are likely to fit: Шлях до файлу: %1 %2 - - - TextEditor::Internal::FontSettings Customized Користувацька - - - TextEditor::FontSettingsPageWidget Font Шрифт @@ -19565,13 +19447,6 @@ The following encodings are likely to fit: Copy... Копіювати... - - Delete - Видалити - - - - TextEditor::Internal::LineNumberFilter Line %1, Column %2 Рядок: %1, Стовпець: %2 @@ -19588,9 +19463,6 @@ The following encodings are likely to fit: Line in Current Document Рядок в поточному документі - - - TextEditor::Internal::ManageDefinitionsDialog Installed Встановлене @@ -19639,48 +19511,10 @@ The following encodings are likely to fit: Download Selected Definitions Звантажити обрані визначення - - - TextEditor::Internal::Manager - - Registering definitions - Реєстрація визначень - - - Downloading definitions - Звантаження визначень - - - Error downloading selected definition(s). - Помилка звантаження обраних визначень. - - - Error downloading one or more definitions. - Помилка звантаження одного чи більше визначень. - - - Please check the directory's access rights. - Будь ласка, перевірте права доступу до теки. - - - -Please check the directory's access rights. - Будь ласка, перевірте права доступу до теки. - - - Download Error - Помилка звантаження - - - - TextEditor::Internal::OutlineFactory Outline Огляд - - - TextEditor::Internal::OutlineWidgetStack No outline available Огляд не доступний @@ -19693,38 +19527,14 @@ Please check the directory's access rights. Filter tree Фільтрувати дерево - - - TextEditor::Internal::PlainTextEditorFactory - - A highlight definition was not found for this file. Would you like to try to find one? - Визначення підсвітки не було знайдено для цього файлу. Бажаєте спробувати знайти? - - - Show Highlighter Options... - Показати опції підсвітки... - - - Show highlighter options... - Показати опції підсвітки... - - - - TextEditor::Internal::PlainTextSnippetProvider Text Текст - - - TextEditor::Internal::SnippetsCollection Cannot create user snippet directory %1 Неможливо створити користувацьку теку фрагментів%1 - - - TextEditor::Internal::SnippetsSettingsPagePrivate Snippets Фрагменти @@ -19741,13 +19551,6 @@ Please check the directory's access rights. No snippet selected. Фрагмент не обрано. - - - TextEditor::Internal::SnippetsTableModel - - Error - Помилка - Not a valid trigger. Невірний зразок. @@ -19764,9 +19567,6 @@ Please check the directory's access rights. Error reverting snippet. Помилка відновлення фрагмента. - - - TextEditor::Internal::TextEditorPlugin Creates a text file. The default file extension is <tt>.txt</tt>. You can specify a different extension as part of the filename. Створює текстовий файл. Типове розширення - <tt>.txt</tt>. Ви можете вказати інше розширення, як частину імені файлу. @@ -19843,416 +19643,10 @@ Please check the directory's access rights. Current document's font size in points. Розмір шрифту поточного документа в точках. - - - TextEditor::TextEditorActionHandler - - &Undo - &Повернути - - - &Redo - П&овторити - - - Select Encoding... - Обрати кодування... - - - Auto-&indent Selection - Автовід&ступи у виділеному - - - Ctrl+I - Ctrl+I - - - &Rewrap Paragraph - Пере&робити переноси в абзаці - - - &Visualize Whitespace - &Візуалізовувати пропуски - - - Clean Whitespace - Очистити пропуски - - - Enable Text &Wrapping - Увімкнути &перенесення тексту - - - Ctrl+/ - Ctrl+/ - - - Cut &Line - Вирі&зати рядок - - - Shift+Del - Shift+Del - - - Delete &Line - Вида&лити рядок - - - Delete Word from Cursor On - Видалити слово під курсором - - - Delete Word Camel Case from Cursor On - Видалити слово в Camel Case під курсором - - - Delete Word up to Cursor - Видалити слово перед курсором - - - Delete Word Camel Case up to Cursor - Видалити слово в Camel Case перед курсором - - - Ctrl+< - Ctrl+< - - - Ctrl+> - Ctrl+> - - - Meta+0 - Meta+0 - - - Go to Block Start with Selection - Перейти на початок блока у виділеному - - - Go to Block End with Selection - Перейти на початок блока у виділеному - - - Meta+Shift+U - Meta+Shift+U - - - Meta+U - Meta+U - - - Paste from Clipboard History - Вставити з історії буферу обміну - - - Ctrl+Shift+V - Ctrl+Shift+V - - - Indent - Зробити відступ - - - Unindent - Скасувати відступ - - - Follow Symbol Under Cursor - Йти за символом під курсором - - - Follow Symbol Under Cursor in Next Split - Йти за символом під курсором в наступній розбивці - - - Meta+E, F2 - Meta+E, F2 - - - Ctrl+E, F2 - Ctrl+E, F2 - - - Jump To File Under Cursor - Перейти до файлу під курсором - - - Jump to File Under Cursor in Next Split - Перейти до файлу під курсором в наступній розбивці - - - Go to Line Start - Перейти на початок рядка - - - Go to Line End - Перейти на кінець рядка - - - Go to Next Line - Перейти на наступний рядок - - - Go to Previous Line - Перейти на попередній рядок - - - Go to Previous Character - Перейти до попереднього символу - - - Go to Next Character - Перейти до наступного символу - - - Go to Previous Word - Перейти до попереднього слова - - - Go to Next Word - Перейти до наступного слова - - - Go to Previous Word Camel Case - Перейти до попереднього слова у Camel Case - - - Go to Next Word Camel Case - Перейти до наступного слова у Camel Case - - - Go to Line Start with Selection - Перейти на початок рядка у виділеному - - - Go to Line End with Selection - Перейти на кінець рядка у виділеному - - - Go to Next Line with Selection - Перейти на наступний рядок у виділеному - - - Go to Previous Line with Selection - Перейти на попередній рядок у виділеному - - - Go to Previous Character with Selection - Перейти до попереднього символу у виділеному - - - Go to Next Character with Selection - Перейти до наступного символу у виділеному - - - Go to Previous Word with Selection - Перейти до попереднього слова у виділеному - - - Go to Next Word with Selection - Перейти до наступного слова у виділеному - - - Go to Previous Word Camel Case with Selection - Перейти до попереднього слова у Camel Case у виділеному - - - Go to Next Word Camel Case with Selection - Перейти до наступного слова у Camel Case у виділеному - <line>:<column> <рядок>:<стовпець> - - Fold - Згорнути - - - Meta+E, R - Meta+E, R - - - Ctrl+E, R - Ctrl+E, R - - - Meta+E, Meta+V - Meta+E, Meta+V - - - Ctrl+E, Ctrl+V - Ctrl+E, Ctrl+V - - - Meta+E, Meta+W - Meta+E, Meta+W - - - Ctrl+E, Ctrl+W - Ctrl+E, Ctrl+W - - - Toggle Comment &Selection - Роз&коментувати/закоментувати виділене - - - Copy &Line - &Копіювати рядок - - - Ctrl+Ins - Ctrl+Ins - - - Unfold - Розгорнути - - - Increase Font Size - Збільшити розмір шрифту - - - Ctrl++ - Ctrl++ - - - Decrease Font Size - Зменшити розмір шрифту - - - Ctrl+- - Ctrl+- - - - Toggle &Fold All - Роз&горнути/згорнути все - - - Reset Font Size - Відновити розмір шрифту - - - Ctrl+0 - Ctrl+0 - - - Go to Block Start - Перейти на початок блока - - - Ctrl+[ - Ctrl+[ - - - Go to Block End - Перейти на кінець блока - - - Ctrl+] - Ctrl+] - - - Ctrl+{ - Ctrl+{ - - - Ctrl+} - Ctrl+} - - - Select Block Up - Виділити блок вгору - - - Ctrl+U - Ctrl+U - - - Select Block Down - Виділити блок вниз - - - Move Line Up - Пересунути рядок вгору - - - Ctrl+Shift+Up - Ctrl+Shift+Up - - - Move Line Down - Пересунути рядок вниз - - - Ctrl+Shift+Down - Ctrl+Shift+Down - - - Copy Line Up - Скопіювати рядок вгору - - - Ctrl+Alt+Up - Ctrl+Alt+Up - - - Copy Line Down - Скопіювати рядок вниз - - - Ctrl+Alt+Down - Ctrl+Alt+Down - - - Join Lines - Об'єднати рядки - - - Ctrl+J - Ctrl+J - - - Insert Line Above Current Line - Вставити рядок перед поточним - - - Ctrl+Shift+Return - Ctrl+Shift+Return - - - Insert Line Below Current Line - Вставити рядок після поточного - - - Ctrl+Return - Ctrl+Return - - - Uppercase Selection - До верхнього регістру - - - Alt+Shift+U - Alt+Shift+U - - - Lowercase Selection - До нижнього регістру - - - Alt+U - Alt+U - - - - TextEditor::TextEditorSettings - - Text - Текст - Generic text. Applied to text, if no other rules matching. @@ -20427,14 +19821,6 @@ Will not be applied to whitespace in comments and strings. Пропуски. Не застосовується до пропусків в коментарях та рядках. - - Zoom: %1% - Масштаб: %1% - - - Operators. (For example operator++ operator-=) - Оператори. (Наприклад: operator++ operator-=) - Doxygen tags. Теги Doxygen. @@ -20705,10 +20091,6 @@ Will not be applied to whitespace in comments and strings. Applied to lines describing changes in VCS log. - - Error - Помилка - Underline color of error diagnostics. Колір підкреслювання помилок. @@ -23058,14 +22440,11 @@ These prefixes are used in addition to current file name on Switch Header/Source - TextEditor::Internal::BehaviorSettingsPage + ::TextEditor Form Форма - - - TextEditor::BehaviorSettingsWidget Typing Набір тексту @@ -23289,21 +22668,10 @@ Specifies how backspace interacts with indentation. Enable smart selection changing Увімкнути зміну "розумного" виділення - - - TextEditor::Internal::CodeStyleSelectorWidget - - Form - Форма - Current settings: Поточні налаштування: - - Copy... - Копіювати... - Edit... Редагувати... @@ -23320,13 +22688,6 @@ Specifies how backspace interacts with indentation. Import... Імпортувати... - - - TextEditor::DisplaySettingsPage - - Display - Відображення - Display line &numbers Показувати &номери рядків @@ -23399,13 +22760,6 @@ Specifies how backspace interacts with indentation. Highlight search results on the scrollbar Підсвічувати результати пошуку в панелі прокрутки - - - TextEditor::Internal::HighlighterSettingsPage - - Form - Форма - <html><head/><body> <p>Highlight definitions are provided by the <a href="http://kate-editor.org/">Kate Text Editor</a>.</p></body></html> @@ -23424,21 +22778,10 @@ Specifies how backspace interacts with indentation. Use fallback location Використовувати запасне розташування - - Behavior - Поведінка - Ignored file patterns: Шаблони файлів для ігнорування: - - - TextEditor::Internal::SnippetsSettingsPage - - Form - Форма - Group: Група: @@ -23447,10 +22790,6 @@ Specifies how backspace interacts with indentation. Add Додати - - Remove - Видалити - Revert Built-in Повернутись до вбудованих @@ -23463,13 +22802,6 @@ Specifies how backspace interacts with indentation. Reset All Скинути все - - - TextEditor::TabSettingsWidget - - Form - Форма - Tabs And Indentation Табуляції та відступи @@ -24889,14 +24221,11 @@ should a repository require SSH-authentication (see documentation on SSH and the - TextEditor::Internal::CountingLabel + ::TextEditor %1 found %1 знайдено - - - TextEditor::Internal::FindInOpenFiles Open Documents Відкриті документи @@ -29867,7 +29196,7 @@ cannot be found in the path. - TextEditor::BehaviorSettingsWidget + ::TextEditor Display context-sensitive help or type information on mouseover. Відображати контекстну довідку або інформацію про тип при наведенні вказівника миші. @@ -30967,7 +30296,7 @@ cannot be found in the path. - TextEditor::QuickFixFactory + ::TextEditor Create Getter and Setter Member Functions Створити функції-члени для отримання та встановлення значення @@ -33336,7 +32665,7 @@ This wizard will guide you through the essential steps to deploy a ready-to-go d - RefactoringFile::apply + ::TextEditor Refactoring cannot be applied. Неможливо застосувати рефакторинг. @@ -37321,7 +36650,7 @@ This wizard will guide you through the essential steps to deploy a ready-to-go d - FontSettings_C_OCCURRENCES_UNUSED + ::TextEditor Unused variable Невикористана змінна @@ -38652,7 +37981,7 @@ Install an SDK of at least API version %1. - TextEditor::Internal::MultiDefinitionDownloader + ::TextEditor Downloading Highlighting Definitions Звантаження визначень підсвітки @@ -38674,441 +38003,6 @@ Install an SDK of at least API version %1. Помилка звантаження - - TextEditor::Internal::TextEditorActionHandlerPrivate - - &Undo - &Повернути - - - &Redo - П&овторити - - - Delete &Line - Вида&лити рядок - - - Delete Word from Cursor On - Видалити слово під курсором - - - Delete Word Camel Case from Cursor On - Видалити слово в Camel Case під курсором - - - Delete Word up to Cursor - Видалити слово перед курсором - - - Delete Word Camel Case up to Cursor - Видалити слово в Camel Case перед курсором - - - Go to Block Start with Selection - Перейти на початок блока у виділеному - - - Ctrl+{ - Ctrl+{ - - - Go to Block End with Selection - Перейти на початок блока у виділеному - - - Ctrl+} - Ctrl+} - - - Move Line Up - Пересунути рядок вгору - - - Ctrl+Shift+Up - Ctrl+Shift+Up - - - Move Line Down - Пересунути рядок вниз - - - Ctrl+Shift+Down - Ctrl+Shift+Down - - - Copy Line Up - Скопіювати рядок вгору - - - Ctrl+Alt+Up - Ctrl+Alt+Up - - - Copy Line Down - Скопіювати рядок вниз - - - Ctrl+Alt+Down - Ctrl+Alt+Down - - - Join Lines - Об'єднати рядки - - - Ctrl+J - Ctrl+J - - - Insert Line Above Current Line - Вставити рядок перед поточним - - - Ctrl+Shift+Return - Ctrl+Shift+Return - - - Insert Line Below Current Line - Вставити рядок після поточного - - - Ctrl+Return - Ctrl+Return - - - Indent - Зробити відступ - - - Unindent - Скасувати відступ - - - Follow Symbol Under Cursor - Йти за символом під курсором - - - Follow Symbol Under Cursor in Next Split - Йти за символом під курсором в наступній розбивці - - - Meta+E, F2 - Meta+E, F2 - - - Ctrl+E, F2 - Ctrl+E, F2 - - - Jump To File Under Cursor - Перейти до файлу під курсором - - - Jump to File Under Cursor in Next Split - Перейти до файлу під курсором в наступній розбивці - - - Move the View a Page Up and Keep the Cursor Position - Перенести перегляд на сторінку вище і зберегти позицію курсора - - - Ctrl+PgUp - Ctrl+PgUp - - - Move the View a Page Down and Keep the Cursor Position - Перенести перегляд на сторінку нижче і зберегти позицію курсора - - - Ctrl+PgDown - Ctrl+PgDown - - - Move the View a Line Up and Keep the Cursor Position - Перенести перегляд на рядок вище і зберегти позицію курсора - - - Ctrl+Up - Ctrl+Up - - - Move the View a Line Down and Keep the Cursor Position - Перенести перегляд на рядок нижче і зберегти позицію курсора - - - Ctrl+Down - Ctrl+Down - - - Select Encoding... - Обрати кодування... - - - Paste from Clipboard History - Вставити з історії буферу обміну - - - Ctrl+Shift+V - Ctrl+Shift+V - - - Auto-&indent Selection - Автовід&ступи у виділеному - - - Ctrl+I - Ctrl+I - - - &Rewrap Paragraph - Пере&робити переноси в абзаці - - - Meta+E, R - Meta+E, R - - - Ctrl+E, R - Ctrl+E, R - - - &Visualize Whitespace - &Візуалізовувати пропуски - - - Meta+E, Meta+V - Meta+E, Meta+V - - - Ctrl+E, Ctrl+V - Ctrl+E, Ctrl+V - - - Clean Whitespace - Очистити пропуски - - - Enable Text &Wrapping - Увімкнути &перенесення тексту - - - Meta+E, Meta+W - Meta+E, Meta+W - - - Ctrl+E, Ctrl+W - Ctrl+E, Ctrl+W - - - Toggle Comment &Selection - Роз&коментувати/закоментувати виділене - - - Ctrl+/ - Ctrl+/ - - - Cut &Line - Вирі&зати рядок - - - Shift+Del - Shift+Del - - - Copy &Line - &Копіювати рядок - - - Ctrl+Ins - Ctrl+Ins - - - Uppercase Selection - До верхнього регістру - - - Meta+Shift+U - Meta+Shift+U - - - Alt+Shift+U - Alt+Shift+U - - - Lowercase Selection - До нижнього регістру - - - Meta+U - Meta+U - - - Alt+U - Alt+U - - - Fold - Згорнути - - - Ctrl+< - Ctrl+< - - - Unfold - Розгорнути - - - Ctrl+> - Ctrl+> - - - Toggle &Fold All - Роз&горнути/згорнути все - - - Increase Font Size - Збільшити розмір шрифту - - - Ctrl++ - Ctrl++ - - - Decrease Font Size - Зменшити розмір шрифту - - - Ctrl+- - Ctrl+- - - - Reset Font Size - Відновити розмір шрифту - - - Meta+0 - Meta+0 - - - Ctrl+0 - Ctrl+0 - - - Go to Block Start - Перейти на початок блока - - - Ctrl+[ - Ctrl+[ - - - Go to Block End - Перейти на кінець блока - - - Ctrl+] - Ctrl+] - - - Select Block Up - Виділити блок вгору - - - Ctrl+U - Ctrl+U - - - Select Block Down - Виділити блок вниз - - - Go to Line Start - Перейти на початок рядка - - - Go to Line End - Перейти на кінець рядка - - - Go to Next Line - Перейти на наступний рядок - - - Go to Previous Line - Перейти на попередній рядок - - - Go to Previous Character - Перейти до попереднього символу - - - Go to Next Character - Перейти до наступного символу - - - Go to Previous Word - Перейти до попереднього слова - - - Go to Next Word - Перейти до наступного слова - - - Go to Previous Word Camel Case - Перейти до попереднього слова у Camel Case - - - Go to Next Word Camel Case - Перейти до наступного слова у Camel Case - - - Go to Line Start with Selection - Перейти на початок рядка у виділеному - - - Go to Line End with Selection - Перейти на кінець рядка у виділеному - - - Go to Next Line with Selection - Перейти на наступний рядок у виділеному - - - Go to Previous Line with Selection - Перейти на попередній рядок у виділеному - - - Go to Previous Character with Selection - Перейти до попереднього символу у виділеному - - - Go to Next Character with Selection - Перейти до наступного символу у виділеному - - - Go to Previous Word with Selection - Перейти до попереднього слова у виділеному - - - Go to Next Word with Selection - Перейти до наступного слова у виділеному - - - Go to Previous Word Camel Case with Selection - Перейти до попереднього слова у Camel Case у виділеному - - - Go to Next Word Camel Case with Selection - Перейти до наступного слова у Camel Case у виділеному - - - <line>:<column> - <рядок>:<стовпець> - - VcsBase::BaseCheckoutWizardFactory @@ -41994,29 +40888,11 @@ The files in the Android package source directory are copied to the build direct - TextEditor::TextDocument + ::TextEditor Opening File Відкриття файлу - - - TextEditor::Internal::TextEditorWidgetPrivate - - CTRL+D - CTRL+D - - - Line: %1, Col: %2 - Рядок: %1, Стовпець: %2 - - - Line: 9999, Col: 999 - Рядок: 9999, Стовпець: 999 - - - - TextEditor::TextEditorWidget CTRL+D CTRL+D @@ -43295,7 +42171,7 @@ Setting breakpoints by file name and line number may fail. - TextEditor::Internal::TextEditorActionHandler + ::TextEditor &Undo &Повернути @@ -43420,10 +42296,6 @@ Setting breakpoints by file name and line number may fail. Ctrl+E, F2 Ctrl+E, F2 - - Jump To File Under Cursor - Перейти до файлу під курсором - Jump to File Under Cursor Перейти до файлу під курсором diff --git a/share/qtcreator/translations/qtcreator_zh_CN.ts b/share/qtcreator/translations/qtcreator_zh_CN.ts index d3155d258a9..462af722a8e 100644 --- a/share/qtcreator/translations/qtcreator_zh_CN.ts +++ b/share/qtcreator/translations/qtcreator_zh_CN.ts @@ -19487,7 +19487,7 @@ will also disable the following plugins: - FontSettings_C_OCCURRENCES_UNUSED + ::TextEditor Unused variable 未使用的变量 @@ -39316,7 +39316,7 @@ For more details, see /etc/sysctl.d/10-ptrace.conf - RefactoringFile::apply + ::TextEditor Refactoring cannot be applied. @@ -41250,7 +41250,7 @@ Row: %4, Column: %5 - Snippet + ::TextEditor Expected delimiter after mangler ID. @@ -42796,9 +42796,6 @@ Failed to open file "%1" File was modified. - - - TextEditor::BaseFileFind Searching 搜索中 @@ -42819,9 +42816,6 @@ Failed to open file "%1" Aborting replace. - - - TextEditor::BaseTextEditor A highlight definition was not found for this file. Would you like to download additional highlight definition files? @@ -42838,9 +42832,6 @@ Failed to open file "%1" Remember My Choice - - - TextEditor::BehaviorSettingsPage Global Settings @@ -42850,9 +42841,6 @@ Failed to open file "%1" Behavior 行为 - - - TextEditor::BehaviorSettingsWidget Typing 打字 @@ -42895,10 +42883,6 @@ Specifies how backspace interacts with indentation. </ul></body></html> - - None - - Follows Previous Indents 跟随之前的缩进 @@ -42915,10 +42899,6 @@ Specifies how backspace interacts with indentation. Never 从不 - - Always - 总是 - In Leading White Space 用于行首空白 @@ -43081,24 +43061,10 @@ Specifies how backspace interacts with indentation. Windows (CRLF) - - - TextEditor::CodeStyleEditor 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. 编辑预览内容来查看当前设置如何应用到自定义代码段。在预览中修改并不影响当前设置。 - - - TextEditor::CodeStyleSelectorWidget - - Copy... - 复制... - - - Remove - 删除 - Import... 导入... @@ -43159,9 +43125,6 @@ Specifies how backspace interacts with indentation. %1 [built-in] %1 [内置] - - - TextEditor::DisplaySettingsPage Display 显示 @@ -43286,9 +43249,6 @@ Specifies how backspace interacts with indentation. Wrapping - - - TextEditor::FindInFiles Director&y: 目录(&Y): @@ -43317,9 +43277,6 @@ Excluding: %3 Directory to Search - - - TextEditor::FontSettingsPageWidget Family: 字型: @@ -43328,10 +43285,6 @@ Excluding: %3 Size: 字号: - - Font - 字体 - Antialias 抗锯齿 @@ -43340,10 +43293,6 @@ Excluding: %3 Copy... 复制... - - Delete - 删除 - % % @@ -43421,16 +43370,10 @@ A value less than 100% can result in overlapping and misaligned graphics.Font && Colors 字体和颜色 - - - TextEditor::FunctionHintProposalWidget %1 of %2 %1/%2 - - - TextEditor::Highlighter Highlighter updates: done @@ -43443,16 +43386,10 @@ A value less than 100% can result in overlapping and misaligned graphics.Highlighter updates: starting - - - TextEditor::Internal::ColorScheme Not a color scheme file. 不是一个配色方案文件. - - - TextEditor::Internal::ColorSchemeEdit Bold 粗体 @@ -43541,9 +43478,6 @@ A value less than 100% can result in overlapping and misaligned graphics.Dash-Dot-Dot Underline - - - TextEditor::Internal::CompletionSettingsPage Full 全部 @@ -43690,10 +43624,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Adds leading asterisks when continuing C/C++ "/*", Qt "/*!" and Java "/**" style comments on new lines. - - Behavior - 行为 - &Automatically insert matching characters @@ -43706,9 +43636,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Completion 补全 - - - TextEditor::Internal::FindInCurrentFile Current File 当前文件 @@ -43723,9 +43650,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and File "%1": - - - TextEditor::Internal::FindInOpenFiles Open Documents 打开文档 @@ -43740,9 +43664,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and 打开文档 %1 - - - TextEditor::Internal::HighlighterSettingsPage Syntax Highlight Definition Files 语法高亮定义文件 @@ -43755,10 +43676,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and <html><head/><body><p>Highlight definitions are provided by the <a href="https://api.kde.org/frameworks/syntax-highlighting/html/index.html">KSyntaxHighlighting</a> engine.</p></body></html> - - Download Definitions - 下载定义 - Download missing and update existing syntax definition files. @@ -43791,9 +43708,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Generic Highlighter 通用高亮器 - - - TextEditor::Internal::LineNumberFilter Line %1 行%1 @@ -43818,16 +43732,10 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Column %1 - - - TextEditor::Internal::OutlineFactory Outline 大纲 - - - TextEditor::Internal::OutlineWidgetStack No outline available 没有可用大纲 @@ -43844,24 +43752,15 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Sort Alphabetically 按字母排序 - - - TextEditor::Internal::Snippets 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. - - - TextEditor::Internal::SnippetsCollection Cannot create user snippet directory %1 无法创建用户片断目录%1 - - - TextEditor::Internal::SnippetsSettingsPage Add 添加 @@ -43890,10 +43789,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Error While Saving Snippet Collection 保存片断集时发生错误 - - Error - 错误 - No snippet selected. 没有选择的片段。 @@ -43902,9 +43797,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Snippets 片段 - - - TextEditor::Internal::SnippetsTableModel Error 错误 @@ -43925,9 +43817,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Not a valid trigger. A valid trigger can only contain letters, numbers, or underscores, where the first character is limited to letter or underscore. - - - TextEditor::Internal::TextEditorActionHandler &Undo 撤销(&U) @@ -44460,9 +44349,6 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Go to Next Word Camel Case with Selection 选中到下一个使用骆驼命名法的单词 - - - TextEditor::Internal::TextEditorPlugin Ctrl+Space Ctrl+Space @@ -44532,16 +44418,10 @@ In addition, Shift+Enter inserts an escape character at the cursor position and Word under the current document's text cursor. - - - TextEditor::SearchEngine Internal - - - TextEditor::TabSettingsWidget Tabs And Indentation 制表符和缩进 @@ -44646,9 +44526,6 @@ Influences the indentation of continuation lines. 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. - - - TextEditor::TextDocument Diff Against Current File @@ -44657,9 +44534,6 @@ Influences the indentation of continuation lines. Opening File 打开文件 - - - TextEditor::TextEditorSettings Text 文本 @@ -45228,10 +45102,6 @@ Will not be applied to whitespace in comments and strings. Applied to commit subjects in VCS log. - - Error - 错误 - Underline color of error diagnostics. @@ -45348,9 +45218,6 @@ Will not be applied to whitespace in comments and strings. Implicit Manual Coverage Validation - - - TextEditor::TextEditorWidget Line: 9999, Col: 999 行号: %1, 列号: 999 @@ -45403,9 +45270,6 @@ Will not be applied to whitespace in comments and strings. Add UTF-8 BOM on Save 保存时添加UTF-8 BOM - - - TextEditor::TextMark Show Diagnostic Settings diff --git a/share/qtcreator/translations/qtcreator_zh_TW.ts b/share/qtcreator/translations/qtcreator_zh_TW.ts index 7776613d925..11910f228c9 100644 --- a/share/qtcreator/translations/qtcreator_zh_TW.ts +++ b/share/qtcreator/translations/qtcreator_zh_TW.ts @@ -8570,7 +8570,7 @@ To do this, you type this shortcut and a space in the Locator entry field, and t - TextEditor::BaseFileFind + ::TextEditor Search 搜尋 @@ -8579,9 +8579,6 @@ To do this, you type this shortcut and a space in the Locator entry field, and t List of comma separated wildcard filters 以逗號分隔的萬用字元符過濾器列表 - - - TextEditor::BaseTextDocument untitled 未命名 @@ -8590,9 +8587,6 @@ To do this, you type this shortcut and a space in the Locator entry field, and t Opening file 開啟檔案中 - - - TextEditor::BaseTextEditor Line: %1, Col: %2 行:%1,欄:%2 @@ -8601,17 +8595,11 @@ To do this, you type this shortcut and a space in the Locator entry field, and t Line: 9999, Col: 999 行:9999,欄:9999 - - - TextEditor::BehaviorSettingsPage Global Settings 全域 - - - TextEditor::FontSettingsPage Font && Colors 字型與顏色 @@ -8652,9 +8640,6 @@ To do this, you type this shortcut and a space in the Locator entry field, and t Discard 丟棄 - - - TextEditor::Internal::CodecSelector Text Encoding 文字編碼 @@ -8677,9 +8662,6 @@ The following encodings are likely to fit: Save with Encoding 根據編碼儲存 - - - TextEditor::Internal::FindInCurrentFile Current File 目前檔案 @@ -8694,9 +8676,6 @@ The following encodings are likely to fit: 檔案路徑:'%1' %2 - - - TextEditor::FontSettingsPageWidget Family: 家族: @@ -8721,10 +8700,6 @@ The following encodings are likely to fit: Copy... 複製... - - Delete - 刪除 - % % @@ -8733,9 +8708,6 @@ The following encodings are likely to fit: Zoom: 縮放: - - - TextEditor::Internal::LineNumberFilter Line %1 行 %1 @@ -8744,9 +8716,6 @@ The following encodings are likely to fit: Line in Current Document 目前文件裡的行 - - - TextEditor::Internal::TextEditorPlugin Creates a text file. The default file extension is <tt>.txt</tt>. You can specify a different extension as part of the filename. 建立文字檔案。預設的副檔名是 <tt>.txt</tt>。您可以在指定檔名時直接加副檔名。 @@ -8811,9 +8780,6 @@ The following encodings are likely to fit: Current document's font size in points. 目前文件的字型大小,以點為單位。 - - - TextEditor::TextEditorActionHandler &Undo 復原(&U) @@ -9218,9 +9184,6 @@ The following encodings are likely to fit: <line number> <行號> - - - TextEditor::TextEditorSettings Text 文字 @@ -10153,7 +10116,7 @@ Will not be applied to whitespace in comments and strings. - TextEditor::Internal::ColorSchemeEdit + ::TextEditor Bold 粗體 @@ -11034,14 +10997,11 @@ Reason: %2 - TextEditor::Internal::ColorScheme + ::TextEditor Not a color scheme file. 不是一個色彩機制檔。 - - - TextEditor::Internal::FontSettings Customized 自訂 @@ -17197,7 +17157,7 @@ Requires <b>Qt 4.7.0</b> or newer. - TextEditor::HighlighterSettingsPage + ::TextEditor Generic Highlighter 一般突顯器 @@ -17226,9 +17186,6 @@ Requires <b>Qt 4.7.0</b> or newer. Not possible to retrieve data. 無法取得資料。 - - - TextEditor::Internal::ManageDefinitionsDialog Name 名稱 @@ -17277,9 +17234,6 @@ Requires <b>Qt 4.7.0</b> or newer. Download Selected Definitions 下載已選取的定義 - - - TextEditor::Internal::Manager Registering definitions 正在註冊定義 @@ -17306,9 +17260,6 @@ Please check the directory's access rights. Download Error 下載錯誤 - - - TextEditor::Internal::OutlineWidgetStack No outline available 沒有可用大綱 @@ -17321,16 +17272,10 @@ Please check the directory's access rights. Filter tree 過濾樹狀圖 - - - TextEditor::Internal::OutlineFactory Outline 大綱 - - - TextEditor::Internal::PlainTextEditorFactory A highlight definition was not found for this file. Would you like to try to find one? 找不到此檔案的突顯定義。您要試著找找看嗎? @@ -20453,7 +20398,7 @@ You can build the application and deploy it on desktop and mobile target platfor - TextEditor::BaseTextEditorWidget + ::TextEditor CTRL+D CTRL+D @@ -20486,16 +20431,6 @@ You can build the application and deploy it on desktop and mobile target platfor The text is too large to be displayed (%1 MB). 文字過大,無法顯示(%1 MB)。 - - - TextEditor::Internal::PlainTextSnippetProvider - - Text - 文字 - - - - TextEditor::Internal::SnippetsTableModel Error 錯誤 @@ -20516,9 +20451,6 @@ You can build the application and deploy it on desktop and mobile target platfor Error reverting snippet. 回復片段時發生錯誤。 - - - TextEditor::Internal::SnippetsSettingsPagePrivate Snippets 片段 @@ -20527,10 +20459,6 @@ You can build the application and deploy it on desktop and mobile target platfor Error While Saving Snippet Collection 儲存片段收藏時發生錯誤 - - Error - 錯誤 - No snippet selected. 沒有選取片段。 @@ -22703,14 +22631,11 @@ In addition, device connectivity will be tested. - TextEditor::FunctionHintProposalWidget + ::TextEditor %1 of %2 %1/%2 - - - TextEditor::Internal::SnippetsCollection Cannot create user snippet directory %1 無法建立使用者片段目錄 %1 @@ -25055,7 +24980,7 @@ Remote error output was: %1 - TextEditor::Internal::CodeStyleDialog + ::TextEditor Edit Code Style 編輯代碼風格 @@ -25076,21 +25001,10 @@ Remote error output was: %1 %1 (Copy) %1 (複製) - - - TextEditor::CodeStyleSelectorWidget Copy Code Style 複製代碼風格 - - Code style name: - 代碼風格名稱: - - - %1 (Copy) - %1 (複製) - Delete Code Style 刪除代碼風格 @@ -25099,10 +25013,6 @@ Remote error output was: %1 Are you sure you want to delete this code style permanently? 您確定要永久刪除這個代碼風格嗎? - - Delete - 刪除 - Import Code Style 匯入代碼風格 @@ -25131,9 +25041,6 @@ Remote error output was: %1 %1 [built-in] %1 [內建] - - - TextEditor::FindInFiles Files on File System 在檔案系統中的檔案 @@ -25188,7 +25095,7 @@ Filter: %2 - TextEditor::CodeStyleEditor + ::TextEditor 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. 編輯預覽內容來查看目前的設定如何套用到自訂代碼片段。在預覽中的變更並不會影響目前的設定。 @@ -25978,14 +25885,11 @@ p, li { white-space: pre-wrap; } - TextEditor::Internal::BehaviorSettingsPage + ::TextEditor Form 表單 - - - TextEditor::BehaviorSettingsWidget Typing 打字 @@ -26172,21 +26076,10 @@ Specifies how backspace interacts with indentation. Using keyboard shortcut (Alt) 使用鍵盤捷徑 (Alt) - - - TextEditor::Internal::CodeStyleSelectorWidget - - Form - 表單 - Current settings: 目前設定: - - Copy... - 複製... - Edit... 編輯... @@ -26203,13 +26096,6 @@ Specifies how backspace interacts with indentation. Import... 匯入... - - - TextEditor::DisplaySettingsPage - - Display - 顯示 - Display line &numbers 顯示行號(&N) @@ -26262,13 +26148,6 @@ Specifies how backspace interacts with indentation. Display right &margin at column: 顯示在欄右邊的邊界(&M): - - - TextEditor::Internal::HighlighterSettingsPage - - Form - 表單 - <html><head/><body> <p>Highlight definitions are provided by the <a href="http://kate-editor.org/">Kate Text Editor</a>.</p></body></html> @@ -26287,10 +26166,6 @@ Specifies how backspace interacts with indentation. Use fallback location 使用預設位置 - - Behavior - 行為 - Alert when a highlight definition is not found 當找不到突顯的定義時警示 @@ -26299,13 +26174,6 @@ Specifies how backspace interacts with indentation. Ignored file patterns: 被忽略的檔案樣式: - - - TextEditor::Internal::SnippetsSettingsPage - - Form - 表單 - Group: 群組: @@ -26314,10 +26182,6 @@ Specifies how backspace interacts with indentation. Add 新增 - - Remove - 移除 - Revert Built-in 回復到內建 @@ -26330,13 +26194,6 @@ Specifies how backspace interacts with indentation. Reset All 全部重置 - - - TextEditor::TabSettingsWidget - - Form - 表單 - Tabs And Indentation 定位點與縮排 @@ -27867,14 +27724,11 @@ references to elements in other files, loops, etc.) - TextEditor::Internal::CountingLabel + ::TextEditor %1 found 找到 %1 - - - TextEditor::Internal::FindInOpenFiles Open Documents 開啟文件 diff --git a/src/plugins/cppcheck/cppchecktextmark.cpp b/src/plugins/cppcheck/cppchecktextmark.cpp index fcfe6edf437..774d09bde76 100644 --- a/src/plugins/cppcheck/cppchecktextmark.cpp +++ b/src/plugins/cppcheck/cppchecktextmark.cpp @@ -6,6 +6,8 @@ #include "cppchecktextmark.h" #include "cppchecktr.h" +#include + #include #include @@ -64,7 +66,7 @@ CppcheckTextMark::CppcheckTextMark(const Diagnostic &diagnostic) // Copy to clipboard action QAction *action = new QAction; 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]() { const QString text = QString("%1:%2: %3") .arg(diagnostic.fileName.toUserOutput()) diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp index e92c4c36716..4b5899c1cd7 100644 --- a/src/plugins/git/gitplugin.cpp +++ b/src/plugins/git/gitplugin.cpp @@ -38,6 +38,7 @@ #include #include +#include #include #include @@ -60,13 +61,12 @@ #include #include -#include -#include -#include - #include #include +#include +#include #include +#include #include #include #include @@ -208,13 +208,13 @@ public: setActionsProvider([info] { QAction *copyToClipboardAction = new QAction; 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] { Utils::setClipboardAndSelection(info.sha1); }); QAction *showAction = new QAction; 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] { GitClient::instance()->show(info.fileName, info.sha1); }); diff --git a/src/plugins/texteditor/basefilefind.cpp b/src/plugins/texteditor/basefilefind.cpp index a5d2eca5e63..29cccc6c10d 100644 --- a/src/plugins/texteditor/basefilefind.cpp +++ b/src/plugins/texteditor/basefilefind.cpp @@ -2,9 +2,13 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #include "basefilefind.h" + +#include "refactoringchanges.h" #include "textdocument.h" +#include "texteditortr.h" #include + #include #include #include @@ -12,8 +16,7 @@ #include #include #include -#include -#include + #include #include #include @@ -37,13 +40,12 @@ using namespace Core; namespace TextEditor { namespace Internal { -namespace { class InternalEngine : public TextEditor::SearchEngine { public: InternalEngine() : m_widget(new QWidget) {} ~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 {}; } QWidget *widget() const override { return m_widget; } QVariant parameters() const override { return {}; } @@ -72,7 +74,6 @@ public: private: QWidget *m_widget; }; -} // namespace class SearchEnginePrivate { @@ -305,10 +306,10 @@ void BaseFileFind::runSearch(SearchResult *search) watcher->setFuture(future); d->m_futureSynchronizer.addFuture(future); FutureProgress *progress = ProgressManager::addTask(future, - tr("Searching"), + Tr::tr("Searching"), Constants::TASK_SEARCH); 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); connect(progress, &FutureProgress::clicked, search, &SearchResult::popup); @@ -338,7 +339,7 @@ void BaseFileFind::doReplace(const QString &text, const FilePaths files = replaceAll(text, items, preserveCase); if (!files.isEmpty()) { Utils::FadingIndicator::showText(ICore::dialogParent(), - tr("%n occurrences replaced.", nullptr, items.size()), + Tr::tr("%n occurrences replaced.", nullptr, items.size()), Utils::FadingIndicator::SmallText); DocumentManager::notifyFilesChangedInternally(files); SearchResultWindow::instance()->hide(); @@ -496,7 +497,7 @@ FilePaths BaseFileFind::replaceAll(const QString &text, // Query the user for permissions if (!roFiles.isEmpty()) { 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) return {}; } diff --git a/src/plugins/texteditor/behaviorsettingspage.cpp b/src/plugins/texteditor/behaviorsettingspage.cpp index ee565995483..5d397458071 100644 --- a/src/plugins/texteditor/behaviorsettingspage.cpp +++ b/src/plugins/texteditor/behaviorsettingspage.cpp @@ -12,6 +12,7 @@ #include "tabsettings.h" #include "texteditorconstants.h" #include "texteditorsettings.h" +#include "texteditortr.h" #include "typingsettings.h" #include @@ -55,7 +56,7 @@ BehaviorSettingsPage::BehaviorSettingsPagePrivate::BehaviorSettingsPagePrivate() { // global tab preferences for all other languages 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); // default pool for all other languages @@ -75,10 +76,10 @@ BehaviorSettingsPage::BehaviorSettingsPage() { // Add the GUI used to configure the tab, storage and interaction settings setId(Constants::TEXT_EDITOR_BEHAVIOR_SETTINGS); - setDisplayName(tr("Behavior")); + setDisplayName(Tr::tr("Behavior")); 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); } diff --git a/src/plugins/texteditor/behaviorsettingswidget.cpp b/src/plugins/texteditor/behaviorsettingswidget.cpp index cea36f3a72c..518f09c8a57 100644 --- a/src/plugins/texteditor/behaviorsettingswidget.cpp +++ b/src/plugins/texteditor/behaviorsettingswidget.cpp @@ -9,6 +9,7 @@ #include "simplecodestylepreferenceswidget.h" #include "storagesettings.h" #include "tabsettingswidget.h" +#include "texteditortr.h" #include "typingsettings.h" #include @@ -32,7 +33,6 @@ namespace TextEditor { struct BehaviorSettingsWidgetPrivate { - SimpleCodeStylePreferencesWidget *tabPreferencesWidget; QComboBox *tabKeyBehavior; QComboBox *smartBackspaceBehavior; @@ -71,15 +71,15 @@ BehaviorSettingsWidget::BehaviorSettingsWidget(QWidget *parent) d->tabPreferencesWidget->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); // FIXME: Desirable? d->tabKeyBehavior = new QComboBox; - d->tabKeyBehavior->addItem(tr("Never")); - d->tabKeyBehavior->addItem(tr("Always")); - d->tabKeyBehavior->addItem(tr("In Leading White Space")); + d->tabKeyBehavior->addItem(Tr::tr("Never")); + d->tabKeyBehavior->addItem(Tr::tr("Always")); + d->tabKeyBehavior->addItem(Tr::tr("In Leading White Space")); d->smartBackspaceBehavior = new QComboBox; - d->smartBackspaceBehavior->addItem(tr("None")); - d->smartBackspaceBehavior->addItem(tr("Follows Previous Indents")); - d->smartBackspaceBehavior->addItem(tr("Unindents")); - d->smartBackspaceBehavior->setToolTip(tr("\n" + d->smartBackspaceBehavior->addItem(Tr::tr("None")); + d->smartBackspaceBehavior->addItem(Tr::tr("Follows Previous Indents")); + d->smartBackspaceBehavior->addItem(Tr::tr("Unindents")); + d->smartBackspaceBehavior->setToolTip(Tr::tr("\n" "Specifies how backspace interacts with indentation.\n" "\n" "
    \n" @@ -94,43 +94,43 @@ BehaviorSettingsWidget::BehaviorSettingsWidget(QWidget *parent) "
\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->setToolTip(tr("For the file patterns listed, do not trim trailing whitespace.")); + d->skipTrailingWhitespace = new QCheckBox(Tr::tr("Skip clean whitespace for file types:")); + d->skipTrailingWhitespace->setToolTip(Tr::tr("For the file patterns listed, do not trim trailing whitespace.")); d->skipTrailingWhitespace->setEnabled(false); d->skipTrailingWhitespace->setChecked(false); d->ignoreFileTypes = new QLineEdit; d->ignoreFileTypes->setEnabled(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->setToolTip(tr("Always writes a newline character at the end of the file.")); + d->addFinalNewLine = new QCheckBox(Tr::tr("&Ensure newline at end of 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->setToolTip(tr("Removes trailing whitespace upon saving.")); + d->cleanWhitespace = new QCheckBox(Tr::tr("&Clean whitespace")); + 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->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->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->setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLengthWithIcon); d->encodingBox->setMinimumContentsLength(20); d->utf8BomBox = new QComboBox; - d->utf8BomBox->addItem(tr("Add If Encoding Is UTF-8")); - d->utf8BomBox->addItem(tr("Keep If Already Present")); - d->utf8BomBox->addItem(tr("Always Delete")); - d->utf8BomBox->setToolTip(tr("\n" + d->utf8BomBox->addItem(Tr::tr("Add If Encoding Is UTF-8")); + d->utf8BomBox->addItem(Tr::tr("Keep If Already Present")); + d->utf8BomBox->addItem(Tr::tr("Always Delete")); + d->utf8BomBox->setToolTip(Tr::tr("\n" "

How text editors should deal with UTF-8 Byte Order Marks. The options are:

\n" "
  • Add If Encoding Is UTF-8: always add a BOM when saving a file in UTF-8 encoding. Note that this will not work if the encoding is System, as the text editor does not know what it actually is.
  • \n" "
  • Keep If Already Present: save the file with a BOM if it already had one when it was loaded.
  • \n" @@ -141,29 +141,29 @@ BehaviorSettingsWidget::BehaviorSettingsWidget(QWidget *parent) d->defaultLineEndings = new QComboBox; d->defaultLineEndings->addItems(ExtraEncodingSettings::lineTerminationModeNames()); - d->mouseHiding = new QCheckBox(tr("Hide mouse cursor while typing")); - d->mouseNavigation = new QCheckBox(tr("Enable &mouse navigation")); - d->scrollWheelZooming = new QCheckBox(tr("Enable scroll &wheel zooming")); - d->camelCaseNavigation = new QCheckBox(tr("Enable built-in camel case &navigation")); + d->mouseHiding = new QCheckBox(Tr::tr("Hide mouse cursor while typing")); + d->mouseNavigation = new QCheckBox(Tr::tr("Enable &mouse navigation")); + d->scrollWheelZooming = new QCheckBox(Tr::tr("Enable scroll &wheel zooming")); + d->camelCaseNavigation = new QCheckBox(Tr::tr("Enable built-in camel case &navigation")); - d->smartSelectionChanging = new QCheckBox(tr("Enable smart selection changing")); - d->smartSelectionChanging->setToolTip(tr("Using Select Block Up / Down actions will now provide smarter selections.")); + d->smartSelectionChanging = new QCheckBox(Tr::tr("Enable smart selection changing")); + 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->setToolTip(tr("Pressing Alt displays context-sensitive help or type information as tooltips.")); + d->keyboardTooltips = new QCheckBox(Tr::tr("Show help tooltips using keyboard shortcut (Alt)")); + d->keyboardTooltips->setToolTip(Tr::tr("Pressing Alt displays context-sensitive help or type information as tooltips.")); d->constrainTooltipsBox = new QComboBox; - d->constrainTooltipsBox->addItem(tr("On Mouseover")); - d->constrainTooltipsBox->addItem(tr("On Shift+Mouseover")); + d->constrainTooltipsBox->addItem(Tr::tr("On 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->setToolTip(tr("Cleanup actions which are automatically performed " + d->groupBoxStorageSettings = new QGroupBox(Tr::tr("Cleanups Upon Saving")); + d->groupBoxStorageSettings->setToolTip(Tr::tr("Cleanup actions which are automatically performed " "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; @@ -171,9 +171,9 @@ BehaviorSettingsWidget::BehaviorSettingsWidget(QWidget *parent) Column { d->autoIndent, - tr("Backspace indentation:"), + Tr::tr("Backspace indentation:"), indent(d->smartBackspaceBehavior), - tr("Tab key performs auto-indent:"), + Tr::tr("Tab key performs auto-indent:"), indent(d->tabKeyBehavior), d->preferSingleLineComments }.attachTo(d->groupBoxTyping); @@ -188,9 +188,9 @@ BehaviorSettingsWidget::BehaviorSettingsWidget(QWidget *parent) Row { Form { - tr("Default encoding:"), d->encodingBox, br, - tr("UTF-8 BOM:"), d->utf8BomBox, br, - tr("Default line endings:"), d->defaultLineEndings, br, + Tr::tr("Default encoding:"), d->encodingBox, br, + Tr::tr("UTF-8 BOM:"), d->utf8BomBox, br, + Tr::tr("Default line endings:"), d->defaultLineEndings, br, }, st }.attachTo(d->groupBoxEncodings); @@ -201,7 +201,7 @@ BehaviorSettingsWidget::BehaviorSettingsWidget(QWidget *parent) d->camelCaseNavigation, d->smartSelectionChanging, d->keyboardTooltips, - tr("Show help tooltips using the mouse:"), + Tr::tr("Show help tooltips using the mouse:"), Row { Space(30), d->constrainTooltipsBox, st } }.attachTo(d->groupBoxMouse); @@ -332,10 +332,10 @@ void BehaviorSettingsWidget::updateConstrainTooltipsBoxTooltip() const { if (d->constrainTooltipsBox->currentIndex() == 0) { 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 { 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.")); } } diff --git a/src/plugins/texteditor/codeassist/functionhintproposalwidget.cpp b/src/plugins/texteditor/codeassist/functionhintproposalwidget.cpp index e3c55fe9dc6..d4ab4f09136 100644 --- a/src/plugins/texteditor/codeassist/functionhintproposalwidget.cpp +++ b/src/plugins/texteditor/codeassist/functionhintproposalwidget.cpp @@ -2,8 +2,10 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #include "functionhintproposalwidget.h" + #include "ifunctionhintproposalmodel.h" #include "codeassistant.h" +#include "../texteditortr.h" #include #include @@ -341,7 +343,7 @@ bool FunctionHintProposalWidget::updateAndCheck(const QString &prefix) void FunctionHintProposalWidget::updateContent() { 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(); } diff --git a/src/plugins/texteditor/codestyleeditor.cpp b/src/plugins/texteditor/codestyleeditor.cpp index f4fea532475..d36e9a4bfda 100644 --- a/src/plugins/texteditor/codestyleeditor.cpp +++ b/src/plugins/texteditor/codestyleeditor.cpp @@ -7,17 +7,18 @@ #include "icodestylepreferencesfactory.h" #include "icodestylepreferences.h" #include "codestyleselectorwidget.h" -#include "texteditorsettings.h" +#include "texteditortr.h" #include "displaysettings.h" #include "tabsettings.h" #include "indenter.h" #include "snippets/snippeteditor.h" #include "snippets/snippetprovider.h" + #include #include #include -using namespace TextEditor; +namespace TextEditor { CodeStyleEditor::CodeStyleEditor(ICodeStylePreferencesFactory *factory, ICodeStylePreferences *codeStyle, @@ -45,9 +46,9 @@ CodeStyleEditor::CodeStyleEditor(ICodeStylePreferencesFactory *factory, } QLabel *label = new QLabel( - tr("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."), this); + Tr::tr("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."), this); QFont font = label->font(); font.setItalic(true); label->setFont(font); @@ -106,3 +107,5 @@ void CodeStyleEditor::finish() if (m_widget) m_widget->finish(); } + +} // TextEditor diff --git a/src/plugins/texteditor/codestyleselectorwidget.cpp b/src/plugins/texteditor/codestyleselectorwidget.cpp index dec8f357f94..f9b458452b8 100644 --- a/src/plugins/texteditor/codestyleselectorwidget.cpp +++ b/src/plugins/texteditor/codestyleselectorwidget.cpp @@ -6,6 +6,7 @@ #include "icodestylepreferences.h" #include "icodestylepreferencesfactory.h" #include "codestylepool.h" +#include "texteditortr.h" #include #include @@ -21,7 +22,6 @@ #include #include -using namespace TextEditor; using namespace Utils; namespace TextEditor { @@ -38,21 +38,21 @@ CodeStyleSelectorWidget::CodeStyleSelectorWidget(ICodeStylePreferencesFactory *f m_delegateComboBox = new QComboBox(this); 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_importButton = new QPushButton(tr("Import...")); + m_importButton = new QPushButton(Tr::tr("Import...")); m_importButton->setEnabled(false); using namespace Utils::Layouting; Column { Grid { - tr("Current settings:"), + Tr::tr("Current settings:"), m_delegateComboBox, copyButton, m_removeButton, @@ -157,10 +157,10 @@ void CodeStyleSelectorWidget::slotCopyClicked() ICodeStylePreferences *currentPreferences = m_codeStyle->currentPreferences(); bool ok = false; const QString newName = QInputDialog::getText(this, - tr("Copy Code Style"), - tr("Code style name:"), + Tr::tr("Copy Code Style"), + Tr::tr("Code style name:"), QLineEdit::Normal, - tr("%1 (Copy)").arg(currentPreferences->displayName()), + Tr::tr("%1 (Copy)").arg(currentPreferences->displayName()), &ok); if (!ok || newName.trimmed().isEmpty()) return; @@ -180,14 +180,14 @@ void CodeStyleSelectorWidget::slotRemoveClicked() ICodeStylePreferences *currentPreferences = m_codeStyle->currentPreferences(); QMessageBox messageBox(QMessageBox::Warning, - tr("Delete Code Style"), - tr("Are you sure you want to delete this code style permanently?"), + Tr::tr("Delete Code Style"), + Tr::tr("Are you sure you want to delete this code style permanently?"), QMessageBox::Discard | QMessageBox::Cancel, this); // Change the text and role of the discard button auto deleteButton = static_cast(messageBox.button(QMessageBox::Discard)); - deleteButton->setText(tr("Delete")); + deleteButton->setText(Tr::tr("Delete")); messageBox.addButton(deleteButton, QMessageBox::AcceptRole); messageBox.setDefaultButton(deleteButton); @@ -199,25 +199,25 @@ void CodeStyleSelectorWidget::slotRemoveClicked() void CodeStyleSelectorWidget::slotImportClicked() { const FilePath fileName = - FileUtils::getOpenFilePath(this, tr("Import Code Style"), {}, - tr("Code styles (*.xml);;All files (*)")); + FileUtils::getOpenFilePath(this, Tr::tr("Import Code Style"), {}, + Tr::tr("Code styles (*.xml);;All files (*)")); if (!fileName.isEmpty()) { CodeStylePool *codeStylePool = m_codeStyle->delegatingPool(); ICodeStylePreferences *importedStyle = codeStylePool->importCodeStyle(fileName); if (importedStyle) m_codeStyle->setCurrentDelegate(importedStyle); else - QMessageBox::warning(this, tr("Import Code Style"), - tr("Cannot import code style from %1"), fileName.toUserOutput()); + QMessageBox::warning(this, Tr::tr("Import Code Style"), + Tr::tr("Cannot import code style from %1"), fileName.toUserOutput()); } } void CodeStyleSelectorWidget::slotExportClicked() { 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")), - tr("Code styles (*.xml);;All files (*)")); + Tr::tr("Code styles (*.xml);;All files (*)")); if (!filePath.isEmpty()) { CodeStylePool *codeStylePool = m_codeStyle->delegatingPool(); codeStylePool->exportCodeStyle(filePath, currentPreferences); @@ -283,9 +283,9 @@ QString CodeStyleSelectorWidget::displayName(ICodeStylePreferences *codeStyle) c { QString name = codeStyle->displayName(); 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()) - name = tr("%1 [built-in]").arg(name); + name = Tr::tr("%1 [built-in]").arg(name); return name; } diff --git a/src/plugins/texteditor/colorscheme.cpp b/src/plugins/texteditor/colorscheme.cpp index d1ee946ae5e..67f99c5226f 100644 --- a/src/plugins/texteditor/colorscheme.cpp +++ b/src/plugins/texteditor/colorscheme.cpp @@ -4,6 +4,7 @@ #include "colorscheme.h" #include "texteditorconstants.h" +#include "texteditortr.h" #include @@ -298,7 +299,7 @@ bool ColorSchemeReader::read(const FilePath &filePath, ColorScheme *scheme) if (readNextStartElement() && name() == QLatin1String("style-scheme")) readStyleScheme(); else - raiseError(QCoreApplication::translate("TextEditor::Internal::ColorScheme", "Not a color scheme file.")); + raiseError(Tr::tr("Not a color scheme file.")); return true; } diff --git a/src/plugins/texteditor/colorschemeedit.cpp b/src/plugins/texteditor/colorschemeedit.cpp index 7f876cb2785..0bd0c54015f 100644 --- a/src/plugins/texteditor/colorschemeedit.cpp +++ b/src/plugins/texteditor/colorschemeedit.cpp @@ -3,6 +3,8 @@ #include "colorschemeedit.h" +#include "texteditortr.h" + #include #include #include @@ -138,7 +140,7 @@ ColorSchemeEdit::ColorSchemeEdit(QWidget *parent) : auto unsetButton = [](const QString &toolTip) { auto tb = new QPushButton; tb->setToolTip(toolTip); - tb->setText(tr("Unset")); + tb->setText(Tr::tr("Unset")); return tb; }; @@ -165,7 +167,7 @@ ColorSchemeEdit::ColorSchemeEdit(QWidget *parent) : m_itemList->setUniformItemSizes(true); m_builtinSchemeLabel = new QLabel( - tr("

    Builtin color schemes need to be copied
    " + Tr::tr("

    Builtin color schemes need to be copied
    " " before they can be changed

    ")); m_builtinSchemeLabel->setScaledContents(false); @@ -173,33 +175,33 @@ ColorSchemeEdit::ColorSchemeEdit(QWidget *parent) : //m_fontProperties->setContentsMargins(0, 0, 0, 0); m_fontProperties->setMinimumWidth(212); - m_foregroundLabel = new QLabel(tr("Foreground:")); + m_foregroundLabel = new QLabel(Tr::tr("Foreground:")); m_foregroundToolButton = colorButton(); - m_eraseForegroundToolButton = unsetButton(tr("Unset foreground.")); - m_backgroundLabel = new QLabel(tr("Background:")); + m_eraseForegroundToolButton = unsetButton(Tr::tr("Unset foreground.")); + m_backgroundLabel = new QLabel(Tr::tr("Background:")); m_backgroundToolButton = colorButton(); - m_eraseBackgroundToolButton = unsetButton(tr("Unset background.")); + m_eraseBackgroundToolButton = unsetButton(Tr::tr("Unset background.")); - m_relativeForegroundHeadline = headlineLabel(tr("Relative Foreground")); - m_foregroundSaturationLabel = new QLabel(tr("Saturation:")); + m_relativeForegroundHeadline = headlineLabel(Tr::tr("Relative Foreground")); + m_foregroundSaturationLabel = new QLabel(Tr::tr("Saturation:")); m_foregroundSaturationSpinBox = spinBox(); - m_foregroundLightnessLabel = new QLabel(tr("Lightness:")); + m_foregroundLightnessLabel = new QLabel(Tr::tr("Lightness:")); m_foregroundLightnessSpinBox = spinBox(); - m_relativeBackgroundHeadline = headlineLabel(tr("Relative Background")); - m_backgroundSaturationLabel = new QLabel(tr("Saturation:")); + m_relativeBackgroundHeadline = headlineLabel(Tr::tr("Relative Background")); + m_backgroundSaturationLabel = new QLabel(Tr::tr("Saturation:")); m_backgroundSaturationSpinBox = spinBox(); - m_backgroundLightnessLabel = new QLabel(tr("Lightness:")); + m_backgroundLightnessLabel = new QLabel(Tr::tr("Lightness:")); m_backgroundLightnessSpinBox = spinBox(); - m_fontHeadline = headlineLabel(tr("Font")); - m_boldCheckBox = new QCheckBox(tr("Bold")); - m_italicCheckBox = new QCheckBox(tr("Italic")); + m_fontHeadline = headlineLabel(Tr::tr("Font")); + m_boldCheckBox = new QCheckBox(Tr::tr("Bold")); + m_italicCheckBox = new QCheckBox(Tr::tr("Italic")); - m_underlineHeadline = headlineLabel(tr("Underline")); - m_underlineLabel = new QLabel(tr("Color:")); + m_underlineHeadline = headlineLabel(Tr::tr("Underline")); + m_underlineLabel = new QLabel(Tr::tr("Color:")); m_underlineColorToolButton = colorButton(); - m_eraseUnderlineColorToolButton = unsetButton(tr("Unset background.")); + m_eraseUnderlineColorToolButton = unsetButton(Tr::tr("Unset background.")); m_underlineComboBox = new QComboBox; m_itemList->setModel(m_formatsModel); @@ -685,19 +687,19 @@ void ColorSchemeEdit::setItemListBackground(const QColor &color) void ColorSchemeEdit::populateUnderlineStyleComboBox() { - m_underlineComboBox->addItem(tr("No Underline"), + m_underlineComboBox->addItem(Tr::tr("No Underline"), QVariant::fromValue(int(QTextCharFormat::NoUnderline))); - m_underlineComboBox->addItem(tr("Single Underline"), + m_underlineComboBox->addItem(Tr::tr("Single Underline"), QVariant::fromValue(int(QTextCharFormat::SingleUnderline))); - m_underlineComboBox->addItem(tr("Wave Underline"), + m_underlineComboBox->addItem(Tr::tr("Wave Underline"), QVariant::fromValue(int(QTextCharFormat::WaveUnderline))); - m_underlineComboBox->addItem(tr("Dot Underline"), + m_underlineComboBox->addItem(Tr::tr("Dot Underline"), QVariant::fromValue(int(QTextCharFormat::DotLine))); - m_underlineComboBox->addItem(tr("Dash Underline"), + m_underlineComboBox->addItem(Tr::tr("Dash Underline"), 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))); - m_underlineComboBox->addItem(tr("Dash-Dot-Dot Underline"), + m_underlineComboBox->addItem(Tr::tr("Dash-Dot-Dot Underline"), QVariant::fromValue(int(QTextCharFormat::DashDotDotLine))); } diff --git a/src/plugins/texteditor/completionsettingspage.cpp b/src/plugins/texteditor/completionsettingspage.cpp index f3a09c57355..6187688e4e9 100644 --- a/src/plugins/texteditor/completionsettingspage.cpp +++ b/src/plugins/texteditor/completionsettingspage.cpp @@ -5,6 +5,7 @@ #include "texteditorsettings.h" #include "texteditorconstants.h" +#include "texteditortr.h" #include @@ -29,8 +30,6 @@ namespace Internal { class CompletionSettingsPageWidget final : public Core::IOptionsPageWidget { - Q_DECLARE_TR_FUNCTIONS(TextEditor::Internal::CompletionSettingsPage) - public: explicit CompletionSettingsPageWidget(CompletionSettingsPage *owner); @@ -70,97 +69,97 @@ CompletionSettingsPageWidget::CompletionSettingsPageWidget(CompletionSettingsPag resize(823, 756); m_caseSensitivity = new QComboBox; - m_caseSensitivity->addItem(tr("Full")); - m_caseSensitivity->addItem(tr("None")); - m_caseSensitivity->addItem(tr("First Letter")); + m_caseSensitivity->addItem(Tr::tr("Full")); + m_caseSensitivity->addItem(Tr::tr("None")); + 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); m_completionTrigger = new QComboBox; - m_completionTrigger->addItem(tr("Manually")); - m_completionTrigger->addItem(tr("When Triggered")); - m_completionTrigger->addItem(tr("Always")); + m_completionTrigger->addItem(Tr::tr("Manually")); + m_completionTrigger->addItem(Tr::tr("When Triggered")); + 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->setMaximum(2000); m_automaticProposalTimeoutSpinBox->setSingleStep(50); 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->setMinimum(1); - m_partiallyComplete = new QCheckBox(tr("Autocomplete common &prefix")); - m_partiallyComplete->setToolTip(tr("Inserts the common prefix of available completion items.")); + m_partiallyComplete = new QCheckBox(Tr::tr("Autocomplete common &prefix")); + m_partiallyComplete->setToolTip(Tr::tr("Inserts the common prefix of available completion items.")); m_partiallyComplete->setChecked(true); - m_autoSplitStrings = new QCheckBox(tr("Automatically split strings")); + m_autoSplitStrings = new QCheckBox(Tr::tr("Automatically split strings")); 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 " "of the string.\n\n" "In addition, Shift+Enter inserts an escape character at the cursor position " "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_insertQuotes = new QCheckBox(tr("Insert closing quote")); + m_insertQuotes = new QCheckBox(Tr::tr("Insert closing quote")); 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->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.")); - 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_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->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.")); - 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->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.")); - m_highlightAutoComplete = new QCheckBox(tr("Highlight automatically inserted text")); + m_highlightAutoComplete = new QCheckBox(Tr::tr("Highlight automatically inserted text")); m_highlightAutoComplete->setChecked(true); - m_skipAutoComplete = new QCheckBox(tr("Skip automatically inserted character when typing")); - m_skipAutoComplete->setToolTip(tr("Skip automatically inserted character if re-typed manually " + m_skipAutoComplete = new QCheckBox(Tr::tr("Skip automatically inserted character when typing")); + m_skipAutoComplete->setToolTip(Tr::tr("Skip automatically inserted character if re-typed manually " "after completion or by pressing tab.")); 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->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.")); - m_overwriteClosingChars = new QCheckBox(tr("Overwrite closing punctuation")); - m_overwriteClosingChars->setToolTip(tr("Automatically overwrite closing parentheses and quotes.")); + m_overwriteClosingChars = new QCheckBox(Tr::tr("Overwrite closing punctuation")); + m_overwriteClosingChars->setToolTip(Tr::tr("Automatically overwrite closing parentheses and quotes.")); - m_enableDoxygenCheckBox = new QCheckBox(tr("Enable Doxygen blocks")); - m_enableDoxygenCheckBox->setToolTip(tr("Automatically creates a Doxygen comment upon pressing " + m_enableDoxygenCheckBox = new QCheckBox(Tr::tr("Enable Doxygen blocks")); + m_enableDoxygenCheckBox->setToolTip(Tr::tr("Automatically creates a Doxygen comment upon pressing " "enter after a '/**', '/*!', '//!' or '///'.")); - m_generateBriefCheckBox = new QCheckBox(tr("Generate brief description")); - m_generateBriefCheckBox->setToolTip(tr("Generates a brief command with an initial " + m_generateBriefCheckBox = new QCheckBox(Tr::tr("Generate brief description")); + m_generateBriefCheckBox->setToolTip(Tr::tr("Generates a brief command with an initial " "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( - 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.")); connect(m_completionTrigger, &QComboBox::currentIndexChanged, @@ -227,7 +226,7 @@ CompletionSettingsPageWidget::CompletionSettingsPageWidget(CompletionSettingsPag Column { Group { - title(tr("Behavior")), + title(Tr::tr("Behavior")), Form { caseSensitivityLabel, m_caseSensitivity, st, br, completionTriggerLabel, m_completionTrigger, st, br, @@ -238,7 +237,7 @@ CompletionSettingsPageWidget::CompletionSettingsPageWidget(CompletionSettingsPag } }, Group { - title(tr("&Automatically insert matching characters")), + title(Tr::tr("&Automatically insert matching characters")), Row { Column { m_insertBrackets, @@ -258,7 +257,7 @@ CompletionSettingsPageWidget::CompletionSettingsPageWidget(CompletionSettingsPag } }, Group { - title(tr("Documentation Comments")), + title(Tr::tr("Documentation Comments")), Column { m_enableDoxygenCheckBox, indent(m_generateBriefCheckBox), @@ -356,9 +355,9 @@ const CommentsSettings &CompletionSettingsPage::commentsSettings() const CompletionSettingsPage::CompletionSettingsPage() { setId("P.Completion"); - setDisplayName(CompletionSettingsPageWidget::tr("Completion")); + setDisplayName(Tr::tr("Completion")); 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); setWidgetCreator([this] { return new CompletionSettingsPageWidget(this); }); diff --git a/src/plugins/texteditor/displaysettingspage.cpp b/src/plugins/texteditor/displaysettingspage.cpp index fc48e226846..58f9e04068d 100644 --- a/src/plugins/texteditor/displaysettingspage.cpp +++ b/src/plugins/texteditor/displaysettingspage.cpp @@ -7,10 +7,10 @@ #include "marginsettings.h" #include "texteditorconstants.h" #include "texteditorsettings.h" +#include "texteditortr.h" #include - #include #include @@ -39,17 +39,15 @@ DisplaySettingsPagePrivate::DisplaySettingsPagePrivate() class DisplaySettingsWidget final : public Core::IOptionsPageWidget { - Q_DECLARE_TR_FUNCTIONS(TextEditor::DisplaySettingsPage) - public: DisplaySettingsWidget(DisplaySettingsPagePrivate *data) : m_data(data) { resize(452, 458); - enableTextWrapping = new QCheckBox(tr("Enable text &wrapping")); + enableTextWrapping = new QCheckBox(Tr::tr("Enable text &wrapping")); - enableTextWrappingHintLabel = new QLabel(tr("Set font line spacing " + enableTextWrappingHintLabel = new QLabel(Tr::tr("Set font line spacing " "to 100% to enable text wrapping option.")); fontSettingsPageLineSpacing = fontSettingsPageLineSpacingLink(); @@ -74,8 +72,8 @@ public: Core::ICore::showOptionsDialog(Constants::TEXT_EDITOR_FONT_SETTINGS); } ); - showWrapColumn = new QCheckBox(tr("Display right &margin at column:")); - tintMarginArea = new QCheckBox(tr("Tint whole margin area")); + showWrapColumn = new QCheckBox(Tr::tr("Display right &margin at column:")); + tintMarginArea = new QCheckBox(Tr::tr("Tint whole margin area")); wrapColumn = new QSpinBox; wrapColumn->setMaximum(999); @@ -83,36 +81,36 @@ public: connect(showWrapColumn, &QAbstractButton::toggled, wrapColumn, &QWidget::setEnabled); connect(showWrapColumn, &QAbstractButton::toggled, tintMarginArea, &QWidget::setEnabled); - useIndenter = new QCheckBox(tr("Use context-specific margin")); - useIndenter->setToolTip(tr("If available, use a different margin. " + useIndenter = new QCheckBox(Tr::tr("Use context-specific margin")); + useIndenter->setToolTip(Tr::tr("If available, use a different margin. " "For example, the ColumnLimit from the ClangFormat plugin.")); - animateMatchingParentheses = new QCheckBox(tr("&Animate matching parentheses")); - scrollBarHighlights = new QCheckBox(tr("Highlight search results on the scrollbar")); - displayLineNumbers = new QCheckBox(tr("Display line &numbers")); - animateNavigationWithinFile = new QCheckBox(tr("Animate navigation within file")); - highlightCurrentLine = new QCheckBox(tr("Highlight current &line")); - highlightBlocks = new QCheckBox(tr("Highlight &blocks")); - markTextChanges = new QCheckBox(tr("Mark &text changes")); - autoFoldFirstComment = new QCheckBox(tr("Auto-fold first &comment")); - displayFoldingMarkers = new QCheckBox(tr("Display &folding markers")); - centerOnScroll = new QCheckBox(tr("Center &cursor on scroll")); - visualizeIndent = new QCheckBox(tr("Visualize indent")); - displayFileLineEnding = new QCheckBox(tr("Display file line ending")); - displayFileEncoding = new QCheckBox(tr("Display file encoding")); - openLinksInNextSplit = new QCheckBox(tr("Always open links in another split")); - highlightMatchingParentheses = new QCheckBox(tr("&Highlight matching parentheses")); + animateMatchingParentheses = new QCheckBox(Tr::tr("&Animate matching parentheses")); + scrollBarHighlights = new QCheckBox(Tr::tr("Highlight search results on the scrollbar")); + displayLineNumbers = new QCheckBox(Tr::tr("Display line &numbers")); + animateNavigationWithinFile = new QCheckBox(Tr::tr("Animate navigation within file")); + highlightCurrentLine = new QCheckBox(Tr::tr("Highlight current &line")); + highlightBlocks = new QCheckBox(Tr::tr("Highlight &blocks")); + markTextChanges = new QCheckBox(Tr::tr("Mark &text changes")); + autoFoldFirstComment = new QCheckBox(Tr::tr("Auto-fold first &comment")); + displayFoldingMarkers = new QCheckBox(Tr::tr("Display &folding markers")); + centerOnScroll = new QCheckBox(Tr::tr("Center &cursor on scroll")); + visualizeIndent = new QCheckBox(Tr::tr("Visualize indent")); + displayFileLineEnding = new QCheckBox(Tr::tr("Display file line ending")); + displayFileEncoding = new QCheckBox(Tr::tr("Display file encoding")); + openLinksInNextSplit = new QCheckBox(Tr::tr("Always open links in another split")); + highlightMatchingParentheses = new QCheckBox(Tr::tr("&Highlight matching parentheses")); - visualizeWhitespace = new QCheckBox(tr("&Visualize whitespace")); - visualizeWhitespace->setToolTip(tr("Shows tabs and spaces.")); + visualizeWhitespace = new QCheckBox(Tr::tr("&Visualize whitespace")); + visualizeWhitespace->setToolTip(Tr::tr("Shows tabs and spaces.")); - leftAligned = new QRadioButton(tr("Next to editor content")); - atMargin = new QRadioButton(tr("Next to right margin")); - rightAligned = new QRadioButton(tr("Aligned at right side")); + leftAligned = new QRadioButton(Tr::tr("Next to editor content")); + atMargin = new QRadioButton(Tr::tr("Next to right margin")); + rightAligned = new QRadioButton(Tr::tr("Aligned at right side")); 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); using namespace Utils::Layouting; @@ -126,21 +124,21 @@ public: Column { Group { - title(tr("Margin")), + title(Tr::tr("Margin")), Column { Row { showWrapColumn, wrapColumn, st }, Row { useIndenter, tintMarginArea, st } } }, Group { - title(tr("Wrapping")), + title(Tr::tr("Wrapping")), Column { enableTextWrapping, Row { enableTextWrappingHintLabel, st} } }, Group { - title(tr("Display")), + title(Tr::tr("Display")), Row { Column { displayLineNumbers, @@ -345,9 +343,9 @@ DisplaySettingsPage::DisplaySettingsPage() : d(new DisplaySettingsPagePrivate) { setId(Constants::TEXT_EDITOR_DISPLAY_SETTINGS); - setDisplayName(DisplaySettingsWidget::tr("Display")); + setDisplayName(Tr::tr("Display")); 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); setWidgetCreator([this] { return new DisplaySettingsWidget(d); }); } diff --git a/src/plugins/texteditor/extraencodingsettings.cpp b/src/plugins/texteditor/extraencodingsettings.cpp index 73e74350615..349d37a39ef 100644 --- a/src/plugins/texteditor/extraencodingsettings.cpp +++ b/src/plugins/texteditor/extraencodingsettings.cpp @@ -2,7 +2,9 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #include "extraencodingsettings.h" + #include "behaviorsettingswidget.h" +#include "texteditortr.h" #include @@ -54,6 +56,5 @@ bool ExtraEncodingSettings::equals(const ExtraEncodingSettings &s) const QStringList ExtraEncodingSettings::lineTerminationModeNames() { - return {BehaviorSettingsWidget::tr("Unix (LF)"), - BehaviorSettingsWidget::tr("Windows (CRLF)")}; + return {Tr::tr("Unix (LF)"), Tr::tr("Windows (CRLF)")}; } diff --git a/src/plugins/texteditor/findincurrentfile.cpp b/src/plugins/texteditor/findincurrentfile.cpp index 42c385c44c4..741225d31e7 100644 --- a/src/plugins/texteditor/findincurrentfile.cpp +++ b/src/plugins/texteditor/findincurrentfile.cpp @@ -2,18 +2,20 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #include "findincurrentfile.h" -#include "textdocument.h" -#include -#include +#include "textdocument.h" +#include "texteditortr.h" + #include #include #include +#include +#include + #include -using namespace TextEditor; -using namespace TextEditor::Internal; +namespace TextEditor::Internal { FindInCurrentFile::FindInCurrentFile() { @@ -29,7 +31,7 @@ QString FindInCurrentFile::id() const QString FindInCurrentFile::displayName() const { - return tr("Current File"); + return Tr::tr("Current File"); } Utils::FileIterator *FindInCurrentFile::files(const QStringList &nameFilters, @@ -54,13 +56,13 @@ QVariant FindInCurrentFile::additionalParameters() 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 { // %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 @@ -96,3 +98,5 @@ void FindInCurrentFile::readSettings(QSettings *settings) readCommonSettings(settings, "*", ""); settings->endGroup(); } + +} // TextEditor::Internal diff --git a/src/plugins/texteditor/findinfiles.cpp b/src/plugins/texteditor/findinfiles.cpp index e19c5fe8b2d..2f379014dbb 100644 --- a/src/plugins/texteditor/findinfiles.cpp +++ b/src/plugins/texteditor/findinfiles.cpp @@ -3,6 +3,8 @@ #include "findinfiles.h" +#include "texteditortr.h" + #include #include #include @@ -25,9 +27,10 @@ #include using namespace Core; -using namespace TextEditor; using namespace Utils; +namespace TextEditor { + static FindInFiles *m_instance = nullptr; static const char HistoryKey[] = "FindInFiles.Directories.History"; @@ -52,7 +55,7 @@ QString FindInFiles::id() const QString FindInFiles::displayName() const { - return tr("Files in File System"); + return Tr::tr("Files in File System"); } FileIterator *FindInFiles::files(const QStringList &nameFilters, @@ -77,7 +80,7 @@ QString FindInFiles::label() const const QChar slash = QLatin1Char('/'); const QStringList &nonEmptyComponents = path().toFileInfo().absoluteFilePath() .split(slash, Qt::SkipEmptyParts); - return tr("%1 \"%2\":") + return Tr::tr("%1 \"%2\":") .arg(title) .arg(nonEmptyComponents.isEmpty() ? QString(slash) : nonEmptyComponents.last()); } @@ -85,7 +88,7 @@ QString FindInFiles::label() const QString FindInFiles::toolTip() const { //: 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(fileNameFilters().join(',')) .arg(fileExclusionFilters().join(',')); @@ -128,7 +131,7 @@ QWidget *FindInFiles::createConfigWidget() m_configWidget->setLayout(gridLayout); 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); m_searchEngineCombo = new QComboBox; connect(m_searchEngineCombo, &QComboBox::currentIndexChanged, @@ -144,11 +147,11 @@ QWidget *FindInFiles::createConfigWidget() } 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); m_directory = new PathChooser; 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, [this] { pathChanged(m_directory->filePath()); }); m_directory->setHistoryCompleter(QLatin1String(HistoryKey), @@ -231,3 +234,5 @@ FindInFiles *FindInFiles::instance() { return m_instance; } + +} // TextEditor diff --git a/src/plugins/texteditor/findinopenfiles.cpp b/src/plugins/texteditor/findinopenfiles.cpp index 04bd2ca707e..12fb45eb3c9 100644 --- a/src/plugins/texteditor/findinopenfiles.cpp +++ b/src/plugins/texteditor/findinopenfiles.cpp @@ -2,17 +2,19 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #include "findinopenfiles.h" -#include "textdocument.h" -#include +#include "textdocument.h" +#include "texteditortr.h" + #include #include #include +#include + #include -using namespace TextEditor; -using namespace TextEditor::Internal; +namespace TextEditor::Internal { FindInOpenFiles::FindInOpenFiles() { @@ -29,7 +31,7 @@ QString FindInOpenFiles::id() const QString FindInOpenFiles::displayName() const { - return tr("Open Documents"); + return Tr::tr("Open Documents"); } Utils::FileIterator *FindInOpenFiles::files(const QStringList &nameFilters, @@ -65,13 +67,13 @@ QVariant FindInOpenFiles::additionalParameters() const QString FindInOpenFiles::label() const { - return tr("Open documents:"); + return Tr::tr("Open documents:"); } QString FindInOpenFiles::toolTip() const { // %1 is filled by BaseFileFind::runNewSearch - return tr("Open Documents\n%1"); + return Tr::tr("Open Documents\n%1"); } bool FindInOpenFiles::isEnabled() const @@ -97,3 +99,5 @@ void FindInOpenFiles::updateEnabledState() { emit enabledChanged(isEnabled()); } + +} // TextEditor::Internal diff --git a/src/plugins/texteditor/fontsettings.cpp b/src/plugins/texteditor/fontsettings.cpp index 8434ab0b896..d5f2ddc6666 100644 --- a/src/plugins/texteditor/fontsettings.cpp +++ b/src/plugins/texteditor/fontsettings.cpp @@ -2,7 +2,9 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #include "fontsettings.h" + #include "fontsettingspage.h" +#include "texteditortr.h" #include #include @@ -158,10 +160,8 @@ QTextCharFormat FontSettings::toTextCharFormat(TextStyle category) const tf.setFontStyleStrategy(m_antialias ? QFont::PreferAntialias : QFont::NoAntialias); } - if (category == C_OCCURRENCES_UNUSED) { - tf.setToolTip(QCoreApplication::translate("FontSettings_C_OCCURRENCES_UNUSED", - "Unused variable")); - } + if (category == C_OCCURRENCES_UNUSED) + tf.setToolTip(Tr::tr("Unused variable")); if (f.foreground().isValid() && !isOverlayCategory(category)) tf.setForeground(f.foreground()); diff --git a/src/plugins/texteditor/fontsettingspage.cpp b/src/plugins/texteditor/fontsettingspage.cpp index cad2aa6f0f3..1e9ec7fafba 100644 --- a/src/plugins/texteditor/fontsettingspage.cpp +++ b/src/plugins/texteditor/fontsettingspage.cpp @@ -6,6 +6,7 @@ #include "colorschemeedit.h" #include "fontsettings.h" #include "texteditorsettings.h" +#include "texteditortr.h" #include @@ -18,28 +19,24 @@ #include #include +#include +#include #include #include +#include #include +#include #include +#include #include #include #include +#include #include +#include +#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - using namespace TextEditor::Internal; using namespace Utils; @@ -102,8 +99,6 @@ private: class FontSettingsPageWidget : public Core::IOptionsPageWidget { - Q_DECLARE_TR_FUNCTIONS(TextEditor::FontSettingsPageWidget) - public: FontSettingsPageWidget(FontSettingsPage *q, const FormatDescriptions &fd, FontSettings *fontSettings) : q(q), @@ -114,24 +109,24 @@ public: resize(639, 306); - m_antialias = new QCheckBox(tr("Antialias")); + m_antialias = new QCheckBox(Tr::tr("Antialias")); m_antialias->setChecked(m_value.antialias()); m_zoomSpinBox = new QSpinBox; - m_zoomSpinBox->setSuffix(tr("%")); + m_zoomSpinBox->setSuffix(Tr::tr("%")); m_zoomSpinBox->setRange(10, 3000); m_zoomSpinBox->setSingleStep(10); m_zoomSpinBox->setValue(m_value.fontZoom()); m_lineSpacingSpinBox = new QSpinBox; m_lineSpacingSpinBox->setObjectName(QLatin1String("FontSettingsPage.LineSpacingSpinBox")); - m_lineSpacingSpinBox->setSuffix(tr("%")); + m_lineSpacingSpinBox->setSuffix(Tr::tr("%")); m_lineSpacingSpinBox->setRange(50, 3000); m_lineSpacingSpinBox->setValue(m_value.relativeLineSpacing()); m_lineSpacingWarningLabel = new QLabel; 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 " "in overlapping and misaligned graphics.")); m_lineSpacingWarningLabel->setVisible(m_value.relativeLineSpacing() != 100); @@ -145,13 +140,13 @@ public: sizeValidator->setBottom(0); 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); - auto importButton = new QPushButton(tr("Import")); - auto exportButton = new QPushButton(tr("Export")); + auto importButton = new QPushButton(Tr::tr("Import")); + auto exportButton = new QPushButton(Tr::tr("Export")); m_schemeComboBox = new QComboBox; m_schemeComboBox->setModel(&m_schemeListModel); @@ -166,19 +161,19 @@ public: Column { Group { - title(tr("Font")), + title(Tr::tr("Font")), Column { Row { - tr("Family:"), m_fontComboBox, Space(20), - tr("Size:"), m_sizeComboBox, Space(20), - tr("Zoom:"), m_zoomSpinBox, Space(20), - tr("Line spacing:"), m_lineSpacingSpinBox, m_lineSpacingWarningLabel, st + Tr::tr("Family:"), m_fontComboBox, Space(20), + Tr::tr("Size:"), m_sizeComboBox, Space(20), + Tr::tr("Zoom:"), m_zoomSpinBox, Space(20), + Tr::tr("Line spacing:"), m_lineSpacingSpinBox, m_lineSpacingWarningLabel, st }, m_antialias } }, Group { - title(tr("Color Scheme for Theme \"%1\"") + title(Tr::tr("Color Scheme for Theme \"%1\"") .arg(Utils::creatorTheme()->displayName())), Column { Row { m_schemeComboBox, m_copyButton, m_deleteButton, importButton, exportButton }, @@ -525,9 +520,9 @@ void FontSettingsPageWidget::openCopyColorSchemeDialog() QInputDialog *dialog = new QInputDialog(m_copyButton->window()); dialog->setAttribute(Qt::WA_DeleteOnClose); dialog->setInputMode(QInputDialog::TextInput); - dialog->setWindowTitle(tr("Copy Color Scheme")); - dialog->setLabelText(tr("Color scheme name:")); - dialog->setTextValue(tr("%1 (copy)").arg(m_value.colorScheme().displayName())); + dialog->setWindowTitle(Tr::tr("Copy Color Scheme")); + dialog->setLabelText(Tr::tr("Color scheme name:")); + dialog->setTextValue(Tr::tr("%1 (copy)").arg(m_value.colorScheme().displayName())); connect(dialog, &QInputDialog::textValueSelected, this, &FontSettingsPageWidget::copyColorScheme); dialog->open(); @@ -572,14 +567,14 @@ void FontSettingsPageWidget::confirmDeleteColorScheme() return; QMessageBox *messageBox = new QMessageBox(QMessageBox::Warning, - tr("Delete Color Scheme"), - tr("Are you sure you want to delete this color scheme permanently?"), + Tr::tr("Delete Color Scheme"), + Tr::tr("Are you sure you want to delete this color scheme permanently?"), QMessageBox::Discard | QMessageBox::Cancel, m_deleteButton->window()); // Change the text and role of the discard button auto deleteButton = static_cast(messageBox->button(QMessageBox::Discard)); - deleteButton->setText(tr("Delete")); + deleteButton->setText(Tr::tr("Delete")); messageBox->addButton(deleteButton, QMessageBox::AcceptRole); messageBox->setDefaultButton(deleteButton); @@ -604,9 +599,9 @@ void FontSettingsPageWidget::importScheme() { const FilePath importedFile = 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()) return; @@ -617,8 +612,8 @@ void FontSettingsPageWidget::importScheme() QInputDialog *dialog = new QInputDialog(m_copyButton->window()); dialog->setAttribute(Qt::WA_DeleteOnClose); dialog->setInputMode(QInputDialog::TextInput); - dialog->setWindowTitle(tr("Import Color Scheme")); - dialog->setLabelText(tr("Color scheme name:")); + dialog->setWindowTitle(Tr::tr("Import Color Scheme")); + dialog->setLabelText(Tr::tr("Color scheme name:")); dialog->setTextValue(importedFile.baseName()); connect(dialog, @@ -653,9 +648,9 @@ void FontSettingsPageWidget::exportScheme() const FilePath filePath = Utils::FileUtils::getSaveFilePath(this, - tr("Export Color Scheme"), + Tr::tr("Export Color Scheme"), entry.filePath, - tr("Color scheme (*.xml);;All files (*)")); + Tr::tr("Color scheme (*.xml);;All files (*)")); if (!filePath.isEmpty()) m_value.colorScheme().save(filePath, Core::ICore::dialogParent()); @@ -668,15 +663,15 @@ void FontSettingsPageWidget::maybeSaveColorScheme() QMessageBox messageBox(QMessageBox::Warning, - tr("Color Scheme Changed"), - tr("The color scheme \"%1\" was modified, do you want to save the changes?") + Tr::tr("Color Scheme Changed"), + Tr::tr("The color scheme \"%1\" was modified, do you want to save the changes?") .arg(m_schemeEdit->colorScheme().displayName()), QMessageBox::Discard | QMessageBox::Save, m_schemeComboBox->window()); // Change the text of the discard button auto discardButton = static_cast(messageBox.button(QMessageBox::Discard)); - discardButton->setText(tr("Discard")); + discardButton->setText(Tr::tr("Discard")); messageBox.addButton(discardButton, QMessageBox::DestructiveRole); messageBox.setDefaultButton(QMessageBox::Save); @@ -775,9 +770,9 @@ FontSettingsPage::FontSettingsPage(FontSettings *fontSettings, const FormatDescr fontSettings->loadColorScheme(FontSettings::defaultSchemeFileName(), fd); setId(Constants::TEXT_EDITOR_FONT_SETTINGS); - setDisplayName(FontSettingsPageWidget::tr("Font && Colors")); + setDisplayName(Tr::tr("Font && Colors")); 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); setWidgetCreator([this, fontSettings, fd] { return new FontSettingsPageWidget(this, fd, fontSettings); }); } diff --git a/src/plugins/texteditor/highlighter.cpp b/src/plugins/texteditor/highlighter.cpp index 898e058d421..a3765c4bf51 100644 --- a/src/plugins/texteditor/highlighter.cpp +++ b/src/plugins/texteditor/highlighter.cpp @@ -7,11 +7,13 @@ #include "tabsettings.h" #include "textdocumentlayout.h" #include "texteditor.h" +#include "texteditortr.h" #include "texteditorsettings.h" #include #include #include + #include #include #include @@ -229,7 +231,7 @@ void Highlighter::downloadDefinitions(std::function callback) { auto downloader = new KSyntaxHighlighting::DefinitionDownloader(highlightRepository()); connect(downloader, &KSyntaxHighlighting::DefinitionDownloader::done, [downloader, callback]() { - Core::MessageManager::writeFlashing(tr("Highlighter updates: done")); + Core::MessageManager::writeFlashing(Tr::tr("Highlighter updates: done")); downloader->deleteLater(); reload(); if (callback) @@ -238,9 +240,9 @@ void Highlighter::downloadDefinitions(std::function callback) { connect(downloader, &KSyntaxHighlighting::DefinitionDownloader::informationMessage, [](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(); } diff --git a/src/plugins/texteditor/highlightersettingspage.cpp b/src/plugins/texteditor/highlightersettingspage.cpp index 58a7cba73a1..ceb8f7d48f1 100644 --- a/src/plugins/texteditor/highlightersettingspage.cpp +++ b/src/plugins/texteditor/highlightersettingspage.cpp @@ -5,6 +5,7 @@ #include "highlightersettings.h" #include "highlighter.h" +#include "texteditortr.h" #include @@ -27,7 +28,6 @@ namespace Internal { class HighlighterSettingsPageWidget : public QWidget { - Q_DECLARE_TR_FUNCTIONS(TextEditor::Internal::HighlighterSettingsPage) public: QLabel *definitionsInfolabel; QPushButton *downloadDefinitions; @@ -47,12 +47,12 @@ public: definitionsInfolabel->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter); definitionsInfolabel->setWordWrap(true); definitionsInfolabel->setOpenExternalLinks(true); - definitionsInfolabel->setText(tr("

    Highlight definitions are provided by the " - "" - "KSyntaxHighlighting engine.

    ")); + definitionsInfolabel->setText(Tr::tr("

    Highlight definitions are provided by the " + "" + "KSyntaxHighlighting engine.

    ")); - downloadDefinitions = new QPushButton(tr("Download Definitions")); - downloadDefinitions->setToolTip(tr("Download missing and update existing syntax definition files.")); + downloadDefinitions = new QPushButton(Tr::tr("Download Definitions")); + downloadDefinitions->setToolTip(Tr::tr("Download missing and update existing syntax definition files.")); updateStatus = new QLabel; updateStatus->setObjectName("updateStatus"); @@ -61,12 +61,12 @@ public: definitionFilesPath->setExpectedKind(PathChooser::ExistingDirectory); definitionFilesPath->setHistoryCompleter("TextEditor.Highlighter.History"); - reloadDefinitions = new QPushButton(tr("Reload Definitions")); - reloadDefinitions->setToolTip(tr("Reload externally modified definition files.")); + reloadDefinitions = new QPushButton(Tr::tr("Reload Definitions")); + reloadDefinitions->setToolTip(Tr::tr("Reload externally modified definition files.")); - resetCache = new QPushButton(tr("Reset Remembered Definitions")); - resetCache->setToolTip(tr("Reset definitions remembered for files that can be " - "associated with more than one highlighter definition.")); + resetCache = new QPushButton(Tr::tr("Reset Remembered Definitions")); + resetCache->setToolTip(Tr::tr("Reset definitions remembered for files that can be " + "associated with more than one highlighter definition.")); ignoreEdit = new QLineEdit; @@ -75,15 +75,15 @@ public: definitionsInfolabel, Space(3), Group { - title(tr("Syntax Highlight Definition Files")), + title(Tr::tr("Syntax Highlight Definition Files")), Column { Row { downloadDefinitions, updateStatus, st }, - Row { tr("User Highlight Definition Files"), + Row { Tr::tr("User Highlight Definition Files"), definitionFilesPath, reloadDefinitions }, Row { st, resetCache } } }, - Row { tr("Ignored file patterns:"), ignoreEdit }, + Row { Tr::tr("Ignored file patterns:"), ignoreEdit }, st }.attachTo(this); @@ -91,7 +91,7 @@ public: [label = QPointer(updateStatus)]() { Highlighter::downloadDefinitions([label] { if (label) - label->setText(tr("Download finished")); + label->setText(Tr::tr("Download finished")); }); }); @@ -110,8 +110,6 @@ using namespace Internal; class HighlighterSettingsPagePrivate { - Q_DECLARE_TR_FUNCTIONS(TextEditor::Internal::HighlighterSettingsPage) - public: HighlighterSettingsPagePrivate() = default; @@ -156,9 +154,9 @@ HighlighterSettingsPage::HighlighterSettingsPage() : d(new HighlighterSettingsPagePrivate) { setId(Constants::TEXT_EDITOR_HIGHLIGHTER_SETTINGS); - setDisplayName(HighlighterSettingsPagePrivate::tr("Generic Highlighter")); + setDisplayName(Tr::tr("Generic Highlighter")); 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); } diff --git a/src/plugins/texteditor/linenumberfilter.cpp b/src/plugins/texteditor/linenumberfilter.cpp index 16b552143c2..78a65c84d2f 100644 --- a/src/plugins/texteditor/linenumberfilter.cpp +++ b/src/plugins/texteditor/linenumberfilter.cpp @@ -3,7 +3,7 @@ #include "linenumberfilter.h" -#include "texteditor.h" +#include "texteditortr.h" #include #include @@ -18,16 +18,16 @@ using LineColumn = QPair; Q_DECLARE_METATYPE(LineColumn) using namespace Core; -using namespace TextEditor; -using namespace TextEditor::Internal; + +namespace TextEditor::Internal { LineNumberFilter::LineNumberFilter(QObject *parent) : ILocatorFilter(parent) { setId("Line in current document"); - setDisplayName(tr("Line in Current Document")); - setDescription(tr("Jumps to the given line in the current document.")); - setDefaultSearchText(tr(":")); + setDisplayName(Tr::tr("Line in Current Document")); + setDescription(Tr::tr("Jumps to the given line in the current document.")); + setDefaultSearchText(Tr::tr(":")); setPriority(High); setDefaultShortcutString("l"); setDefaultIncludedByDefault(true); @@ -59,11 +59,11 @@ QList LineNumberFilter::matchesFor(QFutureInterface 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) - text = tr("Line %1").arg(line); + text = Tr::tr("Line %1").arg(line); else - text = tr("Column %1").arg(column); + text = Tr::tr("Column %1").arg(column); value.append(LocatorFilterEntry(this, text, QVariant::fromValue(data))); } return value; @@ -85,3 +85,5 @@ void LineNumberFilter::accept(const LocatorFilterEntry &selection, EditorManager::activateEditor(editor); } } + +} // TextEditor::Internal diff --git a/src/plugins/texteditor/outlinefactory.cpp b/src/plugins/texteditor/outlinefactory.cpp index 120adf42966..76222642c15 100644 --- a/src/plugins/texteditor/outlinefactory.cpp +++ b/src/plugins/texteditor/outlinefactory.cpp @@ -2,6 +2,9 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #include "outlinefactory.h" + +#include "texteditortr.h" + #include #include #include @@ -10,11 +13,10 @@ #include #include -#include +#include #include #include - -#include +#include namespace TextEditor { @@ -43,7 +45,7 @@ OutlineWidgetStack::OutlineWidgetStack(OutlineFactory *factory) : m_syncWithEditor(true), 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); // set background to be white @@ -56,7 +58,7 @@ OutlineWidgetStack::OutlineWidgetStack(OutlineFactory *factory) : m_toggleSync->setIcon(Utils::Icons::LINK_TOOLBAR.icon()); m_toggleSync->setCheckable(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, this, &OutlineWidgetStack::toggleCursorSynchronization); @@ -66,7 +68,7 @@ OutlineWidgetStack::OutlineWidgetStack(OutlineFactory *factory) : // did not have a parent in that moment. 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->setProperty("noArrow", true); 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->setCheckable(true); 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(Core::EditorManager::instance(), &Core::EditorManager::currentEditorChanged, @@ -201,7 +203,7 @@ OutlineFactory::OutlineFactory() { QTC_CHECK(g_outlineFactory.isNull()); g_outlineFactory = this; - setDisplayName(tr("Outline")); + setDisplayName(Tr::tr("Outline")); setId("Outline"); setPriority(600); } diff --git a/src/plugins/texteditor/refactoringchanges.cpp b/src/plugins/texteditor/refactoringchanges.cpp index a6b8e051e6b..ba55628423d 100644 --- a/src/plugins/texteditor/refactoringchanges.cpp +++ b/src/plugins/texteditor/refactoringchanges.cpp @@ -2,24 +2,24 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #include "refactoringchanges.h" -#include "texteditor.h" -#include "textdocument.h" -#include +#include "textdocument.h" +#include "texteditor.h" +#include "texteditortr.h" + #include #include #include +#include + #include #include #include -#include -#include #include #include #include #include -#include using namespace Core; using namespace Utils; @@ -297,9 +297,7 @@ bool RefactoringFile::apply() // test file permissions if (!m_filePath.toFileInfo().isWritable()) { ReadOnlyFilesDialog roDialog(m_filePath, ICore::dialogParent()); - const QString &failDetailText = QApplication::translate("RefactoringFile::apply", - "Refactoring cannot be applied."); - roDialog.setShowFailWarning(true, failDetailText); + roDialog.setShowFailWarning(true, Tr::tr("Refactoring cannot be applied.")); if (roDialog.exec() == ReadOnlyFilesDialog::RO_Cancel) return false; } diff --git a/src/plugins/texteditor/snippets/snippet.cpp b/src/plugins/texteditor/snippets/snippet.cpp index 71ec46c7c66..f41156c4cee 100644 --- a/src/plugins/texteditor/snippets/snippet.cpp +++ b/src/plugins/texteditor/snippets/snippet.cpp @@ -3,6 +3,8 @@ #include "snippet.h" +#include "../texteditortr.h" + #include #include #include @@ -10,7 +12,7 @@ #include -using namespace TextEditor; +namespace TextEditor { const char UCMANGLER_ID[] = "TextEditor::UppercaseMangler"; const char LCMANGLER_ID[] = "TextEditor::LowercaseMangler"; @@ -221,7 +223,7 @@ SnippetParseResult Snippet::parse(const QString &snippet) } if (mangler) { - return SnippetParseResult{SnippetParseError{tr("Expected delimiter after mangler ID."), + return SnippetParseResult{SnippetParseError{Tr::tr("Expected delimiter after mangler ID."), preprocessedSnippet, i}}; } @@ -236,7 +238,7 @@ SnippetParseResult Snippet::parse(const QString &snippet) mangler = &tcMangler; } else { 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."), preprocessedSnippet, i}}; @@ -259,7 +261,7 @@ SnippetParseResult Snippet::parse(const QString &snippet) if (inVar) { 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()) @@ -268,6 +270,10 @@ SnippetParseResult Snippet::parse(const QString &snippet) return SnippetParseResult(result); } +} // Texteditor + +using namespace TextEditor; + #ifdef WITH_TESTS # include diff --git a/src/plugins/texteditor/snippets/snippet.h b/src/plugins/texteditor/snippets/snippet.h index 4dd5716946e..8fff9be4a18 100644 --- a/src/plugins/texteditor/snippets/snippet.h +++ b/src/plugins/texteditor/snippets/snippet.h @@ -16,7 +16,6 @@ namespace TextEditor { class TEXTEDITOR_EXPORT Snippet { - Q_DECLARE_TR_FUNCTIONS(Snippet) public: explicit Snippet(const QString &groupId = QString(), const QString &id = QString()); ~Snippet(); diff --git a/src/plugins/texteditor/snippets/snippetscollection.cpp b/src/plugins/texteditor/snippets/snippetscollection.cpp index 3b6ba0bf95e..c9b148360b7 100644 --- a/src/plugins/texteditor/snippets/snippetscollection.cpp +++ b/src/plugins/texteditor/snippets/snippetscollection.cpp @@ -2,17 +2,19 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #include "snippetscollection.h" + #include "snippetprovider.h" #include "reuse.h" +#include "../texteditortr.h" #include + #include + #include #include -#include #include -#include #include #include #include @@ -282,7 +284,7 @@ void SnippetsCollection::reload() bool SnippetsCollection::synchronize(QString *errorString) { 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()); return false; } @@ -354,8 +356,7 @@ QList SnippetsCollection::readXML(const FilePath &fileName, const QStri } else if (isGroupKnown(groupId) && (snippetId.isEmpty() || snippetId == id)) { Snippet snippet(groupId, id); snippet.setTrigger(trigger); - snippet.setComplement(QCoreApplication::translate( - "TextEditor::Internal::Snippets", + snippet.setComplement(QCoreApplication::translate("::TextEditor", atts.value(kComplement).toString().toLatin1(), atts.value(kId).toString().toLatin1())); snippet.setIsRemoved(toBool(atts.value(kRemoved).toString())); diff --git a/src/plugins/texteditor/snippets/snippetssettingspage.cpp b/src/plugins/texteditor/snippets/snippetssettingspage.cpp index 18aac728b98..b64910a0f1d 100644 --- a/src/plugins/texteditor/snippets/snippetssettingspage.cpp +++ b/src/plugins/texteditor/snippets/snippetssettingspage.cpp @@ -2,18 +2,22 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #include "snippetssettingspage.h" + #include "snippeteditor.h" #include "snippetprovider.h" #include "snippet.h" #include "snippetscollection.h" #include "snippetssettings.h" +#include "../fontsettings.h" +#include "../textdocument.h" +#include "../texteditorconstants.h" +#include "../texteditorsettings.h" +#include "../texteditortr.h" #include -#include -#include -#include -#include + #include + #include #include #include @@ -118,8 +122,8 @@ bool SnippetsTableModel::setData(const QModelIndex &modelIndex, const QVariant & if (!Snippet::isValidTrigger(s)) { QMessageBox::critical( Core::ICore::dialogParent(), - tr("Error"), - tr("Not a valid trigger. A valid trigger can only contain letters, " + Tr::tr("Error"), + Tr::tr("Not a valid trigger. A valid trigger can only contain letters, " "numbers, or underscores, where the first character is " "limited to letter or underscore.")); if (snippet.trigger().isEmpty()) @@ -143,9 +147,9 @@ QVariant SnippetsTableModel::headerData(int section, Qt::Orientation orientation return QVariant(); if (section == 0) - return tr("Trigger"); + return Tr::tr("Trigger"); else - return tr("Trigger Variant"); + return Tr::tr("Trigger Variant"); } 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); if (snippet.id().isEmpty()) { - QMessageBox::critical(Core::ICore::dialogParent(), tr("Error"), - tr("Error reverting snippet.")); + QMessageBox::critical(Core::ICore::dialogParent(), Tr::tr("Error"), + Tr::tr("Error reverting snippet.")); return; } replaceSnippet(snippet, modelIndex); @@ -243,8 +247,6 @@ void SnippetsTableModel::replaceSnippet(const Snippet &snippet, const QModelInde // SnippetsSettingsPagePrivate class SnippetsSettingsPagePrivate : public QObject { - Q_DECLARE_TR_FUNCTIONS(TextEditor::Internal::SnippetsSettingsPage) - public: SnippetsSettingsPagePrivate(); ~SnippetsSettingsPagePrivate() override { delete m_model; } @@ -321,7 +323,7 @@ void SnippetsSettingsPagePrivate::configureUi(QWidget *w) m_snippetsTable->setRootIsDecorated(false); 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); auto snippetSplitter = new QSplitter(Qt::Vertical); @@ -332,18 +334,18 @@ void SnippetsSettingsPagePrivate::configureUi(QWidget *w) using namespace Utils::Layouting; Column { - Row { tr("Group:"), m_groupCombo, st }, + Row { Tr::tr("Group:"), m_groupCombo, st }, Row { snippetSplitter, Column { - PushButton { text(tr("Add")), + PushButton { text(Tr::tr("Add")), onClicked([this] { addSnippet(); }, this) }, - PushButton { text(tr("Remove")), + PushButton { text(Tr::tr("Remove")), onClicked([this] { removeSnippet(); }, this) }, m_revertButton, - PushButton { text(tr("Restore Removed Built-ins")), + PushButton { text(Tr::tr("Restore Removed Built-ins")), onClicked([this] { restoreRemovedBuiltInSnippets(); }, this) }, - PushButton { text(tr("Reset All")), + PushButton { text(Tr::tr("Reset All")), onClicked([this] { resetAllSnippets(); }, this) }, st, } @@ -395,7 +397,7 @@ void SnippetsSettingsPagePrivate::apply() m_snippetsCollectionChanged = false; } else { 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(); 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; } m_model->removeSnippet(modelIndex); @@ -546,13 +548,14 @@ void SnippetsSettingsPagePrivate::decorateEditors(const TextEditor::FontSettings } // SnippetsSettingsPage + SnippetsSettingsPage::SnippetsSettingsPage() : d(new SnippetsSettingsPagePrivate) { setId(Constants::TEXT_EDITOR_SNIPPETS_SETTINGS); - setDisplayName(SnippetsSettingsPagePrivate::tr("Snippets")); + setDisplayName(Tr::tr("Snippets")); 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); } diff --git a/src/plugins/texteditor/tabsettingswidget.cpp b/src/plugins/texteditor/tabsettingswidget.cpp index a3f99b14f94..f55d8d6f441 100644 --- a/src/plugins/texteditor/tabsettingswidget.cpp +++ b/src/plugins/texteditor/tabsettingswidget.cpp @@ -4,6 +4,7 @@ #include "tabsettingswidget.h" #include "tabsettings.h" +#include "texteditortr.h" #include #include @@ -18,7 +19,7 @@ namespace TextEditor { QString continuationTooltip() { // FIXME: This is unfair towards translators. - return QCoreApplication::translate("TextEditor::TabSettingsWidget", + return Tr::tr( "\n" "Influences the indentation of continuation lines.\n" "\n" @@ -50,37 +51,37 @@ TabSettingsWidget::TabSettingsWidget(QWidget *parent) : QGroupBox(parent) { resize(254, 189); - setTitle(tr("Tabs And Indentation")); + setTitle(Tr::tr("Tabs And Indentation")); m_codingStyleWarning = new QLabel( - tr("Code indentation is configured in C++ " + Tr::tr("Code indentation is configured in C++ " "and Qt Quick settings.")); m_codingStyleWarning->setVisible(false); m_codingStyleWarning->setWordWrap(true); 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.")); m_tabPolicy = new QComboBox(this); m_tabPolicy->setMinimumContentsLength(28); - m_tabPolicy->addItem(tr("Spaces Only")); - m_tabPolicy->addItem(tr("Tabs Only")); - m_tabPolicy->addItem(tr("Mixed")); + m_tabPolicy->addItem(Tr::tr("Spaces Only")); + m_tabPolicy->addItem(Tr::tr("Tabs Only")); + 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->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->setRange(1, 20); m_continuationAlignBehavior = new QComboBox; - m_continuationAlignBehavior->addItem(tr("Not At All")); - m_continuationAlignBehavior->addItem(tr("With Spaces")); - m_continuationAlignBehavior->addItem(tr("With Regular Indent")); + m_continuationAlignBehavior->addItem(Tr::tr("Not At All")); + m_continuationAlignBehavior->addItem(Tr::tr("With Spaces")); + m_continuationAlignBehavior->addItem(Tr::tr("With Regular Indent")); m_continuationAlignBehavior->setToolTip(continuationTooltip()); tabSizeLabel->setBuddy(m_tabSize); @@ -91,10 +92,10 @@ TabSettingsWidget::TabSettingsWidget(QWidget *parent) : Column { m_codingStyleWarning, - tr("Tab policy:"), + Tr::tr("Tab policy:"), indent(m_tabPolicy), Row { tabSizeLabel, m_tabSize, indentSizeLabel, m_indentSize, st }, - tr("Align continuation lines:"), + Tr::tr("Align continuation lines:"), indent(m_continuationAlignBehavior) }.attachTo(this); diff --git a/src/plugins/texteditor/textdocument.cpp b/src/plugins/texteditor/textdocument.cpp index e69bdd9692f..61c3b319b36 100644 --- a/src/plugins/texteditor/textdocument.cpp +++ b/src/plugins/texteditor/textdocument.cpp @@ -10,31 +10,31 @@ #include "tabsettings.h" #include "textdocumentlayout.h" #include "texteditor.h" -#include "texteditorconstants.h" +#include "texteditortr.h" #include "textindenter.h" #include "typingsettings.h" + +#include #include #include #include +#include +#include + #include + #include #include +#include #include #include #include -#include -#include #include #include #include #include -#include -#include -#include -#include - using namespace Core; using namespace Utils; @@ -368,7 +368,7 @@ QAction *TextDocument::createDiffAgainstCurrentFileAction( if (diffService && !leftFilePath.isEmpty() && !rightFilePath.isEmpty()) 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); return diffAction; } @@ -770,7 +770,7 @@ Core::IDocument::OpenResult TextDocument::openImpl(QString *errorString, } else if (chunks > 1) { QFutureInterface interface; interface.setProgressRange(0, chunks); - ProgressManager::addTask(interface.future(), tr("Opening File"), + ProgressManager::addTask(interface.future(), Tr::tr("Opening File"), Constants::TASK_OPEN_FILE); interface.reportStarted(); diff --git a/src/plugins/texteditor/texteditor.cpp b/src/plugins/texteditor/texteditor.cpp index 74439da7546..dbe39a861d3 100644 --- a/src/plugins/texteditor/texteditor.cpp +++ b/src/plugins/texteditor/texteditor.cpp @@ -2,22 +2,24 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #include "texteditor.h" -#include "texteditor_p.h" -#include "displaysettings.h" -#include "marginsettings.h" -#include "fontsettings.h" -#include "texteditoractionhandler.h" #include "autocompleter.h" #include "basehoverhandler.h" #include "behaviorsettings.h" #include "circularclipboard.h" #include "circularclipboardassist.h" +#include "codeassist/assistinterface.h" +#include "codeassist/codeassistant.h" +#include "codeassist/completionassistprovider.h" +#include "codeassist/documentcontentcompletion.h" #include "completionsettings.h" +#include "displaysettings.h" #include "extraencodingsettings.h" +#include "fontsettings.h" #include "highlighter.h" #include "highlightersettings.h" #include "icodestylepreferences.h" +#include "marginsettings.h" #include "refactoroverlay.h" #include "snippets/snippetoverlay.h" #include "storagesettings.h" @@ -25,17 +27,16 @@ #include "tabsettings.h" #include "textdocument.h" #include "textdocumentlayout.h" +#include "texteditor_p.h" +#include "texteditoractionhandler.h" #include "texteditorconstants.h" #include "texteditoroverlay.h" #include "texteditorsettings.h" +#include "texteditortr.h" #include "typingsettings.h" -#include -#include -#include -#include - #include + #include #include #include @@ -45,6 +46,7 @@ #include #include #include + #include #include #include @@ -153,7 +155,7 @@ public: : FixedSizeClickLabel(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(this, &FixedSizeClickLabel::clicked, ActionManager::instance(), [this] { emit m_editor->activateEditor(EditorManager::IgnoreNavigationHistory); @@ -174,9 +176,9 @@ private: const int line = block.blockNumber() + 1; const TabSettings &tabSettings = m_editor->textDocument()->tabSettings(); 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)); - const QString toolTipText = TextEditorWidget::tr("Cursor position: %1"); + const QString toolTipText = Tr::tr("Cursor position: %1"); setToolTip(toolTipText.arg(QString::number(cursor.position()))); QFont f = font(); f.setItalic(m_editor->multiTextCursor().hasMultipleCursors()); @@ -1056,7 +1058,7 @@ static QLayout *createSeparatorLayout() QFrame* separator1 = 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); auto layout = new QHBoxLayout; @@ -1333,7 +1335,7 @@ void TextEditorWidget::print(QPrinter *printer) const bool oldFullPage = printer->fullPage(); printer->setFullPage(true); auto dlg = new QPrintDialog(printer, this); - dlg->setWindowTitle(tr("Print Document")); + dlg->setWindowTitle(Tr::tr("Print Document")); if (dlg->exec() == QDialog::Accepted) d->print(printer); printer->setFullPage(oldFullPage); @@ -1653,7 +1655,7 @@ void TextEditorWidget::selectEncoding() case CodecSelector::Reload: { QString errorString; if (!doc->reload(&errorString, codecSelector.selectedCodec())) { - QMessageBox::critical(this, tr("File Error"), errorString); + QMessageBox::critical(this, Tr::tr("File Error"), errorString); break; } break; } @@ -1690,7 +1692,7 @@ void TextEditorWidget::updateTextCodecLabel() 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); } @@ -1720,9 +1722,9 @@ void TextEditorWidgetPrivate::updateCannotDecodeInfo() if (!infoBar->canInfoBeAdded(selectEncodingId)) return; InfoBarEntry info(selectEncodingId, - TextEditorWidget::tr("Error: Could not decode \"%1\" with \"%2\"-encoding. Editing not possible.") + Tr::tr("Error: Could not decode \"%1\" with \"%2\"-encoding. Editing not possible.") .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); } else { infoBar->removeInfo(selectEncodingId); @@ -2876,7 +2878,7 @@ void TextEditorWidget::insertCodeSnippet(const QTextCursor &cursor_arg, SnippetParseResult result = parse(snippet); if (std::holds_alternative(result)) { const auto &error = std::get(result); - QMessageBox::warning(this, tr("Snippet Parse Error"), error.htmlMessage()); + QMessageBox::warning(this, Tr::tr("Snippet Parse Error"), error.htmlMessage()); return; } QTC_ASSERT(std::holds_alternative(result), return); @@ -3367,10 +3369,10 @@ void TextEditorWidgetPrivate::updateSyntaxInfoBar(const Highlighter::Definitions if (definitions.isEmpty() && infoBar->canInfoBeAdded(missing) && !TextEditorSettings::highlighterSettings().isIgnoredFilePattern(fileName)) { InfoBarEntry info(missing, - BaseTextEditor::tr("A highlight definition was not found for this file. " - "Would you like to download additional highlight definition files?"), + Tr::tr("A highlight definition was not found for this file. " + "Would you like to download additional highlight definition files?"), InfoBarEntry::GlobalSuppression::Enabled); - info.addCustomButton(BaseTextEditor::tr("Download Definitions"), [missing, this]() { + info.addCustomButton(Tr::tr("Download Definitions"), [missing, this]() { m_document->infoBar()->removeInfo(missing); Highlighter::downloadDefinitions(); }); @@ -3379,14 +3381,14 @@ void TextEditorWidgetPrivate::updateSyntaxInfoBar(const Highlighter::Definitions infoBar->addInfo(info); } else if (definitions.size() > 1) { InfoBarEntry info(multiple, - BaseTextEditor::tr("More than one highlight definition was found for this file. " - "Which one should be used to highlight this file?")); + Tr::tr("More than one highlight definition was found for this file. " + "Which one should be used to highlight this file?")); info.setComboInfo(Utils::transform(definitions, &Highlighter::Definition::name), [this](const InfoBarEntry::ComboInfo &info) { 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); rememberCurrentSyntaxDefinition(); }); @@ -6316,8 +6318,7 @@ void TextEditorWidget::wheelEvent(QWheelEvent *e) static void showZoomIndicator(QWidget *editor, const int newZoom) { Utils::FadingIndicator::showText(editor, - QCoreApplication::translate("TextEditor::TextEditorWidget", - "Zoom: %1%").arg(newZoom), + Tr::tr("Zoom: %1%").arg(newZoom), Utils::FadingIndicator::SmallText); } @@ -8077,8 +8078,8 @@ void TextEditorWidget::appendStandardContextMenuActions(QMenu *menu) TextDocument *doc = textDocument(); if (doc->codec()->name() == QByteArray("UTF-8") && doc->supportsUtf8Bom()) { a->setVisible(true); - a->setText(doc->format().hasUtf8Bom ? tr("Delete UTF-8 BOM on Save") - : tr("Add UTF-8 BOM on Save")); + a->setText(doc->format().hasUtf8Bom ? Tr::tr("Delete UTF-8 BOM on Save") + : Tr::tr("Add UTF-8 BOM on Save")); } else { a->setVisible(false); } diff --git a/src/plugins/texteditor/texteditoractionhandler.cpp b/src/plugins/texteditor/texteditoractionhandler.cpp index 77ceefa601e..25116729c99 100644 --- a/src/plugins/texteditor/texteditoractionhandler.cpp +++ b/src/plugins/texteditor/texteditoractionhandler.cpp @@ -7,8 +7,8 @@ #include "displaysettings.h" #include "fontsettings.h" #include "linenumberfilter.h" -#include "texteditorconstants.h" #include "texteditorplugin.h" +#include "texteditortr.h" #include "texteditorsettings.h" #include @@ -20,6 +20,7 @@ #include #include #include + #include #include @@ -33,8 +34,6 @@ namespace Internal { class TextEditorActionHandlerPrivate : public QObject { - Q_DECLARE_TR_FUNCTIONS(TextEditor::Internal::TextEditorActionHandler) - public: TextEditorActionHandlerPrivate(Utils::Id editorId, Utils::Id contextId, uint optionalActions); @@ -147,9 +146,9 @@ void TextEditorActionHandlerPrivate::createActions() using namespace TextEditor::Constants; m_undoAction = registerAction(UNDO, - [] (TextEditorWidget *w) { w->undo(); }, true, tr("&Undo")); + [] (TextEditorWidget *w) { w->undo(); }, true, Tr::tr("&Undo")); m_redoAction = registerAction(REDO, - [] (TextEditorWidget *w) { w->redo(); }, true, tr("&Redo")); + [] (TextEditorWidget *w) { w->redo(); }, true, Tr::tr("&Redo")); m_copyAction = registerAction(COPY, [] (TextEditorWidget *w) { w->copy(); }, true); m_cutAction = registerAction(CUT, @@ -164,110 +163,110 @@ void TextEditorActionHandlerPrivate::createActions() m_modifyingActions << registerAction(PRINT, [] (TextEditorWidget *widget) { widget->print(Core::ICore::printer()); }); 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, - [] (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, - [] (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, - [] (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, - [] (TextEditorWidget *w) { w->deleteStartOfLine(); }, true, tr("Delete Line up to Cursor"), - Core::useMacShortcuts ? QKeySequence(tr("Ctrl+Backspace")) : QKeySequence()); + [] (TextEditorWidget *w) { w->deleteStartOfLine(); }, true, Tr::tr("Delete Line up to Cursor"), + Core::useMacShortcuts ? QKeySequence(Tr::tr("Ctrl+Backspace")) : QKeySequence()); 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, - [] (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, - [] (TextEditorWidget *w) { w->gotoBlockStartWithSelection(); }, true, tr("Go to Block Start with Selection"), - QKeySequence(tr("Ctrl+{"))); + [] (TextEditorWidget *w) { w->gotoBlockStartWithSelection(); }, true, Tr::tr("Go to Block Start with Selection"), + QKeySequence(Tr::tr("Ctrl+{"))); registerAction(GOTO_BLOCK_END_WITH_SELECTION, - [] (TextEditorWidget *w) { w->gotoBlockEndWithSelection(); }, true, tr("Go to Block End with Selection"), - QKeySequence(tr("Ctrl+}"))); + [] (TextEditorWidget *w) { w->gotoBlockEndWithSelection(); }, true, Tr::tr("Go to Block End with Selection"), + QKeySequence(Tr::tr("Ctrl+}"))); m_modifyingActions << registerAction(MOVE_LINE_UP, - [] (TextEditorWidget *w) { w->moveLineUp(); }, true, tr("Move Line Up"), - QKeySequence(tr("Ctrl+Shift+Up"))); + [] (TextEditorWidget *w) { w->moveLineUp(); }, true, Tr::tr("Move Line Up"), + QKeySequence(Tr::tr("Ctrl+Shift+Up"))); m_modifyingActions << registerAction(MOVE_LINE_DOWN, - [] (TextEditorWidget *w) { w->moveLineDown(); }, true, tr("Move Line Down"), - QKeySequence(tr("Ctrl+Shift+Down"))); + [] (TextEditorWidget *w) { w->moveLineDown(); }, true, Tr::tr("Move Line Down"), + QKeySequence(Tr::tr("Ctrl+Shift+Down"))); m_modifyingActions << registerAction(COPY_LINE_UP, - [] (TextEditorWidget *w) { w->copyLineUp(); }, true, tr("Copy Line Up"), - QKeySequence(tr("Ctrl+Alt+Up"))); + [] (TextEditorWidget *w) { w->copyLineUp(); }, true, Tr::tr("Copy Line Up"), + QKeySequence(Tr::tr("Ctrl+Alt+Up"))); m_modifyingActions << registerAction(COPY_LINE_DOWN, - [] (TextEditorWidget *w) { w->copyLineDown(); }, true, tr("Copy Line Down"), - QKeySequence(tr("Ctrl+Alt+Down"))); + [] (TextEditorWidget *w) { w->copyLineDown(); }, true, Tr::tr("Copy Line Down"), + QKeySequence(Tr::tr("Ctrl+Alt+Down"))); m_modifyingActions << registerAction(JOIN_LINES, - [] (TextEditorWidget *w) { w->joinLines(); }, true, tr("Join Lines"), - QKeySequence(tr("Ctrl+J"))); + [] (TextEditorWidget *w) { w->joinLines(); }, true, Tr::tr("Join Lines"), + QKeySequence(Tr::tr("Ctrl+J"))); m_modifyingActions << registerAction(INSERT_LINE_ABOVE, - [] (TextEditorWidget *w) { w->insertLineAbove(); }, true, tr("Insert Line Above Current Line"), - QKeySequence(tr("Ctrl+Shift+Return"))); + [] (TextEditorWidget *w) { w->insertLineAbove(); }, true, Tr::tr("Insert Line Above Current Line"), + QKeySequence(Tr::tr("Ctrl+Shift+Return"))); m_modifyingActions << registerAction(INSERT_LINE_BELOW, - [] (TextEditorWidget *w) { w->insertLineBelow(); }, true, tr("Insert Line Below Current Line"), - QKeySequence(tr("Ctrl+Return"))); + [] (TextEditorWidget *w) { w->insertLineBelow(); }, true, Tr::tr("Insert Line Below Current Line"), + QKeySequence(Tr::tr("Ctrl+Return"))); 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, - [] (TextEditorWidget *w) { w->indent(); }, true, tr("Indent")); + [] (TextEditorWidget *w) { w->indent(); }, true, Tr::tr("Indent")); 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, - [] (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)); m_followSymbolInNextSplitAction = registerAction(FOLLOW_SYMBOL_UNDER_CURSOR_IN_NEXT_SPLIT, - [] (TextEditorWidget *w) { w->openLinkUnderCursorInNextSplit(); }, true, tr("Follow Symbol Under Cursor in Next Split"), - QKeySequence(Utils::HostOsInfo::isMacHost() ? tr("Meta+E, F2") : tr("Ctrl+E, F2"))); + [] (TextEditorWidget *w) { w->openLinkUnderCursorInNextSplit(); }, true, Tr::tr("Follow Symbol Under Cursor in Next Split"), + QKeySequence(Utils::HostOsInfo::isMacHost() ? Tr::tr("Meta+E, F2") : Tr::tr("Ctrl+E, F2"))); m_findUsageAction = registerAction(FIND_USAGES, - [] (TextEditorWidget *w) { w->findUsages(); }, true, tr("Find References to Symbol Under Cursor"), - QKeySequence(tr("Ctrl+Shift+U"))); + [] (TextEditorWidget *w) { w->findUsages(); }, true, Tr::tr("Find References to Symbol Under Cursor"), + QKeySequence(Tr::tr("Ctrl+Shift+U"))); m_renameSymbolAction = registerAction(RENAME_SYMBOL, - [] (TextEditorWidget *w) { w->renameSymbolUnderCursor(); }, true, tr("Rename Symbol Under Cursor"), - QKeySequence(tr("Ctrl+Shift+R"))); + [] (TextEditorWidget *w) { w->renameSymbolUnderCursor(); }, true, Tr::tr("Rename Symbol Under Cursor"), + QKeySequence(Tr::tr("Ctrl+Shift+R"))); 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)); 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"), - QKeySequence(Utils::HostOsInfo::isMacHost() ? tr("Meta+E, F2") : tr("Ctrl+E, F2")).toString()); + [] (TextEditorWidget *w) { w->openLinkUnderCursorInNextSplit(); }, true, Tr::tr("Jump to File Under Cursor in Next Split"), + QKeySequence(Utils::HostOsInfo::isMacHost() ? Tr::tr("Meta+E, F2") : Tr::tr("Ctrl+E, F2")).toString()); registerAction(VIEW_PAGE_UP, - [] (TextEditorWidget *w) { w->viewPageUp(); }, true, tr("Move the View a Page Up and Keep the Cursor Position"), - QKeySequence(tr("Ctrl+PgUp"))); + [] (TextEditorWidget *w) { w->viewPageUp(); }, true, Tr::tr("Move the View a Page Up and Keep the Cursor Position"), + QKeySequence(Tr::tr("Ctrl+PgUp"))); registerAction(VIEW_PAGE_DOWN, - [] (TextEditorWidget *w) { w->viewPageDown(); }, true, tr("Move the View a Page Down and Keep the Cursor Position"), - QKeySequence(tr("Ctrl+PgDown"))); + [] (TextEditorWidget *w) { w->viewPageDown(); }, true, Tr::tr("Move the View a Page Down and Keep the Cursor Position"), + QKeySequence(Tr::tr("Ctrl+PgDown"))); registerAction(VIEW_LINE_UP, - [] (TextEditorWidget *w) { w->viewLineUp(); }, true, tr("Move the View a Line Up and Keep the Cursor Position"), - QKeySequence(tr("Ctrl+Up"))); + [] (TextEditorWidget *w) { w->viewLineUp(); }, true, Tr::tr("Move the View a Line Up and Keep the Cursor Position"), + QKeySequence(Tr::tr("Ctrl+Up"))); registerAction(VIEW_LINE_DOWN, - [] (TextEditorWidget *w) { w->viewLineDown(); }, true, tr("Move the View a Line Down and Keep the Cursor Position"), - QKeySequence(tr("Ctrl+Down"))); + [] (TextEditorWidget *w) { w->viewLineDown(); }, true, Tr::tr("Move the View a Line Down and Keep the Cursor Position"), + QKeySequence(Tr::tr("Ctrl+Down"))); // register "Edit" Menu Actions Core::ActionContainer *editMenu = Core::ActionManager::actionContainer(M_EDIT); 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); m_modifyingActions << registerAction(CIRCULAR_PASTE, - [] (TextEditorWidget *w) { w->circularPaste(); }, false, tr("Paste from Clipboard History"), - QKeySequence(tr("Ctrl+Shift+V")), G_EDIT_COPYPASTE, editMenu); + [] (TextEditorWidget *w) { w->circularPaste(); }, false, Tr::tr("Paste from Clipboard History"), + QKeySequence(Tr::tr("Ctrl+Shift+V")), G_EDIT_COPYPASTE, editMenu); m_modifyingActions << registerAction(NO_FORMAT_PASTE, - [] (TextEditorWidget *w) { w->pasteWithoutFormat(); }, false, tr("Paste Without Formatting"), - QKeySequence(Core::useMacShortcuts ? tr("Ctrl+Alt+Shift+V") : QString()), G_EDIT_COPYPASTE, editMenu); + [] (TextEditorWidget *w) { w->pasteWithoutFormat(); }, false, Tr::tr("Paste Without Formatting"), + QKeySequence(Core::useMacShortcuts ? Tr::tr("Ctrl+Alt+Shift+V") : QString()), G_EDIT_COPYPASTE, editMenu); // register "Edit -> Advanced" Menu Actions Core::ActionContainer *advancedEditMenu = Core::ActionManager::actionContainer(M_EDIT_ADVANCED); m_autoIndentAction = registerAction(AUTO_INDENT_SELECTION, - [] (TextEditorWidget *w) { w->autoIndent(); }, true, tr("Auto-&indent Selection"), - QKeySequence(tr("Ctrl+I")), + [] (TextEditorWidget *w) { w->autoIndent(); }, true, Tr::tr("Auto-&indent Selection"), + QKeySequence(Tr::tr("Ctrl+I")), G_EDIT_FORMAT, advancedEditMenu); m_autoFormatAction = registerAction(AUTO_FORMAT_SELECTION, - [] (TextEditorWidget *w) { w->autoFormat(); }, true, tr("Auto-&format Selection"), - QKeySequence(tr("Ctrl+;")), + [] (TextEditorWidget *w) { w->autoFormat(); }, true, Tr::tr("Auto-&format Selection"), + QKeySequence(Tr::tr("Ctrl+;")), G_EDIT_FORMAT, advancedEditMenu); m_modifyingActions << registerAction(REWRAP_PARAGRAPH, - [] (TextEditorWidget *w) { w->rewrapParagraph(); }, true, tr("&Rewrap Paragraph"), - QKeySequence(Core::useMacShortcuts ? tr("Meta+E, R") : tr("Ctrl+E, R")), + [] (TextEditorWidget *w) { w->rewrapParagraph(); }, true, Tr::tr("&Rewrap Paragraph"), + QKeySequence(Core::useMacShortcuts ? Tr::tr("Meta+E, R") : Tr::tr("Ctrl+E, R")), G_EDIT_FORMAT, advancedEditMenu); m_visualizeWhitespaceAction = registerBoolAction(VISUALIZE_WHITESPACE, [] (TextEditorWidget *widget, bool checked) { @@ -277,12 +276,12 @@ void TextEditorActionHandlerPrivate::createActions() widget->setDisplaySettings(ds); } }, - false, tr("&Visualize Whitespace"), - QKeySequence(Core::useMacShortcuts ? tr("Meta+E, Meta+V") : tr("Ctrl+E, Ctrl+V")), + false, Tr::tr("&Visualize Whitespace"), + QKeySequence(Core::useMacShortcuts ? Tr::tr("Meta+E, Meta+V") : Tr::tr("Ctrl+E, Ctrl+V")), G_EDIT_FORMAT, advancedEditMenu); m_visualizeWhitespaceAction->setCheckable(true); m_modifyingActions << registerAction(CLEAN_WHITESPACE, - [] (TextEditorWidget *w) { w->cleanWhitespace(); }, true, tr("Clean Whitespace"), + [] (TextEditorWidget *w) { w->cleanWhitespace(); }, true, Tr::tr("Clean Whitespace"), QKeySequence(), G_EDIT_FORMAT, advancedEditMenu); m_textWrappingAction = registerBoolAction(TEXT_WRAPPING, @@ -293,145 +292,145 @@ void TextEditorActionHandlerPrivate::createActions() widget->setDisplaySettings(ds); } }, - false, tr("Enable Text &Wrapping"), - QKeySequence(Core::useMacShortcuts ? tr("Meta+E, Meta+W") : tr("Ctrl+E, Ctrl+W")), + false, Tr::tr("Enable Text &Wrapping"), + QKeySequence(Core::useMacShortcuts ? Tr::tr("Meta+E, Meta+W") : Tr::tr("Ctrl+E, Ctrl+W")), G_EDIT_FORMAT, advancedEditMenu); m_textWrappingAction->setCheckable(true); m_unCommentSelectionAction = registerAction(UN_COMMENT_SELECTION, - [] (TextEditorWidget *w) { w->unCommentSelection(); }, true, tr("Toggle Comment &Selection"), - QKeySequence(tr("Ctrl+/")), + [] (TextEditorWidget *w) { w->unCommentSelection(); }, true, Tr::tr("Toggle Comment &Selection"), + QKeySequence(Tr::tr("Ctrl+/")), G_EDIT_FORMAT, advancedEditMenu); m_modifyingActions << registerAction(CUT_LINE, - [] (TextEditorWidget *w) { w->cutLine(); }, true, tr("Cut &Line"), - QKeySequence(tr("Shift+Del")), + [] (TextEditorWidget *w) { w->cutLine(); }, true, Tr::tr("Cut &Line"), + QKeySequence(Tr::tr("Shift+Del")), G_EDIT_TEXT, advancedEditMenu); registerAction(COPY_LINE, - [] (TextEditorWidget *w) { w->copyLine(); }, false, tr("Copy &Line"), - QKeySequence(tr("Ctrl+Ins")), + [] (TextEditorWidget *w) { w->copyLine(); }, false, Tr::tr("Copy &Line"), + QKeySequence(Tr::tr("Ctrl+Ins")), G_EDIT_TEXT, advancedEditMenu); 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); registerAction(ADD_CURSORS_TO_LINE_ENDS, - [] (TextEditorWidget *w) { w->addCursorsToLineEnds(); }, false, tr("Create Cursors at Selected Line Ends"), - QKeySequence(tr("Alt+Shift+I")), + [] (TextEditorWidget *w) { w->addCursorsToLineEnds(); }, false, Tr::tr("Create Cursors at Selected Line Ends"), + QKeySequence(Tr::tr("Alt+Shift+I")), G_EDIT_TEXT, advancedEditMenu); registerAction(ADD_SELECT_NEXT_FIND_MATCH, - [] (TextEditorWidget *w) { w->addSelectionNextFindMatch(); }, false, tr("Add Next Occurrence to Selection"), - QKeySequence(tr("Ctrl+D")), + [] (TextEditorWidget *w) { w->addSelectionNextFindMatch(); }, false, Tr::tr("Add Next Occurrence to Selection"), + QKeySequence(Tr::tr("Ctrl+D")), G_EDIT_TEXT, advancedEditMenu); m_modifyingActions << registerAction(DUPLICATE_SELECTION, - [] (TextEditorWidget *w) { w->duplicateSelection(); }, false, tr("&Duplicate Selection"), + [] (TextEditorWidget *w) { w->duplicateSelection(); }, false, Tr::tr("&Duplicate Selection"), QKeySequence(), G_EDIT_TEXT, advancedEditMenu); 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(), G_EDIT_TEXT, advancedEditMenu); m_modifyingActions << registerAction(UPPERCASE_SELECTION, - [] (TextEditorWidget *w) { w->uppercaseSelection(); }, true, tr("Uppercase Selection"), - QKeySequence(Core::useMacShortcuts ? tr("Meta+Shift+U") : tr("Alt+Shift+U")), + [] (TextEditorWidget *w) { w->uppercaseSelection(); }, true, Tr::tr("Uppercase Selection"), + QKeySequence(Core::useMacShortcuts ? Tr::tr("Meta+Shift+U") : Tr::tr("Alt+Shift+U")), G_EDIT_TEXT, advancedEditMenu); m_modifyingActions << registerAction(LOWERCASE_SELECTION, - [] (TextEditorWidget *w) { w->lowercaseSelection(); }, true, tr("Lowercase Selection"), - QKeySequence(Core::useMacShortcuts ? tr("Meta+U") : tr("Alt+U")), + [] (TextEditorWidget *w) { w->lowercaseSelection(); }, true, Tr::tr("Lowercase Selection"), + QKeySequence(Core::useMacShortcuts ? Tr::tr("Meta+U") : Tr::tr("Alt+U")), G_EDIT_TEXT, advancedEditMenu); m_modifyingActions << registerAction(SORT_SELECTED_LINES, - [] (TextEditorWidget *w) { w->sortSelectedLines(); }, false, tr("&Sort Selected Lines"), - QKeySequence(Core::useMacShortcuts ? tr("Meta+Shift+S") : tr("Alt+Shift+S")), + [] (TextEditorWidget *w) { w->sortSelectedLines(); }, false, Tr::tr("&Sort Selected Lines"), + QKeySequence(Core::useMacShortcuts ? Tr::tr("Meta+Shift+S") : Tr::tr("Alt+Shift+S")), G_EDIT_TEXT, advancedEditMenu); registerAction(FOLD, - [] (TextEditorWidget *w) { w->fold(); }, true, tr("Fold"), - QKeySequence(tr("Ctrl+<")), + [] (TextEditorWidget *w) { w->fold(); }, true, Tr::tr("Fold"), + QKeySequence(Tr::tr("Ctrl+<")), G_EDIT_COLLAPSING, advancedEditMenu); registerAction(UNFOLD, - [] (TextEditorWidget *w) { w->unfold(); }, true, tr("Unfold"), - QKeySequence(tr("Ctrl+>")), + [] (TextEditorWidget *w) { w->unfold(); }, true, Tr::tr("Unfold"), + QKeySequence(Tr::tr("Ctrl+>")), G_EDIT_COLLAPSING, advancedEditMenu); 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(), G_EDIT_COLLAPSING, advancedEditMenu); registerAction(INCREASE_FONT_SIZE, - [] (TextEditorWidget *w) { w->zoomF(1.f); }, false, tr("Increase Font Size"), - QKeySequence(tr("Ctrl++")), + [] (TextEditorWidget *w) { w->zoomF(1.f); }, false, Tr::tr("Increase Font Size"), + QKeySequence(Tr::tr("Ctrl++")), G_EDIT_FONT, advancedEditMenu); registerAction(DECREASE_FONT_SIZE, - [] (TextEditorWidget *w) { w->zoomF(-1.f); }, false, tr("Decrease Font Size"), - QKeySequence(tr("Ctrl+-")), + [] (TextEditorWidget *w) { w->zoomF(-1.f); }, false, Tr::tr("Decrease Font Size"), + QKeySequence(Tr::tr("Ctrl+-")), G_EDIT_FONT, advancedEditMenu); registerAction(RESET_FONT_SIZE, - [] (TextEditorWidget *w) { w->zoomReset(); }, false, tr("Reset Font Size"), - QKeySequence(Core::useMacShortcuts ? tr("Meta+0") : tr("Ctrl+0")), + [] (TextEditorWidget *w) { w->zoomReset(); }, false, Tr::tr("Reset Font Size"), + QKeySequence(Core::useMacShortcuts ? Tr::tr("Meta+0") : Tr::tr("Ctrl+0")), G_EDIT_FONT, advancedEditMenu); registerAction(GOTO_BLOCK_START, - [] (TextEditorWidget *w) { w->gotoBlockStart(); }, true, tr("Go to Block Start"), - QKeySequence(tr("Ctrl+[")), + [] (TextEditorWidget *w) { w->gotoBlockStart(); }, true, Tr::tr("Go to Block Start"), + QKeySequence(Tr::tr("Ctrl+[")), G_EDIT_BLOCKS, advancedEditMenu); registerAction(GOTO_BLOCK_END, - [] (TextEditorWidget *w) { w->gotoBlockEnd(); }, true, tr("Go to Block End"), - QKeySequence(tr("Ctrl+]")), + [] (TextEditorWidget *w) { w->gotoBlockEnd(); }, true, Tr::tr("Go to Block End"), + QKeySequence(Tr::tr("Ctrl+]")), G_EDIT_BLOCKS, advancedEditMenu); registerAction(SELECT_BLOCK_UP, - [] (TextEditorWidget *w) { w->selectBlockUp(); }, true, tr("Select Block Up"), - QKeySequence(tr("Ctrl+U")), + [] (TextEditorWidget *w) { w->selectBlockUp(); }, true, Tr::tr("Select Block Up"), + QKeySequence(Tr::tr("Ctrl+U")), G_EDIT_BLOCKS, advancedEditMenu); registerAction(SELECT_BLOCK_DOWN, - [] (TextEditorWidget *w) { w->selectBlockDown(); }, true, tr("Select Block Down"), - QKeySequence(tr("Ctrl+Shift+Alt+U")), + [] (TextEditorWidget *w) { w->selectBlockDown(); }, true, Tr::tr("Select Block Down"), + QKeySequence(Tr::tr("Ctrl+Shift+Alt+U")), G_EDIT_BLOCKS, advancedEditMenu); registerAction(SELECT_WORD_UNDER_CURSOR, [] (TextEditorWidget *w) { w->selectWordUnderCursor(); }, true, - tr("Select Word Under Cursor")); + Tr::tr("Select Word Under Cursor")); // register GOTO Actions 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, - [] (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, - [] (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, - [] (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, - [] (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, - [] (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, - [] (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, - [] (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, - [] (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, - [] (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, - [] (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, - [] (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 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, - [] (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, - [] (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, - [] (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, - [] (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, - [] (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, - [] (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, - [] (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, - [] (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, - [] (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 // and disable them diff --git a/src/plugins/texteditor/texteditorplugin.cpp b/src/plugins/texteditor/texteditorplugin.cpp index a60ad61aadb..254389c9572 100644 --- a/src/plugins/texteditor/texteditorplugin.cpp +++ b/src/plugins/texteditor/texteditorplugin.cpp @@ -8,14 +8,16 @@ #include "findinopenfiles.h" #include "fontsettings.h" #include "highlighter.h" +#include "icodestylepreferences.h" #include "linenumberfilter.h" #include "outlinefactory.h" #include "plaintexteditorfactory.h" #include "snippets/snippetprovider.h" +#include "tabsettings.h" #include "textdocument.h" #include "texteditor.h" -#include "texteditoractionhandler.h" #include "texteditorsettings.h" +#include "texteditortr.h" #include #include @@ -24,31 +26,26 @@ #include #include #include -#include -#include -#include +#include #include #include #include -#include -#include - using namespace Core; using namespace Utils; namespace TextEditor { namespace Internal { -static const char kCurrentDocumentSelection[] = "CurrentDocument:Selection"; -static const char kCurrentDocumentRow[] = "CurrentDocument:Row"; -static const char kCurrentDocumentColumn[] = "CurrentDocument:Column"; -static const char kCurrentDocumentRowCount[] = "CurrentDocument:RowCount"; -static const char kCurrentDocumentColumnCount[] = "CurrentDocument:ColumnCount"; -static const char kCurrentDocumentFontSize[] = "CurrentDocument:FontSize"; -static const char kCurrentDocumentWordUnderCursor[] = "CurrentDocument:WordUnderCursor"; +const char kCurrentDocumentSelection[] = "CurrentDocument:Selection"; +const char kCurrentDocumentRow[] = "CurrentDocument:Row"; +const char kCurrentDocumentColumn[] = "CurrentDocument:Column"; +const char kCurrentDocumentRowCount[] = "CurrentDocument:RowCount"; +const char kCurrentDocumentColumnCount[] = "CurrentDocument:ColumnCount"; +const char kCurrentDocumentFontSize[] = "CurrentDocument:FontSize"; +const char kCurrentDocumentWordUnderCursor[] = "CurrentDocument:WordUnderCursor"; class TextEditorPluginPrivate : public QObject { @@ -101,9 +98,9 @@ bool TextEditorPlugin::initialize(const QStringList &arguments, QString *errorMe Context context(TextEditor::Constants::C_TEXTEDITOR); // 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->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, [] { if (BaseTextEditor *editor = BaseTextEditor::currentTextEditor()) editor->editorWidget()->invokeAssist(Completion); @@ -114,25 +111,25 @@ bool TextEditorPlugin::initialize(const QStringList &arguments, QString *errorMe Utils::FancyLineEdit::setCompletionShortcut(command->keySequence()); // 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->setDefaultKeySequence(QKeySequence(useMacShortcuts ? tr("Meta+Shift+D") - : tr("Ctrl+Shift+D"))); + command->setDefaultKeySequence(QKeySequence(useMacShortcuts ? Tr::tr("Meta+Shift+D") + : Tr::tr("Ctrl+Shift+D"))); connect(functionHintAction, &QAction::triggered, this, [] { if (BaseTextEditor *editor = BaseTextEditor::currentTextEditor()) editor->editorWidget()->invokeAssist(FunctionHint); }); // 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); - quickFixCommand->setDefaultKeySequence(QKeySequence(tr("Alt+Return"))); + quickFixCommand->setDefaultKeySequence(QKeySequence(Tr::tr("Alt+Return"))); connect(quickFixAction, &QAction::triggered, this, [] { if (BaseTextEditor *editor = BaseTextEditor::currentTextEditor()) 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, Constants::SHOWCONTEXTMENU, context); @@ -143,7 +140,7 @@ bool TextEditorPlugin::initialize(const QStringList &arguments, QString *errorMe // Add text snippet provider. SnippetProvider::registerGroup(Constants::TEXT_SNIPPET_GROUP_ID, - tr("Text", "SnippetProvider")); + Tr::tr("Text", "SnippetProvider")); d->createStandardContextMenu(); @@ -184,7 +181,7 @@ void TextEditorPlugin::extensionsInitialized() Utils::MacroExpander *expander = Utils::globalMacroExpander(); expander->registerVariable(kCurrentDocumentSelection, - tr("Selected text within the current document."), + Tr::tr("Selected text within the current document."), []() -> QString { QString value; if (BaseTextEditor *editor = BaseTextEditor::currentTextEditor()) { @@ -195,42 +192,42 @@ void TextEditorPlugin::extensionsInitialized() }); 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 { BaseTextEditor *editor = BaseTextEditor::currentTextEditor(); return editor ? editor->currentLine() : 0; }); 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 { BaseTextEditor *editor = BaseTextEditor::currentTextEditor(); return editor ? editor->currentColumn() : 0; }); expander->registerIntVariable(kCurrentDocumentRowCount, - tr("Number of lines visible in current document."), + Tr::tr("Number of lines visible in current document."), []() -> int { BaseTextEditor *editor = BaseTextEditor::currentTextEditor(); return editor ? editor->rowCount() : 0; }); expander->registerIntVariable(kCurrentDocumentColumnCount, - tr("Number of columns visible in current document."), + Tr::tr("Number of columns visible in current document."), []() -> int { BaseTextEditor *editor = BaseTextEditor::currentTextEditor(); return editor ? editor->columnCount() : 0; }); expander->registerIntVariable(kCurrentDocumentFontSize, - tr("Current document's font size in points."), + Tr::tr("Current document's font size in points."), []() -> int { BaseTextEditor *editor = BaseTextEditor::currentTextEditor(); return editor ? editor->widget()->font().pointSize() : 0; }); 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(); if (!editor) return QString(); diff --git a/src/plugins/texteditor/texteditorsettings.cpp b/src/plugins/texteditor/texteditorsettings.cpp index d01c5f22c49..8f6bab2c5f3 100644 --- a/src/plugins/texteditor/texteditorsettings.cpp +++ b/src/plugins/texteditor/texteditorsettings.cpp @@ -17,15 +17,15 @@ #include "icodestylepreferencesfactory.h" #include "marginsettings.h" #include "storagesettings.h" -#include "tabsettings.h" -#include "texteditor.h" +#include "texteditortr.h" #include "typingsettings.h" +#include "snippets/snippetssettingspage.h" -#include - -#include #include #include + +#include + #include #include @@ -39,8 +39,6 @@ namespace Internal { class TextEditorSettingsPrivate { - Q_DECLARE_TR_FUNCTIONS(TextEditor::TextEditorSettings) - public: FontSettings m_fontSettings; FontSettingsPage m_fontSettingsPage{&m_fontSettings, initialFormats()}; @@ -65,343 +63,343 @@ FormatDescriptions TextEditorSettingsPrivate::initialFormats() // Add font preference page FormatDescriptions formatDescr; formatDescr.reserve(C_LAST_STYLE_SENTINEL); - formatDescr.emplace_back(C_TEXT, tr("Text"), - tr("Generic text and punctuation tokens.\n" - "Applied to text that matched no other rule."), + formatDescr.emplace_back(C_TEXT, Tr::tr("Text"), + Tr::tr("Generic text and punctuation tokens.\n" + "Applied to text that matched no other rule."), Format{Qt::black, Qt::white}); // Special categories const QPalette p = QApplication::palette(); - formatDescr.emplace_back(C_LINK, tr("Link"), - tr("Links that follow symbol under cursor."), Qt::blue); - formatDescr.emplace_back(C_SELECTION, tr("Selection"), tr("Selected text."), + formatDescr.emplace_back(C_LINK, Tr::tr("Link"), + Tr::tr("Links that follow symbol under cursor."), Qt::blue); + formatDescr.emplace_back(C_SELECTION, Tr::tr("Selection"), Tr::tr("Selected text."), p.color(QPalette::HighlightedText)); - formatDescr.emplace_back(C_LINE_NUMBER, tr("Line Number"), - tr("Line numbers located on the left side of the editor."), + formatDescr.emplace_back(C_LINE_NUMBER, Tr::tr("Line Number"), + Tr::tr("Line numbers located on the left side of the editor."), FormatDescription::ShowAllAbsoluteControlsExceptUnderline); - formatDescr.emplace_back(C_SEARCH_RESULT, tr("Search Result"), - tr("Highlighted search results inside the editor."), + formatDescr.emplace_back(C_SEARCH_RESULT, Tr::tr("Search Result"), + Tr::tr("Highlighted search results inside the editor."), FormatDescription::ShowBackgroundControl); - formatDescr.emplace_back(C_SEARCH_RESULT_ALT1, tr("Search Result (Alternative 1)"), - tr("Highlighted search results inside the editor.\n" - "Used to mark read accesses to C++ symbols."), + formatDescr.emplace_back(C_SEARCH_RESULT_ALT1, Tr::tr("Search Result (Alternative 1)"), + Tr::tr("Highlighted search results inside the editor.\n" + "Used to mark read accesses to C++ symbols."), FormatDescription::ShowBackgroundControl); - formatDescr.emplace_back(C_SEARCH_RESULT_ALT2, tr("Search Result (Alternative 2)"), - tr("Highlighted search results inside the editor.\n" - "Used to mark write accesses to C++ symbols."), + formatDescr.emplace_back(C_SEARCH_RESULT_ALT2, Tr::tr("Search Result (Alternative 2)"), + Tr::tr("Highlighted search results inside the editor.\n" + "Used to mark write accesses to C++ symbols."), FormatDescription::ShowBackgroundControl); formatDescr.emplace_back(C_SEARCH_RESULT_CONTAINING_FUNCTION, - tr("Search Result Containing function"), - tr("Highlighted search results inside the editor.\n" - "Used to mark containing function of the symbol usage."), + Tr::tr("Search Result Containing function"), + Tr::tr("Highlighted search results inside the editor.\n" + "Used to mark containing function of the symbol usage."), FormatDescription::ShowForeAndBackgroundControl); - formatDescr.emplace_back(C_SEARCH_SCOPE, tr("Search Scope"), - tr("Section where the pattern is searched in."), + formatDescr.emplace_back(C_SEARCH_SCOPE, Tr::tr("Search Scope"), + Tr::tr("Section where the pattern is searched in."), FormatDescription::ShowBackgroundControl); - formatDescr.emplace_back(C_PARENTHESES, tr("Parentheses"), - tr("Displayed when matching parentheses, square brackets " - "or curly brackets are found.")); - formatDescr.emplace_back(C_PARENTHESES_MISMATCH, tr("Mismatched Parentheses"), - tr("Displayed when mismatched parentheses, " - "square brackets, or curly brackets are found.")); - formatDescr.emplace_back(C_AUTOCOMPLETE, tr("Auto Complete"), - tr("Displayed when a character is automatically inserted " - "like brackets or quotes.")); - formatDescr.emplace_back(C_CURRENT_LINE, tr("Current Line"), - tr("Line where the cursor is placed in."), + formatDescr.emplace_back(C_PARENTHESES, Tr::tr("Parentheses"), + Tr::tr("Displayed when matching parentheses, square brackets " + "or curly brackets are found.")); + formatDescr.emplace_back(C_PARENTHESES_MISMATCH, Tr::tr("Mismatched Parentheses"), + Tr::tr("Displayed when mismatched parentheses, " + "square brackets, or curly brackets are found.")); + formatDescr.emplace_back(C_AUTOCOMPLETE, Tr::tr("Auto Complete"), + Tr::tr("Displayed when a character is automatically inserted " + "like brackets or quotes.")); + formatDescr.emplace_back(C_CURRENT_LINE, Tr::tr("Current Line"), + Tr::tr("Line where the cursor is placed in."), FormatDescription::ShowBackgroundControl); FormatDescription currentLineNumber(C_CURRENT_LINE_NUMBER, - tr("Current Line Number"), - tr("Line number located on the left side of the " - "editor where the cursor is placed in."), + Tr::tr("Current Line Number"), + Tr::tr("Line number located on the left side of the " + "editor where the cursor is placed in."), Qt::darkGray, FormatDescription::ShowAllAbsoluteControlsExceptUnderline); currentLineNumber.format().setBold(true); formatDescr.push_back(std::move(currentLineNumber)); - formatDescr.emplace_back(C_OCCURRENCES, tr("Occurrences"), - tr("Occurrences of the symbol under the cursor.\n" - "(Only the background will be applied.)"), + formatDescr.emplace_back(C_OCCURRENCES, Tr::tr("Occurrences"), + Tr::tr("Occurrences of the symbol under the cursor.\n" + "(Only the background will be applied.)"), FormatDescription::ShowBackgroundControl); formatDescr.emplace_back(C_OCCURRENCES_UNUSED, - tr("Unused Occurrence"), - tr("Occurrences of unused variables."), + Tr::tr("Unused Occurrence"), + Tr::tr("Occurrences of unused variables."), Qt::darkYellow, QTextCharFormat::SingleUnderline); - formatDescr.emplace_back(C_OCCURRENCES_RENAME, tr("Renaming Occurrence"), - tr("Occurrences of a symbol that will be renamed."), + formatDescr.emplace_back(C_OCCURRENCES_RENAME, Tr::tr("Renaming Occurrence"), + Tr::tr("Occurrences of a symbol that will be renamed."), FormatDescription::ShowBackgroundControl); // 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); - formatDescr.emplace_back(C_STRING, tr("String"), - tr("Character and string literals."), Qt::darkGreen); - formatDescr.emplace_back(C_PRIMITIVE_TYPE, tr("Primitive Type"), - 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_STRING, Tr::tr("String"), + Tr::tr("Character and string literals."), Qt::darkGreen); + formatDescr.emplace_back(C_PRIMITIVE_TYPE, Tr::tr("Primitive Type"), + Tr::tr("Name of a primitive data type."), Qt::darkYellow); + formatDescr.emplace_back(C_TYPE, Tr::tr("Type"), Tr::tr("Name of a type."), 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); - formatDescr.emplace_back(C_LOCAL, tr("Local"), - tr("Local variables."), QColor(9, 46, 100)); - formatDescr.emplace_back(C_PARAMETER, tr("Parameter"), - tr("Function or method parameters."), QColor(9, 46, 100)); - formatDescr.emplace_back(C_FIELD, tr("Field"), - tr("Class' data members."), Qt::darkRed); - formatDescr.emplace_back(C_GLOBAL, tr("Global"), - tr("Global variables."), QColor(206, 92, 0)); - formatDescr.emplace_back(C_ENUMERATION, tr("Enumeration"), - tr("Applied to enumeration items."), Qt::darkMagenta); + formatDescr.emplace_back(C_LOCAL, Tr::tr("Local"), + Tr::tr("Local variables."), QColor(9, 46, 100)); + formatDescr.emplace_back(C_PARAMETER, Tr::tr("Parameter"), + Tr::tr("Function or method parameters."), QColor(9, 46, 100)); + formatDescr.emplace_back(C_FIELD, Tr::tr("Field"), + Tr::tr("Class' data members."), Qt::darkRed); + formatDescr.emplace_back(C_GLOBAL, Tr::tr("Global"), + Tr::tr("Global variables."), QColor(206, 92, 0)); + formatDescr.emplace_back(C_ENUMERATION, Tr::tr("Enumeration"), + Tr::tr("Applied to enumeration items."), Qt::darkMagenta); Format functionFormat; 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); Format declarationFormat; declarationFormat.setBold(true); formatDescr.emplace_back(C_DECLARATION, - tr("Declaration"), - tr("Style adjustments to declarations."), + Tr::tr("Declaration"), + Tr::tr("Style adjustments to declarations."), declarationFormat, FormatDescription::ShowAllControls); formatDescr.emplace_back(C_FUNCTION_DEFINITION, - tr("Function Definition"), - tr("Name of function at its definition."), + Tr::tr("Function Definition"), + Tr::tr("Name of function at its definition."), FormatDescription::ShowAllControls); Format virtualFunctionFormat(functionFormat); virtualFunctionFormat.setItalic(true); - formatDescr.emplace_back(C_VIRTUAL_METHOD, tr("Virtual Function"), - tr("Name of function declared as virtual."), + formatDescr.emplace_back(C_VIRTUAL_METHOD, Tr::tr("Virtual Function"), + Tr::tr("Name of function declared as virtual."), virtualFunctionFormat); - formatDescr.emplace_back(C_BINDING, tr("QML Binding"), - tr("QML item property, that allows a " - "binding to another property."), + formatDescr.emplace_back(C_BINDING, Tr::tr("QML Binding"), + Tr::tr("QML item property, that allows a " + "binding to another property."), Qt::darkRed); Format qmlLocalNameFormat; qmlLocalNameFormat.setItalic(true); - formatDescr.emplace_back(C_QML_LOCAL_ID, tr("QML Local Id"), - tr("QML item id within a QML file."), qmlLocalNameFormat); + formatDescr.emplace_back(C_QML_LOCAL_ID, Tr::tr("QML Local Id"), + Tr::tr("QML item id within a QML file."), qmlLocalNameFormat); formatDescr.emplace_back(C_QML_ROOT_OBJECT_PROPERTY, - tr("QML Root Object Property"), - tr("QML property of a parent item."), qmlLocalNameFormat); + Tr::tr("QML Root Object Property"), + Tr::tr("QML property of a parent item."), qmlLocalNameFormat); formatDescr.emplace_back(C_QML_SCOPE_OBJECT_PROPERTY, - tr("QML Scope Object Property"), - tr("Property of the same QML item."), qmlLocalNameFormat); - formatDescr.emplace_back(C_QML_STATE_NAME, tr("QML State Name"), - tr("Name of a QML state."), qmlLocalNameFormat); + Tr::tr("QML Scope Object Property"), + Tr::tr("Property of the same QML item."), qmlLocalNameFormat); + formatDescr.emplace_back(C_QML_STATE_NAME, Tr::tr("QML State Name"), + Tr::tr("Name of a QML state."), qmlLocalNameFormat); - formatDescr.emplace_back(C_QML_TYPE_ID, tr("QML Type Name"), - tr("Name of a QML type."), Qt::darkMagenta); + formatDescr.emplace_back(C_QML_TYPE_ID, Tr::tr("QML Type Name"), + Tr::tr("Name of a QML type."), Qt::darkMagenta); Format qmlExternalNameFormat = qmlLocalNameFormat; qmlExternalNameFormat.setForeground(Qt::darkBlue); - formatDescr.emplace_back(C_QML_EXTERNAL_ID, tr("QML External Id"), - tr("QML id defined in another QML file."), + formatDescr.emplace_back(C_QML_EXTERNAL_ID, Tr::tr("QML External Id"), + Tr::tr("QML id defined in another QML file."), qmlExternalNameFormat); formatDescr.emplace_back(C_QML_EXTERNAL_OBJECT_PROPERTY, - tr("QML External Object Property"), - tr("QML property defined in another QML file."), + Tr::tr("QML External Object Property"), + Tr::tr("QML property defined in another QML file."), qmlExternalNameFormat); Format jsLocalFormat; jsLocalFormat.setForeground(QColor(41, 133, 199)); // very light blue jsLocalFormat.setItalic(true); - formatDescr.emplace_back(C_JS_SCOPE_VAR, tr("JavaScript Scope Var"), - tr("Variables defined inside the JavaScript file."), + formatDescr.emplace_back(C_JS_SCOPE_VAR, Tr::tr("JavaScript Scope Var"), + Tr::tr("Variables defined inside the JavaScript file."), jsLocalFormat); Format jsGlobalFormat; jsGlobalFormat.setForeground(QColor(0, 85, 175)); // light blue jsGlobalFormat.setItalic(true); - formatDescr.emplace_back(C_JS_IMPORT_VAR, tr("JavaScript Import"), - tr("Name of a JavaScript import inside a QML file."), + formatDescr.emplace_back(C_JS_IMPORT_VAR, Tr::tr("JavaScript Import"), + Tr::tr("Name of a JavaScript import inside a QML file."), jsGlobalFormat); - formatDescr.emplace_back(C_JS_GLOBAL_VAR, tr("JavaScript Global Variable"), - tr("Variables defined outside the script."), + formatDescr.emplace_back(C_JS_GLOBAL_VAR, Tr::tr("JavaScript Global Variable"), + Tr::tr("Variables defined outside the script."), jsGlobalFormat); - formatDescr.emplace_back(C_KEYWORD, tr("Keyword"), - tr("Reserved keywords of the programming language except " + formatDescr.emplace_back(C_KEYWORD, Tr::tr("Keyword"), + Tr::tr("Reserved keywords of the programming language except " "keywords denoting primitive types."), Qt::darkYellow); - formatDescr.emplace_back(C_PUNCTUATION, tr("Punctuation"), - tr("Punctuation excluding operators.")); - formatDescr.emplace_back(C_OPERATOR, tr("Operator"), - tr("Non user-defined language operators.\n" - "To style user-defined operators, use Overloaded Operator."), + formatDescr.emplace_back(C_PUNCTUATION, Tr::tr("Punctuation"), + Tr::tr("Punctuation excluding operators.")); + formatDescr.emplace_back(C_OPERATOR, Tr::tr("Operator"), + Tr::tr("Non user-defined language operators.\n" + "To style user-defined operators, use Overloaded Operator."), FormatDescription::ShowAllControls); formatDescr.emplace_back(C_OVERLOADED_OPERATOR, - tr("Overloaded Operators"), - tr("Calls and declarations of overloaded (user-defined) operators."), + Tr::tr("Overloaded Operators"), + Tr::tr("Calls and declarations of overloaded (user-defined) operators."), functionFormat, FormatDescription::ShowAllControls); - formatDescr.emplace_back(C_PREPROCESSOR, tr("Preprocessor"), - tr("Preprocessor directives."), Qt::darkBlue); - formatDescr.emplace_back(C_MACRO, tr("Macro"), - tr("Macros."), functionFormat); - formatDescr.emplace_back(C_LABEL, tr("Label"), tr("Labels for goto statements."), + formatDescr.emplace_back(C_PREPROCESSOR, Tr::tr("Preprocessor"), + Tr::tr("Preprocessor directives."), Qt::darkBlue); + formatDescr.emplace_back(C_MACRO, Tr::tr("Macro"), + Tr::tr("Macros."), functionFormat); + formatDescr.emplace_back(C_LABEL, Tr::tr("Label"), Tr::tr("Labels for goto statements."), Qt::darkRed); - formatDescr.emplace_back(C_COMMENT, tr("Comment"), - tr("All style of comments except Doxygen comments."), + formatDescr.emplace_back(C_COMMENT, Tr::tr("Comment"), + Tr::tr("All style of comments except Doxygen comments."), Qt::darkGreen); - formatDescr.emplace_back(C_DOXYGEN_COMMENT, tr("Doxygen Comment"), - tr("Doxygen comments."), Qt::darkBlue); - formatDescr.emplace_back(C_DOXYGEN_TAG, tr("Doxygen Tag"), tr("Doxygen tags."), + formatDescr.emplace_back(C_DOXYGEN_COMMENT, Tr::tr("Doxygen Comment"), + Tr::tr("Doxygen comments."), Qt::darkBlue); + formatDescr.emplace_back(C_DOXYGEN_TAG, Tr::tr("Doxygen Tag"), Tr::tr("Doxygen tags."), Qt::blue); - formatDescr.emplace_back(C_VISUAL_WHITESPACE, tr("Visual Whitespace"), - tr("Whitespace.\nWill not be applied to whitespace " - "in comments and strings."), Qt::lightGray); - formatDescr.emplace_back(C_DISABLED_CODE, tr("Disabled Code"), - tr("Code disabled by preprocessor directives.")); + formatDescr.emplace_back(C_VISUAL_WHITESPACE, Tr::tr("Visual Whitespace"), + Tr::tr("Whitespace.\nWill not be applied to whitespace " + "in comments and strings."), Qt::lightGray); + formatDescr.emplace_back(C_DISABLED_CODE, Tr::tr("Disabled Code"), + Tr::tr("Code disabled by preprocessor directives.")); // Diff categories - formatDescr.emplace_back(C_ADDED_LINE, tr("Added Line"), - tr("Applied to added lines in differences (in diff editor)."), + formatDescr.emplace_back(C_ADDED_LINE, Tr::tr("Added Line"), + Tr::tr("Applied to added lines in differences (in diff editor)."), QColor(0, 170, 0)); - formatDescr.emplace_back(C_REMOVED_LINE, tr("Removed Line"), - tr("Applied to removed lines in differences (in diff editor)."), + formatDescr.emplace_back(C_REMOVED_LINE, Tr::tr("Removed Line"), + Tr::tr("Applied to removed lines in differences (in diff editor)."), Qt::red); - formatDescr.emplace_back(C_DIFF_FILE, tr("Diff File"), - tr("Compared files (in diff editor)."), Qt::darkBlue); - formatDescr.emplace_back(C_DIFF_LOCATION, tr("Diff Location"), - tr("Location in the files where the difference is " - "(in diff editor)."), Qt::blue); + formatDescr.emplace_back(C_DIFF_FILE, Tr::tr("Diff File"), + Tr::tr("Compared files (in diff editor)."), Qt::darkBlue); + formatDescr.emplace_back(C_DIFF_LOCATION, Tr::tr("Diff Location"), + Tr::tr("Location in the files where the difference is " + "(in diff editor)."), Qt::blue); // New diff categories - formatDescr.emplace_back(C_DIFF_FILE_LINE, tr("Diff File Line"), - tr("Applied to lines with file information " - "in differences (in side-by-side diff editor)."), + formatDescr.emplace_back(C_DIFF_FILE_LINE, Tr::tr("Diff File Line"), + Tr::tr("Applied to lines with file information " + "in differences (in side-by-side diff editor)."), Format(QColor(), QColor(255, 255, 0))); - formatDescr.emplace_back(C_DIFF_CONTEXT_LINE, tr("Diff Context Line"), - tr("Applied to lines describing hidden context " - "in differences (in side-by-side diff editor)."), + formatDescr.emplace_back(C_DIFF_CONTEXT_LINE, Tr::tr("Diff Context Line"), + Tr::tr("Applied to lines describing hidden context " + "in differences (in side-by-side diff editor)."), Format(QColor(), QColor(175, 215, 231))); - formatDescr.emplace_back(C_DIFF_SOURCE_LINE, tr("Diff Source Line"), - tr("Applied to source lines with changes " - "in differences (in side-by-side diff editor)."), + formatDescr.emplace_back(C_DIFF_SOURCE_LINE, Tr::tr("Diff Source Line"), + Tr::tr("Applied to source lines with changes " + "in differences (in side-by-side diff editor)."), Format(QColor(), QColor(255, 223, 223))); - formatDescr.emplace_back(C_DIFF_SOURCE_CHAR, tr("Diff Source Character"), - tr("Applied to removed characters " - "in differences (in side-by-side diff editor)."), + formatDescr.emplace_back(C_DIFF_SOURCE_CHAR, Tr::tr("Diff Source Character"), + Tr::tr("Applied to removed characters " + "in differences (in side-by-side diff editor)."), Format(QColor(), QColor(255, 175, 175))); - formatDescr.emplace_back(C_DIFF_DEST_LINE, tr("Diff Destination Line"), - tr("Applied to destination lines with changes " - "in differences (in side-by-side diff editor)."), + formatDescr.emplace_back(C_DIFF_DEST_LINE, Tr::tr("Diff Destination Line"), + Tr::tr("Applied to destination lines with changes " + "in differences (in side-by-side diff editor)."), Format(QColor(), QColor(223, 255, 223))); - formatDescr.emplace_back(C_DIFF_DEST_CHAR, tr("Diff Destination Character"), - tr("Applied to added characters " - "in differences (in side-by-side diff editor)."), + formatDescr.emplace_back(C_DIFF_DEST_CHAR, Tr::tr("Diff Destination Character"), + Tr::tr("Applied to added characters " + "in differences (in side-by-side diff editor)."), Format(QColor(), QColor(175, 255, 175))); - formatDescr.emplace_back(C_LOG_CHANGE_LINE, tr("Log Change Line"), - tr("Applied to lines describing changes in VCS log."), + formatDescr.emplace_back(C_LOG_CHANGE_LINE, Tr::tr("Log Change Line"), + Tr::tr("Applied to lines describing changes in VCS log."), Format(QColor(192, 0, 0), QColor())); - formatDescr.emplace_back(C_LOG_AUTHOR_NAME, tr("Log Author Name"), - tr("Applied to author names in VCS log."), + formatDescr.emplace_back(C_LOG_AUTHOR_NAME, Tr::tr("Log Author Name"), + Tr::tr("Applied to author names in VCS log."), Format(QColor(0x007af4), QColor())); - formatDescr.emplace_back(C_LOG_COMMIT_DATE, tr("Log Commit Date"), - tr("Applied to commit dates in VCS log."), + formatDescr.emplace_back(C_LOG_COMMIT_DATE, Tr::tr("Log Commit Date"), + Tr::tr("Applied to commit dates in VCS log."), Format(QColor(0x006600), QColor())); - formatDescr.emplace_back(C_LOG_COMMIT_HASH, tr("Log Commit Hash"), - tr("Applied to commit hashes in VCS log."), + formatDescr.emplace_back(C_LOG_COMMIT_HASH, Tr::tr("Log Commit Hash"), + Tr::tr("Applied to commit hashes in VCS log."), Format(QColor(0xff0000), QColor())); - formatDescr.emplace_back(C_LOG_DECORATION, tr("Log Decoration"), - tr("Applied to commit decorations in VCS log."), + formatDescr.emplace_back(C_LOG_DECORATION, Tr::tr("Log Decoration"), + Tr::tr("Applied to commit decorations in VCS log."), Format(QColor(0xff00ff), QColor())); - formatDescr.emplace_back(C_LOG_COMMIT_SUBJECT, tr("Log Commit Subject"), - tr("Applied to commit subjects in VCS log."), + formatDescr.emplace_back(C_LOG_COMMIT_SUBJECT, Tr::tr("Log Commit Subject"), + Tr::tr("Applied to commit subjects in VCS log."), Format{QColor{}, QColor{}}); // Mixin categories formatDescr.emplace_back(C_ERROR, - tr("Error"), - tr("Underline color of error diagnostics."), + Tr::tr("Error"), + Tr::tr("Underline color of error diagnostics."), QColor(255,0, 0), QTextCharFormat::SingleUnderline, FormatDescription::ShowAllControls); formatDescr.emplace_back(C_ERROR_CONTEXT, - tr("Error Context"), - tr("Underline color of the contexts of error diagnostics."), + Tr::tr("Error Context"), + Tr::tr("Underline color of the contexts of error diagnostics."), QColor(255,0, 0), QTextCharFormat::DotLine, FormatDescription::ShowAllControls); formatDescr.emplace_back(C_WARNING, - tr("Warning"), - tr("Underline color of warning diagnostics."), + Tr::tr("Warning"), + Tr::tr("Underline color of warning diagnostics."), QColor(255, 190, 0), QTextCharFormat::SingleUnderline, FormatDescription::ShowAllControls); formatDescr.emplace_back(C_WARNING_CONTEXT, - tr("Warning Context"), - tr("Underline color of the contexts of warning diagnostics."), + Tr::tr("Warning Context"), + Tr::tr("Underline color of the contexts of warning diagnostics."), QColor(255, 190, 0), QTextCharFormat::DotLine, FormatDescription::ShowAllControls); Format outputArgumentFormat; outputArgumentFormat.setItalic(true); formatDescr.emplace_back(C_OUTPUT_ARGUMENT, - tr("Output Argument"), - tr("Writable arguments of a function call."), + Tr::tr("Output Argument"), + Tr::tr("Writable arguments of a function call."), outputArgumentFormat, FormatDescription::ShowAllControls); formatDescr.emplace_back(C_STATIC_MEMBER, - tr("Static Member"), - tr("Names of static fields or member functions."), + Tr::tr("Static Member"), + Tr::tr("Names of static fields or member functions."), FormatDescription::ShowAllControls); const auto cocoControls = FormatDescription::ShowControls( FormatDescription::ShowAllAbsoluteControls | FormatDescription::ShowRelativeControls); formatDescr.emplace_back(C_COCO_CODE_ADDED, - tr("Code Coverage Added Code"), - tr("New code that was not checked for tests."), + Tr::tr("Code Coverage Added Code"), + Tr::tr("New code that was not checked for tests."), cocoControls); formatDescr.emplace_back(C_COCO_PARTIALLY_COVERED, - tr("Partially Covered Code"), - tr("Partial branch/condition coverage."), + Tr::tr("Partially Covered Code"), + Tr::tr("Partial branch/condition coverage."), Qt::darkYellow, cocoControls); formatDescr.emplace_back(C_COCO_NOT_COVERED, - tr("Uncovered Code"), - tr("Not covered at all."), + Tr::tr("Uncovered Code"), + Tr::tr("Not covered at all."), Qt::red, cocoControls); formatDescr.emplace_back(C_COCO_FULLY_COVERED, - tr("Fully Covered Code"), - tr("Fully covered code."), + Tr::tr("Fully Covered Code"), + Tr::tr("Fully covered code."), Qt::green, cocoControls); formatDescr.emplace_back(C_COCO_MANUALLY_VALIDATED, - tr("Manually Validated Code"), - tr("User added validation."), + Tr::tr("Manually Validated Code"), + Tr::tr("User added validation."), Qt::blue, cocoControls); formatDescr.emplace_back(C_COCO_DEAD_CODE, - tr("Code Coverage Dead Code"), - tr("Unreachable code."), + Tr::tr("Code Coverage Dead Code"), + Tr::tr("Unreachable code."), Qt::magenta, cocoControls); formatDescr.emplace_back(C_COCO_EXECUTION_COUNT_TOO_LOW, - tr("Code Coverage Execution Count Too Low"), - tr("Minimum count not reached."), + Tr::tr("Code Coverage Execution Count Too Low"), + Tr::tr("Minimum count not reached."), Qt::red, cocoControls); formatDescr.emplace_back(C_COCO_NOT_COVERED_INFO, - tr("Implicitly Not Covered Code"), - tr("PLACEHOLDER"), + Tr::tr("Implicitly Not Covered Code"), + Tr::tr("PLACEHOLDER"), Qt::red, cocoControls); formatDescr.emplace_back(C_COCO_COVERED_INFO, - tr("Implicitly Covered Code"), - tr("PLACEHOLDER"), + Tr::tr("Implicitly Covered Code"), + Tr::tr("PLACEHOLDER"), Qt::green, cocoControls); formatDescr.emplace_back(C_COCO_MANUALLY_VALIDATED_INFO, - tr("Implicit Manual Coverage Validation"), - tr("PLACEHOLDER"), + Tr::tr("Implicit Manual Coverage Validation"), + Tr::tr("PLACEHOLDER"), Qt::blue, cocoControls); diff --git a/src/plugins/texteditor/textmark.cpp b/src/plugins/texteditor/textmark.cpp index 5a8460f2d0c..cf391fa1060 100644 --- a/src/plugins/texteditor/textmark.cpp +++ b/src/plugins/texteditor/textmark.cpp @@ -299,7 +299,7 @@ void TextMark::addToToolTipLayout(QGridLayout *target) const if (m_settingsPage.isValid()) { auto settingsAction = new QAction; 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(), [id = m_settingsPage] { Core::ICore::showOptionsDialog(id); }, Qt::QueuedConnection); diff --git a/src/plugins/texteditor/textmark.h b/src/plugins/texteditor/textmark.h index 62bb51a1f2c..0a34139ec55 100644 --- a/src/plugins/texteditor/textmark.h +++ b/src/plugins/texteditor/textmark.h @@ -37,7 +37,6 @@ public: class TEXTEDITOR_EXPORT TextMark { - Q_DECLARE_TR_FUNCTIONS(TextEditor::TextMark) public: TextMark(const Utils::FilePath &fileName, int lineNumber,