diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2022-09-01 17:10:00 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2022-09-23 06:40:43 +0000 |
commit | 9e9c0630ee23a0bd980dfed177f70cb32116fa28 (patch) | |
tree | 7ba7891b4757a4326dbfbe9dd4f762333bff4418 | |
parent | 686bcb3ef59b3f4dbfe4ab054441f34ba9058a8b (diff) | |
download | qt-creator-9e9c0630ee23a0bd980dfed177f70cb32116fa28.tar.gz |
Welcome: Convert to using Tr::tr
Change-Id: Ibcef6dab32894d3032b44965bdcd92fa4f6f780a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
-rw-r--r-- | share/qtcreator/translations/qtcreator_cs.ts | 37 | ||||
-rw-r--r-- | share/qtcreator/translations/qtcreator_da.ts | 5 | ||||
-rw-r--r-- | share/qtcreator/translations/qtcreator_de.ts | 9 | ||||
-rw-r--r-- | share/qtcreator/translations/qtcreator_es.ts | 26 | ||||
-rw-r--r-- | share/qtcreator/translations/qtcreator_fr.ts | 151 | ||||
-rw-r--r-- | share/qtcreator/translations/qtcreator_hr.ts | 11 | ||||
-rw-r--r-- | share/qtcreator/translations/qtcreator_hu.ts | 23 | ||||
-rw-r--r-- | share/qtcreator/translations/qtcreator_it.ts | 26 | ||||
-rw-r--r-- | share/qtcreator/translations/qtcreator_ja.ts | 7 | ||||
-rw-r--r-- | share/qtcreator/translations/qtcreator_pl.ts | 4 | ||||
-rw-r--r-- | share/qtcreator/translations/qtcreator_ru.ts | 11 | ||||
-rw-r--r-- | share/qtcreator/translations/qtcreator_sl.ts | 38 | ||||
-rw-r--r-- | share/qtcreator/translations/qtcreator_uk.ts | 5 | ||||
-rw-r--r-- | share/qtcreator/translations/qtcreator_zh_CN.ts | 37 | ||||
-rw-r--r-- | share/qtcreator/translations/qtcreator_zh_TW.ts | 4 | ||||
-rw-r--r-- | src/plugins/welcome/introductionwidget.cpp | 97 | ||||
-rw-r--r-- | src/plugins/welcome/welcomeplugin.cpp | 23 |
17 files changed, 116 insertions, 398 deletions
diff --git a/share/qtcreator/translations/qtcreator_cs.ts b/share/qtcreator/translations/qtcreator_cs.ts index c985a98427..fb15976536 100644 --- a/share/qtcreator/translations/qtcreator_cs.ts +++ b/share/qtcreator/translations/qtcreator_cs.ts @@ -17736,7 +17736,7 @@ Toho se dosáhne vložením této zkratky v zadávacím poli vyhledávače, nás </message> </context> <context> - <name>ProjectWelcomePage</name> + <name>Welcome</name> <message> <source>Form</source> <translation type="obsolete">Formulář</translation> @@ -17913,11 +17913,7 @@ Toho se dosáhne vložením této zkratky v zadávacím poli vyhledávače, nás </message> </context> <context> - <name>QmakeProjectManager::Internal::GettingStartedWelcomePageWidget</name> - <message> - <source>Form</source> - <translation type="obsolete">Formulář</translation> - </message> + <name>Welcome</name> <message> <source>Examples not installed</source> <translation type="obsolete">Příklady nenainstalovány</translation> @@ -18256,11 +18252,7 @@ Toho se dosáhne vložením této zkratky v zadávacím poli vyhledávače, nás </message> </context> <context> - <name>Welcome::Internal::CommunityWelcomePageWidget</name> - <message> - <source>Form</source> - <translation type="obsolete">Formulář</translation> - </message> + <name>Welcome</name> <message> <source>News From the Qt Labs</source> <translation type="obsolete">Novinky z laboratoří Qt</translation> @@ -18338,9 +18330,6 @@ Toho se dosáhne vložením této zkratky v zadávacím poli vyhledávače, nás <source>Qt Links</source> <translation type="obsolete">Odkazy na Qt</translation> </message> -</context> -<context> - <name>Welcome::WelcomeMode</name> <message> <source>#gradientWidget { background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(247, 247, 247, 255), stop:1 rgba(215, 215, 215, 255)); @@ -18369,10 +18358,6 @@ Toho se dosáhne vložením této zkratky v zadávacím poli vyhledávače, nás <source>Feedback</source> <translation type="obsolete">Zpětná vazba</translation> </message> - <message> - <source>Welcome</source> - <translation type="obsolete">Vítejte</translation> - </message> </context> <context> <name>Utils::ClassNameValidatingLineEdit</name> @@ -20499,7 +20484,7 @@ Důvod: %2</translation> </message> </context> <context> - <name>QmakeProjectManager::Internal::GettingStartedWelcomePage</name> + <name>Welcome</name> <message> <source>Getting Started</source> <translation type="obsolete">Rychlý nástup</translation> @@ -21262,7 +21247,7 @@ S60 emulator run configuration default display name, %1 is base pro-File name</e </message> </context> <context> - <name>Welcome::Internal::CommunityWelcomePage</name> + <name>Welcome</name> <message> <source>Community</source> <translation type="obsolete">Společenství</translation> @@ -36437,7 +36422,7 @@ když bude zavolán mimo git bash.</translation> </message> </context> <context> - <name>ProjectWelcomePageWidget</name> + <name>Welcome</name> <message> <source>%1 (last session)</source> <translation type="obsolete">%1 (poslední sezení)</translation> @@ -36446,10 +36431,6 @@ když bude zavolán mimo git bash.</translation> <source>%1 (current session)</source> <translation type="obsolete">%1 (nynější sezení)</translation> </message> - <message> - <source>New Project</source> - <translation type="obsolete">Nový projekt</translation> - </message> </context> <context> <name>ProjectExplorer::RunControl</name> @@ -42213,7 +42194,7 @@ Prověřte, prosím, oprávnění pro přístup k adresáři.</translation> </message> </context> <context> - <name>Welcome::Internal::WelcomeMode</name> + <name>Welcome</name> <message> <source>Welcome</source> <translation>Vítejte</translation> @@ -42222,10 +42203,6 @@ Prověřte, prosím, oprávnění pro přístup k adresáři.</translation> <source>Welcome Mode Load Error</source> <translation>Chyba při nahrávání vítacího režimu</translation> </message> - <message> - <source>New Project</source> - <translation type="obsolete">Nový projekt</translation> - </message> </context> <context> <name>Coda::Session</name> diff --git a/share/qtcreator/translations/qtcreator_da.ts b/share/qtcreator/translations/qtcreator_da.ts index f1c00ef3fe..56dd6858f1 100644 --- a/share/qtcreator/translations/qtcreator_da.ts +++ b/share/qtcreator/translations/qtcreator_da.ts @@ -42083,7 +42083,7 @@ skal være et repository krævet SSH-autentifikation (se dokumentation på SSH o </message> </context> <context> - <name>Welcome::Internal::SideBar</name> + <name>Welcome</name> <message> <source>New to Qt?</source> <translation>Ny til Qt?</translation> @@ -42112,9 +42112,6 @@ skal være et repository krævet SSH-autentifikation (se dokumentation på SSH o <source>User Guide</source> <translation>Brugervejledning</translation> </message> -</context> -<context> - <name>Welcome::Internal::WelcomeMode</name> <message> <source>Welcome</source> <translation>Velkomst</translation> diff --git a/share/qtcreator/translations/qtcreator_de.ts b/share/qtcreator/translations/qtcreator_de.ts index f27e640b06..e8120cca65 100644 --- a/share/qtcreator/translations/qtcreator_de.ts +++ b/share/qtcreator/translations/qtcreator_de.ts @@ -15828,7 +15828,7 @@ Wird ein Problem gefunden, dann wird die Anwendung angehalten und kann untersuch </message> </context> <context> - <name>Welcome::Internal::WelcomeMode</name> + <name>Welcome</name> <message> <source>Welcome</source> <translation>Willkommen</translation> @@ -40061,7 +40061,7 @@ Außer Leerzeichen innerhalb von Kommentaren und Zeichenketten.</translation> </message> </context> <context> - <name>Welcome::Internal::SideBar</name> + <name>Welcome</name> <message> <source>New to Qt?</source> <translation>Neu bei Qt?</translation> @@ -43913,7 +43913,7 @@ Wenn Sie noch keinen privaten Schlüssel besitzen, können Sie hier auch einen e </message> </context> <context> - <name>Welcome::Internal::IntroductionWidget</name> + <name>Welcome</name> <message> <source>Would you like to take a quick UI tour? This tour highlights important user interface elements and shows how they are used. To take the tour later, select Help > UI Tour.</source> <translation>Wollen Sie sich kurz die Oberfläche vorführen lassen? Dabei wird gezeigt, wo die wichtigsten Bedienelemente sind und wie man sie benutzt. Sie können die Vorführung auch später über "Hilfe" > "Oberfläche vorführen" starten.</translation> @@ -44014,9 +44014,6 @@ Wenn Sie noch keinen privaten Schlüssel besitzen, können Sie hier auch einen e <source>UI Introduction %1/%2 ></source> <translation>Vorführung der Oberfläche %1/%2 ></translation> </message> -</context> -<context> - <name>Welcome::Internal::WelcomePlugin</name> <message> <source>UI Tour</source> <translation>Oberfläche vorführen</translation> diff --git a/share/qtcreator/translations/qtcreator_es.ts b/share/qtcreator/translations/qtcreator_es.ts index bfe0e450e4..cbae647b21 100644 --- a/share/qtcreator/translations/qtcreator_es.ts +++ b/share/qtcreator/translations/qtcreator_es.ts @@ -1664,7 +1664,7 @@ Would you like to overwrite them?</source> </message> </context> <context> - <name>Core::Internal::WelcomeMode</name> + <name>Welcome</name> <message> <source>Projects</source> <translation type="obsolete">Proyectos</translation> @@ -1827,9 +1827,6 @@ Would you like to overwrite them?</source> <source>If you add <a href="qthelp://org.qt-project.qtcreator/doc/creator-external-library-handling.html">external libraries</a>, Qt Creator will automatically offer syntax highlighting and code completion.</source> <translation type="obsolete">Si agrega <a href="qthelp://org.qt-project.qtcreator/doc/creator-external-library-handling.html">librerías externas</a>, Qt Creator le ofrecerá automáticamente realce de sintaxis y autocompletado de código.</translation> </message> -</context> -<context> - <name>Core::Internal::WelcomePage</name> <message> <source><qt>Restore Last Session &gt;&gt;</source> <translation type="obsolete"><qt>Restaurar última sesión &gt;&gt;</translation> @@ -11797,7 +11794,7 @@ p, li { white-space: pre-wrap; } </message> </context> <context> - <name>ProjectWelcomePage</name> + <name>Welcome</name> <message> <source>Form</source> <translation type="unfinished">Formulario</translation> @@ -12003,11 +12000,7 @@ p, li { white-space: pre-wrap; } </message> </context> <context> - <name>QmakeProjectManager::Internal::GettingStartedWelcomePageWidget</name> - <message> - <source>Form</source> - <translation type="unfinished">Formulario</translation> - </message> + <name>Welcome</name> <message> <location/> <source>Examples not installed</source> @@ -12217,11 +12210,7 @@ p, li { white-space: pre-wrap; } </message> </context> <context> - <name>Welcome::Internal::CommunityWelcomePageWidget</name> - <message> - <source>Form</source> - <translation type="unfinished">Formulario</translation> - </message> + <name>Welcome</name> <message> <source>News From the Qt Labs</source> <translation type="unfinished">Novedades desde los laboratorios de Qt</translation> @@ -12255,9 +12244,6 @@ p, li { white-space: pre-wrap; } <source>Qt for S60 at Forum Nokia</source> <translation type="unfinished"></translation> </message> -</context> -<context> - <name>Welcome::WelcomeMode</name> <message> <source>#gradientWidget { background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(247, 247, 247, 255), stop:1 rgba(215, 215, 215, 255)); @@ -13255,7 +13241,7 @@ Reason: %2</source> </message> </context> <context> - <name>QmakeProjectManager::Internal::GettingStartedWelcomePage</name> + <name>Welcome</name> <message> <source>Getting Started</source> <translation type="unfinished">Comenzar con Qt</translation> @@ -13627,7 +13613,7 @@ Check if the phone is connected and the TRK application is running.</source> </message> </context> <context> - <name>Welcome::Internal::CommunityWelcomePage</name> + <name>Welcome</name> <message> <source>Community</source> <translation type="unfinished">Comunidad</translation> diff --git a/share/qtcreator/translations/qtcreator_fr.ts b/share/qtcreator/translations/qtcreator_fr.ts index afa30885ad..5902df0188 100644 --- a/share/qtcreator/translations/qtcreator_fr.ts +++ b/share/qtcreator/translations/qtcreator_fr.ts @@ -2331,7 +2331,7 @@ Voulez vous les écraser ?</translation> </message> </context> <context> - <name>Core::Internal::WelcomeMode</name> + <name>Welcome</name> <message> <source>Open Recent Project</source> <translation type="obsolete">Ouvrir un projet récent</translation> @@ -2353,10 +2353,6 @@ Voulez vous les écraser ?</translation> <translation type="obsolete">Le saviez-vous ?</translation> </message> <message> - <source>News From the Qt Labs</source> - <translation type="obsolete">Actualité de Qt Labs</translation> - </message> - <message> <source>Qt Websites</source> <translation type="obsolete">Sites web Qt</translation> </message> @@ -2430,9 +2426,6 @@ Voulez vous les écraser ?</translation> <source>The code completion is CamelCase-aware. For example, to complete <tt>namespaceUri</tt> you can just type <tt>nU</tt> and hit <tt>Ctrl+Space</tt>.</source> <translation type="obsolete">L'auto-complétion du code.est compatible avec CamelCase. Par exemple, pour compléter <tt>namespaceUri</tt> vous pouvez taper simplement <tt>nU</tt> puis <tt>Ctrl+Espace</tt>.</translation> </message> -</context> -<context> - <name>Core::Internal::WelcomePage</name> <message> <source>Getting Started</source> <translation type="obsolete">Commencer</translation> @@ -18899,7 +18892,7 @@ p, li { white-space: pre-wrap; } </message> </context> <context> - <name>ProjectWelcomePage</name> + <name>Welcome</name> <message> <source>Form</source> <translation type="obsolete">Formulaire</translation> @@ -19075,51 +19068,7 @@ p, li { white-space: pre-wrap; } </message> </context> <context> - <name>QmakeProjectManager::Internal::GettingStartedWelcomePageWidget</name> - <message> - <source>Form</source> - <translation type="obsolete">Formulaire</translation> - </message> - <message> - <source>Examples not installed</source> - <translation type="obsolete">Exemples non trouvés</translation> - </message> - <message> - <source>Open</source> - <translation type="obsolete">Ouvrir</translation> - </message> - <message> - <source>Tutorials</source> - <translation type="obsolete">Tutoriels</translation> - </message> - <message> - <source>Explore Qt Examples</source> - <translation type="obsolete">Explorer les exemples Qt</translation> - </message> - <message> - <source>Did You Know?</source> - <translation type="obsolete">Le saviez-vous ?</translation> - </message> - <message> - <source><b>Qt Creator - A quick tour</b></source> - <translation type="obsolete"><b>Qt Creator - Aperçu rapide</b></translation> - </message> - <message> - <source>Creating an address book</source> - <translation type="obsolete">Créer un carnet d'adresses</translation> - </message> - <message> - <source>Understanding widgets</source> - <translation type="obsolete">Comprendre les widgets</translation> - </message> - <message> - <source>Building with qmake</source> - <translation type="obsolete">Compiler grâce à qmake</translation> - </message> - <message> - <source>Writing test cases</source> - <translation type="obsolete">Écrire des tests</translation> - </message> + <name>Welcome</name> <message> <source>The Qt Creator User Interface</source> <translation type="obsolete">L'interface utilisateur de Qt Creator</translation> @@ -19141,10 +19090,6 @@ p, li { white-space: pre-wrap; } <translation type="obsolete">Créer une application Qt Quick</translation> </message> <message> - <source>Choose an example...</source> - <translation type="obsolete">Choisir un exemple...</translation> - </message> - <message> <source>Choose an Example...</source> <translation type="obsolete">Choisir un exemple...</translation> </message> @@ -19229,26 +19174,6 @@ p, li { white-space: pre-wrap; } <translation type="obsolete">Dans une session, vous pouvez ajouter des <a href="qthelp://com.nokia.qtcreator/doc/creator-project-pane.html#dependencies">dépendances</a> entre des projets.</translation> </message> <message> - <source>You can switch between Qt Creator's modes using <tt>Ctrl+number</tt>:<ul><li>1 - Welcome</li><li>2 - Edit</li><li>3 - Debug</li><li>4 - Projects</li><li>5 - Help</li><li></li><li>6 - Output</li></ul></source> - <translation type="obsolete">Vous pouvez basculer entre les modes de Qt Creator en utilisant <tt>Ctrl+number</tt>:<ul><li>1 - Accueil</li><li>2 - Éditeur</li><li>3 - Débogueur</li><li>4 - Projets</li><li>5 - Aide</li><li></li><li>6 - Output</li></ul></translation> - </message> - <message> - <source>You can show and hide the side bar using <tt>%1+0<tt>.</source> - <translation type="obsolete">Vous pouvez afficher et masquer la barre latérale en utilisant <tt>%1+0<tt>.</translation> - </message> - <message> - <source>You can fine tune the <tt>Find</tt> function by selecting &quot;Whole Words&quot; or &quot;Case Sensitive&quot;. Simply click on the icons on the right end of the line edit.</source> - <translation type="obsolete">Vous pouvez affiner les résultats de la fonction recherche en sélectionnant &quot;Mots complets&quot; ou &quot;Sensible à la casse&quot;. Cliquez simplement sur les icônes sur le bord droit du champ de recherche.</translation> - </message> - <message> - <source>If you add <a href="qthelp://com.nokia.qtcreator/doc/creator-external-library-handling.html">external libraries</a>, Qt Creator will automatically offer syntax highlighting and code completion.</source> - <translation type="obsolete">Si vous ajoutez <a href="qthelp://com.nokia.qtcreator/doc/creator-external-library-handling.html">des bibliothèques externes</a>, Qt Creator proposera automatiquement la coloration syntaxique et l'auto-complétion du code.</translation> - </message> - <message> - <source>The code completion is CamelCase-aware. For example, to complete <tt>namespaceUri</tt> you can just type <tt>nU</tt> and hit <tt>Ctrl+Space</tt>.</source> - <translation type="obsolete">L'auto-complétion du code.est compatible avec CamelCase. Par exemple, pour compléter <tt>namespaceUri</tt> vous pouvez taper simplement <tt>nU</tt> puis <tt>Ctrl+Espace</tt>.</translation> - </message> - <message> <source>You can force code completion at any time using <tt>Ctrl+Space</tt>.</source> <translation type="obsolete">Vous pouvez forcer la complétion de code en utilisant <tt>Ctrl+Space</tt>.</translation> </message> @@ -19438,20 +19363,12 @@ p, li { white-space: pre-wrap; } </message> </context> <context> - <name>Welcome::Internal::CommunityWelcomePageWidget</name> - <message> - <source>Form</source> - <translation type="obsolete">Formulaire</translation> - </message> + <name>Welcome</name> <message> <source>News From the Qt Labs</source> <translation type="obsolete">Actualités de Qt Labs</translation> </message> <message> - <source>Qt Websites</source> - <translation type="obsolete">Sites web Qt</translation> - </message> - <message> <source><b>Forum Nokia</b><br /><font color='gray'>Mobile Application Support</font></source> <translation type="obsolete"><b>Forum Nokia</b><br /><font color='gray'>Support pour application mobile</font></translation> </message> @@ -19489,18 +19406,10 @@ p, li { white-space: pre-wrap; } <translation type="obsolete">http://labs.trolltech.com/blogs/feed</translation> </message> <message> - <source>Qt Home</source> - <translation type="obsolete">Qt Home</translation> - </message> - <message> <source>Qt Labs</source> <translation type="obsolete">Qt Labs</translation> </message> <message> - <source>Qt Git Hosting</source> - <translation type="obsolete">Dépôts Git Qt</translation> - </message> - <message> <source>Qt Centre</source> <translation type="obsolete">Qt Centre</translation> </message> @@ -19513,10 +19422,6 @@ p, li { white-space: pre-wrap; } <translation type="obsolete">Qt pour Symbian</translation> </message> <message> - <source>Qt for S60 at Forum Nokia</source> - <translation type="obsolete">Qt pour S60</translation> - </message> - <message> <source>Qt Support Sites</source> <translation type="obsolete">Sites du support Qt</translation> </message> @@ -19524,9 +19429,6 @@ p, li { white-space: pre-wrap; } <source>Qt Links</source> <translation type="obsolete">Liens Qt</translation> </message> -</context> -<context> - <name>Welcome::WelcomeMode</name> <message> <source>#gradientWidget { background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(247, 247, 247, 255), stop:1 rgba(215, 215, 215, 255)); @@ -19546,18 +19448,6 @@ p, li { white-space: pre-wrap; } border-width: 0; }</translation> </message> - <message> - <source>Help us make Qt Creator even better</source> - <translation type="obsolete">Aidez-nous à améliorer Qt Creator</translation> - </message> - <message> - <source>Feedback</source> - <translation type="obsolete">Votre avis nous interesse</translation> - </message> - <message> - <source>Welcome</source> - <translation type="obsolete">Accueil</translation> - </message> </context> <context> <name>Utils::DetailsButton</name> @@ -20825,11 +20715,7 @@ Raison : %2</translation> </message> </context> <context> - <name>QmakeProjectManager::Internal::GettingStartedWelcomePage</name> - <message> - <source>Getting Started</source> - <translation type="obsolete">Commencer</translation> - </message> + <name>Welcome</name> </context> <context> <name>QmakeProjectManager::Internal::S60DeviceRunConfiguration</name> @@ -21443,11 +21329,7 @@ S60 emulator run configuration default display name, %1 is base pro-File name</e </message> </context> <context> - <name>Welcome::Internal::CommunityWelcomePage</name> - <message> - <source>Community</source> - <translation type="obsolete">Communauté</translation> - </message> + <name>Welcome</name> <message> <source>News && Support</source> <translation>Nouveauté && Support</translation> @@ -40367,19 +40249,11 @@ These files are preserved.</source> </message> </context> <context> - <name>ProjectWelcomePageWidget</name> - <message> - <source>%1 (last session)</source> - <translation type="obsolete">%1 (dernière session)</translation> - </message> + <name>Welcome</name> <message> <source>%1 (current session)</source> <translation type="obsolete">%1 (session courante)</translation> </message> - <message> - <source>New Project</source> - <translation type="obsolete">Nouveau projet</translation> - </message> </context> <context> <name>QmlDesigner::ComponentAction</name> @@ -42684,17 +42558,6 @@ Remote error output was: %1</source> </message> </context> <context> - <name>Welcome::Internal::WelcomeMode</name> - <message> - <source>Welcome</source> - <translation>Accueil</translation> - </message> - <message> - <source>New Project</source> - <translation type="obsolete">Nouveau projet</translation> - </message> -</context> -<context> <name>Coda::Session</name> <message> <source>CPU: v%1.%2%3%4</source> diff --git a/share/qtcreator/translations/qtcreator_hr.ts b/share/qtcreator/translations/qtcreator_hr.ts index c1fb51edd7..827dc97aaf 100644 --- a/share/qtcreator/translations/qtcreator_hr.ts +++ b/share/qtcreator/translations/qtcreator_hr.ts @@ -40916,7 +40916,7 @@ What do you want to do?</source> </message> </context> <context> - <name>Welcome::Internal::IntroductionWidget</name> + <name>Welcome</name> <message> <source>Take a UI Tour</source> <translation>Pregledaj vodič kroz grafičko sučelje</translation> @@ -41021,16 +41021,10 @@ What do you want to do?</source> <source>UI Introduction %1/%2 ></source> <translation>Uvod za grafičko sučelje %1/%2 ></translation> </message> -</context> -<context> - <name>Welcome::Internal::WelcomePlugin</name> <message> <source>UI Tour</source> <translation>Vodič kroz grafičko sučelje</translation> </message> -</context> -<context> - <name>Welcome::Internal::SideBar</name> <message> <source>New to Qt?</source> <translation>Još ne poznaš Qt?</translation> @@ -41059,9 +41053,6 @@ What do you want to do?</source> <source>User Guide</source> <translation>Korisnički vodič</translation> </message> -</context> -<context> - <name>Welcome::Internal::WelcomeMode</name> <message> <source>Welcome</source> <translation>Dobrodošla, dobrodošao</translation> diff --git a/share/qtcreator/translations/qtcreator_hu.ts b/share/qtcreator/translations/qtcreator_hu.ts index d578f3d5bc..ae7512670f 100644 --- a/share/qtcreator/translations/qtcreator_hu.ts +++ b/share/qtcreator/translations/qtcreator_hu.ts @@ -12617,7 +12617,7 @@ a verziókövetőhöz (%2)?</translation> </message> </context> <context> - <name>ProjectWelcomePage</name> + <name>Welcome</name> <message> <source>Form</source> <translation>Forma</translation> @@ -13954,18 +13954,11 @@ p, li { white-space: pre-wrap; } </message> </context> <context> - <name>QmakeProjectManager::Internal::GettingStartedWelcomePage</name> + <name>Welcome</name> <message> <source>Getting Started</source> <translation>Első lépések</translation> </message> -</context> -<context> - <name>QmakeProjectManager::Internal::GettingStartedWelcomePageWidget</name> - <message> - <source>Form</source> - <translation>Forma</translation> - </message> <message> <source>Examples not installed</source> <translation>A példák nincsenek telepítve</translation> @@ -18721,18 +18714,11 @@ p, li { white-space: pre-wrap; }(new line) </message> </context> <context> - <name>Welcome::Internal::CommunityWelcomePage</name> + <name>Welcome</name> <message> <source>Community</source> <translation>Közösség</translation> </message> -</context> -<context> - <name>Welcome::Internal::CommunityWelcomePageWidget</name> - <message> - <source>Form</source> - <translation>Forma</translation> - </message> <message> <source>News From the Qt Labs</source> <translation>Hírek a Qt Labs-tól</translation> @@ -18769,9 +18755,6 @@ p, li { white-space: pre-wrap; }(new line) <source>Qt for Symbian at Forum Nokia</source> <translation>Qt Symbianra a Nokia Fórumán</translation> </message> -</context> -<context> - <name>Welcome::WelcomeMode</name> <message> <source>#gradientWidget { background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(247, 247, 247, 255), stop:1 rgba(215, 215, 215, 255)); diff --git a/share/qtcreator/translations/qtcreator_it.ts b/share/qtcreator/translations/qtcreator_it.ts index fa137df776..a18a50ad19 100644 --- a/share/qtcreator/translations/qtcreator_it.ts +++ b/share/qtcreator/translations/qtcreator_it.ts @@ -1671,7 +1671,7 @@ Vuoi sovrascriverli?</translation> </message> </context> <context> - <name>Core::Internal::WelcomeMode</name> + <name>Welcome</name> <message> <source>http://labs.trolltech.com/blogs/feed</source> <extracomment>Add localized feed here only if one exists</extracomment> @@ -1827,9 +1827,6 @@ Vuoi sovrascriverli?</translation> <source>In the editor, <tt>F2</tt> toggles declaration and definition while <tt>F4</tt> toggles header file and source file.</source> <translation type="obsolete">Nell'editor, <tt>F2</tt> commuta tra la dichiarazione e la definizione mentre <tt>F4</tt> alterna tra il file header ed il file sorgente.</translation> </message> -</context> -<context> - <name>Core::Internal::WelcomePage</name> <message> <source>Help us make Qt Creator even better</source> <translation type="obsolete">Aiutaci a migliorare Qt Creator</translation> @@ -11644,7 +11641,7 @@ p, li { white-space: pre-wrap; } </message> </context> <context> - <name>ProjectWelcomePage</name> + <name>Welcome</name> <message> <source>Form</source> <translation type="unfinished"></translation> @@ -11850,11 +11847,7 @@ p, li { white-space: pre-wrap; } </message> </context> <context> - <name>QmakeProjectManager::Internal::GettingStartedWelcomePageWidget</name> - <message> - <source>Form</source> - <translation type="unfinished"></translation> - </message> + <name>Welcome</name> <message> <location/> <source>Examples not installed</source> @@ -12064,11 +12057,7 @@ p, li { white-space: pre-wrap; } </message> </context> <context> - <name>Welcome::Internal::CommunityWelcomePageWidget</name> - <message> - <source>Form</source> - <translation type="unfinished"></translation> - </message> + <name>Welcome</name> <message> <source>News From the Qt Labs</source> <translation type="unfinished">Notizie dai Qt Labs</translation> @@ -12102,9 +12091,6 @@ p, li { white-space: pre-wrap; } <source>Qt for S60 at Forum Nokia</source> <translation type="unfinished">Qt per S60 su Forum Nokia</translation> </message> -</context> -<context> - <name>Welcome::WelcomeMode</name> <message> <source>#gradientWidget { background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(247, 247, 247, 255), stop:1 rgba(215, 215, 215, 255)); @@ -13020,7 +13006,7 @@ Reason: %2</source> </message> </context> <context> - <name>QmakeProjectManager::Internal::GettingStartedWelcomePage</name> + <name>Welcome</name> <message> <source>Getting Started</source> <translation type="unfinished">Comincia</translation> @@ -13392,7 +13378,7 @@ Check if the phone is connected and the TRK application is running.</source> </message> </context> <context> - <name>Welcome::Internal::CommunityWelcomePage</name> + <name>Welcome</name> <message> <source>Community</source> <translation type="unfinished">Comunità</translation> diff --git a/share/qtcreator/translations/qtcreator_ja.ts b/share/qtcreator/translations/qtcreator_ja.ts index 57b25b79e0..ca54a4bf56 100644 --- a/share/qtcreator/translations/qtcreator_ja.ts +++ b/share/qtcreator/translations/qtcreator_ja.ts @@ -33872,7 +33872,7 @@ When a problem is detected, the application is interrupted and can be debugged.< </message> </context> <context> - <name>Welcome::Internal::WelcomeMode</name> + <name>Welcome</name> <message> <source>Welcome</source> <translation>ようこそ</translation> @@ -55923,14 +55923,11 @@ Will not be applied to whitespace in comments and strings.</source> </message> </context> <context> - <name>Welcome::Internal::IntroductionWidget</name> + <name>Welcome</name> <message> <source>Locator</source> <translation>クイックアクセス</translation> </message> -</context> -<context> - <name>Welcome::Internal::SideBar</name> <message> <source>New to Qt?</source> <translation>Qt を始めよう!</translation> diff --git a/share/qtcreator/translations/qtcreator_pl.ts b/share/qtcreator/translations/qtcreator_pl.ts index ee1f24195c..20bfa637fb 100644 --- a/share/qtcreator/translations/qtcreator_pl.ts +++ b/share/qtcreator/translations/qtcreator_pl.ts @@ -18167,7 +18167,7 @@ Kiedy zostaje wykryty problem, aplikacja jest zatrzymywana i może zostać zdebu </message> </context> <context> - <name>Welcome::Internal::WelcomeMode</name> + <name>Welcome</name> <message> <source>Welcome</source> <translation>Powitanie</translation> @@ -42757,7 +42757,7 @@ Termin wygaśnięcia: %3</translation> </message> </context> <context> - <name>Welcome::Internal::SideBar</name> + <name>Welcome</name> <message> <source>New to Qt?</source> <translation>Nowicjusz?</translation> diff --git a/share/qtcreator/translations/qtcreator_ru.ts b/share/qtcreator/translations/qtcreator_ru.ts index 8fae1f6186..48eb0ff3b6 100644 --- a/share/qtcreator/translations/qtcreator_ru.ts +++ b/share/qtcreator/translations/qtcreator_ru.ts @@ -52657,7 +52657,7 @@ What do you want to do?</source> </message> </context> <context> - <name>Welcome::Internal::IntroductionWidget</name> + <name>Welcome</name> <message> <source>Would you like to take a quick UI tour? This tour highlights important user interface elements and shows how they are used. To take the tour later, select Help > UI Tour.</source> <translation>Желаете познакомиться с интерфейсом программы? Всего за минуту вы узнаете, где и как используются наиболее важные элементы интерфейса пользователя. Ознакомиться можно и позже, для этого нужно зайти в Справка > Знакомство.</translation> @@ -52758,9 +52758,6 @@ What do you want to do?</source> <source>UI Introduction %1/%2 ></source> <translation>Знакомство с UI %1/%2 ></translation> </message> -</context> -<context> - <name>Welcome::Internal::SideBar</name> <message> <source>New to Qt?</source> <translation>Впервые с Qt?</translation> @@ -52789,16 +52786,10 @@ What do you want to do?</source> <source>User Guide</source> <translation>Справка</translation> </message> -</context> -<context> - <name>Welcome::Internal::WelcomeMode</name> <message> <source>Welcome</source> <translation>Начало</translation> </message> -</context> -<context> - <name>Welcome::Internal::WelcomePlugin</name> <message> <source>UI Tour</source> <translation>Знакомство</translation> diff --git a/share/qtcreator/translations/qtcreator_sl.ts b/share/qtcreator/translations/qtcreator_sl.ts index 92785b6212..7a57f5a7c1 100644 --- a/share/qtcreator/translations/qtcreator_sl.ts +++ b/share/qtcreator/translations/qtcreator_sl.ts @@ -11711,13 +11711,6 @@ Za uporabo v polje Iskalnika vtipkajte to bližnjico in presledek ter nato iskan </message> </context> <context> - <name>ProjectWelcomePage</name> - <message> - <source>Form</source> - <translation>Obrazec</translation> - </message> -</context> -<context> <name>QmakeProjectManager::Internal::ClassDefinition</name> <message> <source>Form</source> @@ -12029,7 +12022,7 @@ Za uporabo v polje Iskalnika vtipkajte to bližnjico in presledek ter nato iskan </message> </context> <context> - <name>Welcome::Internal::CommunityWelcomePageWidget</name> + <name>Welcome</name> <message> <source><b>Qt LGPL Support</b><br /><font color='gray'>Buy commercial Qt support</font></source> <translation><b>Podpora za Qt</b><br /><font color='gray'>Kupite komercialno podporo za Qt</font></translation> @@ -13725,7 +13718,7 @@ Razlog: %2</translation> </message> </context> <context> - <name>Welcome::Internal::CommunityWelcomePage</name> + <name>Welcome</name> <message> <source>News && Support</source> <translation>Novice in podpora</translation> @@ -25332,7 +25325,7 @@ ključe SSH išče na tem mestu in ne v mapi, kjer je nameščen.</translation> </message> </context> <context> - <name>ProjectWelcomePageWidget</name> + <name>Welcome</name> <message> <source>%1 (last session)</source> <translation>%1 (zadnja seja)</translation> @@ -30281,15 +30274,11 @@ Preverite pravice za dostop do mape.</translation> </message> </context> <context> - <name>Welcome::Internal::WelcomeMode</name> + <name>Welcome</name> <message> <source>Welcome</source> <translation>Dobrodošli</translation> </message> - <message> - <source>New Project</source> - <translation>Nov projekt</translation> - </message> </context> <context> <name>Coda::Session</name> @@ -31489,11 +31478,7 @@ Vedite: to lahko odstrani krajevno datoteko.</translation> </message> </context> <context> - <name>QmakeProjectManager::Internal::GettingStartedWelcomePageWidget</name> - <message> - <source>Form</source> - <translation type="obsolete">Obrazec</translation> - </message> + <name>Welcome</name> <message> <source>Tutorials</source> <translation type="obsolete">Vodniki</translation> @@ -31555,10 +31540,6 @@ Vedite: to lahko odstrani krajevno datoteko.</translation> <translation type="obsolete">Navedena lokacija že obstaja. Določite drugo lokacijo.</translation> </message> <message> - <source>New Project</source> - <translation type="obsolete">Nov projekt</translation> - </message> - <message> <source>Cmd</source> <comment>Shortcut key</comment> <translation type="obsolete">Cmd</translation> @@ -31653,9 +31634,6 @@ Vedite: to lahko odstrani krajevno datoteko.</translation> <source>You can quickly search methods, classes, help and more using the <a href="qthelp://org.qt-project.qtcreator/doc/creator-navigation.html">Locator bar</a> (<tt>%1+K</tt>).</source> <translation type="obsolete">Metode, razrede, pomoč in ostalo lahko hitro najdete z uporabo <a href="qthelp://org.qt-project.qtcreator/doc/creator-navigation.html">Lokatorja</a> (<tt>%1+K</tt>).</translation> </message> -</context> -<context> - <name>Welcome::WelcomeMode</name> <message> <source>#headerFrame { border-image: url(:/welcome/images/center_frame_header.png) 0; @@ -31676,10 +31654,6 @@ Vedite: to lahko odstrani krajevno datoteko.</translation> <source>Feedback</source> <translation type="obsolete">Odziv</translation> </message> - <message> - <source>Welcome</source> - <translation type="obsolete">Dobrodošli</translation> - </message> </context> <context> <name>Debugger</name> @@ -31893,7 +31867,7 @@ Vedite: to lahko odstrani krajevno datoteko.</translation> </message> </context> <context> - <name>QmakeProjectManager::Internal::GettingStartedWelcomePage</name> + <name>Welcome</name> <message> <source>Getting Started</source> <translation type="obsolete">Začnite tu</translation> diff --git a/share/qtcreator/translations/qtcreator_uk.ts b/share/qtcreator/translations/qtcreator_uk.ts index 4b0df9a425..c888bfa666 100644 --- a/share/qtcreator/translations/qtcreator_uk.ts +++ b/share/qtcreator/translations/qtcreator_uk.ts @@ -25080,14 +25080,11 @@ With cache simulation, further event counters are enabled: </message> </context> <context> - <name>Welcome::Internal::CommunityWelcomePage</name> + <name>Welcome</name> <message> <source>News && Support</source> <translation type="vanished">Новини та підтримка</translation> </message> -</context> -<context> - <name>Welcome::Internal::WelcomeMode</name> <message> <source>Welcome</source> <translation>Ласкаво просимо</translation> diff --git a/share/qtcreator/translations/qtcreator_zh_CN.ts b/share/qtcreator/translations/qtcreator_zh_CN.ts index 174375fa5c..4b30c0c2e7 100644 --- a/share/qtcreator/translations/qtcreator_zh_CN.ts +++ b/share/qtcreator/translations/qtcreator_zh_CN.ts @@ -17365,7 +17365,7 @@ Will not be applied to whitespace in comments and strings.</source> </message> </context> <context> - <name>ProjectWelcomePage</name> + <name>Welcome</name> <message> <source>Form</source> <translation type="obsolete">界面</translation> @@ -17541,11 +17541,7 @@ Will not be applied to whitespace in comments and strings.</source> </message> </context> <context> - <name>QmakeProjectManager::Internal::GettingStartedWelcomePageWidget</name> - <message> - <source>Form</source> - <translation type="obsolete">界面</translation> - </message> + <name>Welcome</name> <message> <source>Examples not installed</source> <translation type="obsolete">例子没有被安装</translation> @@ -17623,10 +17619,6 @@ Will not be applied to whitespace in comments and strings.</source> <translation type="obsolete">指定路径已经存在,请指定有效路径。</translation> </message> <message> - <source>New Project</source> - <translation type="obsolete">新建项目</translation> - </message> - <message> <source><a href='%1'>Details...</a></source> <translation type="obsolete"><a href='%1'>详情...</a></translation> </message> @@ -17828,11 +17820,7 @@ Will not be applied to whitespace in comments and strings.</source> </message> </context> <context> - <name>Welcome::Internal::CommunityWelcomePageWidget</name> - <message> - <source>Form</source> - <translation type="obsolete">界面</translation> - </message> + <name>Welcome</name> <message> <source><b>Forum Nokia</b><br /><font color='gray'>Mobile Application Support</font></source> <translation type="obsolete"><b>诺基亚论坛</b><br /><font color='gray'>移动应用帮助</font></translation> @@ -17913,9 +17901,6 @@ Will not be applied to whitespace in comments and strings.</source> <source>Qt for Symbian at Forum Nokia</source> <translation type="obsolete">诺基亚论坛---Qt for Symbian</translation> </message> -</context> -<context> - <name>Welcome::WelcomeMode</name> <message> <source>Help us make Qt Creator even better</source> <translation type="obsolete">协助我们使Qt Creator 更加完美</translation> @@ -17924,10 +17909,6 @@ Will not be applied to whitespace in comments and strings.</source> <source>Feedback</source> <translation type="obsolete">反馈</translation> </message> - <message> - <source>Welcome</source> - <translation type="obsolete">欢迎</translation> - </message> </context> <context> <name>Utils::DetailsButton</name> @@ -19210,7 +19191,7 @@ Reason: %2</source> </message> </context> <context> - <name>QmakeProjectManager::Internal::GettingStartedWelcomePage</name> + <name>Welcome</name> <message> <source>Getting Started</source> <translation type="obsolete">入门</translation> @@ -19711,7 +19692,7 @@ S60 emulator run configuration default display name, %1 is base pro-File name</e </message> </context> <context> - <name>Welcome::Internal::CommunityWelcomePage</name> + <name>Welcome</name> <message> <source>Community</source> <translation type="obsolete">社区</translation> @@ -37233,7 +37214,7 @@ These files are preserved.</source> </message> </context> <context> - <name>ProjectWelcomePageWidget</name> + <name>Welcome</name> <message> <source>%1 (last session)</source> <translation type="obsolete">%1 (最后的会话)</translation> @@ -37242,10 +37223,6 @@ These files are preserved.</source> <source>%1 (current session)</source> <translation type="obsolete">%1 (当前会话)</translation> </message> - <message> - <source>New Project</source> - <translation type="obsolete">新项目</translation> - </message> </context> <context> <name>QmlDesigner::ComponentAction</name> @@ -39663,7 +39640,7 @@ stderr was: %1</source> </message> </context> <context> - <name>Welcome::Internal::WelcomeMode</name> + <name>Welcome</name> <message> <source>Welcome</source> <translation>欢迎</translation> diff --git a/share/qtcreator/translations/qtcreator_zh_TW.ts b/share/qtcreator/translations/qtcreator_zh_TW.ts index 039f005a47..a634c705e8 100644 --- a/share/qtcreator/translations/qtcreator_zh_TW.ts +++ b/share/qtcreator/translations/qtcreator_zh_TW.ts @@ -11851,7 +11851,7 @@ Reason: %2</source> </message> </context> <context> - <name>Welcome::Internal::CommunityWelcomePage</name> + <name>Welcome</name> <message> <source>News && Support</source> <translation>新聞與支持</translation> @@ -24640,7 +24640,7 @@ In addition, device connectivity will be tested.</source> </message> </context> <context> - <name>Welcome::Internal::WelcomeMode</name> + <name>Welcome</name> <message> <source>Welcome</source> <translation>歡迎</translation> diff --git a/src/plugins/welcome/introductionwidget.cpp b/src/plugins/welcome/introductionwidget.cpp index d9fea99d1f..434368bc75 100644 --- a/src/plugins/welcome/introductionwidget.cpp +++ b/src/plugins/welcome/introductionwidget.cpp @@ -2,6 +2,7 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 #include "introductionwidget.h" +#include "welcometr.h" #include <coreplugin/icore.h> #include <utils/algorithm.h> @@ -34,11 +35,11 @@ void IntroductionWidget::askUserAboutIntroduction(QWidget *parent, QSettings *se Utils::InfoBarEntry info(kTakeTourSetting, - tr("Would you like to take a quick UI tour? This tour highlights important user " - "interface elements and shows how they are used. To take the tour later, " - "select Help > UI Tour."), + Tr::tr("Would you like to take a quick UI tour? This tour highlights important user " + "interface elements and shows how they are used. To take the tour later, " + "select Help > UI Tour."), Utils::InfoBarEntry::GlobalSuppression::Enabled); - info.addCustomButton(tr("Take UI Tour"), [parent] { + info.addCustomButton(Tr::tr("Take UI Tour"), [parent] { Core::ICore::infoBar()->removeInfo(kTakeTourSetting); Core::ICore::infoBar()->globallySuppressInfo(kTakeTourSetting); auto intro = new IntroductionWidget(parent); @@ -85,63 +86,63 @@ IntroductionWidget::IntroductionWidget(QWidget *parent) m_bodyCss = "font-size: 16px;"; m_items = { {QLatin1String("ModeSelector"), - tr("Mode Selector"), - tr("Select different modes depending on the task at hand."), - tr("<p style=\"margin-top: 30px\"><table>" - "<tr><td style=\"padding-right: 20px\">Welcome:</td><td>Open examples, tutorials, and " - "recent sessions and projects.</td></tr>" - "<tr><td>Edit:</td><td>Work with code and navigate your project.</td></tr>" - "<tr><td>Design:</td><td>Visually edit Widget-based user interfaces, state charts and UML models.</td></tr>" - "<tr><td>Debug:</td><td>Analyze your application with a debugger or other " - "analyzers.</td></tr>" - "<tr><td>Projects:</td><td>Manage project settings.</td></tr>" - "<tr><td>Help:</td><td>Browse the help database.</td></tr>" - "</table></p>")}, + Tr::tr("Mode Selector"), + Tr::tr("Select different modes depending on the task at hand."), + Tr::tr("<p style=\"margin-top: 30px\"><table>" + "<tr><td style=\"padding-right: 20px\">Welcome:</td><td>Open examples, tutorials, and " + "recent sessions and projects.</td></tr>" + "<tr><td>Edit:</td><td>Work with code and navigate your project.</td></tr>" + "<tr><td>Design:</td><td>Visually edit Widget-based user interfaces, state charts and UML models.</td></tr>" + "<tr><td>Debug:</td><td>Analyze your application with a debugger or other " + "analyzers.</td></tr>" + "<tr><td>Projects:</td><td>Manage project settings.</td></tr>" + "<tr><td>Help:</td><td>Browse the help database.</td></tr>" + "</table></p>")}, {QLatin1String("KitSelector.Button"), - tr("Kit Selector"), - tr("Select the active project or project configuration."), + Tr::tr("Kit Selector"), + Tr::tr("Select the active project or project configuration."), {}}, {QLatin1String("Run.Button"), - tr("Run Button"), - tr("Run the active project. By default this builds the project first."), + Tr::tr("Run Button"), + Tr::tr("Run the active project. By default this builds the project first."), {}}, {QLatin1String("Debug.Button"), - tr("Debug Button"), - tr("Run the active project in a debugger."), + Tr::tr("Debug Button"), + Tr::tr("Run the active project in a debugger."), {}}, - {QLatin1String("Build.Button"), tr("Build Button"), tr("Build the active project."), {}}, + {QLatin1String("Build.Button"), Tr::tr("Build Button"), Tr::tr("Build the active project."), {}}, {QLatin1String("LocatorInput"), - tr("Locator"), - tr("Type here to open a file from any open project."), - tr("Or:" - "<ul>" - "<li>type <code>c<space><pattern></code> to jump to a class definition</li>" - "<li>type <code>f<space><pattern></code> to open a file from the file " - "system</li>" - "<li>click on the magnifier icon for a complete list of possible options</li>" - "</ul>")}, + Tr::tr("Locator"), + Tr::tr("Type here to open a file from any open project."), + Tr::tr("Or:" + "<ul>" + "<li>type <code>c<space><pattern></code> to jump to a class definition</li>" + "<li>type <code>f<space><pattern></code> to open a file from the file " + "system</li>" + "<li>click on the magnifier icon for a complete list of possible options</li>" + "</ul>")}, {QLatin1String("OutputPaneButtons"), - tr("Output"), - tr("Find compile and application output here, " - "as well as a list of configuration and build issues, " - "and the panel for global searches."), + Tr::tr("Output"), + Tr::tr("Find compile and application output here, " + "as well as a list of configuration and build issues, " + "and the panel for global searches."), {}}, {QLatin1String("ProgressInfo"), - tr("Progress Indicator"), - tr("Progress information about running tasks is shown here."), + Tr::tr("Progress Indicator"), + Tr::tr("Progress information about running tasks is shown here."), {}}, {{}, - tr("Escape to Editor"), - tr("Pressing the Escape key brings you back to the editor. Press it " - "multiple times to also hide context help and output, giving the editor more " - "space."), + Tr::tr("Escape to Editor"), + Tr::tr("Pressing the Escape key brings you back to the editor. Press it " + "multiple times to also hide context help and output, giving the editor more " + "space."), {}}, {{}, - tr("The End"), - tr("You have now completed the UI tour. To learn more about the highlighted " - "controls, see <a style=\"color: #41CD52\" " - "href=\"qthelp://org.qt-project.qtcreator/doc/creator-quick-tour.html\">User " - "Interface</a>."), + Tr::tr("The End"), + Tr::tr("You have now completed the UI tour. To learn more about the highlighted " + "controls, see <a style=\"color: #41CD52\" " + "href=\"qthelp://org.qt-project.qtcreator/doc/creator-quick-tour.html\">User " + "Interface</a>."), {}}}; setStep(0); resizeToParent(); @@ -361,7 +362,7 @@ void IntroductionWidget::setStep(uint index) { QTC_ASSERT(index < m_items.size(), return); m_step = index; - m_continueLabel->setText(tr("UI Introduction %1/%2 >").arg(m_step + 1).arg(m_items.size())); + m_continueLabel->setText(Tr::tr("UI Introduction %1/%2 >").arg(m_step + 1).arg(m_items.size())); const Item &item = m_items.at(m_step); m_stepText->setText("<html><body style=\"" + m_bodyCss + "\">" + "<h1>" + item.title + "</h1><p>" + item.brief + "</p>" + item.description + "</body></html>"); diff --git a/src/plugins/welcome/welcomeplugin.cpp b/src/plugins/welcome/welcomeplugin.cpp index 41838f2d5c..343853a01a 100644 --- a/src/plugins/welcome/welcomeplugin.cpp +++ b/src/plugins/welcome/welcomeplugin.cpp @@ -2,6 +2,7 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 #include "introductionwidget.h" +#include "welcometr.h" #include <extensionsystem/iplugin.h> #include <extensionsystem/pluginmanager.h> @@ -123,7 +124,7 @@ public: { m_welcomeMode = new WelcomeMode; - auto introAction = new QAction(tr("UI Tour"), this); + auto introAction = new QAction(Tr::tr("UI Tour"), this); connect(introAction, &QAction::triggered, this, []() { auto intro = new IntroductionWidget(ICore::dialogParent()); intro->show(); @@ -240,7 +241,7 @@ public: auto projectVBox = new QVBoxLayout; projectVBox->setSpacing(buttonSpacing); auto newButton = new WelcomePageButton(mainWidget); - newButton->setText(tr("Create Project...")); + newButton->setText(Tr::tr("Create Project...")); newButton->setWithAccentColor(true); newButton->setOnClicked([] { QAction *openAction = ActionManager::command(Core::Constants::NEW)->action(); @@ -248,7 +249,7 @@ public: }); auto openButton = new WelcomePageButton(mainWidget); - openButton->setText(tr("Open Project...")); + openButton->setText(Tr::tr("Open Project...")); openButton->setWithAccentColor(true); openButton->setOnClicked([] { QAction *openAction = ActionManager::command(Core::Constants::OPEN)->action(); @@ -267,13 +268,13 @@ public: newVBox->setSpacing(buttonSpacing / 3); vbox->addItem(newVBox); - auto newLabel = new QLabel(tr("New to Qt?"), mainWidget); + auto newLabel = new QLabel(Tr::tr("New to Qt?"), mainWidget); newLabel->setFont(brandFont()); newLabel->setAlignment(Qt::AlignHCenter); newVBox->addWidget(newLabel); auto getStartedButton = new WelcomePageButton(mainWidget); - getStartedButton->setText(tr("Get Started")); + getStartedButton->setText(Tr::tr("Get Started")); getStartedButton->setOnClicked([] { QDesktopServices::openUrl( QString("qthelp://org.qt-project.qtcreator/doc/creator-getting-started.html")); @@ -314,11 +315,11 @@ public: hbox->setContentsMargins(0, 2 * ItemGap, HSpacing, 2 * ItemGap); const QList<QPair<QString, QString> > links { - { tr("Get Qt"), "https://www.qt.io/download" }, - { tr("Qt Account"), "https://account.qt.io" }, - { tr("Online Community"), "https://forum.qt.io" }, - { tr("Blogs"), "https://planet.qt.io" }, - { tr("User Guide"), "qthelp://org.qt-project.qtcreator/doc/index.html" }, + { Tr::tr("Get Qt"), "https://www.qt.io/download" }, + { Tr::tr("Qt Account"), "https://account.qt.io" }, + { Tr::tr("Online Community"), "https://forum.qt.io" }, + { Tr::tr("Blogs"), "https://planet.qt.io" }, + { Tr::tr("User Guide"), "qthelp://org.qt-project.qtcreator/doc/index.html" }, }; for (const QPair<QString, QString> &link : links) { auto button = new WelcomePageButton(this); @@ -337,7 +338,7 @@ public: WelcomeMode::WelcomeMode() { - setDisplayName(tr("Welcome")); + setDisplayName(Tr::tr("Welcome")); const Icon CLASSIC(":/welcome/images/mode_welcome.png"); const Icon FLAT({{":/welcome/images/mode_welcome_mask.png", |