forked from qt-creator/qt-creator
ProjectExplorer: Tr::tr
Change-Id: I8f1b463c5cc7a53627f7a9ad261998b92f13e56a Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -4068,7 +4068,7 @@ Es recomendado usar gdb 6.7 o posterior.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DependenciesModel</name>
|
||||
<name>::ProjectExplorer</name>
|
||||
<message>
|
||||
<source>Unable to add dependency</source>
|
||||
<translation>No fue posible agregar la dependencia</translation>
|
||||
@@ -4077,9 +4077,6 @@ Es recomendado usar gdb 6.7 o posterior.</translation>
|
||||
<source>This would create a circular dependency.</source>
|
||||
<translation>Esto creará una dependencia circular.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::DependenciesWidget</name>
|
||||
<message>
|
||||
<source>%1 has no dependencies.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@@ -6817,7 +6814,7 @@ Nombre base de librería: %1</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::AbstractProcessStep</name>
|
||||
<name>::ProjectExplorer</name>
|
||||
<message>
|
||||
<source><font color="#0000ff">Starting: %1 %2</font>
|
||||
</source>
|
||||
@@ -6836,9 +6833,6 @@ Nombre base de librería: %1</translation>
|
||||
<source><font color="#ff0000">Could not start process %1 </b></font></source>
|
||||
<translation><font color="#ff0000">No se pudo arrancar el proceso %1 </b></font></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::BuildManager</name>
|
||||
<message>
|
||||
<source><font color="#ff0000">Canceled build.</font></source>
|
||||
<translation><font color="#ff0000">Construcción cancelada.</font></translation>
|
||||
@@ -6870,9 +6864,6 @@ Nombre base de librería: %1</translation>
|
||||
<source><b>Running build steps for project %2...</b></source>
|
||||
<translation><b>Ejecutando los pasos para construir el proyecto %2...</b></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::CustomExecutableRunConfiguration</name>
|
||||
<message>
|
||||
<source>Custom Executable</source>
|
||||
<translation>Ejecutable indicado</translation>
|
||||
@@ -6885,16 +6876,6 @@ Nombre base de librería: %1</translation>
|
||||
<source>Run %1</source>
|
||||
<translation>Ejecutar %1</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::CustomExecutableRunConfigurationFactory</name>
|
||||
<message>
|
||||
<source>Custom Executable</source>
|
||||
<translation>Ejecutable indicado</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::EnvironmentModel</name>
|
||||
<message>
|
||||
<source><UNSET></source>
|
||||
<translation type="unfinished"></translation>
|
||||
@@ -6915,9 +6896,6 @@ Nombre base de librería: %1</translation>
|
||||
<source><VALUE></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::EnvironmentWidget</name>
|
||||
<message>
|
||||
<source>&Edit</source>
|
||||
<translation type="unfinished">&Editar</translation>
|
||||
@@ -6946,16 +6924,10 @@ Nombre base de librería: %1</translation>
|
||||
<source>Summary: No changes to Environment</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::AllProjectsFilter</name>
|
||||
<message>
|
||||
<source>Files in any project</source>
|
||||
<translation>Archivos en cualquier proyecto</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::AllProjectsFind</name>
|
||||
<message>
|
||||
<source>All Projects</source>
|
||||
<translation>Todos los proyectos</translation>
|
||||
@@ -6964,9 +6936,6 @@ Nombre base de librería: %1</translation>
|
||||
<source>File &pattern:</source>
|
||||
<translation>&Patrón de archivos:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ApplicationLauncher</name>
|
||||
<message>
|
||||
<source>Failed to start program. Path or permissions wrong?</source>
|
||||
<translation type="obsolete">Fallo intentando iniciar el programa. ¿Ruta o permisos incorrectos?</translation>
|
||||
@@ -6979,16 +6948,10 @@ Nombre base de librería: %1</translation>
|
||||
<source>Some error has occurred while running the program.</source>
|
||||
<translation type="obsolete">Ocurrió un error mientras se ejecutaba el programa.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ApplicationRunConfigurationRunner</name>
|
||||
<message>
|
||||
<source>Run</source>
|
||||
<translation type="obsolete">Ejecutar</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ApplicationRunControl</name>
|
||||
<message>
|
||||
<source>Starting %1...</source>
|
||||
<translation type="obsolete">Iniciando %1...</translation>
|
||||
@@ -6997,23 +6960,14 @@ Nombre base de librería: %1</translation>
|
||||
<source>%1 exited with code %2</source>
|
||||
<translation type="obsolete">%1 finalizó retornando %2</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::BuildSettingsPanel</name>
|
||||
<message>
|
||||
<source>Build Settings</source>
|
||||
<translation>Ajustes de construcción</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::BuildSettingsPropertiesPage</name>
|
||||
<message>
|
||||
<source>Configurations</source>
|
||||
<translation type="obsolete">Ajustes</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::BuildSettingsWidget</name>
|
||||
<message>
|
||||
<source>Create &New</source>
|
||||
<translation type="obsolete">Crear &nuevo</translation>
|
||||
@@ -7066,9 +7020,6 @@ Nombre base de librería: %1</translation>
|
||||
<source>Clone configuration</source>
|
||||
<translation>Clonar configuración</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::BuildStepsPage</name>
|
||||
<message>
|
||||
<source>No Build Steps</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@@ -7089,24 +7040,10 @@ Nombre base de librería: %1</translation>
|
||||
<source>Remove build step</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Build Steps</source>
|
||||
<translation>Etapas de construcción</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Clean Steps</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::CompileOutputWindow</name>
|
||||
<message>
|
||||
<source>Compile Output</source>
|
||||
<translation>Salida del compilador</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::CoreListenerCheckingForRunningBuild</name>
|
||||
<message>
|
||||
<source>Cancel Build && Close</source>
|
||||
<translation>Cancelar construcción y cerrar</translation>
|
||||
@@ -7131,16 +7068,10 @@ Nombre base de librería: %1</translation>
|
||||
<source>Do you want to cancel the build process and close Qt Creator anyway?</source>
|
||||
<translation>¿Quiere cancelar la construcción y cerrar Qt Creator de todos modos?</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::CurrentProjectFilter</name>
|
||||
<message>
|
||||
<source>Files in current project</source>
|
||||
<translation>Archivos en el proyecto actual</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::CurrentProjectFind</name>
|
||||
<message>
|
||||
<source>Current Project</source>
|
||||
<translation>Proyecto actual</translation>
|
||||
@@ -7149,9 +7080,6 @@ Nombre base de librería: %1</translation>
|
||||
<source>File &pattern:</source>
|
||||
<translation>&Patrón de archivo:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::CustomExecutableConfigurationWidget</name>
|
||||
<message>
|
||||
<source>Name:</source>
|
||||
<translation>Nombre:</translation>
|
||||
@@ -7204,16 +7132,10 @@ Nombre base de librería: %1</translation>
|
||||
<source>Base environment for this runconfiguration:</source>
|
||||
<translation type="unfinished">Entorno base para éste ajuste de ejecución:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::DependenciesPanel</name>
|
||||
<message>
|
||||
<source>Dependencies</source>
|
||||
<translation>Dependencias</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::DetailedModel</name>
|
||||
<message>
|
||||
<source>%1 of project %2</source>
|
||||
<translation>%1, del proyecto %2</translation>
|
||||
@@ -7226,16 +7148,10 @@ Nombre base de librería: %1</translation>
|
||||
<source>Renaming file %1 to %2 failed.</source>
|
||||
<translation>El renombrado del archivo %1 a %2 ha fallado.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::EditorSettingsPanel</name>
|
||||
<message>
|
||||
<source>Editor Settings</source>
|
||||
<translation>Ajustes de edición</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::EditorSettingsPropertiesPage</name>
|
||||
<message>
|
||||
<source>Default File Encoding:</source>
|
||||
<translation>Codificación de caracteres predefinida:</translation>
|
||||
@@ -7253,7 +7169,7 @@ Nombre base de librería: %1</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::NewSessionInputDialog</name>
|
||||
<name>::ProjectExplorer</name>
|
||||
<message>
|
||||
<source>New session name</source>
|
||||
<translation>Nuevo nombre de sesión</translation>
|
||||
@@ -7262,9 +7178,6 @@ Nombre base de librería: %1</translation>
|
||||
<source>Enter the name of the new session:</source>
|
||||
<translation>Introduzca el nombre para la nueva sesión:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::SessionDialog</name>
|
||||
<message>
|
||||
<source>Switch to session</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@@ -7297,9 +7210,6 @@ Nombre base de librería: %1</translation>
|
||||
<source><a href="qthelp://org.qt-project.qtcreator/doc/creator-quick-tour.html#session-management-in-qt-creator">What is a Session?</a></source>
|
||||
<translation><a href="qthelp://org.qt-project.qtcreator/doc/creator-quick-tour.html#session-management-in-qt-creator">¿Qué es una sesión?</a></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::OutputPane</name>
|
||||
<message>
|
||||
<source>Re-run this run-configuration</source>
|
||||
<translation>Volver a ejecutar con esta configuración</translation>
|
||||
@@ -7324,16 +7234,10 @@ Nombre base de librería: %1</translation>
|
||||
<source>Unable to close</source>
|
||||
<translation>Imposible cerrar</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::OutputWindow</name>
|
||||
<message>
|
||||
<source>Application Output Window</source>
|
||||
<translation>Ventana de salida de la aplicación</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProcessStep</name>
|
||||
<message>
|
||||
<source>Custom Process Step</source>
|
||||
<translation>Etapa de construcción definida por el usuario</translation>
|
||||
@@ -7343,9 +7247,6 @@ Nombre base de librería: %1</translation>
|
||||
<comment>item in combobox</comment>
|
||||
<translation type="unfinished">Etapa de construcción definida por el usuario</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProcessStepConfigWidget</name>
|
||||
<message>
|
||||
<source><b>%1</b> %2 %3 %4</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@@ -7354,17 +7255,10 @@ Nombre base de librería: %1</translation>
|
||||
<source>(disabled)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProcessStepWidget</name>
|
||||
<message>
|
||||
<source>Enable custom process step</source>
|
||||
<translation type="obsolete">Permitir etapa de construcción personalizada</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Name:</source>
|
||||
<translation>Nombre:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location/>
|
||||
<source>Command:</source>
|
||||
@@ -7385,9 +7279,6 @@ Nombre base de librería: %1</translation>
|
||||
<source>Enable Custom Process Step</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectExplorerSettingsPage</name>
|
||||
<message>
|
||||
<source>Build and Run</source>
|
||||
<translation>Construir y ejecutar</translation>
|
||||
@@ -7400,16 +7291,10 @@ Nombre base de librería: %1</translation>
|
||||
<source>Projectexplorer</source>
|
||||
<translation type="obsolete">Explorador de proyecto</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectFileFactory</name>
|
||||
<message>
|
||||
<source>Could not open the following project: '%1'</source>
|
||||
<translation>No se pudo abrir el siguiente proyecto: '%1'</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectFileWizardExtension</name>
|
||||
<message>
|
||||
<source>Failed to add one or more files to project
|
||||
'%1' (%2).</source>
|
||||
@@ -7420,9 +7305,6 @@ Nombre base de librería: %1</translation>
|
||||
<source>Failed to add '%1' to the version control system.</source>
|
||||
<translation>Fallo al agregar '%1' al sistema de control de versiones.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectTreeWidget</name>
|
||||
<message>
|
||||
<source>Simplify tree</source>
|
||||
<translation>Simplificar árbol</translation>
|
||||
@@ -7435,9 +7317,6 @@ Nombre base de librería: %1</translation>
|
||||
<source>Synchronize with Editor</source>
|
||||
<translation>Sincronizar con el editor</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectTreeWidgetFactory</name>
|
||||
<message>
|
||||
<source>Projects</source>
|
||||
<translation>Proyectos</translation>
|
||||
@@ -7446,9 +7325,6 @@ Nombre base de librería: %1</translation>
|
||||
<source>Filter tree</source>
|
||||
<translation>Filtrar árbol</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectWindow</name>
|
||||
<message>
|
||||
<source>Project Explorer</source>
|
||||
<translation type="obsolete">Explorardor de proyecto</translation>
|
||||
@@ -7473,9 +7349,6 @@ Nombre base de librería: %1</translation>
|
||||
<source>No project loaded.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectWizardPage</name>
|
||||
<message>
|
||||
<source>Add to &VCS (%1)</source>
|
||||
<translation>Agregar al &VCS (%1)</translation>
|
||||
@@ -7484,9 +7357,6 @@ Nombre base de librería: %1</translation>
|
||||
<source>Files to be added:</source>
|
||||
<translation>Archivos a ser agregados:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjetExplorerSettingsPageUi</name>
|
||||
<message>
|
||||
<source>Save all files before Build</source>
|
||||
<translation type="obsolete">Guardar todos los archivos antes de construir</translation>
|
||||
@@ -7499,9 +7369,6 @@ Nombre base de librería: %1</translation>
|
||||
<source>Build and Run</source>
|
||||
<translation type="obsolete">Construir y ejecutar</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::RemoveFileDialog</name>
|
||||
<message>
|
||||
<source>Remove File</source>
|
||||
<translation>Suprimir archivo</translation>
|
||||
@@ -7521,27 +7388,10 @@ Nombre base de librería: %1</translation>
|
||||
<source>File to remove:</source>
|
||||
<translation>Archivo a suprimir:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::RunSettingsPanel</name>
|
||||
<message>
|
||||
<source>Run Settings</source>
|
||||
<translation>Ajustes de ejecución</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::RunSettingsWidget</name>
|
||||
<message>
|
||||
<source>Add</source>
|
||||
<translation type="unfinished">Agregar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Remove</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::RunSettingsPropertiesPage</name>
|
||||
<message>
|
||||
<source>Run &configuration:</source>
|
||||
<translation type="obsolete">Ajuste de eje&cución:</translation>
|
||||
@@ -7564,9 +7414,6 @@ Nombre base de librería: %1</translation>
|
||||
<source>Edit run configuration:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::SessionFile</name>
|
||||
<message>
|
||||
<source>Session</source>
|
||||
<translation>Sesión</translation>
|
||||
@@ -7576,16 +7423,10 @@ Nombre base de librería: %1</translation>
|
||||
<comment>default file name to display</comment>
|
||||
<translation>Sin título</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::TaskDelegate</name>
|
||||
<message>
|
||||
<source>File not found: %1</source>
|
||||
<translation>Archivo no encontrado: %1</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::TaskWindow</name>
|
||||
<message>
|
||||
<source>Build Issues</source>
|
||||
<translation>Construcción</translation>
|
||||
@@ -7598,9 +7439,6 @@ Nombre base de librería: %1</translation>
|
||||
<source>Show Warnings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::WinGuiProcess</name>
|
||||
<message>
|
||||
<source>The process could not be started!</source>
|
||||
<translation>El proceso no pudo ser iniciado!</translation>
|
||||
@@ -7609,9 +7447,6 @@ Nombre base de librería: %1</translation>
|
||||
<source>Cannot retrieve debugging output!</source>
|
||||
<translation>No se pudo obtener salida de depurado!</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::WizardPage</name>
|
||||
<message>
|
||||
<source>Project management</source>
|
||||
<translation>Gestor de proyectos</translation>
|
||||
@@ -7644,13 +7479,6 @@ Nombre base de librería: %1</translation>
|
||||
|
||||
</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::ProjectExplorerPlugin</name>
|
||||
<message>
|
||||
<source>Projects</source>
|
||||
<translation>Proyectos</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Build</source>
|
||||
<translation>&Construir</translation>
|
||||
@@ -7715,10 +7543,6 @@ Nombre base de librería: %1</translation>
|
||||
<source>Close All Projects</source>
|
||||
<translation>Cerrar todos los proyectos</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Session</source>
|
||||
<translation>Sesión</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set Build Configuration</source>
|
||||
<translation>Establecer ajustes de construcción</translation>
|
||||
@@ -7933,9 +7757,6 @@ al control de versiones (%2)?</translation>
|
||||
<source>Could not delete file %1.</source>
|
||||
<translation>No se pudo eliminar el archivo %1.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::SessionManager</name>
|
||||
<message>
|
||||
<source>Error while restoring session</source>
|
||||
<translation>Error restaurando sesión</translation>
|
||||
@@ -11485,7 +11306,7 @@ p, li { white-space: pre-wrap; }
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectExplorerSettingsPageUi</name>
|
||||
<name>::ProjectExplorer</name>
|
||||
<message>
|
||||
<source>Build and Run</source>
|
||||
<translation type="unfinished">Construir y ejecutar</translation>
|
||||
@@ -11515,9 +11336,6 @@ p, li { white-space: pre-wrap; }
|
||||
<source><i>jom</i> is a drop-in replacement for <i>nmake</i> which distributes the compilation process to multiple CPU cores. For more details, see the <a href="http://qt.gitorious.org/qt-labs/jom/">jom Homepage</a>. Disable it if you experience problems with your builds.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectWelcomePageWidget</name>
|
||||
<message>
|
||||
<source>Form</source>
|
||||
<translation type="unfinished">Formulario</translation>
|
||||
@@ -12712,7 +12530,7 @@ p, li { white-space: pre-wrap; }
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::ApplicationLauncher</name>
|
||||
<name>::ProjectExplorer</name>
|
||||
<message>
|
||||
<source>Failed to start program. Path or permissions wrong?</source>
|
||||
<translation type="unfinished">Fallo intentando iniciar el programa. ¿Ruta o permisos incorrectos?</translation>
|
||||
@@ -12725,16 +12543,10 @@ p, li { white-space: pre-wrap; }
|
||||
<source>Some error has occurred while running the program.</source>
|
||||
<translation type="unfinished">Ocurrió un error mientras se ejecutaba el programa.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::LocalApplicationRunControlFactory</name>
|
||||
<message>
|
||||
<source>Run</source>
|
||||
<translation type="unfinished">Ejecutar</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::LocalApplicationRunControl</name>
|
||||
<message>
|
||||
<source>Starting %1...</source>
|
||||
<translation type="unfinished">Iniciando %1...</translation>
|
||||
@@ -12743,9 +12555,6 @@ p, li { white-space: pre-wrap; }
|
||||
<source>%1 exited with code %2</source>
|
||||
<translation type="unfinished">%1 finalizó retornando %2</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::DebuggingHelperLibrary</name>
|
||||
<message>
|
||||
<source>The target directory %1 could not be created.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@@ -12785,23 +12594,14 @@ Reason: %2</source>
|
||||
</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectWelcomePage</name>
|
||||
<message>
|
||||
<source>Develop</source>
|
||||
<translation type="unfinished">Desarrollar</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ActiveConfigurationWidget</name>
|
||||
<message>
|
||||
<source>Active run configuration</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectLabel</name>
|
||||
<message>
|
||||
<source>Edit Project Settings for Project <b>%1</b></source>
|
||||
<translation type="unfinished"></translation>
|
||||
@@ -12810,9 +12610,6 @@ Reason: %2</source>
|
||||
<source>No Project loaded</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectPushButton</name>
|
||||
<message>
|
||||
<source>Select Project</source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -5302,7 +5302,7 @@ Gdb 6.7 vagy későbbi használata erősen ajánlott.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DependenciesModel</name>
|
||||
<name>::ProjectExplorer</name>
|
||||
<message>
|
||||
<source>Unable to add dependency</source>
|
||||
<translation>Nem lehet függőséget hozzáadni</translation>
|
||||
@@ -10419,7 +10419,7 @@ p, li { white-space: pre-wrap; }
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::0</name>
|
||||
<name>::ProjectExplorer</name>
|
||||
<message>
|
||||
<source><font color="#0000ff">Starting: %1 %2</font>
|
||||
</source>
|
||||
@@ -10820,9 +10820,6 @@ a verziókövetőhöz (%2)?</translation>
|
||||
<source>Session ('%1')</source>
|
||||
<translation type="obsolete">('%1') szakasz</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::AbstractProcessStep</name>
|
||||
<message>
|
||||
<source><font color="#0000ff">Starting: %1 %2</font>
|
||||
</source>
|
||||
@@ -10841,9 +10838,6 @@ a verziókövetőhöz (%2)?</translation>
|
||||
<source><font color="#ff0000">Could not start process %1 </b></font></source>
|
||||
<translation><font color="#ff0000">Nem sikerült elindítani a(z) %1 folyamatot </b></font></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::ApplicationLauncher</name>
|
||||
<message>
|
||||
<source>Failed to start program. Path or permissions wrong?</source>
|
||||
<translation>Nem sikerült elindítani a programot. Rossz útvonal vagy jogosultságok?</translation>
|
||||
@@ -10856,9 +10850,6 @@ a verziókövetőhöz (%2)?</translation>
|
||||
<source>Some error has occurred while running the program.</source>
|
||||
<translation>Néhány hiba történt a program futtatása közben.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::BuildManager</name>
|
||||
<message>
|
||||
<source>Finished %n of %1 build steps</source>
|
||||
<translation>%1 %n építési lépése befejezve
|
||||
@@ -10888,9 +10879,6 @@ a verziókövetőhöz (%2)?</translation>
|
||||
<source><b>Running build steps for project %2...</b></source>
|
||||
<translation><b>Építések lépések futtatása a(z) %2 projektre...</b></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::CustomExecutableRunConfiguration</name>
|
||||
<message>
|
||||
<source>Custom Executable</source>
|
||||
<translation>Szokásos futtatható</translation>
|
||||
@@ -10903,16 +10891,6 @@ a verziókövetőhöz (%2)?</translation>
|
||||
<source>Run %1</source>
|
||||
<translation>%1 futtatása</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::CustomExecutableRunConfigurationFactory</name>
|
||||
<message>
|
||||
<source>Custom Executable</source>
|
||||
<translation>Szokásos futtatható</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::DebuggingHelperLibrary</name>
|
||||
<message>
|
||||
<source>The target directory %1 could not be created.</source>
|
||||
<translation>Nem lehet létrehozni a(z) %1 cél könytárat.</translation>
|
||||
@@ -10955,9 +10933,6 @@ Ok: %2</translation>
|
||||
</source>
|
||||
<translation>%1 futtatása ....</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::EnvironmentModel</name>
|
||||
<message>
|
||||
<source><UNSET></source>
|
||||
<translation><Nincs beállítva></translation>
|
||||
@@ -10978,9 +10953,6 @@ Ok: %2</translation>
|
||||
<source><VALUE></source>
|
||||
<translation><ÉRTÉK></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::EnvironmentWidget</name>
|
||||
<message>
|
||||
<source>&Edit</source>
|
||||
<translation>&Szerkesztés</translation>
|
||||
@@ -11009,9 +10981,6 @@ Ok: %2</translation>
|
||||
<source>Summary: No changes to Environment</source>
|
||||
<translation>Összegzés: Nem történt változás a környezetben</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::0</name>
|
||||
<message>
|
||||
<source>Files in any project</source>
|
||||
<translation type="obsolete">Bármely projektben levő fájlok</translation>
|
||||
@@ -11036,10 +11005,6 @@ Ok: %2</translation>
|
||||
<source>Some error has occurred while running the program.</source>
|
||||
<translation type="obsolete">Néhány hiba történt a program futtatása közben.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Run</source>
|
||||
<translation type="obsolete">Futtatás</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Starting %1...</source>
|
||||
<translation type="obsolete">%1 elindítása...</translation>
|
||||
@@ -11298,10 +11263,6 @@ Ok: %2</translation>
|
||||
<source>Hide generated files</source>
|
||||
<translation type="obsolete">Generált fájlok elrejtése</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Projects</source>
|
||||
<translation type="obsolete">Projektek</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Filter tree</source>
|
||||
<translation type="obsolete">Szűrő fa</translation>
|
||||
@@ -11386,10 +11347,6 @@ Ok: %2</translation>
|
||||
<source><a href="qthelp://org.qt-project.qtcreator/doc/creator-quick-tour.html#session-management-in-qt-creator">What is a Session?</a></source>
|
||||
<translation type="obsolete"><a href="qthelp://org.qt-project.qtcreator/doc/creator-quick-tour.html#session-management-in-qt-creator">Mi az a szakasz?</a></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Session</source>
|
||||
<translation type="obsolete">Szakasz</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Untitled</source>
|
||||
<comment>default file name to display</comment>
|
||||
@@ -11437,23 +11394,14 @@ Ok: %2</translation>
|
||||
<translation type="obsolete">A következő fájlok lesznek hozzáadva:
|
||||
</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ActiveConfigurationWidget</name>
|
||||
<message>
|
||||
<source>Active run configuration</source>
|
||||
<translation>Aktív futtatás konfiguráció</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::AllProjectsFilter</name>
|
||||
<message>
|
||||
<source>Files in any project</source>
|
||||
<translation>Bármely projektben levő fájlok</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::AllProjectsFind</name>
|
||||
<message>
|
||||
<source>All Projects</source>
|
||||
<translation>Az összes projekt</translation>
|
||||
@@ -11462,9 +11410,6 @@ Ok: %2</translation>
|
||||
<source>File &pattern:</source>
|
||||
<translation>Fájl &minta:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::BuildConfigDialog</name>
|
||||
<message>
|
||||
<source>Change build configuration && continue</source>
|
||||
<translation>Építési konfigurcáiók megváltoztatása && folytatása</translation>
|
||||
@@ -11497,16 +11442,10 @@ Ok: %2</translation>
|
||||
<source>Choose build configuration:</source>
|
||||
<translation>Válasszon építési konfigurációt:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::BuildSettingsPanel</name>
|
||||
<message>
|
||||
<source>Build Settings</source>
|
||||
<translation>Építési beállítások</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::BuildSettingsWidget</name>
|
||||
<message>
|
||||
<source>Edit Build Configuration:</source>
|
||||
<translation>Építési konfiguráció szerkesztése:</translation>
|
||||
@@ -11543,9 +11482,6 @@ Ok: %2</translation>
|
||||
<source>New Configuration Name:</source>
|
||||
<translation>Új konfiguráció név:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::BuildStepsPage</name>
|
||||
<message>
|
||||
<source>No Build Steps</source>
|
||||
<translation>Nincsenek építési lépések</translation>
|
||||
@@ -11570,20 +11506,10 @@ Ok: %2</translation>
|
||||
<source>Clean Steps</source>
|
||||
<translation>Lépések kiürítése</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Build Steps</source>
|
||||
<translation>Építése lépések</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::CompileOutputWindow</name>
|
||||
<message>
|
||||
<source>Compile Output</source>
|
||||
<translation>Fordítási kimenet</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::CoreListenerCheckingForRunningBuild</name>
|
||||
<message>
|
||||
<source>Cancel Build && Close</source>
|
||||
<translation>Építés visszavonása && bezárása</translation>
|
||||
@@ -11604,27 +11530,14 @@ Ok: %2</translation>
|
||||
<source>Do you want to cancel the build process and close Qt Creator anyway?</source>
|
||||
<translation>Vissza szeretné vonni az építési folyamatot és bezárni a Qt Creatort?</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::CurrentProjectFilter</name>
|
||||
<message>
|
||||
<source>Files in current project</source>
|
||||
<translation>Fájlok a jelenlegi projektben</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::CurrentProjectFind</name>
|
||||
<message>
|
||||
<source>Current Project</source>
|
||||
<translation>Aktuális Projekt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>File &pattern:</source>
|
||||
<translation>Fájl &minta:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::CustomExecutableConfigurationWidget</name>
|
||||
<message>
|
||||
<source>Name:</source>
|
||||
<translation>Név:</translation>
|
||||
@@ -11673,16 +11586,10 @@ Ok: %2</translation>
|
||||
<source>Running executable: <b>%1</b> %2</source>
|
||||
<translation>Futtatható futtatása: <b>%1</b> %2</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::DependenciesPanel</name>
|
||||
<message>
|
||||
<source>Dependencies</source>
|
||||
<translation>Függpségek</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::DependenciesWidget</name>
|
||||
<message>
|
||||
<source>%1 has no dependencies.</source>
|
||||
<translation>%1-nek nincsen függősége.</translation>
|
||||
@@ -11695,9 +11602,6 @@ Ok: %2</translation>
|
||||
<source>%1 depends on: %2.</source>
|
||||
<translation>%1 a(z) %2-től függ.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::DetailedModel</name>
|
||||
<message>
|
||||
<source>%1 of project %2</source>
|
||||
<translation>A(z) %2 projekt %1-e</translation>
|
||||
@@ -11710,16 +11614,10 @@ Ok: %2</translation>
|
||||
<source>Renaming file %1 to %2 failed.</source>
|
||||
<translation>A(z) %1 fájl átnevezése %2-re nem sikerült.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::EditorSettingsPanel</name>
|
||||
<message>
|
||||
<source>Editor Settings</source>
|
||||
<translation>Szerkesztő beállítások</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::EditorSettingsPropertiesPage</name>
|
||||
<message>
|
||||
<source>Default File Encoding:</source>
|
||||
<translation>Alapértelmezett fájl kódolás:</translation>
|
||||
@@ -11737,7 +11635,7 @@ Ok: %2</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::LocalApplicationRunControl</name>
|
||||
<name>::ProjectExplorer</name>
|
||||
<message>
|
||||
<source>Starting %1...</source>
|
||||
<translation>%1 elindítása...</translation>
|
||||
@@ -11746,16 +11644,10 @@ Ok: %2</translation>
|
||||
<source>%1 exited with code %2</source>
|
||||
<translation>%1 befejeződött %2-s kóddal</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::LocalApplicationRunControlFactory</name>
|
||||
<message>
|
||||
<source>Run</source>
|
||||
<translation>Futtatás</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::NewSessionInputDialog</name>
|
||||
<message>
|
||||
<source>New session name</source>
|
||||
<translation>Új szakasz név</translation>
|
||||
@@ -11764,9 +11656,6 @@ Ok: %2</translation>
|
||||
<source>Enter the name of the new session:</source>
|
||||
<translation>Gépelje be az új szakasz nevét:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::OutputPane</name>
|
||||
<message>
|
||||
<source>Re-run this run-configuration</source>
|
||||
<translation>Futtatás-konfiguráció újrafuttatása</translation>
|
||||
@@ -11787,16 +11676,10 @@ Ok: %2</translation>
|
||||
<source>Unable to close</source>
|
||||
<translation>Nem lehet bezárni</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::OutputWindow</name>
|
||||
<message>
|
||||
<source>Application Output Window</source>
|
||||
<translation>Alkalmazás kimeneti ablak</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProcessStep</name>
|
||||
<message>
|
||||
<source>Custom Process Step</source>
|
||||
<translation>Szokásos folyamat lépés</translation>
|
||||
@@ -11806,9 +11689,6 @@ Ok: %2</translation>
|
||||
<comment>item in combobox</comment>
|
||||
<translation>Szokásos folyamat lépés</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProcessStepConfigWidget</name>
|
||||
<message>
|
||||
<source><b>%1</b> %2 %3 %4</source>
|
||||
<translation><b>%1</b> %2 %3 %4</translation>
|
||||
@@ -11817,32 +11697,18 @@ Ok: %2</translation>
|
||||
<source>(disabled)</source>
|
||||
<translation>(tiltva)</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProcessStepWidget</name>
|
||||
<message>
|
||||
<source>Enable Custom Process Step</source>
|
||||
<translation>Szokásos folyamat lépések engedélyezése</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Name:</source>
|
||||
<translation>Név:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Command:</source>
|
||||
<translation>Parancs:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Working Directory:</source>
|
||||
<translation>Munka könyvtár:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Command Arguments:</source>
|
||||
<translation>Parancs argumentumok:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectExplorerSettingsPage</name>
|
||||
<message>
|
||||
<source>Build and Run</source>
|
||||
<translation>Építés és futtatás</translation>
|
||||
@@ -11851,13 +11717,6 @@ Ok: %2</translation>
|
||||
<source>Projects</source>
|
||||
<translation>Projektek</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectExplorerSettingsPageUi</name>
|
||||
<message>
|
||||
<source>Build and Run</source>
|
||||
<translation>Építés és futtatás</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Save all files before Build</source>
|
||||
<translation>Az összes fájl mentése építés előtt</translation>
|
||||
@@ -11878,16 +11737,10 @@ Ok: %2</translation>
|
||||
<source><i>jom</i> is a drop-in replacement for <i>nmake</i> which distributes the compilation process to multiple CPU cores. For more details, see the <a href="http://qt.gitorious.org/qt-labs/jom/">jom Homepage</a>. Disable it if you experience problems with your builds.</source>
|
||||
<translation><i>jom</i> egy megérkezett leváltás az <i>nmake</i>-re, amelyik elosztja a fordítási folyamatot több CPU mag számára. További részletekért tekintse meg a <a href="http://qt.gitorious.org/qt-labs/jom/">jom Honlapot</a>. Tiltsa le, ha problémát tapasztal az építésnél.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectFileFactory</name>
|
||||
<message>
|
||||
<source>Could not open the following project: '%1'</source>
|
||||
<translation>A következő projekt megnyitása nem sikerült: '%1'</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectFileWizardExtension</name>
|
||||
<message>
|
||||
<source>Failed to add one or more files to project
|
||||
'%1' (%2).</source>
|
||||
@@ -11898,9 +11751,6 @@ Ok: %2</translation>
|
||||
<source>Failed to add '%1' to the version control system.</source>
|
||||
<translation>A(z) '%1' hozzáadása nem sikerült a verziókövetőhöz.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectLabel</name>
|
||||
<message>
|
||||
<source>Edit Project Settings for Project <b>%1</b></source>
|
||||
<translation>Projekt beállítások a(z) <b>%1</b> projektre szerkesztése</translation>
|
||||
@@ -11909,16 +11759,10 @@ Ok: %2</translation>
|
||||
<source>No Project loaded</source>
|
||||
<translation>Nincs Projekt betöltve</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectPushButton</name>
|
||||
<message>
|
||||
<source>Select Project</source>
|
||||
<translation>Projekt kiválasztása</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectTreeWidget</name>
|
||||
<message>
|
||||
<source>Simplify tree</source>
|
||||
<translation>Fa egyszerűsítése</translation>
|
||||
@@ -11931,27 +11775,14 @@ Ok: %2</translation>
|
||||
<source>Synchronize with Editor</source>
|
||||
<translation>Mit Editor synchronisieren</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectTreeWidgetFactory</name>
|
||||
<message>
|
||||
<source>Projects</source>
|
||||
<translation>Projektek</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Filter tree</source>
|
||||
<translation>Szűrő fa</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectWelcomePage</name>
|
||||
<message>
|
||||
<source>Develop</source>
|
||||
<translation>Fejlesztés</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectWelcomePageWidget</name>
|
||||
<message>
|
||||
<source>Form</source>
|
||||
<translation>Forma</translation>
|
||||
@@ -11984,9 +11815,6 @@ Ok: %2</translation>
|
||||
<source>New Project...</source>
|
||||
<translation>Új Projekt...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectWindow</name>
|
||||
<message>
|
||||
<source>Active Build and Run Configurations</source>
|
||||
<translation>Aktív építés és konfigurációk futtatása</translation>
|
||||
@@ -11995,9 +11823,6 @@ Ok: %2</translation>
|
||||
<source>No project loaded.</source>
|
||||
<translation>Nincs Projekt betöltve.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectWizardPage</name>
|
||||
<message>
|
||||
<source>Add to &VCS (%1)</source>
|
||||
<translation>Hozzáadás &VC-hez (%1)</translation>
|
||||
@@ -12006,9 +11831,6 @@ Ok: %2</translation>
|
||||
<source>Files to be added:</source>
|
||||
<translation>A hozzáadni kívánt fájlok:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::RemoveFileDialog</name>
|
||||
<message>
|
||||
<source>Remove File</source>
|
||||
<translation>Fájl eltávolítás</translation>
|
||||
@@ -12025,16 +11847,10 @@ Ok: %2</translation>
|
||||
<source>&Remove from Version Control</source>
|
||||
<translation>Verzió követőből való &eltávolítás</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::RunSettingsPanel</name>
|
||||
<message>
|
||||
<source>Run Settings</source>
|
||||
<translation>Beállítások futtatása</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::RunSettingsPropertiesPage</name>
|
||||
<message>
|
||||
<source>Edit run configuration:</source>
|
||||
<translation>Futtatás konfiguráció szerkesztése:</translation>
|
||||
@@ -12047,24 +11863,6 @@ Ok: %2</translation>
|
||||
<source>-</source>
|
||||
<translation>-</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::RunSettingsWidget</name>
|
||||
<message>
|
||||
<source>Add</source>
|
||||
<translation>Hozzáadás</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Remove</source>
|
||||
<translation>Eltávolítás</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source><a href="#">Make %1 active.</a></source>
|
||||
<translation><a href="#">Make %1 aktív.</a></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::SessionDialog</name>
|
||||
<message>
|
||||
<source>Session Manager</source>
|
||||
<translation>Szakasz kezelő</translation>
|
||||
@@ -12089,9 +11887,6 @@ Ok: %2</translation>
|
||||
<source>Switch to session</source>
|
||||
<translation>Szakasz kapcsolása</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::SessionFile</name>
|
||||
<message>
|
||||
<source>Session</source>
|
||||
<translation>Szakasz</translation>
|
||||
@@ -12101,16 +11896,10 @@ Ok: %2</translation>
|
||||
<comment>default file name to display</comment>
|
||||
<translation>Címtelen</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::TaskDelegate</name>
|
||||
<message>
|
||||
<source>File not found: %1</source>
|
||||
<translation>A fájl nem található: %1</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::TaskWindow</name>
|
||||
<message>
|
||||
<source>Build Issues</source>
|
||||
<translation>Építési problémák</translation>
|
||||
@@ -12123,9 +11912,6 @@ Ok: %2</translation>
|
||||
<source>Show Warnings</source>
|
||||
<translation>Figyelmeztetések megjelenítése</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::WinGuiProcess</name>
|
||||
<message>
|
||||
<source>The process could not be started!</source>
|
||||
<translation>Nem sikerült elindítani a folyamatot!</translation>
|
||||
@@ -12134,9 +11920,6 @@ Ok: %2</translation>
|
||||
<source>Cannot retrieve debugging output!</source>
|
||||
<translation>Nem sikerült kinyerni a debug kimeneteket!</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::WizardPage</name>
|
||||
<message>
|
||||
<source>Project management</source>
|
||||
<translation>Projekt vezetés</translation>
|
||||
@@ -12161,13 +11944,6 @@ Ok: %2</translation>
|
||||
</source>
|
||||
<translation>A következő fájlok lesznek hozzáadva:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::ProjectExplorerPlugin</name>
|
||||
<message>
|
||||
<source>Projects</source>
|
||||
<translation>Projektek</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Build</source>
|
||||
<translation>&Építés</translation>
|
||||
@@ -12188,10 +11964,6 @@ Ok: %2</translation>
|
||||
<source>Session Manager...</source>
|
||||
<translation>Szakasz kezelő...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>New Project...</source>
|
||||
<translation>Új Projekt...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Ctrl+Shift+N</source>
|
||||
<translation>Ctrl+Shift+H</translation>
|
||||
@@ -12236,10 +12008,6 @@ Ok: %2</translation>
|
||||
<source>Close All Projects</source>
|
||||
<translation>Az összes projekt bezárása</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Session</source>
|
||||
<translation>Szakasz</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set Build Configuration</source>
|
||||
<translation>Építési konfiguráció beállítása</translation>
|
||||
@@ -12300,10 +12068,6 @@ Ok: %2</translation>
|
||||
<source>Clean Without Dependencies</source>
|
||||
<translation>Függőségek nélküli tisztogatás</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Run</source>
|
||||
<translation>Futtatás</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Ctrl+R</source>
|
||||
<translation>Ctrl+R</translation>
|
||||
@@ -12422,9 +12186,6 @@ a verziókövetőhöz (%2)?</translation>
|
||||
<source>Could not delete file %1.</source>
|
||||
<translation>Nem sikerült törölni a(z) %1 fájlt.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::SessionManager</name>
|
||||
<message>
|
||||
<source>Error while restoring session</source>
|
||||
<translation>Hiba történt a szakasz visszaállítása közben</translation>
|
||||
|
@@ -3971,7 +3971,7 @@ L'utilizzo di gdb 6.7 o successivi è fortemente consigliato.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DependenciesModel</name>
|
||||
<name>::ProjectExplorer</name>
|
||||
<message>
|
||||
<source>Unable to add dependency</source>
|
||||
<translation>Impossibile aggiungere la dipendenza</translation>
|
||||
@@ -3980,9 +3980,6 @@ L'utilizzo di gdb 6.7 o successivi è fortemente consigliato.</translation>
|
||||
<source>This would create a circular dependency.</source>
|
||||
<translation>Questo creerebbe una dipendenza circolare.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::DependenciesWidget</name>
|
||||
<message>
|
||||
<source>%1 has no dependencies.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@@ -6718,7 +6715,7 @@ Nome di base della libreria: %1</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::AbstractProcessStep</name>
|
||||
<name>::ProjectExplorer</name>
|
||||
<message>
|
||||
<source><font color="#0000ff">Starting: %1 %2</font>
|
||||
</source>
|
||||
@@ -6737,9 +6734,6 @@ Nome di base della libreria: %1</translation>
|
||||
<source><font color="#ff0000">Could not start process %1 </b></font></source>
|
||||
<translation><font color="#ff0000">Impossibile avviare il processo %1 </b></font></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::BuildManager</name>
|
||||
<message>
|
||||
<source><font color="#ff0000">Canceled build.</font></source>
|
||||
<translation><font color="#ff0000">Compilazione annullata.</font></translation>
|
||||
@@ -6771,9 +6765,6 @@ Nome di base della libreria: %1</translation>
|
||||
<source><b>Running build steps for project %2...</b></source>
|
||||
<translation><b>Avvio delle fasi di compilazione del progetto %2...</b></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::CustomExecutableRunConfiguration</name>
|
||||
<message>
|
||||
<source>Custom Executable</source>
|
||||
<translation>Eseguibile Speciale</translation>
|
||||
@@ -6786,16 +6777,6 @@ Nome di base della libreria: %1</translation>
|
||||
<source>Run %1</source>
|
||||
<translation>Esegui %1</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::CustomExecutableRunConfigurationFactory</name>
|
||||
<message>
|
||||
<source>Custom Executable</source>
|
||||
<translation>Eseguibile Speciale</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::EnvironmentModel</name>
|
||||
<message>
|
||||
<source><UNSET></source>
|
||||
<translation type="unfinished"></translation>
|
||||
@@ -6816,9 +6797,6 @@ Nome di base della libreria: %1</translation>
|
||||
<source><VALUE></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::EnvironmentWidget</name>
|
||||
<message>
|
||||
<source>&Edit</source>
|
||||
<translation type="unfinished">&Modifica</translation>
|
||||
@@ -6847,16 +6825,10 @@ Nome di base della libreria: %1</translation>
|
||||
<source>Summary: No changes to Environment</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::AllProjectsFilter</name>
|
||||
<message>
|
||||
<source>Files in any project</source>
|
||||
<translation>File in tutti i progetti</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::AllProjectsFind</name>
|
||||
<message>
|
||||
<source>All Projects</source>
|
||||
<translation>Tutti i Progetti</translation>
|
||||
@@ -6865,9 +6837,6 @@ Nome di base della libreria: %1</translation>
|
||||
<source>File &pattern:</source>
|
||||
<translation>&Schema file:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ApplicationLauncher</name>
|
||||
<message>
|
||||
<source>Failed to start program. Path or permissions wrong?</source>
|
||||
<translation type="obsolete">Non è possibile avviare il programma. Il percorso o i permessi sono errati?</translation>
|
||||
@@ -6880,16 +6849,10 @@ Nome di base della libreria: %1</translation>
|
||||
<source>Some error has occurred while running the program.</source>
|
||||
<translation type="obsolete">C'è stato un errore durante l'esecuzione del programma.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ApplicationRunConfigurationRunner</name>
|
||||
<message>
|
||||
<source>Run</source>
|
||||
<translation type="obsolete">Esegui</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ApplicationRunControl</name>
|
||||
<message>
|
||||
<source>Starting %1...</source>
|
||||
<translation type="obsolete">Avvio di %1...</translation>
|
||||
@@ -6898,16 +6861,10 @@ Nome di base della libreria: %1</translation>
|
||||
<source>%1 exited with code %2</source>
|
||||
<translation type="obsolete">%1 è uscito con il codice %2</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::BuildSettingsPanel</name>
|
||||
<message>
|
||||
<source>Build Settings</source>
|
||||
<translation>Impostazioni di Compilazione</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::BuildSettingsPropertiesPage</name>
|
||||
<message>
|
||||
<source>Configurations</source>
|
||||
<translation type="obsolete">Configurazioni</translation>
|
||||
@@ -6920,9 +6877,6 @@ Nome di base della libreria: %1</translation>
|
||||
<source>-</source>
|
||||
<translation type="obsolete">-</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::BuildSettingsWidget</name>
|
||||
<message>
|
||||
<source>Create &New</source>
|
||||
<translation type="obsolete">Crea &Nuovo</translation>
|
||||
@@ -6983,21 +6937,10 @@ Nome di base della libreria: %1</translation>
|
||||
<source>Clone configuration</source>
|
||||
<translation>Clona la configurazione</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::BuildStepsPage</name>
|
||||
<message>
|
||||
<source>1</source>
|
||||
<translation type="obsolete">1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>+</source>
|
||||
<translation type="obsolete">+</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-</source>
|
||||
<translation type="obsolete">-</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>^</source>
|
||||
<translation type="obsolete">^</translation>
|
||||
@@ -7026,24 +6969,10 @@ Nome di base della libreria: %1</translation>
|
||||
<source>Remove build step</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Build Steps</source>
|
||||
<translation>Fasi di Compilazione</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Clean Steps</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::CompileOutputWindow</name>
|
||||
<message>
|
||||
<source>Compile Output</source>
|
||||
<translation>Output di Compilazione</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::CoreListenerCheckingForRunningBuild</name>
|
||||
<message>
|
||||
<source>Cancel Build && Close</source>
|
||||
<translation>Annulla la Compilazione && Chiudi</translation>
|
||||
@@ -7068,27 +6997,14 @@ Nome di base della libreria: %1</translation>
|
||||
<source>Do you want to cancel the build process and close Qt Creator anyway?</source>
|
||||
<translation>Vuoi annullare il processo di compilazione e chiudere Qt Creator comunque?</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::CurrentProjectFilter</name>
|
||||
<message>
|
||||
<source>Files in current project</source>
|
||||
<translation>File nel progetto corrente</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::CurrentProjectFind</name>
|
||||
<message>
|
||||
<source>Current Project</source>
|
||||
<translation>Progetto Corrente</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>File &pattern:</source>
|
||||
<translation>&Schema file:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::CustomExecutableConfigurationWidget</name>
|
||||
<message>
|
||||
<source>Name:</source>
|
||||
<translation>Nome:</translation>
|
||||
@@ -7137,16 +7053,10 @@ Nome di base della libreria: %1</translation>
|
||||
<source>Running executable: <b>%1</b> %2</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::DependenciesPanel</name>
|
||||
<message>
|
||||
<source>Dependencies</source>
|
||||
<translation>Dipendenze</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::DetailedModel</name>
|
||||
<message>
|
||||
<source>%1 of project %2</source>
|
||||
<translation>%1 del progetto %2</translation>
|
||||
@@ -7159,16 +7069,10 @@ Nome di base della libreria: %1</translation>
|
||||
<source>Renaming file %1 to %2 failed.</source>
|
||||
<translation>Non è stato possibile rinominare %1 in %2.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::EditorSettingsPanel</name>
|
||||
<message>
|
||||
<source>Editor Settings</source>
|
||||
<translation>Impostazioni dell'Editor</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::EditorSettingsPropertiesPage</name>
|
||||
<message>
|
||||
<source>Default File Encoding:</source>
|
||||
<translation>Codifica File Predefinita:</translation>
|
||||
@@ -7186,7 +7090,7 @@ Nome di base della libreria: %1</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::NewSessionInputDialog</name>
|
||||
<name>::ProjectExplorer</name>
|
||||
<message>
|
||||
<source>New session name</source>
|
||||
<translation>Nome della nuova sessione</translation>
|
||||
@@ -7195,9 +7099,6 @@ Nome di base della libreria: %1</translation>
|
||||
<source>Enter the name of the new session:</source>
|
||||
<translation>Inserisci il nome della nuova sessione:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::SessionDialog</name>
|
||||
<message>
|
||||
<source>Switch to session</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@@ -7226,9 +7127,6 @@ Nome di base della libreria: %1</translation>
|
||||
<source><a href="qthelp://org.qt-project.qtcreator/doc/creator-quick-tour.html#session-management-in-qt-creator">What is a Session?</a></source>
|
||||
<translation><a href="qthelp://org.qt-project.qtcreator/doc/creator-quick-tour.html#session-management-in-qt-creator">Cos'è una Sessione?</a></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::OutputPane</name>
|
||||
<message>
|
||||
<source>Re-run this run-configuration</source>
|
||||
<translation>Riavvia questa esecuzione</translation>
|
||||
@@ -7253,16 +7151,10 @@ Nome di base della libreria: %1</translation>
|
||||
<source>Unable to close</source>
|
||||
<translation>Impossibile chiudere</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::OutputWindow</name>
|
||||
<message>
|
||||
<source>Application Output Window</source>
|
||||
<translation>Finestra di Output dell'Applicazione</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProcessStep</name>
|
||||
<message>
|
||||
<source>Custom Process Step</source>
|
||||
<translation>Fase Speciale</translation>
|
||||
@@ -7272,9 +7164,6 @@ Nome di base della libreria: %1</translation>
|
||||
<comment>item in combobox</comment>
|
||||
<translation type="unfinished">Fase Speciale</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProcessStepConfigWidget</name>
|
||||
<message>
|
||||
<source><b>%1</b> %2 %3 %4</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@@ -7283,17 +7172,10 @@ Nome di base della libreria: %1</translation>
|
||||
<source>(disabled)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProcessStepWidget</name>
|
||||
<message>
|
||||
<source>Enable custom process step</source>
|
||||
<translation type="obsolete">Abilita fase speciale</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Name:</source>
|
||||
<translation>Nome:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location/>
|
||||
<source>Command:</source>
|
||||
@@ -7314,9 +7196,6 @@ Nome di base della libreria: %1</translation>
|
||||
<source>Enable Custom Process Step</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectExplorerSettingsPage</name>
|
||||
<message>
|
||||
<source>Build and Run</source>
|
||||
<translation>Compila ed Esegui</translation>
|
||||
@@ -7329,16 +7208,10 @@ Nome di base della libreria: %1</translation>
|
||||
<source>Projectexplorer</source>
|
||||
<translation type="obsolete">Projectexplorer</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectFileFactory</name>
|
||||
<message>
|
||||
<source>Could not open the following project: '%1'</source>
|
||||
<translation>Non è stato possibile aprire il progetto: '%1'</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectFileWizardExtension</name>
|
||||
<message>
|
||||
<source>Failed to add one or more files to project
|
||||
'%1' (%2).</source>
|
||||
@@ -7349,9 +7222,6 @@ Nome di base della libreria: %1</translation>
|
||||
<source>Failed to add '%1' to the version control system.</source>
|
||||
<translation>Non è stato possibile aggiungere '%1' al sistema di revisione del codice.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectTreeWidget</name>
|
||||
<message>
|
||||
<source>Simplify tree</source>
|
||||
<translation>Semplifica albero</translation>
|
||||
@@ -7364,9 +7234,6 @@ Nome di base della libreria: %1</translation>
|
||||
<source>Synchronize with Editor</source>
|
||||
<translation>Sincronizza con l'Editor</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectTreeWidgetFactory</name>
|
||||
<message>
|
||||
<source>Projects</source>
|
||||
<translation>Progetti</translation>
|
||||
@@ -7375,9 +7242,6 @@ Nome di base della libreria: %1</translation>
|
||||
<source>Filter tree</source>
|
||||
<translation>Filtra l'albero</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectWindow</name>
|
||||
<message>
|
||||
<source>Project Explorer</source>
|
||||
<translation type="obsolete">Progetto</translation>
|
||||
@@ -7402,9 +7266,6 @@ Nome di base della libreria: %1</translation>
|
||||
<source>No project loaded.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectWizardPage</name>
|
||||
<message>
|
||||
<source>Add to &VCS (%1)</source>
|
||||
<translation>Aggiungi al &VCS (%1)</translation>
|
||||
@@ -7413,9 +7274,6 @@ Nome di base della libreria: %1</translation>
|
||||
<source>Files to be added:</source>
|
||||
<translation>File da aggiungere:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjetExplorerSettingsPageUi</name>
|
||||
<message>
|
||||
<source>Save all files before Build</source>
|
||||
<translation type="obsolete">Salva tutti i file prima della Compilazione</translation>
|
||||
@@ -7428,9 +7286,6 @@ Nome di base della libreria: %1</translation>
|
||||
<source>Build and Run</source>
|
||||
<translation type="obsolete">Compila ed Esegui</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::RemoveFileDialog</name>
|
||||
<message>
|
||||
<source>Remove File</source>
|
||||
<translation>Rimozione del File</translation>
|
||||
@@ -7450,27 +7305,10 @@ Nome di base della libreria: %1</translation>
|
||||
<source>&Remove from Version Control</source>
|
||||
<translation>&Rimuovi dal sistema di revisione</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::RunSettingsPanel</name>
|
||||
<message>
|
||||
<source>Run Settings</source>
|
||||
<translation>Impostazioni di Esecuzione</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::RunSettingsWidget</name>
|
||||
<message>
|
||||
<source>Add</source>
|
||||
<translation type="unfinished">Aggiungi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Remove</source>
|
||||
<translation type="unfinished">Rimuovi</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::RunSettingsPropertiesPage</name>
|
||||
<message>
|
||||
<source>Run &configuration:</source>
|
||||
<translation type="obsolete">Ese&cuzione di:</translation>
|
||||
@@ -7493,9 +7331,6 @@ Nome di base della libreria: %1</translation>
|
||||
<source>Edit run configuration:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::SessionFile</name>
|
||||
<message>
|
||||
<source>Session</source>
|
||||
<translation>Sessione</translation>
|
||||
@@ -7505,16 +7340,10 @@ Nome di base della libreria: %1</translation>
|
||||
<comment>default file name to display</comment>
|
||||
<translation>Senza titolo</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::TaskDelegate</name>
|
||||
<message>
|
||||
<source>File not found: %1</source>
|
||||
<translation>File non trovato: %1</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::TaskWindow</name>
|
||||
<message>
|
||||
<source>Build Issues</source>
|
||||
<translation>Problemi di Compilazione</translation>
|
||||
@@ -7527,9 +7356,6 @@ Nome di base della libreria: %1</translation>
|
||||
<source>Show Warnings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::WinGuiProcess</name>
|
||||
<message>
|
||||
<source>The process could not be started!</source>
|
||||
<translation>Non è stato possibile avviare il processo!</translation>
|
||||
@@ -7538,9 +7364,6 @@ Nome di base della libreria: %1</translation>
|
||||
<source>Cannot retrieve debugging output!</source>
|
||||
<translation>Non è possibile recuperare l'output di debug!</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::WizardPage</name>
|
||||
<message>
|
||||
<source>Project management</source>
|
||||
<translation>Gestione progetto</translation>
|
||||
@@ -7573,13 +7396,6 @@ Nome di base della libreria: %1</translation>
|
||||
|
||||
</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::ProjectExplorerPlugin</name>
|
||||
<message>
|
||||
<source>Projects</source>
|
||||
<translation>Progetti</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Build</source>
|
||||
<translation>&Compila</translation>
|
||||
@@ -7644,10 +7460,6 @@ Nome di base della libreria: %1</translation>
|
||||
<source>Close All Projects</source>
|
||||
<translation>Chiudi Tutti i Progetti</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Session</source>
|
||||
<translation>Sessione</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set Build Configuration</source>
|
||||
<translation>Compilazione di</translation>
|
||||
@@ -7838,9 +7650,6 @@ al VCS (%2)?</translation>
|
||||
<source>Could not delete file %1.</source>
|
||||
<translation>Non è stato possibile cancellare il file %1.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::SessionManager</name>
|
||||
<message>
|
||||
<source>Error while restoring session</source>
|
||||
<translation>Errore durante il ripristino della sessione</translation>
|
||||
@@ -11340,7 +11149,7 @@ p, li { white-space: pre-wrap; }
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectExplorerSettingsPageUi</name>
|
||||
<name>::ProjectExplorer</name>
|
||||
<message>
|
||||
<source>Build and Run</source>
|
||||
<translation type="unfinished">Compila ed Esegui</translation>
|
||||
@@ -11370,9 +11179,6 @@ p, li { white-space: pre-wrap; }
|
||||
<source><i>jom</i> is a drop-in replacement for <i>nmake</i> which distributes the compilation process to multiple CPU cores. For more details, see the <a href="http://qt.gitorious.org/qt-labs/jom/">jom Homepage</a>. Disable it if you experience problems with your builds.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectWelcomePageWidget</name>
|
||||
<message>
|
||||
<source>Form</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@@ -12485,7 +12291,7 @@ p, li { white-space: pre-wrap; }
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::ApplicationLauncher</name>
|
||||
<name>::ProjectExplorer</name>
|
||||
<message>
|
||||
<source>Failed to start program. Path or permissions wrong?</source>
|
||||
<translation type="unfinished">Non è possibile avviare il programma. Il percorso o i permessi sono errati?</translation>
|
||||
@@ -12498,16 +12304,10 @@ p, li { white-space: pre-wrap; }
|
||||
<source>Some error has occurred while running the program.</source>
|
||||
<translation type="unfinished">C'è stato un errore durante l'esecuzione del programma.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::LocalApplicationRunControlFactory</name>
|
||||
<message>
|
||||
<source>Run</source>
|
||||
<translation type="unfinished">Esegui</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::LocalApplicationRunControl</name>
|
||||
<message>
|
||||
<source>Starting %1...</source>
|
||||
<translation type="unfinished">Avvio di %1...</translation>
|
||||
@@ -12516,9 +12316,6 @@ p, li { white-space: pre-wrap; }
|
||||
<source>%1 exited with code %2</source>
|
||||
<translation type="unfinished">%1 è uscito con il codice %2</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::DebuggingHelperLibrary</name>
|
||||
<message>
|
||||
<source>The target directory %1 could not be created.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@@ -12558,23 +12355,14 @@ Reason: %2</source>
|
||||
</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectWelcomePage</name>
|
||||
<message>
|
||||
<source>Develop</source>
|
||||
<translation type="unfinished">Sviluppa</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ActiveConfigurationWidget</name>
|
||||
<message>
|
||||
<source>Active run configuration</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectLabel</name>
|
||||
<message>
|
||||
<source>Edit Project Settings for Project <b>%1</b></source>
|
||||
<translation type="unfinished"></translation>
|
||||
@@ -12583,9 +12371,6 @@ Reason: %2</source>
|
||||
<source>No Project loaded</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectExplorer::Internal::ProjectPushButton</name>
|
||||
<message>
|
||||
<source>Select Project</source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -2,7 +2,9 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "abiwidget.h"
|
||||
|
||||
#include "abi.h"
|
||||
#include "projectexplorertr.h"
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/guard.h>
|
||||
@@ -184,7 +186,7 @@ void AbiWidget::setAbis(const Abis &abiList, const Abi ¤tAbi)
|
||||
|
||||
// Initial setup of ABI combobox:
|
||||
d->m_abi->clear();
|
||||
d->m_abi->addItem(tr("<custom>"), defaultAbi.toString());
|
||||
d->m_abi->addItem(Tr::tr("<custom>"), defaultAbi.toString());
|
||||
d->m_abi->setCurrentIndex(0);
|
||||
d->m_abi->setVisible(!abiList.isEmpty());
|
||||
|
||||
|
@@ -2,11 +2,13 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "abstractprocessstep.h"
|
||||
|
||||
#include "buildconfiguration.h"
|
||||
#include "buildstep.h"
|
||||
#include "processparameters.h"
|
||||
#include "projectexplorer.h"
|
||||
#include "projectexplorersettings.h"
|
||||
#include "projectexplorertr.h"
|
||||
|
||||
#include <utils/fileutils.h>
|
||||
#include <utils/outputformatter.h>
|
||||
@@ -101,7 +103,7 @@ AbstractProcessStep::~AbstractProcessStep()
|
||||
|
||||
void AbstractProcessStep::emitFaultyConfigurationMessage()
|
||||
{
|
||||
emit addOutput(tr("Configuration is faulty. Check the Issues view for details."),
|
||||
emit addOutput(Tr::tr("Configuration is faulty. Check the Issues view for details."),
|
||||
OutputFormat::NormalMessage);
|
||||
}
|
||||
|
||||
@@ -191,7 +193,7 @@ bool AbstractProcessStep::checkWorkingDirectory()
|
||||
const FilePath wd = d->m_param.effectiveWorkingDirectory();
|
||||
if (!wd.exists()) {
|
||||
if (!wd.createDir()) {
|
||||
emit addOutput(tr("Could not create directory \"%1\"").arg(wd.toUserOutput()),
|
||||
emit addOutput(Tr::tr("Could not create directory \"%1\"").arg(wd.toUserOutput()),
|
||||
OutputFormat::ErrorMessage);
|
||||
finish(ProcessResult::StartFailed);
|
||||
return false;
|
||||
@@ -232,7 +234,7 @@ void AbstractProcessStep::setupProcess(QtcProcess *process)
|
||||
});
|
||||
connect(process, &QtcProcess::started, this, [this] {
|
||||
ProcessParameters *params = displayedParameters();
|
||||
emit addOutput(tr("Starting: \"%1\" %2")
|
||||
emit addOutput(Tr::tr("Starting: \"%1\" %2")
|
||||
.arg(params->effectiveCommand().toUserOutput(), params->prettyArguments()),
|
||||
OutputFormat::NormalMessage);
|
||||
});
|
||||
@@ -269,7 +271,7 @@ void AbstractProcessStep::doCancel()
|
||||
}
|
||||
if (d->m_taskTree) {
|
||||
d->m_taskTree.reset();
|
||||
emit addOutput(tr("The build step was ended forcefully."), OutputFormat::ErrorMessage);
|
||||
emit addOutput(Tr::tr("The build step was ended forcefully."), OutputFormat::ErrorMessage);
|
||||
emit finished(false);
|
||||
}
|
||||
}
|
||||
@@ -323,14 +325,14 @@ void AbstractProcessStep::Private::cleanUp(int exitCode, QProcess::ExitStatus st
|
||||
{
|
||||
const QString command = q->displayedParameters()->effectiveCommand().toUserOutput();
|
||||
if (status == QProcess::NormalExit && exitCode == 0) {
|
||||
emit q->addOutput(tr("The process \"%1\" exited normally.").arg(command),
|
||||
emit q->addOutput(Tr::tr("The process \"%1\" exited normally.").arg(command),
|
||||
OutputFormat::NormalMessage);
|
||||
} else if (status == QProcess::NormalExit) {
|
||||
emit q->addOutput(tr("The process \"%1\" exited with code %2.")
|
||||
emit q->addOutput(Tr::tr("The process \"%1\" exited with code %2.")
|
||||
.arg(command, QString::number(exitCode)),
|
||||
OutputFormat::ErrorMessage);
|
||||
} else {
|
||||
emit q->addOutput(tr("The process \"%1\" crashed.").arg(command),
|
||||
emit q->addOutput(Tr::tr("The process \"%1\" crashed.").arg(command),
|
||||
OutputFormat::ErrorMessage);
|
||||
}
|
||||
|
||||
@@ -351,7 +353,7 @@ void AbstractProcessStep::Private::cleanUp(int exitCode, QProcess::ExitStatus st
|
||||
void AbstractProcessStep::processStartupFailed()
|
||||
{
|
||||
ProcessParameters *params = displayedParameters();
|
||||
emit addOutput(tr("Could not start process \"%1\" %2.")
|
||||
emit addOutput(Tr::tr("Could not start process \"%1\" %2.")
|
||||
.arg(params->effectiveCommand().toUserOutput(), params->prettyArguments()),
|
||||
OutputFormat::ErrorMessage);
|
||||
|
||||
|
@@ -4,6 +4,7 @@
|
||||
#include "addrunconfigdialog.h"
|
||||
|
||||
#include "project.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "target.h"
|
||||
|
||||
#include <utils/itemviews.h>
|
||||
@@ -27,7 +28,6 @@ const Qt::ItemDataRole IsCustomRole = Qt::UserRole;
|
||||
|
||||
class CandidateTreeItem : public TreeItem
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::Internal::AddRunConfigDialog)
|
||||
public:
|
||||
CandidateTreeItem(const RunConfigurationCreationInfo &rci, const Target *target)
|
||||
: m_creationInfo(rci), m_projectRoot(target->project()->projectDirectory()),
|
||||
@@ -50,7 +50,7 @@ private:
|
||||
displayPath = m_creationInfo.projectFilePath;
|
||||
QTC_CHECK(displayPath.isEmpty());
|
||||
}
|
||||
return displayPath.isEmpty() ? tr("[none]") : displayPath.toUserOutput();
|
||||
return displayPath.isEmpty() ? Tr::tr("[none]") : displayPath.toUserOutput();
|
||||
}
|
||||
return QVariant();
|
||||
}
|
||||
@@ -62,11 +62,10 @@ private:
|
||||
|
||||
class CandidatesModel : public TreeModel<TreeItem, CandidateTreeItem>
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::Internal::AddRunConfigDialog)
|
||||
public:
|
||||
CandidatesModel(Target *target, QObject *parent) : TreeModel(parent)
|
||||
{
|
||||
setHeader({tr("Name"), tr("Source")});
|
||||
setHeader({Tr::tr("Name"), Tr::tr("Source")});
|
||||
for (const RunConfigurationCreationInfo &rci
|
||||
: RunConfigurationFactory::creatorsForTarget(target)) {
|
||||
rootItem()->appendChild(new CandidateTreeItem(rci, target));
|
||||
@@ -114,13 +113,13 @@ private:
|
||||
AddRunConfigDialog::AddRunConfigDialog(Target *target, QWidget *parent)
|
||||
: QDialog(parent), m_view(new CandidatesTreeView(this))
|
||||
{
|
||||
setWindowTitle(tr("Create Run Configuration"));
|
||||
setWindowTitle(Tr::tr("Create Run Configuration"));
|
||||
const auto model = new CandidatesModel(target, this);
|
||||
const auto proxyModel = new ProxyModel(this);
|
||||
proxyModel->setSourceModel(model);
|
||||
const auto filterEdit = new FancyLineEdit(this);
|
||||
filterEdit->setFiltering(true);
|
||||
filterEdit->setPlaceholderText(tr("Filter candidates by name"));
|
||||
filterEdit->setPlaceholderText(Tr::tr("Filter candidates by name"));
|
||||
m_view->setSelectionMode(TreeView::SingleSelection);
|
||||
m_view->setSelectionBehavior(TreeView::SelectRows);
|
||||
m_view->setSortingEnabled(true);
|
||||
@@ -129,7 +128,7 @@ AddRunConfigDialog::AddRunConfigDialog(Target *target, QWidget *parent)
|
||||
m_view->resizeColumnToContents(1);
|
||||
m_view->sortByColumn(0, Qt::AscendingOrder);
|
||||
const auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
||||
buttonBox->button(QDialogButtonBox::Ok)->setText(tr("Create"));
|
||||
buttonBox->button(QDialogButtonBox::Ok)->setText(Tr::tr("Create"));
|
||||
|
||||
connect(filterEdit, &FancyLineEdit::textChanged, this, [proxyModel](const QString &text) {
|
||||
proxyModel->setFilterRegularExpression(QRegularExpression(text, QRegularExpression::CaseInsensitiveOption));
|
||||
|
@@ -2,21 +2,23 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "allprojectsfilter.h"
|
||||
|
||||
#include "projectexplorer.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "session.h"
|
||||
#include "project.h"
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
|
||||
using namespace Core;
|
||||
using namespace ProjectExplorer;
|
||||
using namespace ProjectExplorer::Internal;
|
||||
|
||||
namespace ProjectExplorer::Internal {
|
||||
|
||||
AllProjectsFilter::AllProjectsFilter()
|
||||
{
|
||||
setId("Files in any project");
|
||||
setDisplayName(tr("Files in Any Project"));
|
||||
setDescription(tr("Matches all files of all open projects. Append \"+<number>\" or "
|
||||
setDisplayName(Tr::tr("Files in Any Project"));
|
||||
setDescription(Tr::tr("Matches all files of all open projects. Append \"+<number>\" or "
|
||||
"\":<number>\" to jump to the given line number. Append another "
|
||||
"\"+<number>\" or \":<number>\" to jump to the column number as well."));
|
||||
setDefaultShortcutString("a");
|
||||
@@ -49,3 +51,5 @@ void AllProjectsFilter::refresh(QFutureInterface<void> &future)
|
||||
Q_UNUSED(future)
|
||||
QMetaObject::invokeMethod(this, &AllProjectsFilter::markFilesAsOutOfDate, Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
} // ProjectExplorer::Internal
|
||||
|
@@ -3,14 +3,17 @@
|
||||
|
||||
#include "allprojectsfind.h"
|
||||
|
||||
#include "project.h"
|
||||
#include "session.h"
|
||||
#include "projectexplorer.h"
|
||||
#include "editorconfiguration.h"
|
||||
#include "project.h"
|
||||
#include "projectexplorer.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "session.h"
|
||||
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
|
||||
#include <texteditor/texteditor.h>
|
||||
#include <texteditor/textdocument.h>
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
|
||||
#include <utils/filesearch.h>
|
||||
#include <utils/algorithm.h>
|
||||
|
||||
@@ -36,7 +39,7 @@ QString AllProjectsFind::id() const
|
||||
|
||||
QString AllProjectsFind::displayName() const
|
||||
{
|
||||
return tr("All Projects");
|
||||
return Tr::tr("All Projects");
|
||||
}
|
||||
|
||||
bool AllProjectsFind::isEnabled() const
|
||||
@@ -84,13 +87,13 @@ QVariant AllProjectsFind::additionalParameters() const
|
||||
|
||||
QString AllProjectsFind::label() const
|
||||
{
|
||||
return tr("All Projects:");
|
||||
return Tr::tr("All Projects:");
|
||||
}
|
||||
|
||||
QString AllProjectsFind::toolTip() const
|
||||
{
|
||||
// last arg is filled by BaseFileFind::runNewSearch
|
||||
return tr("Filter: %1\nExcluding: %2\n%3")
|
||||
return Tr::tr("Filter: %1\nExcluding: %2\n%3")
|
||||
.arg(fileNameFilters().join(','))
|
||||
.arg(fileExclusionFilters().join(','));
|
||||
}
|
||||
|
@@ -6,6 +6,7 @@
|
||||
#include "projectexplorer.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectexplorericons.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "runcontrol.h"
|
||||
#include "session.h"
|
||||
#include "showoutputtaskhandler.h"
|
||||
@@ -68,8 +69,8 @@ static QObject *debuggerPlugin()
|
||||
static QString msgAttachDebuggerTooltip(const QString &handleDescription = QString())
|
||||
{
|
||||
return handleDescription.isEmpty() ?
|
||||
AppOutputPane::tr("Attach debugger to this process") :
|
||||
AppOutputPane::tr("Attach debugger to %1").arg(handleDescription);
|
||||
Tr::tr("Attach debugger to this process") :
|
||||
Tr::tr("Attach debugger to %1").arg(handleDescription);
|
||||
}
|
||||
|
||||
class TabWidget : public QTabWidget
|
||||
@@ -136,19 +137,19 @@ AppOutputPane::RunControlTab::RunControlTab(RunControl *runControl, Core::Output
|
||||
|
||||
AppOutputPane::AppOutputPane() :
|
||||
m_tabWidget(new TabWidget),
|
||||
m_stopAction(new QAction(tr("Stop"), this)),
|
||||
m_closeCurrentTabAction(new QAction(tr("Close Tab"), this)),
|
||||
m_closeAllTabsAction(new QAction(tr("Close All Tabs"), this)),
|
||||
m_closeOtherTabsAction(new QAction(tr("Close Other Tabs"), this)),
|
||||
m_stopAction(new QAction(Tr::tr("Stop"), this)),
|
||||
m_closeCurrentTabAction(new QAction(Tr::tr("Close Tab"), this)),
|
||||
m_closeAllTabsAction(new QAction(Tr::tr("Close All Tabs"), this)),
|
||||
m_closeOtherTabsAction(new QAction(Tr::tr("Close Other Tabs"), this)),
|
||||
m_reRunButton(new QToolButton),
|
||||
m_stopButton(new QToolButton),
|
||||
m_attachButton(new QToolButton),
|
||||
m_settingsButton(new QToolButton),
|
||||
m_formatterWidget(new QWidget),
|
||||
m_handler(new ShowOutputTaskHandler(this,
|
||||
tr("Show &App Output"),
|
||||
tr("Show the output that generated this issue in Application Output."),
|
||||
tr("A")))
|
||||
Tr::tr("Show &App Output"),
|
||||
Tr::tr("Show the output that generated this issue in Application Output."),
|
||||
Tr::tr("A")))
|
||||
{
|
||||
ExtensionSystem::PluginManager::addObject(m_handler);
|
||||
|
||||
@@ -157,14 +158,14 @@ AppOutputPane::AppOutputPane() :
|
||||
|
||||
// Rerun
|
||||
m_reRunButton->setIcon(Utils::Icons::RUN_SMALL_TOOLBAR.icon());
|
||||
m_reRunButton->setToolTip(tr("Re-run this run-configuration."));
|
||||
m_reRunButton->setToolTip(Tr::tr("Re-run this run-configuration."));
|
||||
m_reRunButton->setEnabled(false);
|
||||
connect(m_reRunButton, &QToolButton::clicked,
|
||||
this, &AppOutputPane::reRunRunControl);
|
||||
|
||||
// Stop
|
||||
m_stopAction->setIcon(Utils::Icons::STOP_SMALL_TOOLBAR.icon());
|
||||
m_stopAction->setToolTip(tr("Stop running program."));
|
||||
m_stopAction->setToolTip(Tr::tr("Stop running program."));
|
||||
m_stopAction->setEnabled(false);
|
||||
|
||||
Core::Command *cmd = Core::ActionManager::registerAction(m_stopAction, Constants::STOP);
|
||||
@@ -187,7 +188,7 @@ AppOutputPane::AppOutputPane() :
|
||||
connect(this, &IOutputPane::zoomOutRequested, this, &AppOutputPane::zoomOut);
|
||||
connect(this, &IOutputPane::resetZoomRequested, this, &AppOutputPane::resetZoom);
|
||||
|
||||
m_settingsButton->setToolTip(tr("Open Settings Page"));
|
||||
m_settingsButton->setToolTip(Tr::tr("Open Settings Page"));
|
||||
m_settingsButton->setIcon(Utils::Icons::SETTINGS_TOOLBAR.icon());
|
||||
connect(m_settingsButton, &QToolButton::clicked, this, [] {
|
||||
Core::ICore::showOptionsDialog(OPTIONS_PAGE_ID);
|
||||
@@ -305,7 +306,7 @@ QList<QWidget*> AppOutputPane::toolBarWidgets() const
|
||||
|
||||
QString AppOutputPane::displayName() const
|
||||
{
|
||||
return tr("Application Output");
|
||||
return Tr::tr("Application Output");
|
||||
}
|
||||
|
||||
int AppOutputPane::priorityInStatusBar() const
|
||||
@@ -427,7 +428,7 @@ void AppOutputPane::createNewOutputWindow(RunControl *rc)
|
||||
Id contextId = Id(C_APP_OUTPUT).withSuffix(counter++);
|
||||
Core::Context context(contextId);
|
||||
Core::OutputWindow *ow = new Core::OutputWindow(context, SETTINGS_KEY, m_tabWidget);
|
||||
ow->setWindowTitle(tr("Application Output Window"));
|
||||
ow->setWindowTitle(Tr::tr("Application Output Window"));
|
||||
ow->setWindowIcon(Icons::WINDOW.icon());
|
||||
ow->setWordWrapEnabled(m_settings.wrapOutput);
|
||||
ow->setMaxCharCount(m_settings.maxCharCount);
|
||||
@@ -698,8 +699,8 @@ void AppOutputPane::enableButtons(const RunControl *rc)
|
||||
if (isRunning && debuggerPlugin() && rc->applicationProcessHandle().isValid()) {
|
||||
m_attachButton->setEnabled(true);
|
||||
ProcessHandle h = rc->applicationProcessHandle();
|
||||
QString tip = h.isValid() ? RunControl::tr("PID %1").arg(h.pid())
|
||||
: RunControl::tr("Invalid");
|
||||
QString tip = h.isValid() ? Tr::tr("PID %1").arg(h.pid())
|
||||
: Tr::tr("Invalid");
|
||||
m_attachButton->setToolTip(msgAttachDebuggerTooltip(tip));
|
||||
} else {
|
||||
m_attachButton->setEnabled(false);
|
||||
@@ -804,22 +805,21 @@ bool AppOutputPane::canNavigate() const
|
||||
|
||||
class AppOutputSettingsWidget : public Core::IOptionsPageWidget
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::Internal::AppOutputSettingsPage)
|
||||
public:
|
||||
AppOutputSettingsWidget()
|
||||
{
|
||||
const AppOutputSettings &settings = ProjectExplorerPlugin::appOutputSettings();
|
||||
m_wrapOutputCheckBox.setText(tr("Word-wrap output"));
|
||||
m_wrapOutputCheckBox.setText(Tr::tr("Word-wrap output"));
|
||||
m_wrapOutputCheckBox.setChecked(settings.wrapOutput);
|
||||
m_cleanOldOutputCheckBox.setText(tr("Clear old output on a new run"));
|
||||
m_cleanOldOutputCheckBox.setText(Tr::tr("Clear old output on a new run"));
|
||||
m_cleanOldOutputCheckBox.setChecked(settings.cleanOldOutput);
|
||||
m_mergeChannelsCheckBox.setText(tr("Merge stderr and stdout"));
|
||||
m_mergeChannelsCheckBox.setText(Tr::tr("Merge stderr and stdout"));
|
||||
m_mergeChannelsCheckBox.setChecked(settings.mergeChannels);
|
||||
for (QComboBox * const modeComboBox
|
||||
: {&m_runOutputModeComboBox, &m_debugOutputModeComboBox}) {
|
||||
modeComboBox->addItem(tr("Always"), int(AppOutputPaneMode::PopupOnOutput));
|
||||
modeComboBox->addItem(tr("Never"), int(AppOutputPaneMode::FlashOnOutput));
|
||||
modeComboBox->addItem(tr("On First Output Only"),
|
||||
modeComboBox->addItem(Tr::tr("Always"), int(AppOutputPaneMode::PopupOnOutput));
|
||||
modeComboBox->addItem(Tr::tr("Never"), int(AppOutputPaneMode::FlashOnOutput));
|
||||
modeComboBox->addItem(Tr::tr("On First Output Only"),
|
||||
int(AppOutputPaneMode::PopupOnFirstOutput));
|
||||
}
|
||||
m_runOutputModeComboBox.setCurrentIndex(m_runOutputModeComboBox
|
||||
@@ -833,15 +833,15 @@ public:
|
||||
layout->addWidget(&m_cleanOldOutputCheckBox);
|
||||
layout->addWidget(&m_mergeChannelsCheckBox);
|
||||
const auto maxCharsLayout = new QHBoxLayout;
|
||||
const QString msg = tr("Limit output to %1 characters");
|
||||
const QString msg = Tr::tr("Limit output to %1 characters");
|
||||
const QStringList parts = msg.split("%1") << QString() << QString();
|
||||
maxCharsLayout->addWidget(new QLabel(parts.at(0).trimmed()));
|
||||
maxCharsLayout->addWidget(&m_maxCharsBox);
|
||||
maxCharsLayout->addWidget(new QLabel(parts.at(1).trimmed()));
|
||||
maxCharsLayout->addStretch(1);
|
||||
const auto outputModeLayout = new QFormLayout;
|
||||
outputModeLayout->addRow(tr("Open Application Output when running:"), &m_runOutputModeComboBox);
|
||||
outputModeLayout->addRow(tr("Open Application Output when debugging:"),
|
||||
outputModeLayout->addRow(Tr::tr("Open Application Output when running:"), &m_runOutputModeComboBox);
|
||||
outputModeLayout->addRow(Tr::tr("Open Application Output when debugging:"),
|
||||
&m_debugOutputModeComboBox);
|
||||
layout->addLayout(outputModeLayout);
|
||||
layout->addLayout(maxCharsLayout);
|
||||
@@ -875,7 +875,7 @@ private:
|
||||
AppOutputSettingsPage::AppOutputSettingsPage()
|
||||
{
|
||||
setId(OPTIONS_PAGE_ID);
|
||||
setDisplayName(AppOutputSettingsWidget::tr("Application Output"));
|
||||
setDisplayName(Tr::tr("Application Output"));
|
||||
setCategory(Constants::BUILD_AND_RUN_SETTINGS_CATEGORY);
|
||||
setWidgetCreator([] { return new AppOutputSettingsWidget; });
|
||||
}
|
||||
|
@@ -3,6 +3,8 @@
|
||||
|
||||
#include "baseprojectwizarddialog.h"
|
||||
|
||||
#include "projectexplorertr.h"
|
||||
|
||||
#include <coreplugin/documentmanager.h>
|
||||
#include <utils/projectintropage.h>
|
||||
|
||||
@@ -141,7 +143,7 @@ QString BaseProjectWizardDialog::uniqueProjectName(const FilePath &path)
|
||||
//: File path suggestion for a new project. If you choose
|
||||
//: to translate it, make sure it is a valid path name without blanks
|
||||
//: and using only ascii chars.
|
||||
const QString prefix = tr("untitled");
|
||||
const QString prefix = Tr::tr("untitled");
|
||||
for (unsigned i = 0; ; ++i) {
|
||||
QString name = prefix;
|
||||
if (i)
|
||||
|
@@ -9,6 +9,7 @@
|
||||
#include "kitinformation.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectexplorer.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "target.h"
|
||||
|
||||
#include <coreplugin/fileutils.h>
|
||||
@@ -39,7 +40,7 @@ BuildDirectoryAspect::BuildDirectoryAspect(const BuildConfiguration *bc)
|
||||
: d(new Private(bc->target()))
|
||||
{
|
||||
setSettingsKey("ProjectExplorer.BuildConfiguration.BuildDirectory");
|
||||
setLabelText(tr("Build directory:"));
|
||||
setLabelText(Tr::tr("Build directory:"));
|
||||
setDisplayStyle(PathChooserDisplay);
|
||||
setExpectedKind(Utils::PathChooser::Directory);
|
||||
setValidationFunction([this](FancyLineEdit *edit, QString *error) {
|
||||
@@ -52,7 +53,7 @@ BuildDirectoryAspect::BuildDirectoryAspect(const BuildConfiguration *bc)
|
||||
|
||||
if (buildDevice && buildDevice->type() != ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE
|
||||
&& !buildDevice->rootPath().ensureReachable(newPath)) {
|
||||
*error = tr("The build directory is not reachable from the build device.");
|
||||
*error = Tr::tr("The build directory is not reachable from the build device.");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -71,7 +72,7 @@ BuildDirectoryAspect::~BuildDirectoryAspect()
|
||||
void BuildDirectoryAspect::allowInSourceBuilds(const FilePath &sourceDir)
|
||||
{
|
||||
d->sourceDir = sourceDir;
|
||||
makeCheckable(CheckBoxPlacement::Top, tr("Shadow build:"), QString());
|
||||
makeCheckable(CheckBoxPlacement::Top, Tr::tr("Shadow build:"), QString());
|
||||
setChecked(d->sourceDir != filePath());
|
||||
}
|
||||
|
||||
@@ -164,7 +165,7 @@ void BuildDirectoryAspect::updateProblemLabel()
|
||||
|
||||
SeparateDebugInfoAspect::SeparateDebugInfoAspect()
|
||||
{
|
||||
setDisplayName(tr("Separate debug info:"));
|
||||
setDisplayName(Tr::tr("Separate debug info:"));
|
||||
setSettingsKey("SeparateDebugInfo");
|
||||
setValue(ProjectExplorerPlugin::buildPropertiesSettings().separateDebugInfo.value());
|
||||
}
|
||||
|
@@ -12,15 +12,14 @@
|
||||
#include "environmentwidget.h"
|
||||
#include "kit.h"
|
||||
#include "kitinformation.h"
|
||||
#include "kitmanager.h"
|
||||
#include "namedwidget.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectexplorer.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "project.h"
|
||||
#include "projecttree.h"
|
||||
#include "session.h"
|
||||
#include "target.h"
|
||||
#include "toolchain.h"
|
||||
|
||||
#include <coreplugin/fileutils.h>
|
||||
#include <coreplugin/icore.h>
|
||||
@@ -56,13 +55,12 @@ namespace Internal {
|
||||
|
||||
class BuildEnvironmentWidget : public NamedWidget
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::Internal::BuildEnvironmentWidget)
|
||||
|
||||
public:
|
||||
explicit BuildEnvironmentWidget(BuildConfiguration *bc)
|
||||
: NamedWidget(tr("Build Environment"))
|
||||
: NamedWidget(Tr::tr("Build Environment"))
|
||||
{
|
||||
auto clearBox = new QCheckBox(tr("Clear system environment"), this);
|
||||
auto clearBox = new QCheckBox(Tr::tr("Clear system environment"), this);
|
||||
clearBox->setChecked(!bc->useSystemEnvironment());
|
||||
|
||||
auto envWidget = new EnvironmentWidget(this, EnvironmentWidget::TypeLocal, clearBox);
|
||||
@@ -100,15 +98,14 @@ public:
|
||||
|
||||
class CustomParsersBuildWidget : public NamedWidget
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::Internal::CustomParsersBuildWidget)
|
||||
public:
|
||||
CustomParsersBuildWidget(BuildConfiguration *bc) : NamedWidget(tr("Custom Output Parsers"))
|
||||
CustomParsersBuildWidget(BuildConfiguration *bc) : NamedWidget(Tr::tr("Custom Output Parsers"))
|
||||
{
|
||||
const auto layout = new QVBoxLayout(this);
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
const auto pasteStdOutCB = new QCheckBox(tr("Parse standard output during build"), this);
|
||||
pasteStdOutCB->setToolTip(tr("Makes output parsers look for diagnostics "
|
||||
const auto pasteStdOutCB = new QCheckBox(Tr::tr("Parse standard output during build"), this);
|
||||
pasteStdOutCB->setToolTip(Tr::tr("Makes output parsers look for diagnostics "
|
||||
"on stdout rather than stderr."));
|
||||
pasteStdOutCB->setChecked(bc->parseStdOut());
|
||||
layout->addWidget(pasteStdOutCB);
|
||||
@@ -163,18 +160,18 @@ BuildConfiguration::BuildConfiguration(Target *target, Utils::Id id)
|
||||
QTC_CHECK(target && target == this->target());
|
||||
|
||||
MacroExpander *expander = macroExpander();
|
||||
expander->setDisplayName(tr("Build Settings"));
|
||||
expander->setDisplayName(Tr::tr("Build Settings"));
|
||||
expander->setAccumulating(true);
|
||||
expander->registerSubProvider([target] { return target->macroExpander(); });
|
||||
|
||||
expander->registerVariable("buildDir", tr("Build directory"),
|
||||
expander->registerVariable("buildDir", Tr::tr("Build directory"),
|
||||
[this] { return buildDirectory().toUserOutput(); });
|
||||
|
||||
expander->registerVariable("BuildConfig:Name", tr("Name of the build configuration"),
|
||||
expander->registerVariable("BuildConfig:Name", Tr::tr("Name of the build configuration"),
|
||||
[this] { return displayName(); });
|
||||
|
||||
expander->registerPrefix("BuildConfig:Env",
|
||||
tr("Variables in the build configuration's environment"),
|
||||
Tr::tr("Variables in the build configuration's environment"),
|
||||
[this](const QString &var) { return environment().expandedValueForKey(var); });
|
||||
|
||||
connect(Core::ICore::instance(), &Core::ICore::systemEnvironmentChanged,
|
||||
@@ -201,8 +198,8 @@ BuildConfiguration::BuildConfiguration(Target *target, Utils::Id id)
|
||||
});
|
||||
|
||||
d->m_tooltipAspect = addAspect<StringAspect>();
|
||||
d->m_tooltipAspect->setLabelText(tr("Tooltip in target selector:"));
|
||||
d->m_tooltipAspect->setToolTip(tr("Appears as a tooltip when hovering the build configuration"));
|
||||
d->m_tooltipAspect->setLabelText(Tr::tr("Tooltip in target selector:"));
|
||||
d->m_tooltipAspect->setToolTip(Tr::tr("Appears as a tooltip when hovering the build configuration"));
|
||||
d->m_tooltipAspect->setDisplayStyle(StringAspect::LineEditDisplay);
|
||||
d->m_tooltipAspect->setSettingsKey("ProjectExplorer.BuildConfiguration.Tooltip");
|
||||
connect(d->m_tooltipAspect, &StringAspect::changed, this, [this] {
|
||||
@@ -481,9 +478,9 @@ Environment BuildConfiguration::baseEnvironment() const
|
||||
QString BuildConfiguration::baseEnvironmentText() const
|
||||
{
|
||||
if (useSystemEnvironment())
|
||||
return tr("System Environment");
|
||||
return Tr::tr("System Environment");
|
||||
else
|
||||
return tr("Clean Environment");
|
||||
return Tr::tr("Clean Environment");
|
||||
}
|
||||
|
||||
Environment BuildConfiguration::environment() const
|
||||
@@ -543,7 +540,7 @@ bool BuildConfiguration::isEnabled() const
|
||||
QString BuildConfiguration::disabledReason() const
|
||||
{
|
||||
if (!buildSystem()->hasParsingData())
|
||||
return (tr("The project was not parsed successfully."));
|
||||
return (Tr::tr("The project was not parsed successfully."));
|
||||
return QString();
|
||||
}
|
||||
|
||||
@@ -596,25 +593,22 @@ FilePath BuildConfiguration::buildDirectoryFromTemplate(const FilePath &projectD
|
||||
qCDebug(bcLog) << Q_FUNC_INFO << projectDir << mainFilePath << projectName << bcName;
|
||||
|
||||
exp.registerFileVariables("Project",
|
||||
QCoreApplication::translate("::ProjectExplorer", "Main file of the project"),
|
||||
Tr::tr("Main file of the project"),
|
||||
[mainFilePath] { return mainFilePath; });
|
||||
exp.registerVariable("Project:Name",
|
||||
QCoreApplication::translate("::ProjectExplorer", "Name of the project"),
|
||||
Tr::tr("Name of the project"),
|
||||
[projectName] { return projectName; });
|
||||
exp.registerVariable("BuildConfig:Name",
|
||||
QCoreApplication::translate(
|
||||
"::ProjectExplorer", "Name of the project's active build configuration"),
|
||||
Tr::tr("Name of the project's active build configuration"),
|
||||
[bcName] { return bcName; });
|
||||
exp.registerVariable("BuildSystem:Name",
|
||||
QCoreApplication::translate(
|
||||
"::ProjectExplorer", "Name of the project's active build system"),
|
||||
Tr::tr("Name of the project's active build system"),
|
||||
[buildSystem] { return buildSystem; });
|
||||
exp.registerVariable("CurrentBuild:Type",
|
||||
QCoreApplication::translate("::ProjectExplorer", "Type of current build"),
|
||||
Tr::tr("Type of current build"),
|
||||
[buildType] { return buildTypeName(buildType); }, false);
|
||||
exp.registerVariable("BuildConfig:Type",
|
||||
QCoreApplication::translate(
|
||||
"::ProjectExplorer", "Type of the project's active build configuration"),
|
||||
Tr::tr("Type of the project's active build configuration"),
|
||||
[buildType] { return buildTypeName(buildType); });
|
||||
exp.registerSubProvider([kit] { return kit->macroExpander(); });
|
||||
|
||||
|
@@ -288,16 +288,16 @@ BuildManager *BuildManager::instance()
|
||||
void BuildManager::extensionsInitialized()
|
||||
{
|
||||
TaskHub::addCategory(Constants::TASK_CATEGORY_COMPILE,
|
||||
tr("Compile", "Category for compiler issues listed under 'Issues'"),
|
||||
Tr::tr("Compile", "Category for compiler issues listed under 'Issues'"),
|
||||
true, 100);
|
||||
TaskHub::addCategory(Constants::TASK_CATEGORY_BUILDSYSTEM,
|
||||
tr("Build System", "Category for build system issues listed under 'Issues'"),
|
||||
Tr::tr("Build System", "Category for build system issues listed under 'Issues'"),
|
||||
true, 100);
|
||||
TaskHub::addCategory(Constants::TASK_CATEGORY_DEPLOYMENT,
|
||||
tr("Deployment", "Category for deployment issues listed under 'Issues'"),
|
||||
Tr::tr("Deployment", "Category for deployment issues listed under 'Issues'"),
|
||||
true, 100);
|
||||
TaskHub::addCategory(Constants::TASK_CATEGORY_AUTOTEST,
|
||||
tr("Autotests", "Category for autotest issues listed under 'Issues'"),
|
||||
Tr::tr("Autotests", "Category for autotest issues listed under 'Issues'"),
|
||||
true, 100);
|
||||
}
|
||||
|
||||
@@ -457,14 +457,14 @@ QString BuildManager::displayNameForStepId(Id stepId)
|
||||
{
|
||||
if (stepId == Constants::BUILDSTEPS_CLEAN) {
|
||||
//: Displayed name for a "cleaning" build step
|
||||
return tr("Clean");
|
||||
return Tr::tr("Clean");
|
||||
}
|
||||
if (stepId == Constants::BUILDSTEPS_DEPLOY) {
|
||||
//: Displayed name for a deploy step
|
||||
return tr("Deploy");
|
||||
return Tr::tr("Deploy");
|
||||
}
|
||||
//: Displayed name for a normal build step
|
||||
return tr("Build");
|
||||
return Tr::tr("Build");
|
||||
}
|
||||
|
||||
void BuildManager::cancel()
|
||||
@@ -504,7 +504,7 @@ void BuildManager::finish()
|
||||
|
||||
void BuildManager::emitCancelMessage()
|
||||
{
|
||||
addToOutputWindow(tr("Canceled build/deployment."), BuildStep::OutputFormat::ErrorMessage);
|
||||
addToOutputWindow(Tr::tr("Canceled build/deployment."), BuildStep::OutputFormat::ErrorMessage);
|
||||
}
|
||||
|
||||
void BuildManager::clearBuildQueue()
|
||||
@@ -659,7 +659,7 @@ void BuildManager::nextBuildQueue()
|
||||
|
||||
//TODO NBS fix in qtconcurrent
|
||||
d->m_progressFutureInterface->setProgressValueAndText(d->m_progress*100,
|
||||
tr("Build/Deployment canceled"));
|
||||
Tr::tr("Build/Deployment canceled"));
|
||||
clearBuildQueue();
|
||||
return;
|
||||
}
|
||||
@@ -679,13 +679,13 @@ void BuildManager::nextBuildQueue()
|
||||
Target *t = d->m_currentBuildStep->target();
|
||||
const QString projectName = d->m_currentBuildStep->project()->displayName();
|
||||
const QString targetName = t->displayName();
|
||||
addToOutputWindow(tr("Error while building/deploying project %1 (kit: %2)").arg(projectName, targetName), BuildStep::OutputFormat::Stderr);
|
||||
addToOutputWindow(Tr::tr("Error while building/deploying project %1 (kit: %2)").arg(projectName, targetName), BuildStep::OutputFormat::Stderr);
|
||||
const Tasks kitTasks = t->kit()->validate();
|
||||
if (!kitTasks.isEmpty()) {
|
||||
addToOutputWindow(tr("The kit %1 has configuration issues which might be the root cause for this problem.")
|
||||
addToOutputWindow(Tr::tr("The kit %1 has configuration issues which might be the root cause for this problem.")
|
||||
.arg(targetName), BuildStep::OutputFormat::Stderr);
|
||||
}
|
||||
addToOutputWindow(tr("When executing step \"%1\"").arg(d->m_currentBuildStep->displayName()), BuildStep::OutputFormat::Stderr);
|
||||
addToOutputWindow(Tr::tr("When executing step \"%1\"").arg(d->m_currentBuildStep->displayName()), BuildStep::OutputFormat::Stderr);
|
||||
|
||||
bool abort = ProjectExplorerPlugin::projectExplorerSettings().abortBuildAllOnError;
|
||||
if (!abort) {
|
||||
@@ -702,7 +702,7 @@ void BuildManager::nextBuildQueue()
|
||||
if (abort) {
|
||||
// NBS TODO fix in qtconcurrent
|
||||
d->m_progressFutureInterface->setProgressValueAndText(d->m_progress * 100,
|
||||
tr("Error while building/deploying project %1 (kit: %2)")
|
||||
Tr::tr("Error while building/deploying project %1 (kit: %2)")
|
||||
.arg(projectName, targetName));
|
||||
clearBuildQueue();
|
||||
} else {
|
||||
@@ -729,13 +729,13 @@ void BuildManager::nextStep()
|
||||
|
||||
if (d->m_currentBuildStep->project() != d->m_previousBuildStepProject) {
|
||||
const QString projectName = d->m_currentBuildStep->project()->displayName();
|
||||
addToOutputWindow(tr("Running steps for project %1...")
|
||||
addToOutputWindow(Tr::tr("Running steps for project %1...")
|
||||
.arg(projectName), BuildStep::OutputFormat::NormalMessage);
|
||||
d->m_previousBuildStepProject = d->m_currentBuildStep->project();
|
||||
}
|
||||
|
||||
if (d->m_skipDisabled) {
|
||||
addToOutputWindow(tr("Skipping disabled step %1.")
|
||||
addToOutputWindow(Tr::tr("Skipping disabled step %1.")
|
||||
.arg(d->m_currentBuildStep->displayName()), BuildStep::OutputFormat::NormalMessage);
|
||||
nextBuildQueue();
|
||||
return;
|
||||
@@ -803,8 +803,8 @@ bool BuildManager::buildQueueAppend(const QList<BuildStep *> &steps, QStringList
|
||||
// print something for the user
|
||||
const QString projectName = bs->project()->displayName();
|
||||
const QString targetName = bs->target()->displayName();
|
||||
addToOutputWindow(tr("Error while building/deploying project %1 (kit: %2)").arg(projectName, targetName), BuildStep::OutputFormat::Stderr);
|
||||
addToOutputWindow(tr("When executing step \"%1\"").arg(bs->displayName()), BuildStep::OutputFormat::Stderr);
|
||||
addToOutputWindow(Tr::tr("Error while building/deploying project %1 (kit: %2)").arg(projectName, targetName), BuildStep::OutputFormat::Stderr);
|
||||
addToOutputWindow(Tr::tr("When executing step \"%1\"").arg(bs->displayName()), BuildStep::OutputFormat::Stderr);
|
||||
|
||||
// disconnect the buildsteps again
|
||||
for (int j = 0; j <= i; ++j)
|
||||
|
@@ -4,6 +4,7 @@
|
||||
#include "buildpropertiessettings.h"
|
||||
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectexplorertr.h"
|
||||
|
||||
#include <utils/layoutbuilder.h>
|
||||
|
||||
@@ -16,10 +17,7 @@ const char DEFAULT_BUILD_DIRECTORY_TEMPLATE[]
|
||||
= "../%{JS: Util.asciify(\"build-%{Project:Name}-%{Kit:FileSystemName}-%{BuildConfig:Name}\")}";
|
||||
|
||||
BuildPropertiesSettings::BuildTriStateAspect::BuildTriStateAspect()
|
||||
: TriStateAspect{
|
||||
BuildPropertiesSettings::tr("Enable"),
|
||||
BuildPropertiesSettings::tr("Disable"),
|
||||
BuildPropertiesSettings::tr("Use Project Default")}
|
||||
: TriStateAspect{Tr::tr("Enable"), Tr::tr("Disable"), Tr::tr("Use Project Default")}
|
||||
{}
|
||||
|
||||
BuildPropertiesSettings::BuildPropertiesSettings()
|
||||
@@ -30,7 +28,7 @@ BuildPropertiesSettings::BuildPropertiesSettings()
|
||||
buildDirectoryTemplate.setDisplayStyle(StringAspect::LineEditDisplay);
|
||||
buildDirectoryTemplate.setSettingsKey("Directories/BuildDirectory.TemplateV2");
|
||||
buildDirectoryTemplate.setDefaultValue(DEFAULT_BUILD_DIRECTORY_TEMPLATE);
|
||||
buildDirectoryTemplate.setLabelText(tr("Default build directory:"));
|
||||
buildDirectoryTemplate.setLabelText(Tr::tr("Default build directory:"));
|
||||
buildDirectoryTemplate.setUseGlobalMacroExpander();
|
||||
buildDirectoryTemplate.setUseResetButton();
|
||||
|
||||
@@ -40,15 +38,15 @@ BuildPropertiesSettings::BuildPropertiesSettings()
|
||||
|
||||
registerAspect(&separateDebugInfo);
|
||||
separateDebugInfo.setSettingsKey("ProjectExplorer/Settings/SeparateDebugInfo");
|
||||
separateDebugInfo.setLabelText(tr("Separate debug info:"));
|
||||
separateDebugInfo.setLabelText(Tr::tr("Separate debug info:"));
|
||||
|
||||
registerAspect(&qmlDebugging);
|
||||
qmlDebugging.setSettingsKey("ProjectExplorer/Settings/QmlDebugging");
|
||||
qmlDebugging.setLabelText(tr("QML debugging:"));
|
||||
qmlDebugging.setLabelText(Tr::tr("QML debugging:"));
|
||||
|
||||
registerAspect(&qtQuickCompiler);
|
||||
qtQuickCompiler.setSettingsKey("ProjectExplorer/Settings/QtQuickCompiler");
|
||||
qtQuickCompiler.setLabelText(tr("Use qmlcachegen:"));
|
||||
qtQuickCompiler.setLabelText(Tr::tr("Use qmlcachegen:"));
|
||||
|
||||
QObject::connect(&showQtSettings, &BoolAspect::valueChanged,
|
||||
&qmlDebugging, &BaseAspect::setVisible);
|
||||
@@ -82,7 +80,7 @@ namespace Internal {
|
||||
BuildPropertiesSettingsPage::BuildPropertiesSettingsPage(BuildPropertiesSettings *settings)
|
||||
{
|
||||
setId("AB.ProjectExplorer.BuildPropertiesSettingsPage");
|
||||
setDisplayName(BuildPropertiesSettings::tr("Default Build Properties"));
|
||||
setDisplayName(Tr::tr("Default Build Properties"));
|
||||
setCategory(ProjectExplorer::Constants::BUILD_AND_RUN_SETTINGS_CATEGORY);
|
||||
setSettings(settings);
|
||||
|
||||
|
@@ -13,8 +13,6 @@ namespace ProjectExplorer {
|
||||
|
||||
class PROJECTEXPLORER_EXPORT BuildPropertiesSettings : public Utils::AspectContainer
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::Internal::BuildPropertiesSettings)
|
||||
|
||||
public:
|
||||
BuildPropertiesSettings();
|
||||
|
||||
|
@@ -2,20 +2,22 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "buildsettingspropertiespage.h"
|
||||
#include "buildinfo.h"
|
||||
#include "buildstepspage.h"
|
||||
#include "target.h"
|
||||
#include "project.h"
|
||||
|
||||
#include "buildconfiguration.h"
|
||||
#include "buildinfo.h"
|
||||
#include "buildmanager.h"
|
||||
#include "namedwidget.h"
|
||||
#include "project.h"
|
||||
#include "projectconfigurationmodel.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "session.h"
|
||||
#include "target.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/stringutils.h>
|
||||
#include <coreplugin/icore.h>
|
||||
#include <projectexplorer/projectexplorer.h>
|
||||
#include <projectexplorer/buildmanager.h>
|
||||
#include <utils/stringutils.h>
|
||||
|
||||
#include <QMargins>
|
||||
@@ -51,7 +53,7 @@ BuildSettingsWidget::BuildSettingsWidget(Target *target) :
|
||||
|
||||
if (!BuildConfigurationFactory::find(m_target)) {
|
||||
auto noSettingsLabel = new QLabel(this);
|
||||
noSettingsLabel->setText(tr("No build settings available"));
|
||||
noSettingsLabel->setText(Tr::tr("No build settings available"));
|
||||
QFont f = noSettingsLabel->font();
|
||||
f.setPointSizeF(f.pointSizeF() * 1.2);
|
||||
noSettingsLabel->setFont(f);
|
||||
@@ -62,31 +64,31 @@ BuildSettingsWidget::BuildSettingsWidget(Target *target) :
|
||||
{ // Edit Build Configuration row
|
||||
auto hbox = new QHBoxLayout();
|
||||
hbox->setContentsMargins(0, 0, 0, 0);
|
||||
hbox->addWidget(new QLabel(tr("Edit build configuration:"), this));
|
||||
hbox->addWidget(new QLabel(Tr::tr("Edit build configuration:"), this));
|
||||
m_buildConfigurationComboBox = new QComboBox(this);
|
||||
m_buildConfigurationComboBox->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
||||
m_buildConfigurationComboBox->setModel(m_target->buildConfigurationModel());
|
||||
hbox->addWidget(m_buildConfigurationComboBox);
|
||||
|
||||
m_addButton = new QPushButton(this);
|
||||
m_addButton->setText(tr("Add"));
|
||||
m_addButton->setText(Tr::tr("Add"));
|
||||
m_addButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
hbox->addWidget(m_addButton);
|
||||
m_addButtonMenu = new QMenu(this);
|
||||
m_addButton->setMenu(m_addButtonMenu);
|
||||
|
||||
m_removeButton = new QPushButton(this);
|
||||
m_removeButton->setText(tr("Remove"));
|
||||
m_removeButton->setText(Tr::tr("Remove"));
|
||||
m_removeButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
hbox->addWidget(m_removeButton);
|
||||
|
||||
m_renameButton = new QPushButton(this);
|
||||
m_renameButton->setText(tr("Rename..."));
|
||||
m_renameButton->setText(Tr::tr("Rename..."));
|
||||
m_renameButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
hbox->addWidget(m_renameButton);
|
||||
|
||||
m_cloneButton = new QPushButton(this);
|
||||
m_cloneButton->setText(tr("Clone..."));
|
||||
m_cloneButton->setText(Tr::tr("Clone..."));
|
||||
m_cloneButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
hbox->addWidget(m_cloneButton);
|
||||
|
||||
@@ -205,8 +207,8 @@ void BuildSettingsWidget::createConfiguration(const BuildInfo &info_)
|
||||
if (info.displayName.isEmpty()) {
|
||||
bool ok = false;
|
||||
info.displayName = QInputDialog::getText(Core::ICore::dialogParent(),
|
||||
tr("New Configuration"),
|
||||
tr("New configuration name:"),
|
||||
Tr::tr("New Configuration"),
|
||||
Tr::tr("New configuration name:"),
|
||||
QLineEdit::Normal,
|
||||
QString(),
|
||||
&ok)
|
||||
@@ -242,8 +244,8 @@ void BuildSettingsWidget::renameConfiguration()
|
||||
{
|
||||
QTC_ASSERT(m_buildConfiguration, return);
|
||||
bool ok;
|
||||
QString name = QInputDialog::getText(this, tr("Rename..."),
|
||||
tr("New name for build configuration <b>%1</b>:").
|
||||
QString name = QInputDialog::getText(this, Tr::tr("Rename..."),
|
||||
Tr::tr("New name for build configuration <b>%1</b>:").
|
||||
arg(m_buildConfiguration->displayName()),
|
||||
QLineEdit::Normal,
|
||||
m_buildConfiguration->displayName(), &ok);
|
||||
@@ -267,8 +269,8 @@ void BuildSettingsWidget::cloneConfiguration()
|
||||
|
||||
//: Title of a the cloned BuildConfiguration window, text of the window
|
||||
QString name = uniqueName(QInputDialog::getText(this,
|
||||
tr("Clone Configuration"),
|
||||
tr("New configuration name:"),
|
||||
Tr::tr("Clone Configuration"),
|
||||
Tr::tr("New configuration name:"),
|
||||
QLineEdit::Normal,
|
||||
m_buildConfiguration->displayName()));
|
||||
if (name.isEmpty())
|
||||
@@ -301,19 +303,19 @@ void BuildSettingsWidget::deleteConfiguration(BuildConfiguration *deleteConfigur
|
||||
|
||||
if (BuildManager::isBuilding(deleteConfiguration)) {
|
||||
QMessageBox box;
|
||||
QPushButton *closeAnyway = box.addButton(tr("Cancel Build && Remove Build Configuration"), QMessageBox::AcceptRole);
|
||||
QPushButton *cancelClose = box.addButton(tr("Do Not Remove"), QMessageBox::RejectRole);
|
||||
QPushButton *closeAnyway = box.addButton(Tr::tr("Cancel Build && Remove Build Configuration"), QMessageBox::AcceptRole);
|
||||
QPushButton *cancelClose = box.addButton(Tr::tr("Do Not Remove"), QMessageBox::RejectRole);
|
||||
box.setDefaultButton(cancelClose);
|
||||
box.setWindowTitle(tr("Remove Build Configuration %1?").arg(deleteConfiguration->displayName()));
|
||||
box.setText(tr("The build configuration <b>%1</b> is currently being built.").arg(deleteConfiguration->displayName()));
|
||||
box.setInformativeText(tr("Do you want to cancel the build process and remove the Build Configuration anyway?"));
|
||||
box.setWindowTitle(Tr::tr("Remove Build Configuration %1?").arg(deleteConfiguration->displayName()));
|
||||
box.setText(Tr::tr("The build configuration <b>%1</b> is currently being built.").arg(deleteConfiguration->displayName()));
|
||||
box.setInformativeText(Tr::tr("Do you want to cancel the build process and remove the Build Configuration anyway?"));
|
||||
box.exec();
|
||||
if (box.clickedButton() != closeAnyway)
|
||||
return;
|
||||
BuildManager::cancel();
|
||||
} else {
|
||||
QMessageBox msgBox(QMessageBox::Question, tr("Remove Build Configuration?"),
|
||||
tr("Do you really want to delete build configuration <b>%1</b>?").arg(deleteConfiguration->displayName()),
|
||||
QMessageBox msgBox(QMessageBox::Question, Tr::tr("Remove Build Configuration?"),
|
||||
Tr::tr("Do you really want to delete build configuration <b>%1</b>?").arg(deleteConfiguration->displayName()),
|
||||
QMessageBox::Yes|QMessageBox::No, this);
|
||||
msgBox.setDefaultButton(QMessageBox::No);
|
||||
msgBox.setEscapeButton(QMessageBox::No);
|
||||
|
@@ -6,6 +6,7 @@
|
||||
#include "buildmanager.h"
|
||||
#include "buildstep.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "target.h"
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
@@ -81,15 +82,15 @@ QString BuildStepList::displayName() const
|
||||
{
|
||||
if (m_id == Constants::BUILDSTEPS_BUILD) {
|
||||
//: Display name of the build build step list. Used as part of the labels in the project window.
|
||||
return tr("Build");
|
||||
return Tr::tr("Build");
|
||||
}
|
||||
if (m_id == Constants::BUILDSTEPS_CLEAN) {
|
||||
//: Display name of the clean build step list. Used as part of the labels in the project window.
|
||||
return tr("Clean");
|
||||
return Tr::tr("Clean");
|
||||
}
|
||||
if (m_id == Constants::BUILDSTEPS_DEPLOY) {
|
||||
//: Display name of the deploy build step list. Used as part of the labels in the project window.
|
||||
return tr("Deploy");
|
||||
return Tr::tr("Deploy");
|
||||
}
|
||||
QTC_CHECK(false);
|
||||
return {};
|
||||
|
@@ -3,10 +3,9 @@
|
||||
|
||||
#include "buildstepspage.h"
|
||||
|
||||
#include "buildconfiguration.h"
|
||||
#include "buildsteplist.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectexplorericons.h"
|
||||
#include "projectexplorertr.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
|
||||
@@ -58,21 +57,21 @@ ToolWidget::ToolWidget(QWidget *parent) : FadingPanel(parent)
|
||||
|
||||
m_upButton = new QToolButton(m_secondWidget);
|
||||
m_upButton->setAutoRaise(true);
|
||||
m_upButton->setToolTip(BuildStepListWidget::tr("Move Up"));
|
||||
m_upButton->setToolTip(Tr::tr("Move Up"));
|
||||
m_upButton->setFixedSize(buttonSize);
|
||||
m_upButton->setIcon(Icons::BUILDSTEP_MOVEUP.icon());
|
||||
hbox->addWidget(m_upButton);
|
||||
|
||||
m_downButton = new QToolButton(m_secondWidget);
|
||||
m_downButton->setAutoRaise(true);
|
||||
m_downButton->setToolTip(BuildStepListWidget::tr("Move Down"));
|
||||
m_downButton->setToolTip(Tr::tr("Move Down"));
|
||||
m_downButton->setFixedSize(buttonSize);
|
||||
m_downButton->setIcon(Icons::BUILDSTEP_MOVEDOWN.icon());
|
||||
hbox->addWidget(m_downButton);
|
||||
|
||||
m_removeButton = new QToolButton(m_secondWidget);
|
||||
m_removeButton->setAutoRaise(true);
|
||||
m_removeButton->setToolTip(BuildStepListWidget::tr("Remove Item"));
|
||||
m_removeButton->setToolTip(Tr::tr("Remove Item"));
|
||||
m_removeButton->setFixedSize(buttonSize);
|
||||
m_removeButton->setIcon(Icons::BUILDSTEP_REMOVE.icon());
|
||||
hbox->addWidget(m_removeButton);
|
||||
@@ -116,8 +115,7 @@ void ToolWidget::setBuildStepEnabled(bool b)
|
||||
m_firstWidget->fadeTo(.999);
|
||||
}
|
||||
m_disableButton->setChecked(!b);
|
||||
m_disableButton->setToolTip(b ? BuildStepListWidget::tr("Disable")
|
||||
: BuildStepListWidget::tr("Enable"));
|
||||
m_disableButton->setToolTip(b ? Tr::tr("Disable") : Tr::tr("Enable"));
|
||||
}
|
||||
|
||||
void ToolWidget::setUpEnabled(bool b)
|
||||
@@ -170,7 +168,7 @@ BuildStepsWidgetData::~BuildStepsWidgetData()
|
||||
|
||||
BuildStepListWidget::BuildStepListWidget(BuildStepList *bsl)
|
||||
//: %1 is the name returned by BuildStepList::displayName
|
||||
: NamedWidget(tr("%1 Steps").arg(bsl->displayName())), m_buildStepList(bsl)
|
||||
: NamedWidget(Tr::tr("%1 Steps").arg(bsl->displayName())), m_buildStepList(bsl)
|
||||
{
|
||||
setupUi();
|
||||
|
||||
@@ -189,9 +187,9 @@ BuildStepListWidget::BuildStepListWidget(BuildStepList *bsl)
|
||||
}
|
||||
|
||||
m_noStepsLabel->setVisible(bsl->isEmpty());
|
||||
m_noStepsLabel->setText(tr("No %1 Steps").arg(m_buildStepList->displayName()));
|
||||
m_noStepsLabel->setText(Tr::tr("No %1 Steps").arg(m_buildStepList->displayName()));
|
||||
|
||||
m_addButton->setText(tr("Add %1 Step").arg(m_buildStepList->displayName()));
|
||||
m_addButton->setText(Tr::tr("Add %1 Step").arg(m_buildStepList->displayName()));
|
||||
|
||||
updateBuildStepButtonsState();
|
||||
}
|
||||
@@ -285,7 +283,7 @@ void BuildStepListWidget::setupUi()
|
||||
m_vbox = new QVBoxLayout(this);
|
||||
m_vbox->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
m_noStepsLabel = new QLabel(tr("No Build Steps"), this);
|
||||
m_noStepsLabel = new QLabel(Tr::tr("No Build Steps"), this);
|
||||
m_noStepsLabel->setContentsMargins(0, 0, 0, 0);
|
||||
m_vbox->addWidget(m_noStepsLabel);
|
||||
|
||||
@@ -324,8 +322,8 @@ void BuildStepListWidget::updateBuildStepButtonsState()
|
||||
this, [this, i] {
|
||||
if (!m_buildStepList->removeStep(i)) {
|
||||
QMessageBox::warning(Core::ICore::dialogParent(),
|
||||
tr("Removing Step failed"),
|
||||
tr("Cannot remove build step while building"),
|
||||
Tr::tr("Removing Step failed"),
|
||||
Tr::tr("Cannot remove build step while building"),
|
||||
QMessageBox::Ok,
|
||||
QMessageBox::Ok);
|
||||
}
|
||||
|
@@ -5,6 +5,7 @@
|
||||
|
||||
#include "buildconfiguration.h"
|
||||
#include "projectexplorer.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "runconfiguration.h"
|
||||
#include "runcontrol.h"
|
||||
#include "session.h"
|
||||
@@ -377,11 +378,11 @@ void BuildSystem::appendBuildSystemOutput(const QString &message)
|
||||
QString BuildSystem::disabledReason(const QString &buildKey) const
|
||||
{
|
||||
if (!hasParsingData()) {
|
||||
QString msg = isParsing() ? tr("The project is currently being parsed.")
|
||||
: tr("The project could not be fully parsed.");
|
||||
QString msg = isParsing() ? Tr::tr("The project is currently being parsed.")
|
||||
: Tr::tr("The project could not be fully parsed.");
|
||||
const FilePath projectFilePath = buildTarget(buildKey).projectFilePath;
|
||||
if (!projectFilePath.isEmpty() && !projectFilePath.exists())
|
||||
msg += '\n' + tr("The project file \"%1\" does not exist.").arg(projectFilePath.toString());
|
||||
msg += '\n' + Tr::tr("The project file \"%1\" does not exist.").arg(projectFilePath.toString());
|
||||
return msg;
|
||||
}
|
||||
return {};
|
||||
|
@@ -5,6 +5,7 @@
|
||||
|
||||
#include "editorconfiguration.h"
|
||||
#include "project.h"
|
||||
#include "projectexplorertr.h"
|
||||
|
||||
#include <cppeditor/cppeditorconstants.h>
|
||||
|
||||
@@ -50,7 +51,7 @@ CodeStyleSettingsWidget::CodeStyleSettingsWidget(Project *project)
|
||||
using namespace Utils::Layouting;
|
||||
|
||||
Column {
|
||||
Row { new QLabel(tr("Language:")), languageComboBox, st },
|
||||
Row { new QLabel(Tr::tr("Language:")), languageComboBox, st },
|
||||
stackedWidget
|
||||
}.attachTo(this, WithoutMargins);
|
||||
}
|
||||
|
@@ -9,9 +9,9 @@
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectexplorericons.h"
|
||||
#include "projectexplorersettings.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "showoutputtaskhandler.h"
|
||||
#include "task.h"
|
||||
#include "taskhub.h"
|
||||
|
||||
#include <coreplugin/outputwindow.h>
|
||||
#include <coreplugin/icore.h>
|
||||
@@ -64,7 +64,7 @@ CompileOutputWindow::CompileOutputWindow(QAction *cancelBuildAction) :
|
||||
Utils::ProxyAction::proxyActionWithIcon(cancelBuildAction,
|
||||
Utils::Icons::STOP_SMALL_TOOLBAR.icon());
|
||||
m_cancelBuildButton->setDefaultAction(cancelBuildProxyButton);
|
||||
m_settingsButton->setToolTip(tr("Open Settings Page"));
|
||||
m_settingsButton->setToolTip(Tr::tr("Open Settings Page"));
|
||||
m_settingsButton->setIcon(Utils::Icons::SETTINGS_TOOLBAR.icon());
|
||||
|
||||
auto updateFontSettings = [this] {
|
||||
@@ -96,9 +96,9 @@ CompileOutputWindow::CompileOutputWindow(QAction *cancelBuildAction) :
|
||||
qRegisterMetaType<QTextCharFormat>("QTextCharFormat");
|
||||
|
||||
m_handler = new ShowOutputTaskHandler(this,
|
||||
tr("Show Compile &Output"),
|
||||
tr("Show the output that generated this issue in Compile Output."),
|
||||
tr("O"));
|
||||
Tr::tr("Show Compile &Output"),
|
||||
Tr::tr("Show the output that generated this issue in Compile Output."),
|
||||
Tr::tr("O"));
|
||||
ExtensionSystem::PluginManager::addObject(m_handler);
|
||||
setupContext(C_COMPILE_OUTPUT, m_outputWindow);
|
||||
loadSettings();
|
||||
@@ -255,14 +255,13 @@ void CompileOutputWindow::storeSettings() const
|
||||
|
||||
class CompileOutputSettingsWidget : public Core::IOptionsPageWidget
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::Internal::CompileOutputSettingsPage)
|
||||
public:
|
||||
CompileOutputSettingsWidget()
|
||||
{
|
||||
const CompileOutputSettings &settings = BuildManager::compileOutputSettings();
|
||||
m_wrapOutputCheckBox.setText(tr("Word-wrap output"));
|
||||
m_wrapOutputCheckBox.setText(Tr::tr("Word-wrap output"));
|
||||
m_wrapOutputCheckBox.setChecked(settings.wrapOutput);
|
||||
m_popUpCheckBox.setText(tr("Open Compile Output when building"));
|
||||
m_popUpCheckBox.setText(Tr::tr("Open Compile Output when building"));
|
||||
m_popUpCheckBox.setChecked(settings.popUp);
|
||||
m_maxCharsBox.setMaximum(100000000);
|
||||
m_maxCharsBox.setValue(settings.maxCharCount);
|
||||
@@ -270,7 +269,7 @@ public:
|
||||
layout->addWidget(&m_wrapOutputCheckBox);
|
||||
layout->addWidget(&m_popUpCheckBox);
|
||||
const auto maxCharsLayout = new QHBoxLayout;
|
||||
const QString msg = tr("Limit output to %1 characters");
|
||||
const QString msg = Tr::tr("Limit output to %1 characters");
|
||||
const QStringList parts = msg.split("%1") << QString() << QString();
|
||||
maxCharsLayout->addWidget(new QLabel(parts.at(0).trimmed()));
|
||||
maxCharsLayout->addWidget(&m_maxCharsBox);
|
||||
@@ -298,7 +297,7 @@ private:
|
||||
CompileOutputSettingsPage::CompileOutputSettingsPage()
|
||||
{
|
||||
setId(OPTIONS_PAGE_ID);
|
||||
setDisplayName(CompileOutputSettingsWidget::tr("Compile Output"));
|
||||
setDisplayName(Tr::tr("Compile Output"));
|
||||
setCategory(Constants::BUILD_AND_RUN_SETTINGS_CATEGORY);
|
||||
setWidgetCreator([] { return new CompileOutputSettingsWidget; });
|
||||
}
|
||||
|
@@ -4,7 +4,10 @@
|
||||
#pragma once
|
||||
|
||||
#include "buildstep.h"
|
||||
|
||||
#include "projectexplorersettings.h"
|
||||
#include "projectexplorertr.h"
|
||||
|
||||
#include <coreplugin/dialogs/ioptionspage.h>
|
||||
#include <coreplugin/ioutputpane.h>
|
||||
|
||||
@@ -33,7 +36,7 @@ public:
|
||||
|
||||
QWidget *outputWidget(QWidget *) override;
|
||||
QList<QWidget *> toolBarWidgets() const override;
|
||||
QString displayName() const override { return tr("Compile Output"); }
|
||||
QString displayName() const override { return Tr::tr("Compile Output"); }
|
||||
int priorityInStatusBar() const override;
|
||||
void clearContents() override;
|
||||
bool canFocus() const override;
|
||||
|
@@ -3,6 +3,8 @@
|
||||
|
||||
#include "copytaskhandler.h"
|
||||
|
||||
#include "projectexplorertr.h"
|
||||
|
||||
#include <coreplugin/coreconstants.h>
|
||||
|
||||
#include <utils/stringutils.h>
|
||||
@@ -19,11 +21,11 @@ void CopyTaskHandler::handle(const Tasks &tasks)
|
||||
switch (task.type) {
|
||||
case Task::Error:
|
||||
//: Task is of type: error
|
||||
type = tr("error:") + QLatin1Char(' ');
|
||||
type = Tr::tr("error:") + QLatin1Char(' ');
|
||||
break;
|
||||
case Task::Warning:
|
||||
//: Task is of type: warning
|
||||
type = tr("warning:") + QLatin1Char(' ');
|
||||
type = Tr::tr("warning:") + QLatin1Char(' ');
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@@ -2,8 +2,10 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "currentprojectfilter.h"
|
||||
#include "projecttree.h"
|
||||
|
||||
#include "project.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "projecttree.h"
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
|
||||
@@ -15,8 +17,8 @@ CurrentProjectFilter::CurrentProjectFilter()
|
||||
: BaseFileFilter()
|
||||
{
|
||||
setId("Files in current project");
|
||||
setDisplayName(tr("Files in Current Project"));
|
||||
setDescription(tr("Matches all files from the current document's project. Append \"+<number>\" "
|
||||
setDisplayName(Tr::tr("Files in Current Project"));
|
||||
setDescription(Tr::tr("Matches all files from the current document's project. Append \"+<number>\" "
|
||||
"or \":<number>\" to jump to the given line number. Append another "
|
||||
"\"+<number>\" or \":<number>\" to jump to the column number as well."));
|
||||
setDefaultShortcutString("p");
|
||||
|
@@ -4,6 +4,7 @@
|
||||
#include "currentprojectfind.h"
|
||||
|
||||
#include "project.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "projecttree.h"
|
||||
#include "session.h"
|
||||
|
||||
@@ -38,9 +39,9 @@ QString CurrentProjectFind::displayName() const
|
||||
{
|
||||
Project *p = ProjectTree::currentProject();
|
||||
if (p)
|
||||
return tr("Project \"%1\"").arg(p->displayName());
|
||||
return Tr::tr("Project \"%1\"").arg(p->displayName());
|
||||
else
|
||||
return tr("Current Project");
|
||||
return Tr::tr("Current Project");
|
||||
}
|
||||
|
||||
bool CurrentProjectFind::isEnabled() const
|
||||
@@ -74,7 +75,7 @@ QString CurrentProjectFind::label() const
|
||||
{
|
||||
Project *p = ProjectTree::currentProject();
|
||||
QTC_ASSERT(p, return QString());
|
||||
return tr("Project \"%1\":").arg(p->displayName());
|
||||
return Tr::tr("Project \"%1\":").arg(p->displayName());
|
||||
}
|
||||
|
||||
void CurrentProjectFind::handleProjectChanged()
|
||||
|
@@ -5,6 +5,7 @@
|
||||
|
||||
#include "localenvironmentaspect.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "runconfigurationaspects.h"
|
||||
#include "target.h"
|
||||
|
||||
@@ -71,15 +72,15 @@ Runnable CustomExecutableRunConfiguration::runnable() const
|
||||
QString CustomExecutableRunConfiguration::defaultDisplayName() const
|
||||
{
|
||||
if (executable().isEmpty())
|
||||
return tr("Custom Executable");
|
||||
return tr("Run %1").arg(executable().toUserOutput());
|
||||
return Tr::tr("Custom Executable");
|
||||
return Tr::tr("Run %1").arg(executable().toUserOutput());
|
||||
}
|
||||
|
||||
Tasks CustomExecutableRunConfiguration::checkForIssues() const
|
||||
{
|
||||
Tasks tasks;
|
||||
if (executable().isEmpty()) {
|
||||
tasks << createConfigurationIssue(tr("You need to set an executable in the custom run "
|
||||
tasks << createConfigurationIssue(Tr::tr("You need to set an executable in the custom run "
|
||||
"configuration."));
|
||||
}
|
||||
return tasks;
|
||||
@@ -88,7 +89,7 @@ Tasks CustomExecutableRunConfiguration::checkForIssues() const
|
||||
// Factories
|
||||
|
||||
CustomExecutableRunConfigurationFactory::CustomExecutableRunConfigurationFactory() :
|
||||
FixedRunConfigurationFactory(CustomExecutableRunConfiguration::tr("Custom Executable"))
|
||||
FixedRunConfigurationFactory(Tr::tr("Custom Executable"))
|
||||
{
|
||||
registerRunConfiguration<CustomExecutableRunConfiguration>(CUSTOM_EXECUTABLE_RUNCONFIG_ID);
|
||||
}
|
||||
|
@@ -3,11 +3,13 @@
|
||||
|
||||
#include "customparser.h"
|
||||
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectexplorer.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "task.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
@@ -160,7 +162,7 @@ CustomParsersAspect::CustomParsersAspect(Target *target)
|
||||
Q_UNUSED(target)
|
||||
setId("CustomOutputParsers");
|
||||
setSettingsKey("CustomOutputParsers");
|
||||
setDisplayName(tr("Custom Output Parsers"));
|
||||
setDisplayName(Tr::tr("Custom Output Parsers"));
|
||||
addDataExtractor(this, &CustomParsersAspect::parsers, &Data::parsers);
|
||||
setConfigWidgetCreator([this] {
|
||||
const auto widget = new Internal::CustomParsersSelectionWidget;
|
||||
@@ -261,7 +263,7 @@ public:
|
||||
SelectionWidget(QWidget *parent = nullptr) : QWidget(parent)
|
||||
{
|
||||
const auto layout = new QVBoxLayout(this);
|
||||
const auto explanatoryLabel = new QLabel(tr(
|
||||
const auto explanatoryLabel = new QLabel(Tr::tr(
|
||||
"Custom output parsers scan command line output for user-provided error patterns<br>"
|
||||
"to create entries in Issues.<br>"
|
||||
"The parsers can be configured <a href=\"dummy\">here</a>."));
|
||||
@@ -343,9 +345,9 @@ void CustomParsersSelectionWidget::updateSummary()
|
||||
const QList<Utils::Id> parsers
|
||||
= qobject_cast<SelectionWidget *>(widget())->selectedParsers();
|
||||
if (parsers.isEmpty())
|
||||
setSummaryText(tr("There are no custom parsers active"));
|
||||
setSummaryText(Tr::tr("There are no custom parsers active"));
|
||||
else
|
||||
setSummaryText(tr("There are %n custom parsers active", nullptr, parsers.count()));
|
||||
setSummaryText(Tr::tr("There are %n custom parsers active", nullptr, parsers.count()));
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
|
@@ -3,6 +3,8 @@
|
||||
|
||||
#include "customparserconfigdialog.h"
|
||||
|
||||
#include "projectexplorertr.h"
|
||||
|
||||
#include <utils/layoutbuilder.h>
|
||||
#include <utils/theme/theme.h>
|
||||
|
||||
@@ -27,15 +29,15 @@ CustomParserConfigDialog::CustomParserConfigDialog(QWidget *parent)
|
||||
: QDialog(parent)
|
||||
{
|
||||
resize(516, 480);
|
||||
setWindowTitle(tr("Custom Parser"));
|
||||
setWindowTitle(Tr::tr("Custom Parser"));
|
||||
|
||||
m_errorPattern = new QLineEdit;
|
||||
auto label_1 = new QLabel(tr("&Error message capture pattern:"));
|
||||
auto label_1 = new QLabel(Tr::tr("&Error message capture pattern:"));
|
||||
label_1->setBuddy(m_errorPattern);
|
||||
|
||||
auto label = new QLabel(tr("&File name:"));
|
||||
auto label_2 = new QLabel(tr("&Line number:"));
|
||||
auto label_3 = new QLabel(tr("&Message:"));
|
||||
auto label = new QLabel(Tr::tr("&File name:"));
|
||||
auto label_2 = new QLabel(Tr::tr("&Line number:"));
|
||||
auto label_3 = new QLabel(Tr::tr("&Message:"));
|
||||
|
||||
m_errorFileNameCap = new QSpinBox;
|
||||
m_errorFileNameCap->setMaximum(9);
|
||||
@@ -53,10 +55,10 @@ CustomParserConfigDialog::CustomParserConfigDialog(QWidget *parent)
|
||||
label_2->setBuddy(m_errorLineNumberCap);
|
||||
label_3->setBuddy(m_errorMessageCap);
|
||||
|
||||
m_errorStdOutChannel = new QCheckBox(tr("Standard output"));
|
||||
m_errorStdErrChannel = new QCheckBox(tr("Standard error"));
|
||||
m_errorStdOutChannel = new QCheckBox(Tr::tr("Standard output"));
|
||||
m_errorStdErrChannel = new QCheckBox(Tr::tr("Standard error"));
|
||||
|
||||
auto label_5 = new QLabel(tr("E&rror message:"));
|
||||
auto label_5 = new QLabel(Tr::tr("E&rror message:"));
|
||||
m_errorOutputMessage = new QLineEdit;
|
||||
m_errorFileNameTest = new QLabel;
|
||||
m_errorLineNumberTest = new QLabel;
|
||||
@@ -66,9 +68,9 @@ CustomParserConfigDialog::CustomParserConfigDialog(QWidget *parent)
|
||||
|
||||
m_warningPattern = new QLineEdit;
|
||||
|
||||
auto label_11 = new QLabel(tr("&File name:"));
|
||||
auto label_12 = new QLabel(tr("&Line number:"));
|
||||
auto label_13 = new QLabel(tr("&Message:"));
|
||||
auto label_11 = new QLabel(Tr::tr("&File name:"));
|
||||
auto label_12 = new QLabel(Tr::tr("&Line number:"));
|
||||
auto label_13 = new QLabel(Tr::tr("&Message:"));
|
||||
|
||||
m_warningLineNumberCap = new QSpinBox;
|
||||
m_warningLineNumberCap->setMaximum(9);
|
||||
@@ -86,10 +88,10 @@ CustomParserConfigDialog::CustomParserConfigDialog(QWidget *parent)
|
||||
label_12->setBuddy(m_warningLineNumberCap);
|
||||
label_13->setBuddy(m_warningMessageCap);
|
||||
|
||||
m_warningStdOutChannel = new QCheckBox(tr("Standard output"));
|
||||
m_warningStdErrChannel = new QCheckBox(tr("Standard error"));
|
||||
m_warningStdOutChannel = new QCheckBox(Tr::tr("Standard output"));
|
||||
m_warningStdErrChannel = new QCheckBox(Tr::tr("Standard error"));
|
||||
|
||||
auto label_14 = new QLabel(tr("Warning message:"));
|
||||
auto label_14 = new QLabel(Tr::tr("Warning message:"));
|
||||
m_warningOutputMessage = new QLineEdit;
|
||||
m_warningFileNameTest = new QLabel;
|
||||
m_warningLineNumberTest = new QLabel;
|
||||
@@ -103,28 +105,28 @@ CustomParserConfigDialog::CustomParserConfigDialog(QWidget *parent)
|
||||
|
||||
auto tabWarning = new QWidget;
|
||||
Column {
|
||||
tr("Warning message capture pattern:"),
|
||||
Tr::tr("Warning message capture pattern:"),
|
||||
m_warningPattern,
|
||||
Group {
|
||||
title(tr("Capture Positions")),
|
||||
title(Tr::tr("Capture Positions")),
|
||||
Grid {
|
||||
label_11, label_12, label_13, br,
|
||||
m_warningFileNameCap, m_warningLineNumberCap, m_warningMessageCap
|
||||
}
|
||||
},
|
||||
Group {
|
||||
title(tr("Capture Output Channels")),
|
||||
title(Tr::tr("Capture Output Channels")),
|
||||
Row { m_warningStdOutChannel, m_warningStdErrChannel }
|
||||
},
|
||||
Group {
|
||||
title(tr("Test")),
|
||||
title(Tr::tr("Test")),
|
||||
Column {
|
||||
label_14,
|
||||
m_warningOutputMessage,
|
||||
Form {
|
||||
tr("File name:"), m_warningFileNameTest, br,
|
||||
tr("Line number:"), m_warningLineNumberTest, br,
|
||||
tr("Message:"), m_warningMessageTest
|
||||
Tr::tr("File name:"), m_warningFileNameTest, br,
|
||||
Tr::tr("Line number:"), m_warningLineNumberTest, br,
|
||||
Tr::tr("Message:"), m_warningMessageTest
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -135,33 +137,33 @@ CustomParserConfigDialog::CustomParserConfigDialog(QWidget *parent)
|
||||
label_1,
|
||||
m_errorPattern,
|
||||
Group {
|
||||
title(tr("Capture Positions")),
|
||||
title(Tr::tr("Capture Positions")),
|
||||
Grid {
|
||||
label, label_2, label_3, br,
|
||||
m_errorFileNameCap, m_errorLineNumberCap, m_errorMessageCap
|
||||
}
|
||||
},
|
||||
Group {
|
||||
title(tr("Capture Output Channels")),
|
||||
title(Tr::tr("Capture Output Channels")),
|
||||
Row { m_errorStdOutChannel, m_errorStdErrChannel }
|
||||
},
|
||||
Group {
|
||||
title(tr("Test")),
|
||||
title(Tr::tr("Test")),
|
||||
Column {
|
||||
label_5,
|
||||
m_errorOutputMessage,
|
||||
Form {
|
||||
tr("File name:"), m_errorFileNameTest, br,
|
||||
tr("Line number:"), m_errorLineNumberTest, br,
|
||||
tr("Message:"), m_errorMessageTest
|
||||
Tr::tr("File name:"), m_errorFileNameTest, br,
|
||||
Tr::tr("Line number:"), m_errorLineNumberTest, br,
|
||||
Tr::tr("Message:"), m_errorMessageTest
|
||||
}
|
||||
}
|
||||
},
|
||||
}.attachTo(tabError);
|
||||
|
||||
auto tabWidget = new QTabWidget(this);
|
||||
tabWidget->addTab(tabError, tr("Error"));
|
||||
tabWidget->addTab(tabWarning, tr("Warning"));
|
||||
tabWidget->addTab(tabError, Tr::tr("Error"));
|
||||
tabWidget->addTab(tabWarning, Tr::tr("Warning"));
|
||||
tabWidget->setCurrentIndex(0);
|
||||
|
||||
Column {
|
||||
@@ -414,15 +416,15 @@ bool CustomParserConfigDialog::checkPattern(QLineEdit *pattern, const QString &o
|
||||
if (rx.pattern().isEmpty() || !rx.isValid() || !match->hasMatch()) {
|
||||
*errorMessage = QString::fromLatin1("<font color=\"%1\">%2 ").arg(
|
||||
Utils::creatorTheme()->color(Utils::Theme::TextColorError).name(),
|
||||
tr("Not applicable:"));
|
||||
Tr::tr("Not applicable:"));
|
||||
if (rx.pattern().isEmpty())
|
||||
*errorMessage += tr("Pattern is empty.");
|
||||
*errorMessage += Tr::tr("Pattern is empty.");
|
||||
else if (!rx.isValid())
|
||||
*errorMessage += rx.errorString();
|
||||
else if (outputText.isEmpty())
|
||||
*errorMessage += tr("No message given.");
|
||||
*errorMessage += Tr::tr("No message given.");
|
||||
else
|
||||
*errorMessage += tr("Pattern does not match the message.");
|
||||
*errorMessage += Tr::tr("Pattern does not match the message.");
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@@ -7,6 +7,7 @@
|
||||
#include "customparserconfigdialog.h"
|
||||
#include "projectexplorer.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectexplorertr.h"
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/qtcassert.h>
|
||||
@@ -24,8 +25,6 @@ namespace Internal {
|
||||
|
||||
class CustomParsersSettingsWidget final : public Core::IOptionsPageWidget
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::Internal::CustomParsersSettingsPage)
|
||||
|
||||
public:
|
||||
CustomParsersSettingsWidget()
|
||||
{
|
||||
@@ -35,15 +34,15 @@ public:
|
||||
const auto mainLayout = new QVBoxLayout(this);
|
||||
const auto widgetLayout = new QHBoxLayout;
|
||||
mainLayout->addLayout(widgetLayout);
|
||||
const auto hintLabel = new QLabel(tr(
|
||||
const auto hintLabel = new QLabel(Tr::tr(
|
||||
"Custom output parsers defined here can be enabled individually "
|
||||
"in the project's build or run settings."));
|
||||
mainLayout->addWidget(hintLabel);
|
||||
widgetLayout->addWidget(&m_parserListView);
|
||||
const auto buttonLayout = new QVBoxLayout;
|
||||
widgetLayout->addLayout(buttonLayout);
|
||||
const auto addButton = new QPushButton(tr("Add..."));
|
||||
const auto removeButton = new QPushButton(tr("Remove"));
|
||||
const auto addButton = new QPushButton(Tr::tr("Add..."));
|
||||
const auto removeButton = new QPushButton(Tr::tr("Remove"));
|
||||
const auto editButton = new QPushButton("Edit...");
|
||||
buttonLayout->addWidget(addButton);
|
||||
buttonLayout->addWidget(removeButton);
|
||||
@@ -57,7 +56,7 @@ public:
|
||||
return;
|
||||
CustomParserSettings newParser = dlg.settings();
|
||||
newParser.id = Utils::Id::fromString(QUuid::createUuid().toString());
|
||||
newParser.displayName = tr("New Parser");
|
||||
newParser.displayName = Tr::tr("New Parser");
|
||||
m_customParsers << newParser;
|
||||
resetListView();
|
||||
});
|
||||
@@ -118,7 +117,7 @@ private:
|
||||
CustomParsersSettingsPage::CustomParsersSettingsPage()
|
||||
{
|
||||
setId(Constants::CUSTOM_PARSERS_SETTINGS_PAGE_ID);
|
||||
setDisplayName(CustomParsersSettingsWidget::tr("Custom Output Parsers"));
|
||||
setDisplayName(Tr::tr("Custom Output Parsers"));
|
||||
setCategory(Constants::BUILD_AND_RUN_SETTINGS_CATEGORY);
|
||||
setWidgetCreator([] { return new CustomParsersSettingsWidget; });
|
||||
}
|
||||
|
@@ -2,6 +2,7 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "customtoolchain.h"
|
||||
|
||||
#include "abiwidget.h"
|
||||
#include "gccparser.h"
|
||||
#include "clangparser.h"
|
||||
@@ -10,6 +11,7 @@
|
||||
#include "customparser.h"
|
||||
#include "projectexplorer.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "projectmacro.h"
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
@@ -49,7 +51,7 @@ CustomToolChain::CustomToolChain() :
|
||||
ToolChain(Constants::CUSTOM_TOOLCHAIN_TYPEID),
|
||||
m_outputParserId(GccParser::id())
|
||||
{
|
||||
setTypeDisplayName(tr("Custom"));
|
||||
setTypeDisplayName(Tr::tr("Custom"));
|
||||
setTargetAbiKey("ProjectExplorer.CustomToolChain.TargetAbi");
|
||||
setCompilerCommandKey("ProjectExplorer.CustomToolChain.CompilerPath");
|
||||
}
|
||||
@@ -273,10 +275,10 @@ void CustomToolChain::setOutputParserId(Utils::Id parserId)
|
||||
QList<CustomToolChain::Parser> CustomToolChain::parsers()
|
||||
{
|
||||
QList<CustomToolChain::Parser> result;
|
||||
result.append({GccParser::id(), tr("GCC")});
|
||||
result.append({ClangParser::id(), tr("Clang")});
|
||||
result.append({LinuxIccParser::id(), tr("ICC")});
|
||||
result.append({MsvcParser::id(), tr("MSVC")});
|
||||
result.append({GccParser::id(), Tr::tr("GCC")});
|
||||
result.append({ClangParser::id(), Tr::tr("Clang")});
|
||||
result.append({LinuxIccParser::id(), Tr::tr("ICC")});
|
||||
result.append({MsvcParser::id(), Tr::tr("MSVC")});
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -293,7 +295,7 @@ namespace Internal {
|
||||
|
||||
CustomToolChainFactory::CustomToolChainFactory()
|
||||
{
|
||||
setDisplayName(CustomToolChain::tr("Custom"));
|
||||
setDisplayName(Tr::tr("Custom"));
|
||||
setSupportedToolChainType(Constants::CUSTOM_TOOLCHAIN_TYPEID);
|
||||
setSupportsAllLanguages(true);
|
||||
setToolchainConstructor([] { return new CustomToolChain; });
|
||||
@@ -306,7 +308,6 @@ CustomToolChainFactory::CustomToolChainFactory()
|
||||
|
||||
class TextEditDetailsWidget : public DetailsWidget
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::Internal::TextEditDetailsWidget)
|
||||
public:
|
||||
TextEditDetailsWidget(QPlainTextEdit *textEdit)
|
||||
{
|
||||
@@ -341,7 +342,7 @@ public:
|
||||
void updateSummaryText()
|
||||
{
|
||||
int count = entryCount();
|
||||
setSummaryText(count ? tr("%n entries", "", count) : tr("Empty"));
|
||||
setSummaryText(count ? Tr::tr("%n entries", "", count) : Tr::tr("Empty"));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -373,26 +374,26 @@ CustomToolChainConfigWidget::CustomToolChainConfigWidget(CustomToolChain *tc) :
|
||||
auto parserLayoutWidget = new QWidget;
|
||||
auto parserLayout = new QHBoxLayout(parserLayoutWidget);
|
||||
parserLayout->setContentsMargins(0, 0, 0, 0);
|
||||
m_predefinedMacros->setPlaceholderText(tr("MACRO[=VALUE]"));
|
||||
m_predefinedMacros->setPlaceholderText(Tr::tr("MACRO[=VALUE]"));
|
||||
m_predefinedMacros->setTabChangesFocus(true);
|
||||
m_predefinedMacros->setToolTip(tr("Each line defines a macro. Format is MACRO[=VALUE]."));
|
||||
m_predefinedMacros->setToolTip(Tr::tr("Each line defines a macro. Format is MACRO[=VALUE]."));
|
||||
m_headerPaths->setTabChangesFocus(true);
|
||||
m_headerPaths->setToolTip(tr("Each line adds a global header lookup path."));
|
||||
m_cxx11Flags->setToolTip(tr("Comma-separated list of flags that turn on C++11 support."));
|
||||
m_mkspecs->setToolTip(tr("Comma-separated list of mkspecs."));
|
||||
m_headerPaths->setToolTip(Tr::tr("Each line adds a global header lookup path."));
|
||||
m_cxx11Flags->setToolTip(Tr::tr("Comma-separated list of flags that turn on C++11 support."));
|
||||
m_mkspecs->setToolTip(Tr::tr("Comma-separated list of mkspecs."));
|
||||
m_compilerCommand->setExpectedKind(PathChooser::ExistingCommand);
|
||||
m_compilerCommand->setHistoryCompleter(QLatin1String("PE.ToolChainCommand.History"));
|
||||
m_makeCommand->setExpectedKind(PathChooser::ExistingCommand);
|
||||
m_makeCommand->setHistoryCompleter(QLatin1String("PE.MakeCommand.History"));
|
||||
m_mainLayout->addRow(tr("&Compiler path:"), m_compilerCommand);
|
||||
m_mainLayout->addRow(tr("&Make path:"), m_makeCommand);
|
||||
m_mainLayout->addRow(tr("&ABI:"), m_abiWidget);
|
||||
m_mainLayout->addRow(tr("&Predefined macros:"), m_predefinedDetails);
|
||||
m_mainLayout->addRow(tr("&Header paths:"), m_headerDetails);
|
||||
m_mainLayout->addRow(tr("C++11 &flags:"), m_cxx11Flags);
|
||||
m_mainLayout->addRow(tr("&Qt mkspecs:"), m_mkspecs);
|
||||
m_mainLayout->addRow(Tr::tr("&Compiler path:"), m_compilerCommand);
|
||||
m_mainLayout->addRow(Tr::tr("&Make path:"), m_makeCommand);
|
||||
m_mainLayout->addRow(Tr::tr("&ABI:"), m_abiWidget);
|
||||
m_mainLayout->addRow(Tr::tr("&Predefined macros:"), m_predefinedDetails);
|
||||
m_mainLayout->addRow(Tr::tr("&Header paths:"), m_headerDetails);
|
||||
m_mainLayout->addRow(Tr::tr("C++11 &flags:"), m_cxx11Flags);
|
||||
m_mainLayout->addRow(Tr::tr("&Qt mkspecs:"), m_mkspecs);
|
||||
parserLayout->addWidget(m_errorParserComboBox);
|
||||
m_mainLayout->addRow(tr("&Error parser:"), parserLayoutWidget);
|
||||
m_mainLayout->addRow(Tr::tr("&Error parser:"), parserLayoutWidget);
|
||||
addErrorLabel();
|
||||
|
||||
setFromToolchain();
|
||||
|
@@ -33,8 +33,6 @@ namespace Internal { class CustomToolChainFactory; }
|
||||
|
||||
class PROJECTEXPLORER_EXPORT CustomToolChain : public ToolChain
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(CustomToolChain)
|
||||
|
||||
public:
|
||||
class Parser {
|
||||
public:
|
||||
|
@@ -2,7 +2,9 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "customwizardpage.h"
|
||||
|
||||
#include "customwizardparameters.h"
|
||||
#include "../projectexplorertr.h"
|
||||
|
||||
#include <utils/pathchooser.h>
|
||||
#include <utils/qtcassert.h>
|
||||
@@ -406,7 +408,7 @@ CustomWizardPage::CustomWizardPage(const QSharedPointer<CustomWizardContext> &ct
|
||||
m_pathChooser(new PathChooser)
|
||||
{
|
||||
m_pathChooser->setHistoryCompleter(QLatin1String("PE.ProjectDir.History"));
|
||||
addRow(tr("Path:"), m_pathChooser);
|
||||
addRow(Tr::tr("Path:"), m_pathChooser);
|
||||
connect(m_pathChooser, &PathChooser::validChanged, this, &QWizardPage::completeChanged);
|
||||
}
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "customwizardparameters.h"
|
||||
|
||||
#include "customwizardscriptgenerator.h"
|
||||
#include "../projectexplorertr.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
#include <cppeditor/cppeditorconstants.h>
|
||||
@@ -228,7 +230,7 @@ static inline bool assignLanguageElementText(QXmlStreamReader &reader,
|
||||
const auto elementLanguage = reader.attributes().value(QLatin1String(langAttributeC));
|
||||
if (elementLanguage.isEmpty()) {
|
||||
// Try to find a translation for our built-in Wizards
|
||||
*target = QCoreApplication::translate("ProjectExplorer::CustomWizard", reader.readElementText().toLatin1().constData());
|
||||
*target = Tr::tr(reader.readElementText().toLatin1().constData());
|
||||
return true;
|
||||
}
|
||||
if (elementLanguage == desiredLanguage) {
|
||||
|
@@ -2,7 +2,9 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "dependenciespanel.h"
|
||||
|
||||
#include "project.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "session.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
@@ -64,7 +66,7 @@ QVariant DependenciesModel::data(const QModelIndex &index, int role) const
|
||||
{
|
||||
if (m_projects.isEmpty())
|
||||
return role == Qt::DisplayRole
|
||||
? tr("<No other projects in this session>")
|
||||
? Tr::tr("<No other projects in this session>")
|
||||
: QVariant();
|
||||
|
||||
const Project *p = m_projects.at(index.row());
|
||||
@@ -94,8 +96,8 @@ bool DependenciesModel::setData(const QModelIndex &index, const QVariant &value,
|
||||
emit dataChanged(index, index);
|
||||
return true;
|
||||
} else {
|
||||
QMessageBox::warning(Core::ICore::dialogParent(), QCoreApplication::translate("DependenciesModel", "Unable to Add Dependency"),
|
||||
QCoreApplication::translate("DependenciesModel", "This would create a circular dependency."));
|
||||
QMessageBox::warning(Core::ICore::dialogParent(), Tr::tr("Unable to Add Dependency"),
|
||||
Tr::tr("This would create a circular dependency."));
|
||||
}
|
||||
} else if (c == Qt::Unchecked) {
|
||||
if (SessionManager::hasDependency(m_project, p)) {
|
||||
@@ -211,8 +213,8 @@ DependenciesWidget::DependenciesWidget(Project *project, QWidget *parent) : Proj
|
||||
layout->addItem(new QSpacerItem(0, 0 , QSizePolicy::Expanding, QSizePolicy::Fixed), 0, 1);
|
||||
|
||||
m_cascadeSetActiveCheckBox = new QCheckBox;
|
||||
m_cascadeSetActiveCheckBox->setText(tr("Synchronize configuration"));
|
||||
m_cascadeSetActiveCheckBox->setToolTip(tr("Synchronize active kit, build, and deploy configuration between projects."));
|
||||
m_cascadeSetActiveCheckBox->setText(Tr::tr("Synchronize configuration"));
|
||||
m_cascadeSetActiveCheckBox->setToolTip(Tr::tr("Synchronize active kit, build, and deploy configuration between projects."));
|
||||
m_cascadeSetActiveCheckBox->setChecked(SessionManager::isProjectConfigurationCascading());
|
||||
connect(m_cascadeSetActiveCheckBox, &QCheckBox::toggled,
|
||||
SessionManager::instance(), &SessionManager::setProjectConfigurationCascading);
|
||||
|
@@ -8,6 +8,7 @@
|
||||
#include "kitinformation.h"
|
||||
#include "project.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "target.h"
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
@@ -30,7 +31,7 @@ DeployConfiguration::DeployConfiguration(Target *target, Id id)
|
||||
{
|
||||
QTC_CHECK(target && target == this->target());
|
||||
//: Default DeployConfiguration display name
|
||||
setDefaultDisplayName(tr("Deploy locally"));
|
||||
setDefaultDisplayName(Tr::tr("Deploy locally"));
|
||||
}
|
||||
|
||||
BuildStepList *DeployConfiguration::stepList()
|
||||
@@ -248,7 +249,7 @@ DefaultDeployConfigurationFactory::DefaultDeployConfigurationFactory()
|
||||
setConfigBaseId("ProjectExplorer.DefaultDeployConfiguration");
|
||||
addSupportedTargetDeviceType(Constants::DESKTOP_DEVICE_TYPE);
|
||||
//: Display name of the default deploy configuration
|
||||
setDefaultDisplayName(DeployConfiguration::tr("Deploy Configuration"));
|
||||
setDefaultDisplayName(Tr::tr("Deploy Configuration"));
|
||||
}
|
||||
|
||||
} // namespace ProjectExplorer
|
||||
|
@@ -6,6 +6,7 @@
|
||||
#include "buildsystem.h"
|
||||
#include "deployconfiguration.h"
|
||||
#include "deploymentdata.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "target.h"
|
||||
|
||||
#include <utils/qtcassert.h>
|
||||
@@ -65,7 +66,7 @@ public:
|
||||
DeploymentDataView::DeploymentDataView(DeployConfiguration *dc)
|
||||
{
|
||||
auto model = new TreeModel<DeploymentDataItem>(this);
|
||||
model->setHeader({tr("Source File Path"), tr("Target Directory")});
|
||||
model->setHeader({Tr::tr("Source File Path"), Tr::tr("Target Directory")});
|
||||
|
||||
auto view = new QTreeView(this);
|
||||
view->setMinimumSize(QSize(100, 100));
|
||||
@@ -75,8 +76,8 @@ DeploymentDataView::DeploymentDataView(DeployConfiguration *dc)
|
||||
view->setModel(model);
|
||||
|
||||
const auto buttonsLayout = new QVBoxLayout;
|
||||
const auto addButton = new QPushButton(tr("Add"));
|
||||
const auto removeButton = new QPushButton(tr("Remove"));
|
||||
const auto addButton = new QPushButton(Tr::tr("Add"));
|
||||
const auto removeButton = new QPushButton(Tr::tr("Remove"));
|
||||
buttonsLayout->addWidget(addButton);
|
||||
buttonsLayout->addWidget(removeButton);
|
||||
buttonsLayout->addStretch(1);
|
||||
@@ -85,8 +86,8 @@ DeploymentDataView::DeploymentDataView(DeployConfiguration *dc)
|
||||
viewLayout->addWidget(view);
|
||||
viewLayout->addLayout(buttonsLayout);
|
||||
|
||||
auto label = new QLabel(tr("Files to deploy:"), this);
|
||||
const auto sourceCheckBox = new QCheckBox(tr("Override deployment data from build system"));
|
||||
auto label = new QLabel(Tr::tr("Files to deploy:"), this);
|
||||
const auto sourceCheckBox = new QCheckBox(Tr::tr("Override deployment data from build system"));
|
||||
sourceCheckBox->setChecked(dc->usesCustomDeploymentData());
|
||||
|
||||
auto layout = new QVBoxLayout(this);
|
||||
|
@@ -6,6 +6,7 @@
|
||||
#include "buildsystem.h"
|
||||
#include "localenvironmentaspect.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "runconfigurationaspects.h"
|
||||
#include "target.h"
|
||||
|
||||
@@ -26,8 +27,6 @@ namespace Internal {
|
||||
|
||||
class DesktopRunConfiguration : public RunConfiguration
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::Internal::DesktopRunConfiguration)
|
||||
|
||||
protected:
|
||||
enum Kind { Qmake, Qbs, CMake }; // FIXME: Remove
|
||||
|
||||
@@ -94,7 +93,7 @@ void DesktopRunConfiguration::updateTargetInformation()
|
||||
|
||||
FilePath profile = FilePath::fromString(buildKey());
|
||||
if (profile.isEmpty())
|
||||
setDefaultDisplayName(tr("Qt Run Configuration"));
|
||||
setDefaultDisplayName(Tr::tr("Qt Run Configuration"));
|
||||
else
|
||||
setDefaultDisplayName(profile.completeBaseName());
|
||||
|
||||
|
@@ -2,14 +2,15 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "desktopdevice.h"
|
||||
|
||||
#include "desktopprocesssignaloperation.h"
|
||||
#include "deviceprocesslist.h"
|
||||
#include "localprocesslist.h"
|
||||
#include "desktopprocesssignaloperation.h"
|
||||
#include "../projectexplorerconstants.h"
|
||||
#include "../projectexplorertr.h"
|
||||
|
||||
#include <coreplugin/fileutils.h>
|
||||
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
|
||||
#include <utils/devicefileaccess.h>
|
||||
#include <utils/environment.h>
|
||||
#include <utils/hostosinfo.h>
|
||||
@@ -32,8 +33,8 @@ DesktopDevice::DesktopDevice()
|
||||
|
||||
setupId(IDevice::AutoDetected, DESKTOP_DEVICE_ID);
|
||||
setType(DESKTOP_DEVICE_TYPE);
|
||||
setDefaultDisplayName(tr("Local PC"));
|
||||
setDisplayType(QCoreApplication::translate("ProjectExplorer::DesktopDevice", "Desktop"));
|
||||
setDefaultDisplayName(Tr::tr("Local PC"));
|
||||
setDisplayType(Tr::tr("Desktop"));
|
||||
|
||||
setDeviceState(IDevice::DeviceStateUnknown);
|
||||
setMachineType(IDevice::Hardware);
|
||||
|
@@ -17,8 +17,6 @@ namespace Internal { class DesktopDeviceFactory; }
|
||||
|
||||
class PROJECTEXPLORER_EXPORT DesktopDevice : public IDevice
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::DesktopDevice)
|
||||
|
||||
public:
|
||||
IDevice::DeviceInfo deviceInformation() const override;
|
||||
|
||||
|
@@ -3,10 +3,13 @@
|
||||
|
||||
#include "desktopdevicefactory.h"
|
||||
#include "desktopdevice.h"
|
||||
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <projectexplorer/projectexplorericons.h>
|
||||
#include <projectexplorer/projectexplorertr.h>
|
||||
|
||||
#include <coreplugin/coreicons.h>
|
||||
|
||||
#include <utils/icon.h>
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
@@ -19,7 +22,7 @@ DesktopDeviceFactory::DesktopDeviceFactory()
|
||||
: IDeviceFactory(Constants::DESKTOP_DEVICE_TYPE)
|
||||
{
|
||||
setConstructionFunction([] { return IDevice::Ptr(new DesktopDevice); });
|
||||
setDisplayName(DesktopDevice::tr("Desktop"));
|
||||
setDisplayName(Tr::tr("Desktop"));
|
||||
setIcon(Utils::creatorTheme()->flag(Utils::Theme::FlatSideBarIcons)
|
||||
? Utils::Icon::combinedIcon(
|
||||
{Icons::DESKTOP_DEVICE.icon(), Core::Icons::DESKTOP_DEVICE_SMALL.icon()})
|
||||
|
@@ -3,6 +3,8 @@
|
||||
|
||||
#include "desktopprocesssignaloperation.h"
|
||||
|
||||
#include "../projectexplorertr.h"
|
||||
|
||||
#include <app/app_version.h>
|
||||
|
||||
#include <utils/winutils.h>
|
||||
@@ -66,7 +68,7 @@ void DesktopProcessSignalOperation::appendMsgCannotKill(qint64 pid, const QStrin
|
||||
{
|
||||
if (!m_errorMessage.isEmpty())
|
||||
m_errorMessage += QChar::fromLatin1('\n');
|
||||
m_errorMessage += tr("Cannot kill process with pid %1: %2").arg(pid).arg(why);
|
||||
m_errorMessage += Tr::tr("Cannot kill process with pid %1: %2").arg(pid).arg(why);
|
||||
m_errorMessage += QLatin1Char(' ');
|
||||
}
|
||||
|
||||
@@ -74,7 +76,7 @@ void DesktopProcessSignalOperation::appendMsgCannotInterrupt(qint64 pid, const Q
|
||||
{
|
||||
if (!m_errorMessage.isEmpty())
|
||||
m_errorMessage += QChar::fromLatin1('\n');
|
||||
m_errorMessage += tr("Cannot interrupt process with pid %1: %2").arg(pid).arg(why);
|
||||
m_errorMessage += Tr::tr("Cannot interrupt process with pid %1: %2").arg(pid).arg(why);
|
||||
m_errorMessage += QLatin1Char(' ');
|
||||
}
|
||||
|
||||
@@ -89,11 +91,11 @@ void DesktopProcessSignalOperation::killProcessSilently(qint64 pid)
|
||||
appendMsgCannotKill(pid, winErrorMessage(GetLastError()));
|
||||
CloseHandle(handle);
|
||||
} else {
|
||||
appendMsgCannotKill(pid, tr("Cannot open process."));
|
||||
appendMsgCannotKill(pid, Tr::tr("Cannot open process."));
|
||||
}
|
||||
#else
|
||||
if (pid <= 0)
|
||||
appendMsgCannotKill(pid, tr("Invalid process id."));
|
||||
appendMsgCannotKill(pid, Tr::tr("Invalid process id."));
|
||||
else if (kill(pid, SIGKILL))
|
||||
appendMsgCannotKill(pid, QString::fromLocal8Bit(strerror(errno)));
|
||||
#endif // Q_OS_WIN
|
||||
@@ -144,7 +146,7 @@ GDB 32bit | Api | Api | N/A | Win32
|
||||
|PROCESS_DUP_HANDLE|PROCESS_TERMINATE|PROCESS_CREATE_THREAD|PROCESS_SUSPEND_RESUME;
|
||||
inferior = OpenProcess(rights, FALSE, pid);
|
||||
if (inferior == NULL) {
|
||||
appendMsgCannotInterrupt(pid, tr("Cannot open process: %1")
|
||||
appendMsgCannotInterrupt(pid, Tr::tr("Cannot open process: %1")
|
||||
+ winErrorMessage(GetLastError()));
|
||||
break;
|
||||
}
|
||||
@@ -155,7 +157,7 @@ GDB 32bit | Api | Api | N/A | Win32
|
||||
|| (si == Win64Interrupt && creatorIs64Bit)
|
||||
|| (si == Win32Interrupt && !creatorIs64Bit)) {
|
||||
if (!DebugBreakProcess(inferior)) {
|
||||
appendMsgCannotInterrupt(pid, tr("DebugBreakProcess failed:")
|
||||
appendMsgCannotInterrupt(pid, Tr::tr("DebugBreakProcess failed:")
|
||||
+ QLatin1Char(' ') + winErrorMessage(GetLastError()));
|
||||
}
|
||||
} else if (si == Win32Interrupt || si == Win64Interrupt) {
|
||||
@@ -165,7 +167,7 @@ GDB 32bit | Api | Api | N/A | Win32
|
||||
: QLatin1String("/win64interrupt.exe");
|
||||
if (!QFile::exists(executable)) {
|
||||
appendMsgCannotInterrupt(pid,
|
||||
tr("%1 does not exist. If you built %2 "
|
||||
Tr::tr("%1 does not exist. If you built %2 "
|
||||
"yourself, check out https://code.qt.io/cgit/"
|
||||
"qt-creator/binary-artifacts.git/.")
|
||||
.arg(QDir::toNativeSeparators(executable),
|
||||
@@ -173,7 +175,7 @@ GDB 32bit | Api | Api | N/A | Win32
|
||||
}
|
||||
switch (QProcess::execute(executable, QStringList(QString::number(pid)))) {
|
||||
case -2:
|
||||
appendMsgCannotInterrupt(pid, tr(
|
||||
appendMsgCannotInterrupt(pid, Tr::tr(
|
||||
"Cannot start %1. Check src\\tools\\win64interrupt\\win64interrupt.c "
|
||||
"for more information.").arg(QDir::toNativeSeparators(executable)));
|
||||
break;
|
||||
@@ -181,7 +183,7 @@ GDB 32bit | Api | Api | N/A | Win32
|
||||
break;
|
||||
default:
|
||||
appendMsgCannotInterrupt(pid, QDir::toNativeSeparators(executable)
|
||||
+ QLatin1Char(' ') + tr("could not break the process."));
|
||||
+ QLatin1Char(' ') + Tr::tr("could not break the process."));
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -190,7 +192,7 @@ GDB 32bit | Api | Api | N/A | Win32
|
||||
CloseHandle(inferior);
|
||||
#else
|
||||
if (pid <= 0)
|
||||
appendMsgCannotInterrupt(pid, tr("Invalid process id."));
|
||||
appendMsgCannotInterrupt(pid, Tr::tr("Invalid process id."));
|
||||
else if (kill(pid, SIGINT))
|
||||
appendMsgCannotInterrupt(pid, QString::fromLocal8Bit(strerror(errno)));
|
||||
#endif // Q_OS_WIN
|
||||
|
@@ -4,7 +4,8 @@
|
||||
#include "devicecheckbuildstep.h"
|
||||
|
||||
#include "../kitinformation.h"
|
||||
#include "../target.h"
|
||||
#include "../projectexplorertr.h"
|
||||
|
||||
#include "devicemanager.h"
|
||||
#include "idevice.h"
|
||||
#include "idevicefactory.h"
|
||||
@@ -26,22 +27,22 @@ bool DeviceCheckBuildStep::init()
|
||||
Utils::Id deviceTypeId = DeviceTypeKitAspect::deviceTypeId(kit());
|
||||
IDeviceFactory *factory = IDeviceFactory::find(deviceTypeId);
|
||||
if (!factory || !factory->canCreate()) {
|
||||
emit addOutput(tr("No device configured."), BuildStep::OutputFormat::ErrorMessage);
|
||||
emit addOutput(Tr::tr("No device configured."), BuildStep::OutputFormat::ErrorMessage);
|
||||
return false;
|
||||
}
|
||||
|
||||
QMessageBox msgBox(QMessageBox::Question, tr("Set Up Device"),
|
||||
tr("There is no device set up for this kit. Do you want to add a device?"),
|
||||
QMessageBox msgBox(QMessageBox::Question, Tr::tr("Set Up Device"),
|
||||
Tr::tr("There is no device set up for this kit. Do you want to add a device?"),
|
||||
QMessageBox::Yes|QMessageBox::No);
|
||||
msgBox.setDefaultButton(QMessageBox::Yes);
|
||||
if (msgBox.exec() == QMessageBox::No) {
|
||||
emit addOutput(tr("No device configured."), BuildStep::OutputFormat::ErrorMessage);
|
||||
emit addOutput(Tr::tr("No device configured."), BuildStep::OutputFormat::ErrorMessage);
|
||||
return false;
|
||||
}
|
||||
|
||||
IDevice::Ptr newDevice = factory->create();
|
||||
if (newDevice.isNull()) {
|
||||
emit addOutput(tr("No device configured."), BuildStep::OutputFormat::ErrorMessage);
|
||||
emit addOutput(Tr::tr("No device configured."), BuildStep::OutputFormat::ErrorMessage);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -66,5 +67,5 @@ Utils::Id DeviceCheckBuildStep::stepId()
|
||||
|
||||
QString DeviceCheckBuildStep::displayName()
|
||||
{
|
||||
return tr("Check for a configured device");
|
||||
return Tr::tr("Check for a configured device");
|
||||
}
|
||||
|
@@ -3,8 +3,8 @@
|
||||
|
||||
#include "devicefactoryselectiondialog.h"
|
||||
|
||||
#include "idevice.h"
|
||||
#include "idevicefactory.h"
|
||||
#include "../projectexplorertr.h"
|
||||
|
||||
#include <utils/fileutils.h>
|
||||
#include <utils/layoutbuilder.h>
|
||||
@@ -22,11 +22,11 @@ DeviceFactorySelectionDialog::DeviceFactorySelectionDialog(QWidget *parent) :
|
||||
resize(420, 330);
|
||||
m_listWidget = new QListWidget;
|
||||
m_buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
||||
m_buttonBox->button(QDialogButtonBox::Ok)->setText(tr("Start Wizard"));
|
||||
m_buttonBox->button(QDialogButtonBox::Ok)->setText(Tr::tr("Start Wizard"));
|
||||
|
||||
using namespace Utils::Layouting;
|
||||
Column {
|
||||
tr("Available device types:"),
|
||||
Tr::tr("Available device types:"),
|
||||
m_listWidget,
|
||||
m_buttonBox,
|
||||
}.attachTo(this);
|
||||
|
@@ -3,7 +3,9 @@
|
||||
|
||||
#include "devicefilesystemmodel.h"
|
||||
|
||||
#include <projectexplorer/devicesupport/idevice.h>
|
||||
#include "idevice.h"
|
||||
#include "../projectexplorertr.h"
|
||||
|
||||
#include <utils/futuresynchronizer.h>
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/runextensions.h>
|
||||
@@ -182,9 +184,9 @@ QVariant DeviceFileSystemModel::headerData(int section, Qt::Orientation orientat
|
||||
if (role != Qt::DisplayRole)
|
||||
return QVariant();
|
||||
if (section == 0)
|
||||
return tr("File Type");
|
||||
return Tr::tr("File Type");
|
||||
if (section == 1)
|
||||
return tr("File Name");
|
||||
return Tr::tr("File Name");
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
|
@@ -4,6 +4,7 @@
|
||||
#include "devicemanagermodel.h"
|
||||
|
||||
#include "devicemanager.h"
|
||||
#include "../projectexplorertr.h"
|
||||
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/fileutils.h>
|
||||
@@ -148,7 +149,7 @@ QVariant DeviceManagerModel::data(const QModelIndex &index, int role) const
|
||||
return dev->id().toSetting();
|
||||
QString name;
|
||||
if (d->deviceManager->defaultDevice(dev->type()) == dev)
|
||||
name = tr("%1 (default for %2)").arg(dev->displayName(), dev->displayType());
|
||||
name = Tr::tr("%1 (default for %2)").arg(dev->displayName(), dev->displayType());
|
||||
else
|
||||
name = dev->displayName();
|
||||
return name;
|
||||
|
@@ -2,10 +2,12 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "deviceprocessesdialog.h"
|
||||
|
||||
#include "deviceprocesslist.h"
|
||||
#include <projectexplorer/devicesupport/idevice.h>
|
||||
#include <projectexplorer/kitchooser.h>
|
||||
#include <projectexplorer/kitinformation.h>
|
||||
#include "idevice.h"
|
||||
#include "../kitchooser.h"
|
||||
#include "../kitinformation.h"
|
||||
#include "../projectexplorertr.h"
|
||||
|
||||
#include <utils/fancylineedit.h>
|
||||
#include <utils/itemviews.h>
|
||||
@@ -98,16 +100,16 @@ public:
|
||||
|
||||
DeviceProcessesDialogPrivate::DeviceProcessesDialogPrivate(KitChooser *chooser, QDialog *parent)
|
||||
: q(parent)
|
||||
, kitLabel(new QLabel(DeviceProcessesDialog::tr("Kit:"), parent))
|
||||
, kitLabel(new QLabel(Tr::tr("Kit:"), parent))
|
||||
, kitChooser(chooser)
|
||||
, acceptButton(nullptr)
|
||||
, buttonBox(new QDialogButtonBox(parent))
|
||||
{
|
||||
q->setWindowTitle(DeviceProcessesDialog::tr("List of Processes"));
|
||||
q->setWindowTitle(Tr::tr("List of Processes"));
|
||||
q->setMinimumHeight(500);
|
||||
|
||||
processFilterLineEdit = new FancyLineEdit(q);
|
||||
processFilterLineEdit->setPlaceholderText(DeviceProcessesDialog::tr("Filter"));
|
||||
processFilterLineEdit->setPlaceholderText(Tr::tr("Filter"));
|
||||
processFilterLineEdit->setFocus(Qt::TabFocusReason);
|
||||
processFilterLineEdit->setHistoryCompleter(QLatin1String("DeviceProcessDialogFilter"),
|
||||
true /*restoreLastItemFromHistory*/);
|
||||
@@ -130,8 +132,8 @@ DeviceProcessesDialogPrivate::DeviceProcessesDialogPrivate(KitChooser *chooser,
|
||||
|
||||
errorText = new QTextBrowser(q);
|
||||
|
||||
updateListButton = new QPushButton(DeviceProcessesDialog::tr("&Update List"), q);
|
||||
killProcessButton = new QPushButton(DeviceProcessesDialog::tr("&Kill Process"), q);
|
||||
updateListButton = new QPushButton(Tr::tr("&Update List"), q);
|
||||
killProcessButton = new QPushButton(Tr::tr("&Kill Process"), q);
|
||||
|
||||
buttonBox->addButton(updateListButton, QDialogButtonBox::ActionRole);
|
||||
buttonBox->addButton(killProcessButton, QDialogButtonBox::ActionRole);
|
||||
@@ -139,7 +141,7 @@ DeviceProcessesDialogPrivate::DeviceProcessesDialogPrivate(KitChooser *chooser,
|
||||
auto *leftColumn = new QFormLayout();
|
||||
leftColumn->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow);
|
||||
leftColumn->addRow(kitLabel, kitChooser);
|
||||
leftColumn->addRow(DeviceProcessesDialog::tr("&Filter:"), processFilterLineEdit);
|
||||
leftColumn->addRow(Tr::tr("&Filter:"), processFilterLineEdit);
|
||||
|
||||
// QVBoxLayout *rightColumn = new QVBoxLayout();
|
||||
// rightColumn->addWidget(updateListButton);
|
||||
@@ -202,7 +204,7 @@ void DeviceProcessesDialogPrivate::setDevice(const IDevice::ConstPtr &device)
|
||||
|
||||
void DeviceProcessesDialogPrivate::handleRemoteError(const QString &errorMsg)
|
||||
{
|
||||
QMessageBox::critical(q, tr("Remote Error"), errorMsg);
|
||||
QMessageBox::critical(q, Tr::tr("Remote Error"), errorMsg);
|
||||
updateListButton->setEnabled(true);
|
||||
updateButtons();
|
||||
}
|
||||
|
@@ -2,7 +2,9 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "deviceprocesslist.h"
|
||||
|
||||
#include "idevice.h"
|
||||
#include "../projectexplorertr.h"
|
||||
|
||||
#include <utils/processinfo.h>
|
||||
#include <utils/qtcassert.h>
|
||||
@@ -47,7 +49,7 @@ using namespace Internal;
|
||||
DeviceProcessList::DeviceProcessList(const IDevice::ConstPtr &device, QObject *parent)
|
||||
: QObject(parent), d(std::make_unique<DeviceProcessListPrivate>(device))
|
||||
{
|
||||
d->model.setHeader({tr("Process ID"), tr("Command Line")});
|
||||
d->model.setHeader({Tr::tr("Process ID"), Tr::tr("Command Line")});
|
||||
}
|
||||
|
||||
DeviceProcessList::~DeviceProcessList() = default;
|
||||
@@ -60,7 +62,7 @@ void DeviceProcessList::update()
|
||||
d->model.clear();
|
||||
d->model.rootItem()->appendChild(
|
||||
new DeviceProcessTreeItem(
|
||||
{0, tr("Fetching process list. This might take a while."), ""},
|
||||
{0, Tr::tr("Fetching process list. This might take a while."), ""},
|
||||
Qt::NoItemFlags));
|
||||
d->state = Listing;
|
||||
doUpdate();
|
||||
|
@@ -4,8 +4,8 @@
|
||||
#include "devicesettingspage.h"
|
||||
|
||||
#include "devicesettingswidget.h"
|
||||
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include "../projectexplorerconstants.h"
|
||||
#include "../projectexplorertr.h"
|
||||
|
||||
#include <QCoreApplication>
|
||||
|
||||
@@ -17,7 +17,7 @@ DeviceSettingsPage::DeviceSettingsPage()
|
||||
setId(Constants::DEVICE_SETTINGS_PAGE_ID);
|
||||
setDisplayName(DeviceSettingsWidget::tr("Devices"));
|
||||
setCategory(Constants::DEVICE_SETTINGS_CATEGORY);
|
||||
setDisplayCategory(QCoreApplication::translate("::ProjectExplorer", "Devices"));
|
||||
setDisplayCategory(Tr::tr("Devices"));
|
||||
setCategoryIconPath(":/projectexplorer/images/settingscategory_devices.png");
|
||||
setWidgetCreator([] { return new DeviceSettingsWidget; });
|
||||
}
|
||||
|
@@ -11,8 +11,8 @@
|
||||
#include "idevice.h"
|
||||
#include "idevicefactory.h"
|
||||
#include "idevicewidget.h"
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <projectexplorer/projectexplorericons.h>
|
||||
#include "../projectexplorericons.h"
|
||||
#include "../projectexplorertr.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
|
||||
@@ -88,21 +88,21 @@ DeviceSettingsWidget::~DeviceSettingsWidget()
|
||||
|
||||
void DeviceSettingsWidget::initGui()
|
||||
{
|
||||
m_configurationLabel = new QLabel(tr("&Device:"));
|
||||
m_configurationLabel = new QLabel(Tr::tr("&Device:"));
|
||||
m_configurationComboBox = new QComboBox;
|
||||
m_configurationComboBox->setModel(m_deviceManagerModel);
|
||||
m_generalGroupBox = new QGroupBox(tr("General"));
|
||||
m_generalGroupBox = new QGroupBox(Tr::tr("General"));
|
||||
m_nameLineEdit = new QLineEdit;
|
||||
m_nameLineEdit->setValidator(m_nameValidator);
|
||||
m_osTypeValueLabel = new QLabel;
|
||||
m_autoDetectionLabel = new QLabel;
|
||||
m_deviceStateIconLabel = new QLabel;
|
||||
m_deviceStateTextLabel = new QLabel;
|
||||
m_osSpecificGroupBox = new QGroupBox(tr("Type Specific"));
|
||||
m_osSpecificGroupBox = new QGroupBox(Tr::tr("Type Specific"));
|
||||
m_osSpecificGroupBox->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding);
|
||||
m_addConfigButton = new QPushButton(tr("&Add..."));
|
||||
m_removeConfigButton = new QPushButton(tr("&Remove"));
|
||||
m_defaultDeviceButton = new QPushButton(tr("Set As Default"));
|
||||
m_addConfigButton = new QPushButton(Tr::tr("&Add..."));
|
||||
m_removeConfigButton = new QPushButton(Tr::tr("&Remove"));
|
||||
m_defaultDeviceButton = new QPushButton(Tr::tr("Set As Default"));
|
||||
auto line = new QFrame;
|
||||
line->setFrameShape(QFrame::HLine);
|
||||
line->setFrameShadow(QFrame::Sunken);
|
||||
@@ -121,10 +121,10 @@ void DeviceSettingsWidget::initGui()
|
||||
}.attachTo(scrollAreaWidget);
|
||||
|
||||
Form {
|
||||
tr("&Name:"), m_nameLineEdit, br,
|
||||
tr("Type:"), m_osTypeValueLabel, br,
|
||||
tr("Auto-detected:"), m_autoDetectionLabel, br,
|
||||
tr("Current state:"), Row { m_deviceStateIconLabel, m_deviceStateTextLabel, st, }, br,
|
||||
Tr::tr("&Name:"), m_nameLineEdit, br,
|
||||
Tr::tr("Type:"), m_osTypeValueLabel, br,
|
||||
Tr::tr("Auto-detected:"), m_autoDetectionLabel, br,
|
||||
Tr::tr("Current state:"), Row { m_deviceStateIconLabel, m_deviceStateTextLabel, st, }, br,
|
||||
}.attachTo(m_generalGroupBox);
|
||||
|
||||
Row {
|
||||
@@ -204,7 +204,7 @@ void DeviceSettingsWidget::displayCurrent()
|
||||
m_deviceManager->defaultDevice(current->type()) != current);
|
||||
m_osTypeValueLabel->setText(current->displayType());
|
||||
m_autoDetectionLabel->setText(current->isAutoDetected()
|
||||
? tr("Yes (id is \"%1\")").arg(current->id().toString()) : tr("No"));
|
||||
? Tr::tr("Yes (id is \"%1\")").arg(current->id().toString()) : Tr::tr("No"));
|
||||
m_nameValidator->setDisplayName(current->displayName());
|
||||
m_deviceStateIconLabel->show();
|
||||
switch (current->deviceState()) {
|
||||
@@ -318,14 +318,14 @@ void DeviceSettingsWidget::currentDeviceChanged(int index)
|
||||
m_removeConfigButton->setEnabled(true);
|
||||
|
||||
if (device->hasDeviceTester()) {
|
||||
QPushButton * const button = new QPushButton(tr("Test"));
|
||||
QPushButton * const button = new QPushButton(Tr::tr("Test"));
|
||||
m_additionalActionButtons << button;
|
||||
connect(button, &QAbstractButton::clicked, this, &DeviceSettingsWidget::testDevice);
|
||||
m_buttonsLayout->insertWidget(m_buttonsLayout->count() - 1, button);
|
||||
}
|
||||
|
||||
if (device->canCreateProcessModel()) {
|
||||
QPushButton * const button = new QPushButton(tr("Show Running Processes..."));
|
||||
QPushButton * const button = new QPushButton(Tr::tr("Show Running Processes..."));
|
||||
m_additionalActionButtons << button;
|
||||
connect(button, &QAbstractButton::clicked,
|
||||
this, &DeviceSettingsWidget::handleProcessListRequested);
|
||||
|
@@ -3,6 +3,8 @@
|
||||
|
||||
#include "devicetestdialog.h"
|
||||
|
||||
#include "../projectexplorertr.h"
|
||||
|
||||
#include <utils/fileutils.h>
|
||||
#include <utils/layoutbuilder.h>
|
||||
|
||||
@@ -82,13 +84,13 @@ void DeviceTestDialog::handleErrorMessage(const QString &message)
|
||||
void DeviceTestDialog::handleTestFinished(DeviceTester::TestResult result)
|
||||
{
|
||||
d->finished = true;
|
||||
d->buttonBox->button(QDialogButtonBox::Cancel)->setText(tr("Close"));
|
||||
d->buttonBox->button(QDialogButtonBox::Cancel)->setText(Tr::tr("Close"));
|
||||
|
||||
if (result == DeviceTester::TestSuccess)
|
||||
addText(tr("Device test finished successfully."),
|
||||
addText(Tr::tr("Device test finished successfully."),
|
||||
Utils::Theme::OutputPanes_NormalMessageTextColor, true);
|
||||
else
|
||||
addText(tr("Device test failed."), Utils::Theme::OutputPanes_ErrorMessageTextColor, true);
|
||||
addText(Tr::tr("Device test failed."), Utils::Theme::OutputPanes_ErrorMessageTextColor, true);
|
||||
}
|
||||
|
||||
void DeviceTestDialog::addText(const QString &text, Utils::Theme::Color color, bool bold)
|
||||
|
@@ -3,9 +3,10 @@
|
||||
|
||||
#include "deviceusedportsgatherer.h"
|
||||
|
||||
#include "idevice.h"
|
||||
#include "sshparameters.h"
|
||||
#include "../projectexplorertr.h"
|
||||
|
||||
#include <projectexplorer/devicesupport/idevice.h>
|
||||
#include <utils/port.h>
|
||||
#include <utils/portlist.h>
|
||||
#include <utils/qtcassert.h>
|
||||
@@ -110,7 +111,7 @@ void DeviceUsedPortsGatherer::handleProcessDone()
|
||||
const QByteArray stdErr = d->process->readAllRawStandardError();
|
||||
if (!stdErr.isEmpty()) {
|
||||
errMsg += QLatin1Char('\n');
|
||||
errMsg += tr("Remote error output was: %1").arg(QString::fromUtf8(stdErr));
|
||||
errMsg += Tr::tr("Remote error output was: %1").arg(QString::fromUtf8(stdErr));
|
||||
}
|
||||
emitError(errMsg);
|
||||
}
|
||||
@@ -133,7 +134,7 @@ PortsGatherer::PortsGatherer(RunControl *runControl)
|
||||
connect(&m_portsGatherer, &DeviceUsedPortsGatherer::error, this, &PortsGatherer::reportFailure);
|
||||
connect(&m_portsGatherer, &DeviceUsedPortsGatherer::portListReady, this, [this] {
|
||||
m_portList = device()->freePorts();
|
||||
appendMessage(tr("Found %n free ports.", nullptr, m_portList.count()), NormalMessageFormat);
|
||||
appendMessage(Tr::tr("Found %n free ports.", nullptr, m_portList.count()), NormalMessageFormat);
|
||||
reportStarted();
|
||||
});
|
||||
}
|
||||
@@ -142,7 +143,7 @@ PortsGatherer::~PortsGatherer() = default;
|
||||
|
||||
void PortsGatherer::start()
|
||||
{
|
||||
appendMessage(tr("Checking available ports..."), NormalMessageFormat);
|
||||
appendMessage(Tr::tr("Checking available ports..."), NormalMessageFormat);
|
||||
m_portsGatherer.setDevice(device());
|
||||
m_portsGatherer.start();
|
||||
}
|
||||
|
@@ -5,6 +5,7 @@
|
||||
|
||||
#include "devicemanager.h"
|
||||
#include "idevice.h"
|
||||
#include "../projectexplorertr.h"
|
||||
|
||||
#include <utils/processinterface.h>
|
||||
#include <utils/qtcassert.h>
|
||||
@@ -91,7 +92,7 @@ private:
|
||||
void FileTransferPrivate::test()
|
||||
{
|
||||
if (!m_testDevice)
|
||||
return startFailed(tr("No device set for test transfer."));
|
||||
return startFailed(Tr::tr("No device set for test transfer."));
|
||||
|
||||
run({{}, m_setup.m_method, m_setup.m_rsyncFlags}, m_testDevice);
|
||||
}
|
||||
@@ -99,7 +100,7 @@ void FileTransferPrivate::test()
|
||||
void FileTransferPrivate::start()
|
||||
{
|
||||
if (m_setup.m_files.isEmpty())
|
||||
return startFailed(tr("No files to transfer."));
|
||||
return startFailed(Tr::tr("No files to transfer."));
|
||||
|
||||
const FileTransferDirection direction = transferDirection(m_setup.m_files);
|
||||
|
||||
@@ -130,7 +131,7 @@ void FileTransferPrivate::run(const FileTransferSetupData &setup, const IDeviceC
|
||||
stop();
|
||||
|
||||
m_transfer.reset(device->createFileTransferInterface(setup));
|
||||
QTC_ASSERT(m_transfer, startFailed(tr("Missing transfer implementation.")); return);
|
||||
QTC_ASSERT(m_transfer, startFailed(Tr::tr("Missing transfer implementation.")); return);
|
||||
|
||||
m_transfer->setParent(this);
|
||||
connect(m_transfer.get(), &FileTransferInterface::progress,
|
||||
|
@@ -297,7 +297,7 @@ void IDevice::setFileAccess(DeviceFileAccess *fileAccess)
|
||||
|
||||
IDevice::DeviceInfo IDevice::deviceInformation() const
|
||||
{
|
||||
const QString key = QCoreApplication::translate("ProjectExplorer::IDevice", "Device");
|
||||
const QString key = Tr::tr("Device");
|
||||
return DeviceInfo() << IDevice::DeviceInfoItem(key, deviceStateToString());
|
||||
}
|
||||
|
||||
@@ -513,13 +513,12 @@ IDevice::Ptr IDevice::clone() const
|
||||
|
||||
QString IDevice::deviceStateToString() const
|
||||
{
|
||||
const char context[] = "ProjectExplorer::IDevice";
|
||||
switch (d->deviceState) {
|
||||
case IDevice::DeviceReadyToUse: return QCoreApplication::translate(context, "Ready to use");
|
||||
case IDevice::DeviceConnected: return QCoreApplication::translate(context, "Connected");
|
||||
case IDevice::DeviceDisconnected: return QCoreApplication::translate(context, "Disconnected");
|
||||
case IDevice::DeviceStateUnknown: return QCoreApplication::translate(context, "Unknown");
|
||||
default: return QCoreApplication::translate(context, "Invalid");
|
||||
case IDevice::DeviceReadyToUse: return Tr::tr("Ready to use");
|
||||
case IDevice::DeviceConnected: return Tr::tr("Connected");
|
||||
case IDevice::DeviceDisconnected: return Tr::tr("Disconnected");
|
||||
case IDevice::DeviceStateUnknown: return Tr::tr("Unknown");
|
||||
default: return Tr::tr("Invalid");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -661,14 +660,14 @@ void DeviceProcessKiller::start()
|
||||
|
||||
const IDevice::ConstPtr device = DeviceManager::deviceForPath(m_processPath);
|
||||
if (!device) {
|
||||
m_errorString = tr("No device for given path: \"%1\".").arg(m_processPath.toUserOutput());
|
||||
m_errorString = Tr::tr("No device for given path: \"%1\".").arg(m_processPath.toUserOutput());
|
||||
emit done(false);
|
||||
return;
|
||||
}
|
||||
|
||||
m_signalOperation = device->signalOperation();
|
||||
if (!m_signalOperation) {
|
||||
m_errorString = tr("Device for path \"%1\" does not support killing processes.")
|
||||
m_errorString = Tr::tr("Device for path \"%1\" does not support killing processes.")
|
||||
.arg(m_processPath.toUserOutput());
|
||||
emit done(false);
|
||||
return;
|
||||
|
@@ -2,7 +2,9 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "sshdeviceprocesslist.h"
|
||||
|
||||
#include "idevice.h"
|
||||
#include "../projectexplorertr.h"
|
||||
|
||||
#include <utils/processinfo.h>
|
||||
#include <utils/qtcassert.h>
|
||||
@@ -49,11 +51,11 @@ void SshDeviceProcessList::handleProcessDone()
|
||||
reportProcessListUpdated(buildProcessList(d->m_process.cleanedStdOut()));
|
||||
} else {
|
||||
const QString errorMessage = d->m_process.exitStatus() == QProcess::NormalExit
|
||||
? tr("Process listing command failed with exit code %1.").arg(d->m_process.exitCode())
|
||||
? Tr::tr("Process listing command failed with exit code %1.").arg(d->m_process.exitCode())
|
||||
: d->m_process.errorString();
|
||||
const QString stdErr = d->m_process.cleanedStdErr();
|
||||
const QString fullMessage = stdErr.isEmpty()
|
||||
? errorMessage : errorMessage + '\n' + tr("Remote stderr was: %1").arg(stdErr);
|
||||
? errorMessage : errorMessage + '\n' + Tr::tr("Remote stderr was: %1").arg(stdErr);
|
||||
reportError(fullMessage);
|
||||
}
|
||||
setFinished();
|
||||
@@ -64,7 +66,7 @@ void SshDeviceProcessList::handleKillProcessFinished(const QString &errorString)
|
||||
if (errorString.isEmpty())
|
||||
reportProcessKilled();
|
||||
else
|
||||
reportError(tr("Error: Kill process failed: %1").arg(errorString));
|
||||
reportError(Tr::tr("Error: Kill process failed: %1").arg(errorString));
|
||||
setFinished();
|
||||
}
|
||||
|
||||
|
@@ -2,10 +2,12 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "sshsettingspage.h"
|
||||
|
||||
#include "sshsettings.h"
|
||||
#include "../projectexplorerconstants.h"
|
||||
#include "../projectexplorertr.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <utils/hostosinfo.h>
|
||||
#include <utils/pathchooser.h>
|
||||
|
||||
@@ -21,8 +23,6 @@ namespace Internal {
|
||||
|
||||
class SshSettingsWidget : public Core::IOptionsPageWidget
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::Internal::SshSettingsWidget)
|
||||
|
||||
public:
|
||||
SshSettingsWidget();
|
||||
void saveSettings();
|
||||
@@ -55,9 +55,9 @@ private:
|
||||
SshSettingsPage::SshSettingsPage()
|
||||
{
|
||||
setId(Constants::SSH_SETTINGS_PAGE_ID);
|
||||
setDisplayName(SshSettingsWidget::tr("SSH"));
|
||||
setDisplayName(Tr::tr("SSH"));
|
||||
setCategory(Constants::DEVICE_SETTINGS_CATEGORY);
|
||||
setDisplayCategory(QCoreApplication::translate("::ProjectExplorer", "SSH"));
|
||||
setDisplayCategory(Tr::tr("SSH"));
|
||||
setCategoryIconPath(":/projectexplorer/images/settingscategory_devices.png");
|
||||
setWidgetCreator([] { return new SshSettingsWidget; });
|
||||
}
|
||||
@@ -71,12 +71,12 @@ SshSettingsWidget::SshSettingsWidget()
|
||||
setupAskpassPathChooser();
|
||||
setupKeygenPathChooser();
|
||||
auto * const layout = new QFormLayout(this);
|
||||
layout->addRow(tr("Enable connection sharing:"), &m_connectionSharingCheckBox);
|
||||
layout->addRow(tr("Connection sharing timeout:"), &m_connectionSharingSpinBox);
|
||||
layout->addRow(tr("Path to ssh executable:"), &m_sshChooser);
|
||||
layout->addRow(tr("Path to sftp executable:"), &m_sftpChooser);
|
||||
layout->addRow(tr("Path to ssh-askpass executable:"), &m_askpassChooser);
|
||||
layout->addRow(tr("Path to ssh-keygen executable:"), &m_keygenChooser);
|
||||
layout->addRow(Tr::tr("Enable connection sharing:"), &m_connectionSharingCheckBox);
|
||||
layout->addRow(Tr::tr("Connection sharing timeout:"), &m_connectionSharingSpinBox);
|
||||
layout->addRow(Tr::tr("Path to ssh executable:"), &m_sshChooser);
|
||||
layout->addRow(Tr::tr("Path to sftp executable:"), &m_sftpChooser);
|
||||
layout->addRow(Tr::tr("Path to ssh-askpass executable:"), &m_askpassChooser);
|
||||
layout->addRow(Tr::tr("Path to ssh-keygen executable:"), &m_keygenChooser);
|
||||
updateCheckboxEnabled();
|
||||
updateSpinboxEnabled();
|
||||
}
|
||||
@@ -107,7 +107,7 @@ void SshSettingsWidget::setupConnectionSharingSpinBox()
|
||||
{
|
||||
m_connectionSharingSpinBox.setMinimum(1);
|
||||
m_connectionSharingSpinBox.setValue(SshSettings::connectionSharingTimeout());
|
||||
m_connectionSharingSpinBox.setSuffix(tr(" minutes"));
|
||||
m_connectionSharingSpinBox.setSuffix(Tr::tr(" minutes"));
|
||||
}
|
||||
|
||||
void SshSettingsWidget::setupSshPathChooser()
|
||||
|
@@ -2,14 +2,16 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "editorconfiguration.h"
|
||||
|
||||
#include "project.h"
|
||||
#include "projectexplorer.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "session.h"
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
|
||||
#include <texteditor/texteditor.h>
|
||||
#include <texteditor/textdocument.h>
|
||||
#include <texteditor/texteditorsettings.h>
|
||||
@@ -22,8 +24,6 @@
|
||||
#include <texteditor/marginsettings.h>
|
||||
#include <texteditor/icodestylepreferencesfactory.h>
|
||||
|
||||
#include <QLatin1String>
|
||||
#include <QByteArray>
|
||||
#include <QTextCodec>
|
||||
#include <QDebug>
|
||||
|
||||
@@ -74,7 +74,7 @@ EditorConfiguration::EditorConfiguration() : d(std::make_unique<EditorConfigurat
|
||||
// project prefs can point to the global language pool, which contains also the global language prefs
|
||||
preferences->setDelegatingPool(TextEditorSettings::codeStylePool(languageId));
|
||||
preferences->setId(languageId.name() + "Project");
|
||||
preferences->setDisplayName(tr("Project %1", "Settings, %1 is a language (C++ or QML)").arg(factory->displayName()));
|
||||
preferences->setDisplayName(Tr::tr("Project %1", "Settings, %1 is a language (C++ or QML)").arg(factory->displayName()));
|
||||
// project prefs by default point to global prefs (which in turn can delegate to anything else or not)
|
||||
preferences->setCurrentDelegate(originalPreferences);
|
||||
d->m_languageCodeStylePreferences.insert(languageId, preferences);
|
||||
@@ -83,7 +83,7 @@ EditorConfiguration::EditorConfiguration() : d(std::make_unique<EditorConfigurat
|
||||
// clone of global prefs (not language specific), for project scope
|
||||
d->m_defaultCodeStyle = new SimpleCodeStylePreferences(this);
|
||||
d->m_defaultCodeStyle->setDelegatingPool(TextEditorSettings::codeStylePool());
|
||||
d->m_defaultCodeStyle->setDisplayName(tr("Project", "Settings"));
|
||||
d->m_defaultCodeStyle->setDisplayName(Tr::tr("Project", "Settings"));
|
||||
d->m_defaultCodeStyle->setId("Project");
|
||||
// if setCurrentDelegate is 0 values are read from *this prefs
|
||||
d->m_defaultCodeStyle->setCurrentDelegate(TextEditorSettings::codeStyle());
|
||||
|
@@ -2,8 +2,10 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "editorsettingspropertiespage.h"
|
||||
|
||||
#include "editorconfiguration.h"
|
||||
#include "project.h"
|
||||
#include "projectexplorertr.h"
|
||||
|
||||
#include <texteditor/texteditorconstants.h>
|
||||
#include <texteditor/behaviorsettings.h>
|
||||
@@ -27,12 +29,12 @@ EditorSettingsWidget::EditorSettingsWidget(Project *project) : m_project(project
|
||||
{
|
||||
setGlobalSettingsId(TextEditor::Constants::TEXT_EDITOR_BEHAVIOR_SETTINGS);
|
||||
|
||||
m_restoreButton = new QPushButton(tr("Restore Global"));
|
||||
m_restoreButton = new QPushButton(Tr::tr("Restore Global"));
|
||||
|
||||
m_displaySettings = new QGroupBox(tr("Display Settings"));
|
||||
m_displaySettings = new QGroupBox(Tr::tr("Display Settings"));
|
||||
m_displaySettings->setEnabled(false);
|
||||
|
||||
m_showWrapColumn = new QCheckBox(tr("Display right &margin at column:"));
|
||||
m_showWrapColumn = new QCheckBox(Tr::tr("Display right &margin at column:"));
|
||||
|
||||
m_tintMarginArea = new QCheckBox("Colorize right margin area");
|
||||
|
||||
@@ -40,8 +42,8 @@ EditorSettingsWidget::EditorSettingsWidget(Project *project) : m_project(project
|
||||
m_wrapColumn->setEnabled(false);
|
||||
m_wrapColumn->setMaximum(999);
|
||||
|
||||
m_useIndenter = new QCheckBox(tr("Use context-specific margin"));
|
||||
m_useIndenter->setToolTip(tr("If available, use a different margin. For example, "
|
||||
m_useIndenter = new QCheckBox(Tr::tr("Use context-specific margin"));
|
||||
m_useIndenter->setToolTip(Tr::tr("If available, use a different margin. For example, "
|
||||
"the ColumnLimit from the ClangFormat plugin."));
|
||||
|
||||
m_behaviorSettings = new TextEditor::BehaviorSettingsWidget(this);
|
||||
|
@@ -4,7 +4,7 @@
|
||||
#include "environmentaspect.h"
|
||||
|
||||
#include "environmentaspectwidget.h"
|
||||
#include "target.h"
|
||||
#include "projectexplorertr.h"
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/qtcassert.h>
|
||||
@@ -22,7 +22,7 @@ namespace ProjectExplorer {
|
||||
|
||||
EnvironmentAspect::EnvironmentAspect()
|
||||
{
|
||||
setDisplayName(tr("Environment"));
|
||||
setDisplayName(Tr::tr("Environment"));
|
||||
setId("EnvironmentAspect");
|
||||
setConfigWidgetCreator([this] { return new EnvironmentAspectWidget(this); });
|
||||
addDataExtractor(this, &EnvironmentAspect::environment, &Data::environment);
|
||||
|
@@ -4,6 +4,7 @@
|
||||
#include "environmentaspectwidget.h"
|
||||
|
||||
#include "environmentwidget.h"
|
||||
#include "projectexplorertr.h"
|
||||
|
||||
#include <utils/environment.h>
|
||||
#include <utils/qtcassert.h>
|
||||
@@ -31,7 +32,7 @@ EnvironmentAspectWidget::EnvironmentAspectWidget(EnvironmentAspect *aspect)
|
||||
auto baseEnvironmentWidget = new QWidget;
|
||||
m_baseLayout = new QHBoxLayout(baseEnvironmentWidget);
|
||||
m_baseLayout->setContentsMargins(0, 0, 0, 0);
|
||||
auto label = new QLabel(tr("Base environment for this run configuration:"), this);
|
||||
auto label = new QLabel(Tr::tr("Base environment for this run configuration:"), this);
|
||||
m_baseLayout->addWidget(label);
|
||||
|
||||
m_baseEnvironmentComboBox = new QComboBox;
|
||||
|
@@ -3,6 +3,8 @@
|
||||
|
||||
#include "environmentwidget.h"
|
||||
|
||||
#include "projectexplorertr.h"
|
||||
|
||||
#include <coreplugin/fileutils.h>
|
||||
#include <coreplugin/find/itemviewfind.h>
|
||||
|
||||
@@ -49,16 +51,15 @@ public:
|
||||
|
||||
class PathListDialog : public QDialog
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(EnvironmentWidget)
|
||||
public:
|
||||
PathListDialog(const QString &varName, const QString &paths, QWidget *parent) : QDialog(parent)
|
||||
{
|
||||
const auto mainLayout = new QVBoxLayout(this);
|
||||
const auto viewLayout = new QHBoxLayout;
|
||||
const auto buttonsLayout = new QVBoxLayout;
|
||||
const auto addButton = new QPushButton(tr("Add..."));
|
||||
const auto removeButton = new QPushButton(tr("Remove"));
|
||||
const auto editButton = new QPushButton(tr("Edit..."));
|
||||
const auto addButton = new QPushButton(Tr::tr("Add..."));
|
||||
const auto removeButton = new QPushButton(Tr::tr("Remove"));
|
||||
const auto editButton = new QPushButton(Tr::tr("Edit..."));
|
||||
buttonsLayout->addWidget(addButton);
|
||||
buttonsLayout->addWidget(removeButton);
|
||||
buttonsLayout->addWidget(editButton);
|
||||
@@ -80,7 +81,7 @@ public:
|
||||
connect(buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
|
||||
connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
|
||||
connect(addButton, &QPushButton::clicked, this, [this] {
|
||||
const FilePath dir = FileUtils::getExistingDirectory(this, tr("Choose Directory"));
|
||||
const FilePath dir = FileUtils::getExistingDirectory(this, Tr::tr("Choose Directory"));
|
||||
if (!dir.isEmpty())
|
||||
addPath(dir.toUserOutput());
|
||||
});
|
||||
@@ -139,7 +140,7 @@ public:
|
||||
|
||||
if (auto edit = qobject_cast<QLineEdit *>(w))
|
||||
edit->setValidator(new Utils::NameValueValidator(
|
||||
edit, m_model, m_view, index, EnvironmentWidget::tr("Variable already exists.")));
|
||||
edit, m_model, m_view, index, Tr::tr("Variable already exists.")));
|
||||
return w;
|
||||
}
|
||||
private:
|
||||
@@ -226,24 +227,24 @@ EnvironmentWidget::EnvironmentWidget(QWidget *parent, Type type, QWidget *additi
|
||||
auto buttonLayout = new QVBoxLayout();
|
||||
|
||||
d->m_editButton = new QPushButton(this);
|
||||
d->m_editButton->setText(tr("Ed&it"));
|
||||
d->m_editButton->setText(Tr::tr("Ed&it"));
|
||||
buttonLayout->addWidget(d->m_editButton);
|
||||
|
||||
d->m_addButton = new QPushButton(this);
|
||||
d->m_addButton->setText(tr("&Add"));
|
||||
d->m_addButton->setText(Tr::tr("&Add"));
|
||||
buttonLayout->addWidget(d->m_addButton);
|
||||
|
||||
d->m_resetButton = new QPushButton(this);
|
||||
d->m_resetButton->setEnabled(false);
|
||||
d->m_resetButton->setText(tr("&Reset"));
|
||||
d->m_resetButton->setText(Tr::tr("&Reset"));
|
||||
buttonLayout->addWidget(d->m_resetButton);
|
||||
|
||||
d->m_unsetButton = new QPushButton(this);
|
||||
d->m_unsetButton->setEnabled(false);
|
||||
d->m_unsetButton->setText(tr("&Unset"));
|
||||
d->m_unsetButton->setText(Tr::tr("&Unset"));
|
||||
buttonLayout->addWidget(d->m_unsetButton);
|
||||
|
||||
d->m_toggleButton = new QPushButton(tr("Disable"), this);
|
||||
d->m_toggleButton = new QPushButton(Tr::tr("Disable"), this);
|
||||
buttonLayout->addWidget(d->m_toggleButton);
|
||||
connect(d->m_toggleButton, &QPushButton::clicked, this, [this] {
|
||||
d->m_model->toggleVariable(d->m_environmentView->currentIndex());
|
||||
@@ -253,11 +254,11 @@ EnvironmentWidget::EnvironmentWidget(QWidget *parent, Type type, QWidget *additi
|
||||
if (type == TypeLocal) {
|
||||
d->m_appendPathButton = new QPushButton(this);
|
||||
d->m_appendPathButton->setEnabled(false);
|
||||
d->m_appendPathButton->setText(tr("Append Path..."));
|
||||
d->m_appendPathButton->setText(Tr::tr("Append Path..."));
|
||||
buttonLayout->addWidget(d->m_appendPathButton);
|
||||
d->m_prependPathButton = new QPushButton(this);
|
||||
d->m_prependPathButton->setEnabled(false);
|
||||
d->m_prependPathButton->setText(tr("Prepend Path..."));
|
||||
d->m_prependPathButton->setText(Tr::tr("Prepend Path..."));
|
||||
buttonLayout->addWidget(d->m_prependPathButton);
|
||||
connect(d->m_appendPathButton, &QAbstractButton::clicked,
|
||||
this, &EnvironmentWidget::appendPathButtonClicked);
|
||||
@@ -266,12 +267,12 @@ EnvironmentWidget::EnvironmentWidget(QWidget *parent, Type type, QWidget *additi
|
||||
}
|
||||
|
||||
d->m_batchEditButton = new QPushButton(this);
|
||||
d->m_batchEditButton->setText(tr("&Batch Edit..."));
|
||||
d->m_batchEditButton->setText(Tr::tr("&Batch Edit..."));
|
||||
buttonLayout->addWidget(d->m_batchEditButton);
|
||||
|
||||
d->m_terminalButton = new QPushButton(this);
|
||||
d->m_terminalButton->setText(tr("Open &Terminal"));
|
||||
d->m_terminalButton->setToolTip(tr("Open a terminal with this environment set up."));
|
||||
d->m_terminalButton->setText(Tr::tr("Open &Terminal"));
|
||||
d->m_terminalButton->setToolTip(Tr::tr("Open a terminal with this environment set up."));
|
||||
d->m_terminalButton->setEnabled(true);
|
||||
buttonLayout->addWidget(d->m_terminalButton);
|
||||
buttonLayout->addStretch();
|
||||
@@ -379,19 +380,19 @@ void EnvironmentWidget::updateSummaryText()
|
||||
text.append(QLatin1String("<br>"));
|
||||
switch (item.operation) {
|
||||
case Utils::EnvironmentItem::Unset:
|
||||
text.append(tr("Unset <a href=\"%1\"><b>%1</b></a>").arg(item.name.toHtmlEscaped()));
|
||||
text.append(Tr::tr("Unset <a href=\"%1\"><b>%1</b></a>").arg(item.name.toHtmlEscaped()));
|
||||
break;
|
||||
case Utils::EnvironmentItem::SetEnabled:
|
||||
text.append(tr("Set <a href=\"%1\"><b>%1</b></a> to <b>%2</b>").arg(item.name.toHtmlEscaped(), item.value.toHtmlEscaped()));
|
||||
text.append(Tr::tr("Set <a href=\"%1\"><b>%1</b></a> to <b>%2</b>").arg(item.name.toHtmlEscaped(), item.value.toHtmlEscaped()));
|
||||
break;
|
||||
case Utils::EnvironmentItem::Append:
|
||||
text.append(tr("Append <b>%2</b> to <a href=\"%1\"><b>%1</b></a>").arg(item.name.toHtmlEscaped(), item.value.toHtmlEscaped()));
|
||||
text.append(Tr::tr("Append <b>%2</b> to <a href=\"%1\"><b>%1</b></a>").arg(item.name.toHtmlEscaped(), item.value.toHtmlEscaped()));
|
||||
break;
|
||||
case Utils::EnvironmentItem::Prepend:
|
||||
text.append(tr("Prepend <b>%2</b> to <a href=\"%1\"><b>%1</b></a>").arg(item.name.toHtmlEscaped(), item.value.toHtmlEscaped()));
|
||||
text.append(Tr::tr("Prepend <b>%2</b> to <a href=\"%1\"><b>%1</b></a>").arg(item.name.toHtmlEscaped(), item.value.toHtmlEscaped()));
|
||||
break;
|
||||
case Utils::EnvironmentItem::SetDisabled:
|
||||
text.append(tr("Set <a href=\"%1\"><b>%1</b></a> to <b>%2</b> [disabled]").arg(item.name.toHtmlEscaped(), item.value.toHtmlEscaped()));
|
||||
text.append(Tr::tr("Set <a href=\"%1\"><b>%1</b></a> to <b>%2</b> [disabled]").arg(item.name.toHtmlEscaped(), item.value.toHtmlEscaped()));
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -400,14 +401,14 @@ void EnvironmentWidget::updateSummaryText()
|
||||
if (text.isEmpty()) {
|
||||
//: %1 is "System Environment" or some such.
|
||||
if (!d->m_baseEnvironmentText.isEmpty())
|
||||
text.prepend(tr("Use <b>%1</b>").arg(d->m_baseEnvironmentText));
|
||||
text.prepend(Tr::tr("Use <b>%1</b>").arg(d->m_baseEnvironmentText));
|
||||
else
|
||||
text.prepend(tr("<b>No environment changes</b>"));
|
||||
text.prepend(Tr::tr("<b>No environment changes</b>"));
|
||||
} else {
|
||||
//: Yup, word puzzle. The Set/Unset phrases above are appended to this.
|
||||
//: %1 is "System Environment" or some such.
|
||||
if (!d->m_baseEnvironmentText.isEmpty())
|
||||
text.prepend(tr("Use <b>%1</b> and").arg(d->m_baseEnvironmentText));
|
||||
text.prepend(Tr::tr("Use <b>%1</b> and").arg(d->m_baseEnvironmentText));
|
||||
}
|
||||
|
||||
d->m_detailsContainer->setSummaryText(text);
|
||||
@@ -467,7 +468,7 @@ void EnvironmentWidget::unsetEnvironmentButtonClicked()
|
||||
void EnvironmentWidget::amendPathList(Utils::NameValueItem::Operation op)
|
||||
{
|
||||
const QString varName = d->m_model->indexToVariable(d->m_environmentView->currentIndex());
|
||||
const FilePath dir = FileUtils::getExistingDirectory(this, tr("Choose Directory"));
|
||||
const FilePath dir = FileUtils::getExistingDirectory(this, Tr::tr("Choose Directory"));
|
||||
if (dir.isEmpty())
|
||||
return;
|
||||
Utils::NameValueItems changes = d->m_model->userChanges();
|
||||
@@ -505,13 +506,13 @@ void EnvironmentWidget::environmentCurrentIndexChanged(const QModelIndex ¤
|
||||
d->m_resetButton->setEnabled(modified || unset);
|
||||
d->m_unsetButton->setEnabled(!unset);
|
||||
d->m_toggleButton->setEnabled(!unset);
|
||||
d->m_toggleButton->setText(d->m_model->isEnabled(name) ? tr("Disable") : tr("Enable"));
|
||||
d->m_toggleButton->setText(d->m_model->isEnabled(name) ? Tr::tr("Disable") : Tr::tr("Enable"));
|
||||
} else {
|
||||
d->m_editButton->setEnabled(false);
|
||||
d->m_resetButton->setEnabled(false);
|
||||
d->m_unsetButton->setEnabled(false);
|
||||
d->m_toggleButton->setEnabled(false);
|
||||
d->m_toggleButton->setText(tr("Disable"));
|
||||
d->m_toggleButton->setText(Tr::tr("Disable"));
|
||||
}
|
||||
if (d->m_appendPathButton) {
|
||||
const bool isPathList = d->m_model->currentEntryIsPathList(current);
|
||||
|
@@ -4,6 +4,7 @@
|
||||
#include "filesinallprojectsfind.h"
|
||||
|
||||
#include "project.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "session.h"
|
||||
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
@@ -24,7 +25,7 @@ QString FilesInAllProjectsFind::id() const
|
||||
|
||||
QString FilesInAllProjectsFind::displayName() const
|
||||
{
|
||||
return tr("Files in All Project Directories");
|
||||
return Tr::tr("Files in All Project Directories");
|
||||
}
|
||||
|
||||
const char kSettingsKey[] = "FilesInAllProjectDirectories";
|
||||
@@ -62,7 +63,7 @@ Utils::FileIterator *FilesInAllProjectsFind::files(const QStringList &nameFilter
|
||||
|
||||
QString FilesInAllProjectsFind::label() const
|
||||
{
|
||||
return tr("Files in All Project Directories:");
|
||||
return Tr::tr("Files in All Project Directories:");
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
|
@@ -4,6 +4,7 @@
|
||||
#include "filterkitaspectsdialog.h"
|
||||
|
||||
#include "kitmanager.h"
|
||||
#include "projectexplorertr.h"
|
||||
|
||||
#include <utils/itemviews.h>
|
||||
#include <utils/qtcassert.h>
|
||||
@@ -80,7 +81,7 @@ class FilterKitAspectsModel : public TreeModel<TreeItem, FilterTreeItem>
|
||||
public:
|
||||
FilterKitAspectsModel(const Kit *kit, QObject *parent) : TreeModel(parent)
|
||||
{
|
||||
setHeader({FilterKitAspectsDialog::tr("Setting"), FilterKitAspectsDialog::tr("Visible")});
|
||||
setHeader({Tr::tr("Setting"), Tr::tr("Visible")});
|
||||
for (const KitAspect * const aspect : KitManager::kitAspects()) {
|
||||
if (kit && !aspect->isApplicableToKit(kit))
|
||||
continue;
|
||||
|
@@ -8,6 +8,7 @@
|
||||
#include "devicesupport/idevice.h"
|
||||
#include "gccparser.h"
|
||||
#include "linuxiccparser.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "projectmacro.h"
|
||||
#include "toolchainconfigwidget.h"
|
||||
#include "toolchainmanager.h"
|
||||
@@ -304,7 +305,7 @@ static FilePath gccInstallDir(const FilePath &compiler,
|
||||
GccToolChain::GccToolChain(Utils::Id typeId) :
|
||||
ToolChain(typeId)
|
||||
{
|
||||
setTypeDisplayName(tr("GCC"));
|
||||
setTypeDisplayName(Tr::tr("GCC"));
|
||||
setTargetAbiKey(targetAbiKeyC);
|
||||
setCompilerCommandKey("ProjectExplorer.GccToolChain.Path");
|
||||
}
|
||||
@@ -346,7 +347,7 @@ QString GccToolChain::defaultDisplayName() const
|
||||
const Abi abi = targetAbi();
|
||||
if (abi.architecture() == Abi::UnknownArchitecture || abi.wordWidth() == 0)
|
||||
return type;
|
||||
return tr("%1 (%2, %3 %4 at %5)").arg(type,
|
||||
return Tr::tr("%1 (%2, %3 %4 at %5)").arg(type,
|
||||
ToolChainManager::displayNameOfLanguageId(language()),
|
||||
Abi::toString(abi.architecture()),
|
||||
Abi::toString(abi.wordWidth()),
|
||||
@@ -1028,7 +1029,7 @@ static Utils::FilePaths renesasRl78SearchPathsFromRegistry()
|
||||
|
||||
GccToolChainFactory::GccToolChainFactory()
|
||||
{
|
||||
setDisplayName(GccToolChain::tr("GCC"));
|
||||
setDisplayName(Tr::tr("GCC"));
|
||||
setSupportedToolChainType(Constants::GCC_TOOLCHAIN_TYPEID);
|
||||
setSupportedLanguages({Constants::C_LANGUAGE_ID, Constants::CXX_LANGUAGE_ID});
|
||||
setToolchainConstructor([] { return new GccToolChain(Constants::GCC_TOOLCHAIN_TYPEID); });
|
||||
@@ -1277,8 +1278,8 @@ public:
|
||||
const auto layout = new QHBoxLayout(this);
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
m_tripleLineEdit.setEnabled(false);
|
||||
m_overrideCheckBox.setText(tr("Override for code model"));
|
||||
m_overrideCheckBox.setToolTip(tr("Enable in the rare case that the code model\n"
|
||||
m_overrideCheckBox.setText(Tr::tr("Override for code model"));
|
||||
m_overrideCheckBox.setToolTip(Tr::tr("Enable in the rare case that the code model\n"
|
||||
"fails because Clang does not understand the target architecture."));
|
||||
layout->addWidget(&m_tripleLineEdit, 1);
|
||||
layout->addWidget(&m_overrideCheckBox);
|
||||
@@ -1321,15 +1322,15 @@ GccToolChainConfigWidget::GccToolChainConfigWidget(GccToolChain *tc) :
|
||||
m_compilerCommand->setCommandVersionArguments(gnuVersionArgs);
|
||||
m_compilerCommand->setHistoryCompleter("PE.Gcc.Command.History");
|
||||
m_compilerCommand->setAllowPathFromDevice(true);
|
||||
m_mainLayout->addRow(tr("&Compiler path:"), m_compilerCommand);
|
||||
m_mainLayout->addRow(Tr::tr("&Compiler path:"), m_compilerCommand);
|
||||
m_platformCodeGenFlagsLineEdit = new QLineEdit(this);
|
||||
m_platformCodeGenFlagsLineEdit->setText(ProcessArgs::joinArgs(tc->platformCodeGenFlags()));
|
||||
m_mainLayout->addRow(tr("Platform codegen flags:"), m_platformCodeGenFlagsLineEdit);
|
||||
m_mainLayout->addRow(Tr::tr("Platform codegen flags:"), m_platformCodeGenFlagsLineEdit);
|
||||
m_platformLinkerFlagsLineEdit = new QLineEdit(this);
|
||||
m_platformLinkerFlagsLineEdit->setText(ProcessArgs::joinArgs(tc->platformLinkerFlags()));
|
||||
m_mainLayout->addRow(tr("Platform linker flags:"), m_platformLinkerFlagsLineEdit);
|
||||
m_mainLayout->addRow(tr("&ABI:"), m_abiWidget);
|
||||
m_mainLayout->addRow(tr("Target triple:"), m_targetTripleWidget);
|
||||
m_mainLayout->addRow(Tr::tr("Platform linker flags:"), m_platformLinkerFlagsLineEdit);
|
||||
m_mainLayout->addRow(Tr::tr("&ABI:"), m_abiWidget);
|
||||
m_mainLayout->addRow(Tr::tr("Target triple:"), m_targetTripleWidget);
|
||||
|
||||
m_abiWidget->setEnabled(false);
|
||||
addErrorLabel();
|
||||
@@ -1551,7 +1552,7 @@ ClangToolChain::ClangToolChain() :
|
||||
ClangToolChain::ClangToolChain(Utils::Id typeId) :
|
||||
GccToolChain(typeId)
|
||||
{
|
||||
setTypeDisplayName(tr("Clang"));
|
||||
setTypeDisplayName(Tr::tr("Clang"));
|
||||
syncAutodetectedWithParentToolchains();
|
||||
}
|
||||
|
||||
@@ -1743,7 +1744,7 @@ QList<OutputLineParser *> ClangToolChain::createOutputParsers() const
|
||||
|
||||
ClangToolChainFactory::ClangToolChainFactory()
|
||||
{
|
||||
setDisplayName(ClangToolChain::tr("Clang"));
|
||||
setDisplayName(Tr::tr("Clang"));
|
||||
setSupportedToolChainType(Constants::CLANG_TOOLCHAIN_TYPEID);
|
||||
setSupportedLanguages({Constants::CXX_LANGUAGE_ID, Constants::C_LANGUAGE_ID});
|
||||
setToolchainConstructor([] { return new ClangToolChain; });
|
||||
@@ -1802,7 +1803,7 @@ ClangToolChainConfigWidget::ClangToolChainConfigWidget(ClangToolChain *tc) :
|
||||
|
||||
m_parentToolchainCombo = new QComboBox(this);
|
||||
m_mainLayout->insertRow(m_mainLayout->rowCount() - 1,
|
||||
tr("Parent toolchain:"),
|
||||
Tr::tr("Parent toolchain:"),
|
||||
m_parentToolchainCombo);
|
||||
|
||||
ToolChainManager *tcManager = ToolChainManager::instance();
|
||||
@@ -1914,7 +1915,7 @@ void ClangToolChainConfigWidget::makeReadOnlyImpl()
|
||||
MingwToolChain::MingwToolChain() :
|
||||
GccToolChain(Constants::MINGW_TOOLCHAIN_TYPEID)
|
||||
{
|
||||
setTypeDisplayName(MingwToolChain::tr("MinGW"));
|
||||
setTypeDisplayName(Tr::tr("MinGW"));
|
||||
}
|
||||
|
||||
QStringList MingwToolChain::suggestedMkspecList() const
|
||||
@@ -1940,7 +1941,7 @@ FilePath MingwToolChain::makeCommand(const Environment &environment) const
|
||||
|
||||
MingwToolChainFactory::MingwToolChainFactory()
|
||||
{
|
||||
setDisplayName(MingwToolChain::tr("MinGW"));
|
||||
setDisplayName(Tr::tr("MinGW"));
|
||||
setSupportedToolChainType(Constants::MINGW_TOOLCHAIN_TYPEID);
|
||||
setSupportedLanguages({Constants::CXX_LANGUAGE_ID, Constants::C_LANGUAGE_ID});
|
||||
setToolchainConstructor([] { return new MingwToolChain; });
|
||||
@@ -1987,7 +1988,7 @@ Toolchains MingwToolChainFactory::detectForImport(const ToolChainDescription &tc
|
||||
LinuxIccToolChain::LinuxIccToolChain() :
|
||||
GccToolChain(Constants::LINUXICC_TOOLCHAIN_TYPEID)
|
||||
{
|
||||
setTypeDisplayName(LinuxIccToolChain::tr("ICC"));
|
||||
setTypeDisplayName(Tr::tr("ICC"));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2028,7 +2029,7 @@ QStringList LinuxIccToolChain::suggestedMkspecList() const
|
||||
|
||||
LinuxIccToolChainFactory::LinuxIccToolChainFactory()
|
||||
{
|
||||
setDisplayName(LinuxIccToolChain::tr("ICC"));
|
||||
setDisplayName(Tr::tr("ICC"));
|
||||
setSupportedToolChainType(Constants::LINUXICC_TOOLCHAIN_TYPEID);
|
||||
setSupportedLanguages({Constants::CXX_LANGUAGE_ID, Constants::C_LANGUAGE_ID});
|
||||
setToolchainConstructor([] { return new LinuxIccToolChain; });
|
||||
|
@@ -45,8 +45,6 @@ inline const QStringList gccPredefinedMacrosOptions(Utils::Id languageId)
|
||||
|
||||
class PROJECTEXPLORER_EXPORT GccToolChain : public ToolChain
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::GccToolChain)
|
||||
|
||||
public:
|
||||
GccToolChain(Utils::Id typeId);
|
||||
|
||||
@@ -183,8 +181,6 @@ private:
|
||||
|
||||
class PROJECTEXPLORER_EXPORT ClangToolChain : public GccToolChain
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::ClangToolChain)
|
||||
|
||||
public:
|
||||
ClangToolChain();
|
||||
explicit ClangToolChain(Utils::Id typeId);
|
||||
@@ -236,8 +232,6 @@ private:
|
||||
|
||||
class PROJECTEXPLORER_EXPORT MingwToolChain : public GccToolChain
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::MingwToolChain)
|
||||
|
||||
public:
|
||||
Utils::FilePath makeCommand(const Utils::Environment &environment) const override;
|
||||
|
||||
@@ -256,8 +250,6 @@ private:
|
||||
|
||||
class PROJECTEXPLORER_EXPORT LinuxIccToolChain : public GccToolChain
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::LinuxIccToolChain)
|
||||
|
||||
public:
|
||||
Utils::LanguageExtensions languageExtensions(const QStringList &cxxflags) const override;
|
||||
QList<Utils::OutputLineParser *> createOutputParsers() const override;
|
||||
|
@@ -3,6 +3,8 @@
|
||||
|
||||
#include "importwidget.h"
|
||||
|
||||
#include "projectexplorertr.h"
|
||||
|
||||
#include <utils/detailswidget.h>
|
||||
#include <utils/pathchooser.h>
|
||||
|
||||
@@ -23,7 +25,7 @@ ImportWidget::ImportWidget(QWidget *parent) :
|
||||
vboxLayout->setContentsMargins(0, 0, 0, 0);
|
||||
auto detailsWidget = new Utils::DetailsWidget(this);
|
||||
detailsWidget->setUseCheckBox(false);
|
||||
detailsWidget->setSummaryText(tr("Import Build From..."));
|
||||
detailsWidget->setSummaryText(Tr::tr("Import Build From..."));
|
||||
detailsWidget->setSummaryFontBold(true);
|
||||
// m_detailsWidget->setIcon(); // FIXME: Set icon!
|
||||
vboxLayout->addWidget(detailsWidget);
|
||||
@@ -35,7 +37,7 @@ ImportWidget::ImportWidget(QWidget *parent) :
|
||||
|
||||
m_pathChooser->setExpectedKind(Utils::PathChooser::ExistingDirectory);
|
||||
m_pathChooser->setHistoryCompleter(QLatin1String("Import.SourceDir.History"));
|
||||
auto importButton = new QPushButton(tr("Import"), widget);
|
||||
auto importButton = new QPushButton(Tr::tr("Import"), widget);
|
||||
layout->addWidget(importButton);
|
||||
|
||||
connect(importButton, &QAbstractButton::clicked, this, &ImportWidget::handleImportRequest);
|
||||
|
@@ -8,10 +8,12 @@
|
||||
#include "jsonwizardfactory.h"
|
||||
|
||||
#include "../project.h"
|
||||
#include "../projectexplorertr.h"
|
||||
#include "../projecttree.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/locator/ilocatorfilter.h>
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/fancylineedit.h>
|
||||
#include <utils/fileutils.h>
|
||||
@@ -153,30 +155,25 @@ QVariant JsonFieldPage::Field::toSettings() const
|
||||
JsonFieldPage::Field *JsonFieldPage::Field::parse(const QVariant &input, QString *errorMessage)
|
||||
{
|
||||
if (input.type() != QVariant::Map) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"Field is not an object.");
|
||||
*errorMessage = Tr::tr("Field is not an object.");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
QVariantMap tmp = input.toMap();
|
||||
const QString name = consumeValue(tmp, NAME_KEY).toString();
|
||||
if (name.isEmpty()) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"Field has no name.");
|
||||
*errorMessage = Tr::tr("Field has no name.");
|
||||
return nullptr;
|
||||
}
|
||||
const QString type = consumeValue(tmp, TYPE_KEY).toString();
|
||||
if (type.isEmpty()) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"Field \"%1\" has no type.").arg(name);
|
||||
*errorMessage = Tr::tr("Field \"%1\" has no type.").arg(name);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Field *data = createFieldData(type);
|
||||
if (!data) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"Field \"%1\" has unsupported type \"%2\".")
|
||||
.arg(name).arg(type);
|
||||
*errorMessage = Tr::tr("Field \"%1\" has unsupported type \"%2\".").arg(name).arg(type);
|
||||
return nullptr;
|
||||
}
|
||||
data->setTexts(name,
|
||||
@@ -193,9 +190,7 @@ JsonFieldPage::Field *JsonFieldPage::Field::parse(const QVariant &input, QString
|
||||
|
||||
QVariant dataVal = consumeValue(tmp, DATA_KEY);
|
||||
if (!data->parseData(dataVal, errorMessage)) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"When parsing Field \"%1\": %2")
|
||||
.arg(name).arg(*errorMessage);
|
||||
*errorMessage = Tr::tr("When parsing Field \"%1\": %2").arg(name).arg(*errorMessage);
|
||||
delete data;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -403,9 +398,7 @@ QDebug &operator<<(QDebug &debug, const JsonFieldPage::Field &field)
|
||||
bool LabelField::parseData(const QVariant &data, QString *errorMessage)
|
||||
{
|
||||
if (data.type() != QVariant::Map) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"Label (\"%1\") data is not an object.")
|
||||
.arg(name());
|
||||
*errorMessage = Tr::tr("Label (\"%1\") data is not an object.").arg(name());
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -415,9 +408,7 @@ bool LabelField::parseData(const QVariant &data, QString *errorMessage)
|
||||
m_text = JsonWizardFactory::localizedString(consumeValue(tmp, "trText"));
|
||||
|
||||
if (m_text.isEmpty()) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"Label (\"%1\") has no trText.")
|
||||
.arg(name());
|
||||
*errorMessage = Tr::tr("Label (\"%1\") has no trText.").arg(name());
|
||||
return false;
|
||||
}
|
||||
warnAboutUnsupportedKeys(tmp, name(), type());
|
||||
@@ -445,9 +436,7 @@ bool SpacerField::parseData(const QVariant &data, QString *errorMessage)
|
||||
return true;
|
||||
|
||||
if (data.type() != QVariant::Map) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"Spacer (\"%1\") data is not an object.")
|
||||
.arg(name());
|
||||
*errorMessage = Tr::tr("Spacer (\"%1\") data is not an object.").arg(name());
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -457,8 +446,7 @@ bool SpacerField::parseData(const QVariant &data, QString *errorMessage)
|
||||
m_factor = consumeValue(tmp, "factor", 1).toInt(&ok);
|
||||
|
||||
if (!ok) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"Spacer (\"%1\") property \"factor\" is no integer value.")
|
||||
*errorMessage = Tr::tr("Spacer (\"%1\") property \"factor\" is no integer value.")
|
||||
.arg(name());
|
||||
return false;
|
||||
}
|
||||
@@ -493,9 +481,7 @@ bool LineEditField::parseData(const QVariant &data, QString *errorMessage)
|
||||
return true;
|
||||
|
||||
if (data.type() != QVariant::Map) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"LineEdit (\"%1\") data is not an object.")
|
||||
.arg(name());
|
||||
*errorMessage = Tr::tr("LineEdit (\"%1\") data is not an object.").arg(name());
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -511,8 +497,8 @@ bool LineEditField::parseData(const QVariant &data, QString *errorMessage)
|
||||
if (!pattern.isEmpty()) {
|
||||
m_validatorRegExp = QRegularExpression('^' + pattern + '$');
|
||||
if (!m_validatorRegExp.isValid()) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"LineEdit (\"%1\") has an invalid regular expression \"%2\" in \"validator\".")
|
||||
*errorMessage = Tr::tr(
|
||||
"LineEdit (\"%1\") has an invalid regular expression \"%2\" in \"validator\".")
|
||||
.arg(name(), pattern);
|
||||
m_validatorRegExp = QRegularExpression();
|
||||
return false;
|
||||
@@ -526,8 +512,7 @@ bool LineEditField::parseData(const QVariant &data, QString *errorMessage)
|
||||
} else if (completion == "namespaces") {
|
||||
m_completion = Completion::Namespaces;
|
||||
} else if (!completion.isEmpty()) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"LineEdit (\"%1\") has an invalid value \"%2\" in \"completion\".")
|
||||
*errorMessage = Tr::tr("LineEdit (\"%1\") has an invalid value \"%2\" in \"completion\".")
|
||||
.arg(name(), completion);
|
||||
return false;
|
||||
}
|
||||
@@ -704,8 +689,7 @@ bool TextEditField::parseData(const QVariant &data, QString *errorMessage)
|
||||
return true;
|
||||
|
||||
if (data.type() != QVariant::Map) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"TextEdit (\"%1\") data is not an object.")
|
||||
*errorMessage = Tr::tr("TextEdit (\"%1\") data is not an object.")
|
||||
.arg(name());
|
||||
return false;
|
||||
}
|
||||
@@ -788,8 +772,7 @@ bool PathChooserField::parseData(const QVariant &data, QString *errorMessage)
|
||||
return true;
|
||||
|
||||
if (data.type() != QVariant::Map) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"PathChooser data is not an object.");
|
||||
*errorMessage = Tr::tr("PathChooser data is not an object.");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -815,10 +798,9 @@ bool PathChooserField::parseData(const QVariant &data, QString *errorMessage)
|
||||
} else if (kindStr == "any") {
|
||||
m_kind = PathChooser::Any;
|
||||
} else {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"kind \"%1\" is not one of the supported \"existingDirectory\", "
|
||||
"\"directory\", \"file\", \"saveFile\", \"existingCommand\", "
|
||||
"\"command\", \"any\".")
|
||||
*errorMessage = Tr::tr("kind \"%1\" is not one of the supported \"existingDirectory\", "
|
||||
"\"directory\", \"file\", \"saveFile\", \"existingCommand\", "
|
||||
"\"command\", \"any\".")
|
||||
.arg(kindStr);
|
||||
return false;
|
||||
}
|
||||
@@ -895,9 +877,7 @@ bool CheckBoxField::parseData(const QVariant &data, QString *errorMessage)
|
||||
return true;
|
||||
|
||||
if (data.type() != QVariant::Map) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"CheckBox (\"%1\") data is not an object.")
|
||||
.arg(name());
|
||||
*errorMessage = Tr::tr("CheckBox (\"%1\") data is not an object.").arg(name());
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -906,8 +886,7 @@ bool CheckBoxField::parseData(const QVariant &data, QString *errorMessage)
|
||||
m_checkedValue = consumeValue(tmp, "checkedValue", true).toString();
|
||||
m_uncheckedValue = consumeValue(tmp, "uncheckedValue", false).toString();
|
||||
if (m_checkedValue == m_uncheckedValue) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"CheckBox (\"%1\") values for checked and unchecked state are identical.")
|
||||
*errorMessage = Tr::tr("CheckBox (\"%1\") values for checked and unchecked state are identical.")
|
||||
.arg(name());
|
||||
return false;
|
||||
}
|
||||
@@ -987,8 +966,7 @@ QVariant CheckBoxField::toSettings() const
|
||||
std::unique_ptr<QStandardItem> createStandardItemFromListItem(const QVariant &item, QString *errorMessage)
|
||||
{
|
||||
if (item.type() == QVariant::List) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"No JSON lists allowed inside List items.");
|
||||
*errorMessage = Tr::tr("No JSON lists allowed inside List items.");
|
||||
return {};
|
||||
}
|
||||
auto standardItem = std::make_unique<QStandardItem>();
|
||||
@@ -998,8 +976,7 @@ std::unique_ptr<QStandardItem> createStandardItemFromListItem(const QVariant &it
|
||||
const QVariant value = consumeValue(tmp, "value", key);
|
||||
|
||||
if (key.isNull() || key.isEmpty()) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"No \"key\" found in List items.");
|
||||
*errorMessage = Tr::tr("No \"key\" found in List items.");
|
||||
return {};
|
||||
}
|
||||
standardItem->setText(key);
|
||||
@@ -1024,9 +1001,7 @@ ListField::~ListField() = default;
|
||||
bool ListField::parseData(const QVariant &data, QString *errorMessage)
|
||||
{
|
||||
if (data.type() != QVariant::Map) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"%1 (\"%2\") data is not an object.")
|
||||
.arg(type(), name());
|
||||
*errorMessage = Tr::tr("%1 (\"%2\") data is not an object.").arg(type(), name());
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1035,30 +1010,24 @@ bool ListField::parseData(const QVariant &data, QString *errorMessage)
|
||||
bool ok;
|
||||
m_index = consumeValue(tmp, "index", 0).toInt(&ok);
|
||||
if (!ok) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"%1 (\"%2\") \"index\" is not an integer value.")
|
||||
*errorMessage = Tr::tr("%1 (\"%2\") \"index\" is not an integer value.")
|
||||
.arg(type(), name());
|
||||
return false;
|
||||
}
|
||||
m_disabledIndex = consumeValue(tmp, "disabledIndex", -1).toInt(&ok);
|
||||
if (!ok) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"%1 (\"%2\") \"disabledIndex\" is not an integer value.")
|
||||
*errorMessage = Tr::tr("%1 (\"%2\") \"disabledIndex\" is not an integer value.")
|
||||
.arg(type(), name());
|
||||
return false;
|
||||
}
|
||||
|
||||
const QVariant value = consumeValue(tmp, "items");
|
||||
if (value.isNull()) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"%1 (\"%2\") \"items\" missing.")
|
||||
.arg(type(), name());
|
||||
*errorMessage = Tr::tr("%1 (\"%2\") \"items\" missing.").arg(type(), name());
|
||||
return false;
|
||||
}
|
||||
if (value.type() != QVariant::List) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"%1 (\"%2\") \"items\" is not a JSON list.")
|
||||
.arg(type(), name());
|
||||
*errorMessage = Tr::tr("%1 (\"%2\") \"items\" is not a JSON list.").arg(type(), name());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -6,7 +6,7 @@
|
||||
|
||||
#include "../kit.h"
|
||||
#include "../project.h"
|
||||
#include "../projectexplorer.h"
|
||||
#include "../projectexplorertr.h"
|
||||
#include "../projectmanager.h"
|
||||
|
||||
#include <coreplugin/featureprovider.h>
|
||||
@@ -43,12 +43,12 @@ void JsonKitsPage::initializePage()
|
||||
|
||||
setTasksGenerator([required, preferred, platform](const Kit *k) -> Tasks {
|
||||
if (!k->hasFeatures(required))
|
||||
return {CompileTask(Task::Error, tr("At least one required feature is not present."))};
|
||||
return {CompileTask(Task::Error, Tr::tr("At least one required feature is not present."))};
|
||||
if (!k->supportedPlatforms().contains(platform))
|
||||
return {CompileTask(Task::Unknown, tr("Platform is not supported."))};
|
||||
return {CompileTask(Task::Unknown, Tr::tr("Platform is not supported."))};
|
||||
if (!k->hasFeatures(preferred))
|
||||
return {
|
||||
CompileTask(Task::Unknown, tr("At least one preferred feature is not present."))};
|
||||
CompileTask(Task::Unknown, Tr::tr("At least one preferred feature is not present."))};
|
||||
return {};
|
||||
});
|
||||
setProjectPath(wiz->expander()->expand(Utils::FilePath::fromString(unexpandedProjectPath())));
|
||||
@@ -126,7 +126,7 @@ QVector<JsonKitsPage::ConditionalFeature> JsonKitsPage::parseFeatures(const QVar
|
||||
return result;
|
||||
if (data.type() != QVariant::List) {
|
||||
if (errorMessage)
|
||||
*errorMessage = tr("Feature list is set and not of type list.");
|
||||
*errorMessage = Tr::tr("Feature list is set and not of type list.");
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -139,7 +139,7 @@ QVector<JsonKitsPage::ConditionalFeature> JsonKitsPage::parseFeatures(const QVar
|
||||
const QString feature = obj.value(QLatin1String(KEY_FEATURE)).toString();
|
||||
if (feature.isEmpty()) {
|
||||
if (errorMessage) {
|
||||
*errorMessage = tr("No \"%1\" key found in feature list object.")
|
||||
*errorMessage = Tr::tr("No \"%1\" key found in feature list object.")
|
||||
.arg(QLatin1String(KEY_FEATURE));
|
||||
}
|
||||
return QVector<ConditionalFeature>();
|
||||
@@ -148,7 +148,7 @@ QVector<JsonKitsPage::ConditionalFeature> JsonKitsPage::parseFeatures(const QVar
|
||||
result.append({ feature, obj.value(QLatin1String(KEY_CONDITION), true) });
|
||||
} else {
|
||||
if (errorMessage)
|
||||
*errorMessage = tr("Feature list element is not a string or object.");
|
||||
*errorMessage = Tr::tr("Feature list element is not a string or object.");
|
||||
return QVector<ConditionalFeature>();
|
||||
}
|
||||
}
|
||||
|
@@ -2,7 +2,9 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "jsonprojectpage.h"
|
||||
|
||||
#include "jsonwizard.h"
|
||||
#include "../projectexplorertr.h"
|
||||
|
||||
#include <coreplugin/documentmanager.h>
|
||||
|
||||
@@ -50,7 +52,7 @@ QString JsonProjectPage::uniqueProjectName(const QString &path)
|
||||
//: File path suggestion for a new project. If you choose
|
||||
//: to translate it, make sure it is a valid path name without blanks
|
||||
//: and using only ascii chars.
|
||||
const QString prefix = tr("untitled");
|
||||
const QString prefix = Tr::tr("untitled");
|
||||
for (unsigned i = 0; ; ++i) {
|
||||
QString name = prefix;
|
||||
if (i)
|
||||
|
@@ -6,12 +6,11 @@
|
||||
#include "jsonwizard.h"
|
||||
#include "../project.h"
|
||||
#include "../projectexplorerconstants.h"
|
||||
#include "../projectexplorertr.h"
|
||||
#include "../projectnodes.h"
|
||||
#include "../projecttree.h"
|
||||
#include "../session.h"
|
||||
|
||||
#include "../projecttree.h"
|
||||
|
||||
#include <coreplugin/coreconstants.h>
|
||||
#include <coreplugin/iversioncontrol.h>
|
||||
|
||||
@@ -152,8 +151,8 @@ void JsonSummaryPage::triggerCommit(const JsonWizard::GeneratorFiles &files)
|
||||
|
||||
QString errorMessage;
|
||||
if (!runVersionControl(coreFiles, &errorMessage)) {
|
||||
QMessageBox::critical(wizard(), tr("Failed to Commit to Version Control"),
|
||||
tr("Error message from Version Control System: \"%1\".")
|
||||
QMessageBox::critical(wizard(), Tr::tr("Failed to Commit to Version Control"),
|
||||
Tr::tr("Error message from Version Control System: \"%1\".")
|
||||
.arg(errorMessage));
|
||||
}
|
||||
}
|
||||
@@ -169,8 +168,8 @@ void JsonSummaryPage::addToProject(const JsonWizard::GeneratorFiles &files)
|
||||
return;
|
||||
if (kind == IWizardFactory::ProjectWizard) {
|
||||
if (!static_cast<ProjectNode *>(folder)->addSubProject(generatedProject)) {
|
||||
QMessageBox::critical(m_wizard, tr("Failed to Add to Project"),
|
||||
tr("Failed to add subproject \"%1\"\nto project \"%2\".")
|
||||
QMessageBox::critical(m_wizard, Tr::tr("Failed to Add to Project"),
|
||||
Tr::tr("Failed to add subproject \"%1\"\nto project \"%2\".")
|
||||
.arg(generatedProject.toUserOutput())
|
||||
.arg(folder->filePath().toUserOutput()));
|
||||
return;
|
||||
@@ -181,8 +180,8 @@ void JsonSummaryPage::addToProject(const JsonWizard::GeneratorFiles &files)
|
||||
return f.file.filePath();
|
||||
});
|
||||
if (!folder->addFiles(filePaths)) {
|
||||
QMessageBox::critical(wizard(), tr("Failed to Add to Project"),
|
||||
tr("Failed to add one or more files to project\n\"%1\" (%2).")
|
||||
QMessageBox::critical(wizard(), Tr::tr("Failed to Add to Project"),
|
||||
Tr::tr("Failed to add one or more files to project\n\"%1\" (%2).")
|
||||
.arg(folder->filePath().toUserOutput(),
|
||||
FilePath::formatFilePaths(filePaths, ", ")));
|
||||
return;
|
||||
|
@@ -5,11 +5,12 @@
|
||||
|
||||
#include "jsonwizardfactory.h"
|
||||
#include "jsonwizardgeneratorfactory.h"
|
||||
|
||||
#include "../project.h"
|
||||
#include "../projectexplorer.h"
|
||||
#include "../projectexplorerconstants.h"
|
||||
#include "../projectexplorertr.h"
|
||||
#include "../projecttree.h"
|
||||
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
#include <coreplugin/editormanager/ieditor.h>
|
||||
#include <coreplugin/messagemanager.h>
|
||||
@@ -71,7 +72,7 @@ public:
|
||||
ProjectFilesModel(const QList<JsonWizard::GeneratorFile *> &candidates, QObject *parent)
|
||||
: TreeModel(parent)
|
||||
{
|
||||
setHeader({QCoreApplication::translate("ProjectExplorer::JsonWizard", "Project File")});
|
||||
setHeader({Tr::tr("Project File")});
|
||||
for (JsonWizard::GeneratorFile * const candidate : candidates)
|
||||
rootItem()->appendChild(new ProjectFileTreeItem(candidate));
|
||||
}
|
||||
@@ -83,8 +84,7 @@ public:
|
||||
ProjectFileChooser(const QList<JsonWizard::GeneratorFile *> &candidates, QWidget *parent)
|
||||
: QDialog(parent), m_view(new TreeView(this))
|
||||
{
|
||||
setWindowTitle(QCoreApplication::translate("ProjectExplorer::JsonWizard",
|
||||
"Choose Project File"));
|
||||
setWindowTitle(Tr::tr("Choose Project File"));
|
||||
const auto model = new ProjectFilesModel(candidates, this);
|
||||
m_view->setSelectionMode(TreeView::ExtendedSelection);
|
||||
m_view->setSelectionBehavior(TreeView::SelectRows);
|
||||
@@ -99,7 +99,7 @@ public:
|
||||
updateOkButton();
|
||||
connect(buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
|
||||
const auto layout = new QVBoxLayout(this);
|
||||
layout->addWidget(new QLabel(QCoreApplication::translate("ProjectExplorer::JsonWizard",
|
||||
layout->addWidget(new QLabel(Tr::tr(
|
||||
"The project contains more than one project file. "
|
||||
"Select the one you would like to use.")));
|
||||
layout->addWidget(m_view);
|
||||
@@ -132,7 +132,7 @@ JsonWizard::JsonWizard(QWidget *parent)
|
||||
*ret = stringValue(name);
|
||||
return !ret->isNull();
|
||||
});
|
||||
m_expander.registerPrefix("Exists", tr("Check whether a variable exists.<br>"
|
||||
m_expander.registerPrefix("Exists", Tr::tr("Check whether a variable exists.<br>"
|
||||
"Returns \"true\" if it does and an empty string if not."),
|
||||
[this](const QString &value) -> QString
|
||||
{
|
||||
@@ -171,7 +171,7 @@ JsonWizard::GeneratorFiles JsonWizard::generateFileList()
|
||||
const FilePath targetPath =
|
||||
FilePath::fromString(stringValue(QLatin1String("TargetPath")));
|
||||
if (targetPath.isEmpty())
|
||||
errorMessage = tr("Could not determine target path. \"TargetPath\" was not set on any page.");
|
||||
errorMessage = Tr::tr("Could not determine target path. \"TargetPath\" was not set on any page.");
|
||||
|
||||
if (m_files.isEmpty() && errorMessage.isEmpty()) {
|
||||
emit preGenerateFiles();
|
||||
@@ -188,8 +188,8 @@ JsonWizard::GeneratorFiles JsonWizard::generateFileList()
|
||||
}
|
||||
|
||||
if (!errorMessage.isEmpty()) {
|
||||
QMessageBox::critical(this, tr("File Generation Failed"),
|
||||
tr("The wizard failed to generate files.<br>"
|
||||
QMessageBox::critical(this, Tr::tr("File Generation Failed"),
|
||||
Tr::tr("The wizard failed to generate files.<br>"
|
||||
"The error message was: \"%1\".").arg(errorMessage));
|
||||
reject();
|
||||
return GeneratorFiles();
|
||||
@@ -252,8 +252,7 @@ QList<JsonWizard::OptionDefinition> JsonWizard::parseOptions(const QVariant &v,
|
||||
odef.m_evaluate = optionObject.value(QLatin1String("evaluate"), false);
|
||||
|
||||
if (odef.m_key.isEmpty()) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::Internal::JsonWizardFileGenerator",
|
||||
"No 'key' in options object.");
|
||||
*errorMessage = Tr::tr("No 'key' in options object.");
|
||||
result.clear();
|
||||
break;
|
||||
}
|
||||
@@ -341,40 +340,40 @@ void JsonWizard::accept()
|
||||
JsonWizardGenerator::promptForOverwrite(&m_files, &errorMessage);
|
||||
if (overwrite != JsonWizardGenerator::OverwriteOk) {
|
||||
if (!errorMessage.isEmpty())
|
||||
QMessageBox::warning(this, tr("Failed to Overwrite Files"), errorMessage);
|
||||
QMessageBox::warning(this, Tr::tr("Failed to Overwrite Files"), errorMessage);
|
||||
return;
|
||||
}
|
||||
|
||||
emit preFormatFiles(m_files);
|
||||
if (!JsonWizardGenerator::formatFiles(this, &m_files, &errorMessage)) {
|
||||
if (!errorMessage.isEmpty())
|
||||
QMessageBox::warning(this, tr("Failed to Format Files"), errorMessage);
|
||||
QMessageBox::warning(this, Tr::tr("Failed to Format Files"), errorMessage);
|
||||
return;
|
||||
}
|
||||
|
||||
emit preWriteFiles(m_files);
|
||||
if (!JsonWizardGenerator::writeFiles(this, &m_files, &errorMessage)) {
|
||||
if (!errorMessage.isEmpty())
|
||||
QMessageBox::warning(this, tr("Failed to Write Files"), errorMessage);
|
||||
QMessageBox::warning(this, Tr::tr("Failed to Write Files"), errorMessage);
|
||||
return;
|
||||
}
|
||||
|
||||
emit postProcessFiles(m_files);
|
||||
if (!JsonWizardGenerator::postWrite(this, &m_files, &errorMessage)) {
|
||||
if (!errorMessage.isEmpty())
|
||||
QMessageBox::warning(this, tr("Failed to Post-Process Files"), errorMessage);
|
||||
QMessageBox::warning(this, Tr::tr("Failed to Post-Process Files"), errorMessage);
|
||||
return;
|
||||
}
|
||||
emit filesReady(m_files);
|
||||
if (!JsonWizardGenerator::polish(this, &m_files, &errorMessage)) {
|
||||
if (!errorMessage.isEmpty())
|
||||
QMessageBox::warning(this, tr("Failed to Polish Files"), errorMessage);
|
||||
QMessageBox::warning(this, Tr::tr("Failed to Polish Files"), errorMessage);
|
||||
return;
|
||||
}
|
||||
emit filesPolished(m_files);
|
||||
if (!JsonWizardGenerator::allDone(this, &m_files, &errorMessage)) {
|
||||
if (!errorMessage.isEmpty())
|
||||
QMessageBox::warning(this, tr("Failed to Open Files"), errorMessage);
|
||||
QMessageBox::warning(this, Tr::tr("Failed to Open Files"), errorMessage);
|
||||
return;
|
||||
}
|
||||
emit allDone(m_files);
|
||||
@@ -428,8 +427,7 @@ void JsonWizard::openFiles(const JsonWizard::GeneratorFiles &files)
|
||||
for (const JsonWizard::GeneratorFile &f : files) {
|
||||
const Core::GeneratedFile &file = f.file;
|
||||
if (!file.filePath().exists()) {
|
||||
errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizard",
|
||||
"\"%1\" does not exist in the file system.")
|
||||
errorMessage = Tr::tr("\"%1\" does not exist in the file system.")
|
||||
.arg(file.filePath().toUserOutput());
|
||||
break;
|
||||
}
|
||||
@@ -439,8 +437,7 @@ void JsonWizard::openFiles(const JsonWizard::GeneratorFiles &files)
|
||||
if (!result) {
|
||||
errorMessage = result.errorMessage();
|
||||
if (errorMessage.isEmpty()) {
|
||||
errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizard",
|
||||
"Failed to open \"%1\" as a project.")
|
||||
errorMessage = Tr::tr("Failed to open \"%1\" as a project.")
|
||||
.arg(file.filePath().toUserOutput());
|
||||
}
|
||||
break;
|
||||
@@ -452,8 +449,7 @@ void JsonWizard::openFiles(const JsonWizard::GeneratorFiles &files)
|
||||
Core::IEditor *editor = Core::EditorManager::openEditor(file.filePath(),
|
||||
file.editorId());
|
||||
if (!editor) {
|
||||
errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizard",
|
||||
"Failed to open an editor for \"%1\".")
|
||||
errorMessage = Tr::tr("Failed to open an editor for \"%1\".")
|
||||
.arg(file.filePath().toUserOutput());
|
||||
break;
|
||||
} else if (file.attributes() & Core::GeneratedFile::TemporaryFile) {
|
||||
@@ -468,15 +464,13 @@ void JsonWizard::openFiles(const JsonWizard::GeneratorFiles &files)
|
||||
|
||||
// Now try to find the project file and open
|
||||
if (!openedSomething) {
|
||||
errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizard",
|
||||
"No file to open found in \"%1\".")
|
||||
.arg(path);
|
||||
errorMessage = Tr::tr("No file to open found in \"%1\".").arg(path);
|
||||
}
|
||||
|
||||
if (!errorMessage.isEmpty()) {
|
||||
const QString text = path.isEmpty() ? tr("Failed to open project.")
|
||||
: tr("Failed to open project in \"%1\".").arg(path);
|
||||
QMessageBox msgBox(QMessageBox::Warning, tr("Cannot Open Project"), text);
|
||||
const QString text = path.isEmpty() ? Tr::tr("Failed to open project.")
|
||||
: Tr::tr("Failed to open project in \"%1\".").arg(path);
|
||||
QMessageBox msgBox(QMessageBox::Warning, Tr::tr("Cannot Open Project"), text);
|
||||
msgBox.setDetailedText(errorMessage);
|
||||
msgBox.addButton(QMessageBox::Ok);
|
||||
msgBox.exec();
|
||||
@@ -497,10 +491,9 @@ void JsonWizard::openProjectForNode(Node *node)
|
||||
std::optional<FilePath> projFilePath = projNode->visibleAfterAddFileAction();
|
||||
|
||||
if (projFilePath && !Core::EditorManager::openEditor(projFilePath.value())) {
|
||||
auto errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizard",
|
||||
"Failed to open an editor for \"%1\".")
|
||||
auto errorMessage = Tr::tr("Failed to open an editor for \"%1\".")
|
||||
.arg(QDir::toNativeSeparators(projFilePath.value().toString()));
|
||||
QMessageBox::warning(nullptr, tr("Cannot Open Project"), errorMessage);
|
||||
QMessageBox::warning(nullptr, Tr::tr("Cannot Open Project"), errorMessage);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -6,8 +6,8 @@
|
||||
#include "jsonwizard.h"
|
||||
#include "jsonwizardgeneratorfactory.h"
|
||||
#include "jsonwizardpagefactory.h"
|
||||
|
||||
#include "../projectexplorerconstants.h"
|
||||
#include "../projectexplorertr.h"
|
||||
|
||||
#include <coreplugin/coreconstants.h>
|
||||
#include <coreplugin/icontext.h>
|
||||
@@ -103,22 +103,21 @@ static JsonWizardFactory::Generator parseGenerator(const QVariant &value, QStrin
|
||||
JsonWizardFactory::Generator gen;
|
||||
|
||||
if (value.type() != QVariant::Map) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizardFactory", "Generator is not a object.");
|
||||
*errorMessage = Tr::tr("Generator is not a object.");
|
||||
return gen;
|
||||
}
|
||||
|
||||
QVariantMap data = value.toMap();
|
||||
QString strVal = data.value(QLatin1String(TYPE_ID_KEY)).toString();
|
||||
if (strVal.isEmpty()) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizardFactory", "Generator has no typeId set.");
|
||||
*errorMessage = Tr::tr("Generator has no typeId set.");
|
||||
return gen;
|
||||
}
|
||||
Id typeId = Id::fromString(QLatin1String(Constants::GENERATOR_ID_PREFIX) + strVal);
|
||||
JsonWizardGeneratorFactory *factory
|
||||
= findOr(s_generatorFactories, nullptr, [typeId](JsonWizardGeneratorFactory *f) { return f->canCreate(typeId); });
|
||||
if (!factory) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizardFactory",
|
||||
"TypeId \"%1\" of generator is unknown. Supported typeIds are: \"%2\".")
|
||||
*errorMessage = Tr::tr("TypeId \"%1\" of generator is unknown. Supported typeIds are: \"%2\".")
|
||||
.arg(strVal)
|
||||
.arg(supportedTypeIds(s_generatorFactories).replace(QLatin1String(Constants::GENERATOR_ID_PREFIX), QLatin1String("")));
|
||||
return gen;
|
||||
@@ -153,7 +152,7 @@ QVariantMap JsonWizardFactory::loadDefaultValues(const QString &fileName)
|
||||
FilePath dir = FilePath::fromString(path.toString());
|
||||
if (!dir.exists()) {
|
||||
if (verbose())
|
||||
verboseLog.append(tr("Path \"%1\" does not exist when checking Json wizard search paths.\n")
|
||||
verboseLog.append(Tr::tr("Path \"%1\" does not exist when checking Json wizard search paths.\n")
|
||||
.arg(path.toUserOutput()));
|
||||
continue;
|
||||
}
|
||||
@@ -164,7 +163,7 @@ QVariantMap JsonWizardFactory::loadDefaultValues(const QString &fileName)
|
||||
while (!dirs.isEmpty()) {
|
||||
const FilePath current = dirs.takeFirst();
|
||||
if (verbose())
|
||||
verboseLog.append(tr("Checking \"%1\" for %2.\n")
|
||||
verboseLog.append(Tr::tr("Checking \"%1\" for %2.\n")
|
||||
.arg(QDir::toNativeSeparators(current.absolutePath().toString()))
|
||||
.arg(fileName));
|
||||
if (current.pathAppended(fileName).exists()) {
|
||||
@@ -186,7 +185,7 @@ QVariantMap JsonWizardFactory::loadDefaultValues(const QString &fileName)
|
||||
++column;
|
||||
}
|
||||
}
|
||||
verboseLog.append(tr("* Failed to parse \"%1\":%2:%3: %4\n")
|
||||
verboseLog.append(Tr::tr("* Failed to parse \"%1\":%2:%3: %4\n")
|
||||
.arg(configFile.fileName())
|
||||
.arg(line).arg(column)
|
||||
.arg(error.errorString()));
|
||||
@@ -194,13 +193,13 @@ QVariantMap JsonWizardFactory::loadDefaultValues(const QString &fileName)
|
||||
}
|
||||
|
||||
if (!json.isObject()) {
|
||||
verboseLog.append(tr("* Did not find a JSON object in \"%1\".\n")
|
||||
verboseLog.append(Tr::tr("* Did not find a JSON object in \"%1\".\n")
|
||||
.arg(configFile.fileName()));
|
||||
continue;
|
||||
}
|
||||
|
||||
if (verbose())
|
||||
verboseLog.append(tr("* Configuration found and parsed.\n"));
|
||||
verboseLog.append(Tr::tr("* Configuration found and parsed.\n"));
|
||||
|
||||
return json.object().toVariantMap();
|
||||
}
|
||||
@@ -210,7 +209,7 @@ QVariantMap JsonWizardFactory::loadDefaultValues(const QString &fileName)
|
||||
dirs.swap(subDirs);
|
||||
dirs.append(subDirs);
|
||||
} else if (verbose()) {
|
||||
verboseLog.append(tr("JsonWizard: \"%1\" not found\n").arg(fileName));
|
||||
verboseLog.append(Tr::tr("JsonWizard: \"%1\" not found\n").arg(fileName));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -306,7 +305,7 @@ JsonWizardFactory::Page JsonWizardFactory::parsePage(const QVariant &value, QStr
|
||||
JsonWizardFactory::Page p;
|
||||
|
||||
if (value.type() != QVariant::Map) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizardFactory", "Page is not an object.");
|
||||
*errorMessage = Tr::tr("Page is not an object.");
|
||||
return p;
|
||||
}
|
||||
|
||||
@@ -318,7 +317,7 @@ JsonWizardFactory::Page JsonWizardFactory::parsePage(const QVariant &value, QStr
|
||||
|
||||
const QString strVal = getDataValue(QLatin1String(TYPE_ID_KEY), data, defaultData).toString();
|
||||
if (strVal.isEmpty()) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizardFactory", "Page has no typeId set.");
|
||||
*errorMessage = Tr::tr("Page has no typeId set.");
|
||||
return p;
|
||||
}
|
||||
Id typeId = Id::fromString(QLatin1String(Constants::PAGE_ID_PREFIX) + strVal);
|
||||
@@ -326,8 +325,7 @@ JsonWizardFactory::Page JsonWizardFactory::parsePage(const QVariant &value, QStr
|
||||
JsonWizardPageFactory *factory
|
||||
= Utils::findOr(s_pageFactories, nullptr, [typeId](JsonWizardPageFactory *f) { return f->canCreate(typeId); });
|
||||
if (!factory) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizardFactory",
|
||||
"TypeId \"%1\" of page is unknown. Supported typeIds are: \"%2\".")
|
||||
*errorMessage = Tr::tr("TypeId \"%1\" of page is unknown. Supported typeIds are: \"%2\".")
|
||||
.arg(strVal)
|
||||
.arg(supportedTypeIds(s_pageFactories).replace(QLatin1String(Constants::PAGE_ID_PREFIX), QLatin1String("")));
|
||||
return p;
|
||||
@@ -340,7 +338,7 @@ JsonWizardFactory::Page JsonWizardFactory::parsePage(const QVariant &value, QStr
|
||||
bool ok;
|
||||
int index = getDataValue(QLatin1String(PAGE_INDEX_KEY), data, defaultData, -1).toInt(&ok);
|
||||
if (!ok) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizardFactory", "Page with typeId \"%1\" has invalid \"index\".")
|
||||
*errorMessage = Tr::tr("Page with typeId \"%1\" has invalid \"index\".")
|
||||
.arg(typeId.toString());
|
||||
return p;
|
||||
}
|
||||
@@ -387,7 +385,7 @@ void JsonWizardFactory::createWizardFactories()
|
||||
|
||||
if (!path.exists()) {
|
||||
if (verbose())
|
||||
verboseLog.append(tr("Path \"%1\" does not exist when checking Json wizard search paths.\n")
|
||||
verboseLog.append(Tr::tr("Path \"%1\" does not exist when checking Json wizard search paths.\n")
|
||||
.arg(path.toUserOutput()));
|
||||
continue;
|
||||
}
|
||||
@@ -414,7 +412,7 @@ void JsonWizardFactory::createWizardFactories()
|
||||
++column;
|
||||
}
|
||||
}
|
||||
verboseLog.append(tr("* Failed to parse \"%1\":%2:%3: %4\n")
|
||||
verboseLog.append(Tr::tr("* Failed to parse \"%1\":%2:%3: %4\n")
|
||||
.arg(currentFile.fileName())
|
||||
.arg(line).arg(column)
|
||||
.arg(error.errorString()));
|
||||
@@ -422,19 +420,19 @@ void JsonWizardFactory::createWizardFactories()
|
||||
}
|
||||
|
||||
if (!json.isObject()) {
|
||||
verboseLog.append(tr("* Did not find a JSON object in \"%1\".\n")
|
||||
verboseLog.append(Tr::tr("* Did not find a JSON object in \"%1\".\n")
|
||||
.arg(currentFile.fileName()));
|
||||
continue;
|
||||
}
|
||||
|
||||
if (verbose())
|
||||
verboseLog.append(tr("* Configuration found and parsed.\n"));
|
||||
verboseLog.append(Tr::tr("* Configuration found and parsed.\n"));
|
||||
|
||||
QVariantMap data = json.object().toVariantMap();
|
||||
|
||||
int version = data.value(QLatin1String(VERSION_KEY), 0).toInt();
|
||||
if (version < 1 || version > 1) {
|
||||
verboseLog.append(tr("* Version %1 not supported.\n").arg(version));
|
||||
verboseLog.append(Tr::tr("* Version %1 not supported.\n").arg(version));
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -649,13 +647,13 @@ QList<QVariant> JsonWizardFactory::objectOrList(const QVariant &data, QString *e
|
||||
{
|
||||
QList<QVariant> result;
|
||||
if (data.isNull())
|
||||
*errorMessage = tr("key not found.");
|
||||
*errorMessage = Tr::tr("key not found.");
|
||||
else if (data.type() == QVariant::Map)
|
||||
result.append(data);
|
||||
else if (data.type() == QVariant::List)
|
||||
result = data.toList();
|
||||
else
|
||||
*errorMessage = tr("Expected an object or a list.");
|
||||
*errorMessage = Tr::tr("Expected an object or a list.");
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -675,7 +673,7 @@ QString JsonWizardFactory::localizedString(const QVariant &value)
|
||||
}
|
||||
return QString();
|
||||
}
|
||||
return QCoreApplication::translate("ProjectExplorer::JsonWizard", value.toByteArray());
|
||||
return Tr::tr(value.toByteArray());
|
||||
}
|
||||
|
||||
bool JsonWizardFactory::isAvailable(Id platformId) const
|
||||
@@ -685,11 +683,11 @@ bool JsonWizardFactory::isAvailable(Id platformId) const
|
||||
|
||||
MacroExpander expander;
|
||||
MacroExpander *e = &expander;
|
||||
expander.registerVariable("Platform", tr("The platform selected for the wizard."),
|
||||
expander.registerVariable("Platform", Tr::tr("The platform selected for the wizard."),
|
||||
[platformId]() { return platformId.toString(); });
|
||||
expander.registerVariable("Features", tr("The features available to this wizard."),
|
||||
expander.registerVariable("Features", Tr::tr("The features available to this wizard."),
|
||||
[e, platformId]() { return JsonWizard::stringListToArrayString(Id::toStringList(availableFeatures(platformId)), e); });
|
||||
expander.registerVariable("Plugins", tr("The plugins loaded."), [e]() {
|
||||
expander.registerVariable("Plugins", Tr::tr("The plugins loaded."), [e]() {
|
||||
return JsonWizard::stringListToArrayString(Id::toStringList(pluginFeatures()), e);
|
||||
});
|
||||
Core::JsExpander jsExpander;
|
||||
@@ -729,11 +727,11 @@ bool JsonWizardFactory::initialize(const QVariantMap &data, const FilePath &base
|
||||
&& strVal != QLatin1String("class")
|
||||
&& strVal != QLatin1String("file")
|
||||
&& strVal != QLatin1String("project")) {
|
||||
*errorMessage = tr("\"kind\" value \"%1\" is not \"class\" (deprecated), \"file\" or \"project\".").arg(strVal);
|
||||
*errorMessage = Tr::tr("\"kind\" value \"%1\" is not \"class\" (deprecated), \"file\" or \"project\".").arg(strVal);
|
||||
return false;
|
||||
}
|
||||
if ((strVal == QLatin1String("file") || strVal == QLatin1String("class")) && !projectTypes.isEmpty()) {
|
||||
*errorMessage = tr("\"kind\" is \"file\" or \"class\" (deprecated) and \"%1\" is also set.").arg(QLatin1String(SUPPORTED_PROJECTS));
|
||||
*errorMessage = Tr::tr("\"kind\" is \"file\" or \"class\" (deprecated) and \"%1\" is also set.").arg(QLatin1String(SUPPORTED_PROJECTS));
|
||||
return false;
|
||||
}
|
||||
if (strVal == QLatin1String("project") && projectTypes.isEmpty())
|
||||
@@ -743,14 +741,14 @@ bool JsonWizardFactory::initialize(const QVariantMap &data, const FilePath &base
|
||||
|
||||
strVal = data.value(QLatin1String(ID_KEY)).toString();
|
||||
if (strVal.isEmpty()) {
|
||||
*errorMessage = tr("No id set.");
|
||||
*errorMessage = Tr::tr("No id set.");
|
||||
return false;
|
||||
}
|
||||
setId(Id::fromString(strVal));
|
||||
|
||||
strVal = data.value(QLatin1String(CATEGORY_KEY)).toString();
|
||||
if (strVal.isEmpty()) {
|
||||
*errorMessage = tr("No category is set.");
|
||||
*errorMessage = Tr::tr("No category is set.");
|
||||
return false;
|
||||
}
|
||||
setCategory(strVal);
|
||||
@@ -760,7 +758,7 @@ bool JsonWizardFactory::initialize(const QVariantMap &data, const FilePath &base
|
||||
strVal = data.value(QLatin1String(ICON_KEY)).toString();
|
||||
iconPath = baseDir.resolvePath(strVal);
|
||||
if (!iconPath.exists()) {
|
||||
*errorMessage = tr("Icon file \"%1\" not found.").arg(iconPath.toUserOutput());
|
||||
*errorMessage = Tr::tr("Icon file \"%1\" not found.").arg(iconPath.toUserOutput());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -780,7 +778,7 @@ bool JsonWizardFactory::initialize(const QVariantMap &data, const FilePath &base
|
||||
if (!strVal.isEmpty()) {
|
||||
const FilePath imagePath = baseDir.resolvePath(strVal);
|
||||
if (!imagePath.exists()) {
|
||||
*errorMessage = tr("Image file \"%1\" not found.").arg(imagePath.toUserOutput());
|
||||
*errorMessage = Tr::tr("Image file \"%1\" not found.").arg(imagePath.toUserOutput());
|
||||
return false;
|
||||
}
|
||||
setDescriptionImage(imagePath.toString());
|
||||
@@ -796,21 +794,21 @@ bool JsonWizardFactory::initialize(const QVariantMap &data, const FilePath &base
|
||||
|
||||
strVal = localizedString(data.value(QLatin1String(DISPLAY_NAME_KEY)));
|
||||
if (strVal.isEmpty()) {
|
||||
*errorMessage = tr("No displayName set.");
|
||||
*errorMessage = Tr::tr("No displayName set.");
|
||||
return false;
|
||||
}
|
||||
setDisplayName(strVal);
|
||||
|
||||
strVal = localizedString(data.value(QLatin1String(CATEGORY_NAME_KEY)));
|
||||
if (strVal.isEmpty()) {
|
||||
*errorMessage = tr("No displayCategory set.");
|
||||
*errorMessage = Tr::tr("No displayCategory set.");
|
||||
return false;
|
||||
}
|
||||
setDisplayCategory(strVal);
|
||||
|
||||
strVal = localizedString(data.value(QLatin1String(DESCRIPTION_KEY)));
|
||||
if (strVal.isEmpty()) {
|
||||
*errorMessage = tr("No description set.");
|
||||
*errorMessage = Tr::tr("No description set.");
|
||||
return false;
|
||||
}
|
||||
setDescription(strVal);
|
||||
@@ -818,7 +816,7 @@ bool JsonWizardFactory::initialize(const QVariantMap &data, const FilePath &base
|
||||
// Generator:
|
||||
QVariantList list = objectOrList(data.value(QLatin1String(GENERATOR_KEY)), errorMessage);
|
||||
if (!errorMessage->isEmpty()) {
|
||||
*errorMessage = tr("When parsing \"generators\": %1").arg(*errorMessage);
|
||||
*errorMessage = Tr::tr("When parsing \"generators\": %1").arg(*errorMessage);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -833,7 +831,7 @@ bool JsonWizardFactory::initialize(const QVariantMap &data, const FilePath &base
|
||||
// Pages:
|
||||
list = objectOrList(data.value(QLatin1String(PAGES_KEY)), errorMessage);
|
||||
if (!errorMessage->isEmpty()) {
|
||||
*errorMessage = tr("When parsing \"pages\": %1").arg(*errorMessage);
|
||||
*errorMessage = Tr::tr("When parsing \"pages\": %1").arg(*errorMessage);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
|
||||
#include "jsonwizardfilegenerator.h"
|
||||
|
||||
#include "../projectexplorer.h"
|
||||
#include "../projectexplorertr.h"
|
||||
#include "jsonwizard.h"
|
||||
#include "jsonwizardfactory.h"
|
||||
|
||||
@@ -33,8 +33,7 @@ bool JsonWizardFileGenerator::setup(const QVariant &data, QString *errorMessage)
|
||||
|
||||
for (const QVariant &d : list) {
|
||||
if (d.type() != QVariant::Map) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"Files data list entry is not an object.");
|
||||
*errorMessage = Tr::tr("Files data list entry is not an object.");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -55,8 +54,7 @@ bool JsonWizardFileGenerator::setup(const QVariant &data, QString *errorMessage)
|
||||
return false;
|
||||
|
||||
if (f.source.isEmpty() && f.target.isEmpty()) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonFieldPage",
|
||||
"Source and target are both empty.");
|
||||
*errorMessage = Tr::tr("Source and target are both empty.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -10,8 +10,10 @@
|
||||
#include "../editorconfiguration.h"
|
||||
#include "../project.h"
|
||||
#include "../projectexplorerconstants.h"
|
||||
#include "../projectexplorertr.h"
|
||||
|
||||
#include <coreplugin/dialogs/promptoverwritedialog.h>
|
||||
|
||||
#include <texteditor/icodestylepreferences.h>
|
||||
#include <texteditor/icodestylepreferencesfactory.h>
|
||||
#include <texteditor/storagesettings.h>
|
||||
@@ -25,7 +27,6 @@
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/stringutils.h>
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QDebug>
|
||||
#include <QDir>
|
||||
#include <QFileInfo>
|
||||
@@ -162,23 +163,19 @@ JsonWizardGenerator::OverwriteResult JsonWizardGenerator::promptForOverwrite(Jso
|
||||
const QString namePart = filePath.toUserOutput().mid(commonPathSize);
|
||||
if (filePath.isDir()) {
|
||||
oddStuffFound = true;
|
||||
fileNamesMsgPart += QCoreApplication::translate("ProjectExplorer::JsonWizardGenerator", "%1 [folder]")
|
||||
.arg(namePart);
|
||||
fileNamesMsgPart += Tr::tr("%1 [folder]").arg(namePart);
|
||||
} else if (filePath.isSymLink()) {
|
||||
oddStuffFound = true;
|
||||
fileNamesMsgPart += QCoreApplication::translate("ProjectExplorer::JsonWizardGenerator", "%1 [symbolic link]")
|
||||
.arg(namePart);
|
||||
fileNamesMsgPart += Tr::tr("%1 [symbolic link]").arg(namePart);
|
||||
} else if (!filePath.isWritableDir() && !filePath.isWritableFile()) {
|
||||
oddStuffFound = true;
|
||||
fileNamesMsgPart += QCoreApplication::translate("ProjectExplorer::JsonWizardGenerator", "%1 [read only]")
|
||||
.arg(namePart);
|
||||
fileNamesMsgPart += Tr::tr("%1 [read only]").arg(namePart);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (oddStuffFound) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizardGenerator",
|
||||
"The directory %1 contains files which cannot be overwritten:\n%2.")
|
||||
*errorMessage = Tr::tr("The directory %1 contains files which cannot be overwritten:\n%2.")
|
||||
.arg(commonExistingPath).arg(fileNamesMsgPart);
|
||||
return OverwriteError;
|
||||
}
|
||||
|
@@ -10,11 +10,11 @@
|
||||
#include "jsonprojectpage.h"
|
||||
#include "jsonsummarypage.h"
|
||||
#include "jsonwizardfactory.h"
|
||||
#include "../projectexplorertr.h"
|
||||
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/wizardpage.h>
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QVariant>
|
||||
|
||||
namespace ProjectExplorer {
|
||||
@@ -60,8 +60,7 @@ bool FieldPageFactory::validateData(Utils::Id typeId, const QVariant &data, QStr
|
||||
|
||||
const QList<QVariant> list = JsonWizardFactory::objectOrList(data, errorMessage);
|
||||
if (list.isEmpty()) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizard",
|
||||
"When parsing fields of page \"%1\": %2")
|
||||
*errorMessage = Tr::tr("When parsing fields of page \"%1\": %2")
|
||||
.arg(typeId.toString()).arg(*errorMessage);
|
||||
return false;
|
||||
}
|
||||
@@ -98,8 +97,7 @@ bool FilePageFactory::validateData(Utils::Id typeId, const QVariant &data, QStri
|
||||
{
|
||||
QTC_ASSERT(canCreate(typeId), return false);
|
||||
if (!data.isNull() && (data.type() != QVariant::Map || !data.toMap().isEmpty())) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizard",
|
||||
"\"data\" for a \"File\" page needs to be unset or an empty object.");
|
||||
*errorMessage = Tr::tr("\"data\" for a \"File\" page needs to be unset or an empty object.");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -110,9 +108,9 @@ bool FilePageFactory::validateData(Utils::Id typeId, const QVariant &data, QStri
|
||||
// KitsPageFactory:
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
static const char KEY_PROJECT_FILE[] = "projectFilePath";
|
||||
static const char KEY_REQUIRED_FEATURES[] = "requiredFeatures";
|
||||
static const char KEY_PREFERRED_FEATURES[] = "preferredFeatures";
|
||||
const char KEY_PROJECT_FILE[] = "projectFilePath";
|
||||
const char KEY_REQUIRED_FEATURES[] = "requiredFeatures";
|
||||
const char KEY_PREFERRED_FEATURES[] = "preferredFeatures";
|
||||
|
||||
KitsPageFactory::KitsPageFactory()
|
||||
{
|
||||
@@ -138,8 +136,7 @@ static bool validateFeatureList(const QVariantMap &data, const QByteArray &key,
|
||||
QString message;
|
||||
JsonKitsPage::parseFeatures(data.value(QLatin1String(key)), &message);
|
||||
if (!message.isEmpty()) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizard",
|
||||
"Error parsing \"%1\" in \"Kits\" page: %2")
|
||||
*errorMessage = Tr::tr("Error parsing \"%1\" in \"Kits\" page: %2")
|
||||
.arg(QLatin1String(key), message);
|
||||
return false;
|
||||
}
|
||||
@@ -151,15 +148,13 @@ bool KitsPageFactory::validateData(Utils::Id typeId, const QVariant &data, QStri
|
||||
QTC_ASSERT(canCreate(typeId), return false);
|
||||
|
||||
if (data.isNull() || data.type() != QVariant::Map) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizard",
|
||||
"\"data\" must be a JSON object for \"Kits\" pages.");
|
||||
*errorMessage = Tr::tr("\"data\" must be a JSON object for \"Kits\" pages.");
|
||||
return false;
|
||||
}
|
||||
|
||||
QVariantMap tmp = data.toMap();
|
||||
if (tmp.value(QLatin1String(KEY_PROJECT_FILE)).toString().isEmpty()) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizard",
|
||||
"\"Kits\" page requires a \"%1\" set.")
|
||||
*errorMessage = Tr::tr("\"Kits\" page requires a \"%1\" set.")
|
||||
.arg(QLatin1String(KEY_PROJECT_FILE));
|
||||
return false;
|
||||
}
|
||||
@@ -212,8 +207,7 @@ bool ProjectPageFactory::validateData(Utils::Id typeId, const QVariant &data, QS
|
||||
|
||||
QTC_ASSERT(canCreate(typeId), return false);
|
||||
if (!data.isNull() && data.type() != QVariant::Map) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizard",
|
||||
"\"data\" must be empty or a JSON object for \"Project\" pages.");
|
||||
*errorMessage = Tr::tr("\"data\" must be empty or a JSON object for \"Project\" pages.");
|
||||
return false;
|
||||
}
|
||||
QVariantMap tmp = data.toMap();
|
||||
@@ -222,7 +216,7 @@ bool ProjectPageFactory::validateData(Utils::Id typeId, const QVariant &data, QS
|
||||
if (!projectNameValidator.isNull()) {
|
||||
QRegularExpression regularExpression(projectNameValidator);
|
||||
if (!regularExpression.isValid()) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizard",
|
||||
*errorMessage = Tr::tr(
|
||||
"Invalid regular expression \"%1\" in \"%2\". %3").arg(
|
||||
projectNameValidator, QLatin1String(KEY_PROJECT_NAME_VALIDATOR), regularExpression.errorString());
|
||||
return false;
|
||||
@@ -259,8 +253,7 @@ bool SummaryPageFactory::validateData(Utils::Id typeId, const QVariant &data, QS
|
||||
{
|
||||
QTC_ASSERT(canCreate(typeId), return false);
|
||||
if (!data.isNull() && (data.type() != QVariant::Map)) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizard",
|
||||
"\"data\" for a \"Summary\" page can be unset or needs to be an object.");
|
||||
*errorMessage = Tr::tr("\"data\" for a \"Summary\" page can be unset or needs to be an object.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -4,6 +4,7 @@
|
||||
#include "jsonwizardscannergenerator.h"
|
||||
|
||||
#include "../projectmanager.h"
|
||||
#include "../projectexplorertr.h"
|
||||
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
|
||||
@@ -13,7 +14,6 @@
|
||||
#include <utils/mimeutils.h>
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QDir>
|
||||
#include <QVariant>
|
||||
|
||||
@@ -28,8 +28,7 @@ bool JsonWizardScannerGenerator::setup(const QVariant &data, QString *errorMessa
|
||||
return true;
|
||||
|
||||
if (data.type() != QVariant::Map) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::Internal::JsonWizard",
|
||||
"Key is not an object.");
|
||||
*errorMessage = Tr::tr("Key is not an object.");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -40,8 +39,7 @@ bool JsonWizardScannerGenerator::setup(const QVariant &data, QString *errorMessa
|
||||
for (const QString &pattern : patterns) {
|
||||
QRegularExpression regexp(pattern);
|
||||
if (!regexp.isValid()) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::Internal::JsonWizard",
|
||||
"Pattern \"%1\" is no valid regular expression.");
|
||||
*errorMessage = Tr::tr("Pattern \"%1\" is no valid regular expression.");
|
||||
return false;
|
||||
}
|
||||
m_subDirectoryExpressions << regexp;
|
||||
@@ -64,8 +62,7 @@ Core::GeneratedFiles JsonWizardScannerGenerator::fileList(Utils::MacroExpander *
|
||||
if (!m_binaryPattern.isEmpty()) {
|
||||
binaryPattern = QRegularExpression(expander->expand(m_binaryPattern));
|
||||
if (!binaryPattern.isValid()) {
|
||||
qWarning() << QCoreApplication::translate("ProjectExplorer::Internal::JsonWizard",
|
||||
"ScannerGenerator: Binary pattern \"%1\" not valid.")
|
||||
qWarning() << Tr::tr("ScannerGenerator: Binary pattern \"%1\" not valid.")
|
||||
.arg(m_binaryPattern);
|
||||
return result;
|
||||
}
|
||||
|
@@ -10,6 +10,7 @@
|
||||
#include "ioutputparser.h"
|
||||
#include "osparser.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectexplorertr.h"
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/displayname.h>
|
||||
@@ -53,8 +54,6 @@ namespace Internal {
|
||||
|
||||
class KitPrivate
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::Kit)
|
||||
|
||||
public:
|
||||
KitPrivate(Id id, Kit *kit) :
|
||||
m_id(id)
|
||||
@@ -62,28 +61,27 @@ public:
|
||||
if (!id.isValid())
|
||||
m_id = Id::fromString(QUuid::createUuid().toString());
|
||||
|
||||
m_unexpandedDisplayName.setDefaultValue(QCoreApplication::translate("ProjectExplorer::Kit",
|
||||
"Unnamed"));
|
||||
m_unexpandedDisplayName.setDefaultValue(Tr::tr("Unnamed"));
|
||||
|
||||
m_macroExpander.setDisplayName(tr("Kit"));
|
||||
m_macroExpander.setDisplayName(Tr::tr("Kit"));
|
||||
m_macroExpander.setAccumulating(true);
|
||||
m_macroExpander.registerVariable("Kit:Id", tr("Kit ID"),
|
||||
m_macroExpander.registerVariable("Kit:Id", Tr::tr("Kit ID"),
|
||||
[kit] { return kit->id().toString(); });
|
||||
m_macroExpander.registerVariable("Kit:FileSystemName", tr("Kit filesystem-friendly name"),
|
||||
m_macroExpander.registerVariable("Kit:FileSystemName", Tr::tr("Kit filesystem-friendly name"),
|
||||
[kit] { return kit->fileSystemFriendlyName(); });
|
||||
for (KitAspect *aspect : KitManager::kitAspects())
|
||||
aspect->addToMacroExpander(kit, &m_macroExpander);
|
||||
|
||||
m_macroExpander.registerVariable("Kit:Name",
|
||||
tr("The name of the kit."),
|
||||
Tr::tr("The name of the kit."),
|
||||
[kit] { return kit->displayName(); });
|
||||
|
||||
m_macroExpander.registerVariable("Kit:FileSystemName",
|
||||
tr("The name of the kit in a filesystem-friendly version."),
|
||||
Tr::tr("The name of the kit in a filesystem-friendly version."),
|
||||
[kit] { return kit->fileSystemFriendlyName(); });
|
||||
|
||||
m_macroExpander.registerVariable("Kit:Id",
|
||||
tr("The ID of the kit."),
|
||||
Tr::tr("The ID of the kit."),
|
||||
[kit] { return kit->id().toString(); });
|
||||
}
|
||||
|
||||
@@ -715,8 +713,8 @@ QString Kit::newKitName(const QList<Kit *> &allKits) const
|
||||
QString Kit::newKitName(const QString &name, const QList<Kit *> &allKits)
|
||||
{
|
||||
const QString baseName = name.isEmpty()
|
||||
? QCoreApplication::translate("ProjectExplorer::Kit", "Unnamed")
|
||||
: QCoreApplication::translate("ProjectExplorer::Kit", "Clone of %1").arg(name);
|
||||
? Tr::tr("Unnamed")
|
||||
: Tr::tr("Clone of %1").arg(name);
|
||||
return Utils::makeUniquelyNumbered(baseName, transform(allKits, &Kit::unexpandedDisplayName));
|
||||
}
|
||||
|
||||
|
@@ -3,10 +3,9 @@
|
||||
|
||||
#include "kitchooser.h"
|
||||
|
||||
#include "kitinformation.h"
|
||||
#include "kitmanager.h"
|
||||
#include "project.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "session.h"
|
||||
#include "target.h"
|
||||
|
||||
@@ -92,7 +91,7 @@ void KitChooser::populate()
|
||||
if (Target *target = SessionManager::startupTarget()) {
|
||||
Kit *kit = target->kit();
|
||||
if (m_kitPredicate(kit)) {
|
||||
QString display = tr("Kit of Active Project: %1").arg(kitText(kit));
|
||||
QString display = Tr::tr("Kit of Active Project: %1").arg(kitText(kit));
|
||||
m_chooser->addItem(display, kit->id().toSetting());
|
||||
m_chooser->setItemData(0, kitToolTip(kit), Qt::ToolTipRole);
|
||||
if (!lastKit.isValid()) {
|
||||
|
@@ -9,6 +9,7 @@
|
||||
#include "devicesupport/idevicefactory.h"
|
||||
#include "devicesupport/sshparameters.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "kit.h"
|
||||
#include "toolchain.h"
|
||||
#include "toolchainmanager.h"
|
||||
@@ -47,8 +48,6 @@ const char KITINFORMATION_ID_V3[] = "PE.Profile.ToolChainsV3";
|
||||
namespace Internal {
|
||||
class SysRootKitAspectWidget : public KitAspectWidget
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::SysRootKitAspect)
|
||||
|
||||
public:
|
||||
SysRootKitAspectWidget(Kit *k, const KitAspect *ki) : KitAspectWidget(k, ki)
|
||||
{
|
||||
@@ -92,8 +91,8 @@ SysRootKitAspect::SysRootKitAspect()
|
||||
{
|
||||
setObjectName(QLatin1String("SysRootInformation"));
|
||||
setId(SysRootKitAspect::id());
|
||||
setDisplayName(tr("Sysroot"));
|
||||
setDescription(tr("The root directory of the system image to use.<br>"
|
||||
setDisplayName(Tr::tr("Sysroot"));
|
||||
setDescription(Tr::tr("The root directory of the system image to use.<br>"
|
||||
"Leave empty when building for the desktop."));
|
||||
setPriority(31000);
|
||||
}
|
||||
@@ -110,13 +109,13 @@ Tasks SysRootKitAspect::validate(const Kit *k) const
|
||||
|
||||
if (!dir.exists()) {
|
||||
result << BuildSystemTask(Task::Warning,
|
||||
tr("Sys Root \"%1\" does not exist in the file system.").arg(dir.toUserOutput()));
|
||||
Tr::tr("Sys Root \"%1\" does not exist in the file system.").arg(dir.toUserOutput()));
|
||||
} else if (!dir.isDir()) {
|
||||
result << BuildSystemTask(Task::Warning,
|
||||
tr("Sys Root \"%1\" is not a directory.").arg(dir.toUserOutput()));
|
||||
Tr::tr("Sys Root \"%1\" is not a directory.").arg(dir.toUserOutput()));
|
||||
} else if (dir.dirEntries(QDir::AllEntries | QDir::NoDotAndDotDot).isEmpty()) {
|
||||
result << BuildSystemTask(Task::Warning,
|
||||
tr("Sys Root \"%1\" is empty.").arg(dir.toUserOutput()));
|
||||
Tr::tr("Sys Root \"%1\" is empty.").arg(dir.toUserOutput()));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -130,14 +129,14 @@ KitAspectWidget *SysRootKitAspect::createConfigWidget(Kit *k) const
|
||||
|
||||
KitAspect::ItemList SysRootKitAspect::toUserOutput(const Kit *k) const
|
||||
{
|
||||
return {{tr("Sys Root"), sysRoot(k).toUserOutput()}};
|
||||
return {{Tr::tr("Sys Root"), sysRoot(k).toUserOutput()}};
|
||||
}
|
||||
|
||||
void SysRootKitAspect::addToMacroExpander(Kit *kit, MacroExpander *expander) const
|
||||
{
|
||||
QTC_ASSERT(kit, return);
|
||||
|
||||
expander->registerFileVariables("SysRoot", tr("Sys Root"), [kit] {
|
||||
expander->registerFileVariables("SysRoot", Tr::tr("Sys Root"), [kit] {
|
||||
return SysRootKitAspect::sysRoot(kit);
|
||||
});
|
||||
}
|
||||
@@ -188,8 +187,6 @@ void SysRootKitAspect::setSysRoot(Kit *k, const FilePath &v)
|
||||
namespace Internal {
|
||||
class ToolChainKitAspectWidget final : public KitAspectWidget
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::ToolChainKitAspect)
|
||||
|
||||
public:
|
||||
ToolChainKitAspectWidget(Kit *k, const KitAspect *ki) : KitAspectWidget(k, ki)
|
||||
{
|
||||
@@ -249,7 +246,7 @@ private:
|
||||
|
||||
QComboBox *cb = m_languageComboboxMap.value(l);
|
||||
cb->clear();
|
||||
cb->addItem(tr("<No compiler>"), QByteArray());
|
||||
cb->addItem(Tr::tr("<No compiler>"), QByteArray());
|
||||
|
||||
for (ToolChain *tc : ltcList)
|
||||
cb->addItem(tc->displayName(), tc->id());
|
||||
@@ -305,8 +302,8 @@ ToolChainKitAspect::ToolChainKitAspect()
|
||||
{
|
||||
setObjectName(QLatin1String("ToolChainInformation"));
|
||||
setId(ToolChainKitAspect::id());
|
||||
setDisplayName(tr("Compiler"));
|
||||
setDescription(tr("The compiler to use for building.<br>"
|
||||
setDisplayName(Tr::tr("Compiler"));
|
||||
setDescription(Tr::tr("The compiler to use for building.<br>"
|
||||
"Make sure the compiler will produce binaries compatible "
|
||||
"with the target device, Qt version and other libraries used."));
|
||||
setPriority(30000);
|
||||
@@ -355,7 +352,7 @@ Tasks ToolChainKitAspect::validate(const Kit *k) const
|
||||
}
|
||||
if (targetAbis.count() != 1) {
|
||||
result << BuildSystemTask(Task::Error,
|
||||
tr("Compilers produce code for different ABIs: %1")
|
||||
Tr::tr("Compilers produce code for different ABIs: %1")
|
||||
.arg(Utils::transform<QList>(targetAbis, &Abi::toString).join(", ")));
|
||||
}
|
||||
}
|
||||
@@ -507,7 +504,7 @@ QString ToolChainKitAspect::displayNamePostfix(const Kit *k) const
|
||||
KitAspect::ItemList ToolChainKitAspect::toUserOutput(const Kit *k) const
|
||||
{
|
||||
ToolChain *tc = cxxToolChain(k);
|
||||
return {{tr("Compiler"), tc ? tc->displayName() : tr("None")}};
|
||||
return {{Tr::tr("Compiler"), tc ? tc->displayName() : Tr::tr("None")}};
|
||||
}
|
||||
|
||||
void ToolChainKitAspect::addToBuildEnvironment(const Kit *k, Environment &env) const
|
||||
@@ -522,25 +519,25 @@ void ToolChainKitAspect::addToMacroExpander(Kit *kit, MacroExpander *expander) c
|
||||
QTC_ASSERT(kit, return);
|
||||
|
||||
// Compatibility with Qt Creator < 4.2:
|
||||
expander->registerVariable("Compiler:Name", tr("Compiler"),
|
||||
expander->registerVariable("Compiler:Name", Tr::tr("Compiler"),
|
||||
[kit] {
|
||||
const ToolChain *tc = cxxToolChain(kit);
|
||||
return tc ? tc->displayName() : tr("None");
|
||||
return tc ? tc->displayName() : Tr::tr("None");
|
||||
});
|
||||
|
||||
expander->registerVariable("Compiler:Executable", tr("Path to the compiler executable"),
|
||||
expander->registerVariable("Compiler:Executable", Tr::tr("Path to the compiler executable"),
|
||||
[kit] {
|
||||
const ToolChain *tc = cxxToolChain(kit);
|
||||
return tc ? tc->compilerCommand().path() : QString();
|
||||
});
|
||||
|
||||
// After 4.2
|
||||
expander->registerPrefix("Compiler:Name", tr("Compiler for different languages"),
|
||||
expander->registerPrefix("Compiler:Name", Tr::tr("Compiler for different languages"),
|
||||
[kit](const QString &ls) {
|
||||
const ToolChain *tc = toolChain(kit, findLanguage(ls));
|
||||
return tc ? tc->displayName() : tr("None");
|
||||
return tc ? tc->displayName() : Tr::tr("None");
|
||||
});
|
||||
expander->registerPrefix("Compiler:Executable", tr("Compiler executable for different languages"),
|
||||
expander->registerPrefix("Compiler:Executable", Tr::tr("Compiler executable for different languages"),
|
||||
[kit](const QString &ls) {
|
||||
const ToolChain *tc = toolChain(kit, findLanguage(ls));
|
||||
return tc ? tc->compilerCommand().path() : QString();
|
||||
@@ -710,7 +707,7 @@ Abi ToolChainKitAspect::targetAbi(const Kit *k)
|
||||
|
||||
QString ToolChainKitAspect::msgNoToolChainInTarget()
|
||||
{
|
||||
return tr("No compiler set in kit.");
|
||||
return Tr::tr("No compiler set in kit.");
|
||||
}
|
||||
|
||||
void ToolChainKitAspect::kitsWereLoaded()
|
||||
@@ -747,8 +744,6 @@ void ToolChainKitAspect::toolChainRemoved(ToolChain *tc)
|
||||
namespace Internal {
|
||||
class DeviceTypeKitAspectWidget final : public KitAspectWidget
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::DeviceTypeKitAspect)
|
||||
|
||||
public:
|
||||
DeviceTypeKitAspectWidget(Kit *workingCopy, const KitAspect *ki)
|
||||
: KitAspectWidget(workingCopy, ki), m_comboBox(createSubWidget<QComboBox>())
|
||||
@@ -799,8 +794,8 @@ DeviceTypeKitAspect::DeviceTypeKitAspect()
|
||||
{
|
||||
setObjectName(QLatin1String("DeviceTypeInformation"));
|
||||
setId(DeviceTypeKitAspect::id());
|
||||
setDisplayName(tr("Device type"));
|
||||
setDescription(tr("The type of device to run applications on."));
|
||||
setDisplayName(Tr::tr("Device type"));
|
||||
setDescription(Tr::tr("The type of device to run applications on."));
|
||||
setPriority(33000);
|
||||
makeEssential();
|
||||
}
|
||||
@@ -827,12 +822,12 @@ KitAspect::ItemList DeviceTypeKitAspect::toUserOutput(const Kit *k) const
|
||||
{
|
||||
QTC_ASSERT(k, return {});
|
||||
Id type = deviceTypeId(k);
|
||||
QString typeDisplayName = tr("Unknown device type");
|
||||
QString typeDisplayName = Tr::tr("Unknown device type");
|
||||
if (type.isValid()) {
|
||||
if (IDeviceFactory *factory = IDeviceFactory::find(type))
|
||||
typeDisplayName = factory->displayName();
|
||||
}
|
||||
return {{tr("Device type"), typeDisplayName}};
|
||||
return {{Tr::tr("Device type"), typeDisplayName}};
|
||||
}
|
||||
|
||||
const Id DeviceTypeKitAspect::id()
|
||||
@@ -870,8 +865,6 @@ QSet<Id> DeviceTypeKitAspect::availableFeatures(const Kit *k) const
|
||||
namespace Internal {
|
||||
class DeviceKitAspectWidget final : public KitAspectWidget
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::DeviceKitAspect)
|
||||
|
||||
public:
|
||||
DeviceKitAspectWidget(Kit *workingCopy, const KitAspect *ki)
|
||||
: KitAspectWidget(workingCopy, ki),
|
||||
@@ -948,8 +941,8 @@ DeviceKitAspect::DeviceKitAspect()
|
||||
{
|
||||
setObjectName(QLatin1String("DeviceInformation"));
|
||||
setId(DeviceKitAspect::id());
|
||||
setDisplayName(tr("Device"));
|
||||
setDescription(tr("The device to run the applications on."));
|
||||
setDisplayName(Tr::tr("Device"));
|
||||
setDescription(Tr::tr("The device to run the applications on."));
|
||||
setPriority(32000);
|
||||
|
||||
connect(KitManager::instance(), &KitManager::kitsLoaded,
|
||||
@@ -978,9 +971,9 @@ Tasks DeviceKitAspect::validate(const Kit *k) const
|
||||
IDevice::ConstPtr dev = DeviceKitAspect::device(k);
|
||||
Tasks result;
|
||||
if (dev.isNull())
|
||||
result.append(BuildSystemTask(Task::Warning, tr("No device set.")));
|
||||
result.append(BuildSystemTask(Task::Warning, Tr::tr("No device set.")));
|
||||
else if (!dev->isCompatibleWith(k))
|
||||
result.append(BuildSystemTask(Task::Error, tr("Device is incompatible with this kit.")));
|
||||
result.append(BuildSystemTask(Task::Error, Tr::tr("Device is incompatible with this kit.")));
|
||||
|
||||
if (dev)
|
||||
result.append(dev->validate());
|
||||
@@ -1023,33 +1016,33 @@ QString DeviceKitAspect::displayNamePostfix(const Kit *k) const
|
||||
KitAspect::ItemList DeviceKitAspect::toUserOutput(const Kit *k) const
|
||||
{
|
||||
IDevice::ConstPtr dev = device(k);
|
||||
return {{tr("Device"), dev.isNull() ? tr("Unconfigured") : dev->displayName()}};
|
||||
return {{Tr::tr("Device"), dev.isNull() ? Tr::tr("Unconfigured") : dev->displayName()}};
|
||||
}
|
||||
|
||||
void DeviceKitAspect::addToMacroExpander(Kit *kit, MacroExpander *expander) const
|
||||
{
|
||||
QTC_ASSERT(kit, return);
|
||||
expander->registerVariable("Device:HostAddress", tr("Host address"),
|
||||
expander->registerVariable("Device:HostAddress", Tr::tr("Host address"),
|
||||
[kit]() -> QString {
|
||||
const IDevice::ConstPtr device = DeviceKitAspect::device(kit);
|
||||
return device ? device->sshParameters().host() : QString();
|
||||
});
|
||||
expander->registerVariable("Device:SshPort", tr("SSH port"),
|
||||
expander->registerVariable("Device:SshPort", Tr::tr("SSH port"),
|
||||
[kit]() -> QString {
|
||||
const IDevice::ConstPtr device = DeviceKitAspect::device(kit);
|
||||
return device ? QString::number(device->sshParameters().port()) : QString();
|
||||
});
|
||||
expander->registerVariable("Device:UserName", tr("User name"),
|
||||
expander->registerVariable("Device:UserName", Tr::tr("User name"),
|
||||
[kit]() -> QString {
|
||||
const IDevice::ConstPtr device = DeviceKitAspect::device(kit);
|
||||
return device ? device->sshParameters().userName() : QString();
|
||||
});
|
||||
expander->registerVariable("Device:KeyFile", tr("Private key file"),
|
||||
expander->registerVariable("Device:KeyFile", Tr::tr("Private key file"),
|
||||
[kit]() -> QString {
|
||||
const IDevice::ConstPtr device = DeviceKitAspect::device(kit);
|
||||
return device ? device->sshParameters().privateKeyFile.toString() : QString();
|
||||
});
|
||||
expander->registerVariable("Device:Name", tr("Device name"),
|
||||
expander->registerVariable("Device:Name", Tr::tr("Device name"),
|
||||
[kit]() -> QString {
|
||||
const IDevice::ConstPtr device = DeviceKitAspect::device(kit);
|
||||
return device ? device->displayName() : QString();
|
||||
@@ -1135,8 +1128,6 @@ void DeviceKitAspect::devicesChanged()
|
||||
namespace Internal {
|
||||
class BuildDeviceKitAspectWidget final : public KitAspectWidget
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::BuildDeviceKitAspect)
|
||||
|
||||
public:
|
||||
BuildDeviceKitAspectWidget(Kit *workingCopy, const KitAspect *ki)
|
||||
: KitAspectWidget(workingCopy, ki),
|
||||
@@ -1219,8 +1210,8 @@ BuildDeviceKitAspect::BuildDeviceKitAspect()
|
||||
{
|
||||
setObjectName("BuildDeviceInformation");
|
||||
setId(BuildDeviceKitAspect::id());
|
||||
setDisplayName(tr("Build device"));
|
||||
setDescription(tr("The device used to build applications on."));
|
||||
setDisplayName(Tr::tr("Build device"));
|
||||
setDescription(Tr::tr("The device used to build applications on."));
|
||||
setPriority(31900);
|
||||
|
||||
connect(KitManager::instance(), &KitManager::kitsLoaded,
|
||||
@@ -1248,7 +1239,7 @@ Tasks BuildDeviceKitAspect::validate(const Kit *k) const
|
||||
IDevice::ConstPtr dev = BuildDeviceKitAspect::device(k);
|
||||
Tasks result;
|
||||
if (dev.isNull())
|
||||
result.append(BuildSystemTask(Task::Warning, tr("No build device set.")));
|
||||
result.append(BuildSystemTask(Task::Warning, Tr::tr("No build device set.")));
|
||||
|
||||
return result;
|
||||
}
|
||||
@@ -1268,33 +1259,33 @@ QString BuildDeviceKitAspect::displayNamePostfix(const Kit *k) const
|
||||
KitAspect::ItemList BuildDeviceKitAspect::toUserOutput(const Kit *k) const
|
||||
{
|
||||
IDevice::ConstPtr dev = device(k);
|
||||
return {{tr("Build device"), dev.isNull() ? tr("Unconfigured") : dev->displayName()}};
|
||||
return {{Tr::tr("Build device"), dev.isNull() ? Tr::tr("Unconfigured") : dev->displayName()}};
|
||||
}
|
||||
|
||||
void BuildDeviceKitAspect::addToMacroExpander(Kit *kit, MacroExpander *expander) const
|
||||
{
|
||||
QTC_ASSERT(kit, return);
|
||||
expander->registerVariable("BuildDevice:HostAddress", tr("Build host address"),
|
||||
expander->registerVariable("BuildDevice:HostAddress", Tr::tr("Build host address"),
|
||||
[kit]() -> QString {
|
||||
const IDevice::ConstPtr device = BuildDeviceKitAspect::device(kit);
|
||||
return device ? device->sshParameters().host() : QString();
|
||||
});
|
||||
expander->registerVariable("BuildDevice:SshPort", tr("Build SSH port"),
|
||||
expander->registerVariable("BuildDevice:SshPort", Tr::tr("Build SSH port"),
|
||||
[kit]() -> QString {
|
||||
const IDevice::ConstPtr device = BuildDeviceKitAspect::device(kit);
|
||||
return device ? QString::number(device->sshParameters().port()) : QString();
|
||||
});
|
||||
expander->registerVariable("BuildDevice:UserName", tr("Build user name"),
|
||||
expander->registerVariable("BuildDevice:UserName", Tr::tr("Build user name"),
|
||||
[kit]() -> QString {
|
||||
const IDevice::ConstPtr device = BuildDeviceKitAspect::device(kit);
|
||||
return device ? device->sshParameters().userName() : QString();
|
||||
});
|
||||
expander->registerVariable("BuildDevice:KeyFile", tr("Build private key file"),
|
||||
expander->registerVariable("BuildDevice:KeyFile", Tr::tr("Build private key file"),
|
||||
[kit]() -> QString {
|
||||
const IDevice::ConstPtr device = BuildDeviceKitAspect::device(kit);
|
||||
return device ? device->sshParameters().privateKeyFile.toString() : QString();
|
||||
});
|
||||
expander->registerVariable("BuildDevice:Name", tr("Build device name"),
|
||||
expander->registerVariable("BuildDevice:Name", Tr::tr("Build device name"),
|
||||
[kit]() -> QString {
|
||||
const IDevice::ConstPtr device = BuildDeviceKitAspect::device(kit);
|
||||
return device ? device->displayName() : QString();
|
||||
@@ -1376,8 +1367,6 @@ void BuildDeviceKitAspect::devicesChanged()
|
||||
namespace Internal {
|
||||
class EnvironmentKitAspectWidget final : public KitAspectWidget
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::EnvironmentKitAspect)
|
||||
|
||||
public:
|
||||
EnvironmentKitAspectWidget(Kit *workingCopy, const KitAspect *ki)
|
||||
: KitAspectWidget(workingCopy, ki),
|
||||
@@ -1392,7 +1381,7 @@ public:
|
||||
initMSVCOutputSwitch(layout);
|
||||
m_mainWidget->setLayout(layout);
|
||||
refresh();
|
||||
m_manageButton->setText(tr("Change..."));
|
||||
m_manageButton->setText(Tr::tr("Change..."));
|
||||
connect(m_manageButton, &QAbstractButton::clicked,
|
||||
this, &EnvironmentKitAspectWidget::editEnvironmentChanges);
|
||||
}
|
||||
@@ -1411,7 +1400,7 @@ private:
|
||||
{
|
||||
const EnvironmentItems changes = currentEnvironment();
|
||||
const QString shortSummary = EnvironmentItem::toStringList(changes).join("; ");
|
||||
m_summaryLabel->setText(shortSummary.isEmpty() ? tr("No changes to apply.") : shortSummary);
|
||||
m_summaryLabel->setText(shortSummary.isEmpty() ? Tr::tr("No changes to apply.") : shortSummary);
|
||||
}
|
||||
|
||||
void editEnvironmentChanges()
|
||||
@@ -1454,9 +1443,9 @@ private:
|
||||
|
||||
void initMSVCOutputSwitch(QVBoxLayout *layout)
|
||||
{
|
||||
m_vslangCheckbox = new QCheckBox(tr("Force UTF-8 MSVC compiler output"));
|
||||
m_vslangCheckbox = new QCheckBox(Tr::tr("Force UTF-8 MSVC compiler output"));
|
||||
layout->addWidget(m_vslangCheckbox);
|
||||
m_vslangCheckbox->setToolTip(tr("Either switches MSVC to English or keeps the language and "
|
||||
m_vslangCheckbox->setToolTip(Tr::tr("Either switches MSVC to English or keeps the language and "
|
||||
"just forces UTF-8 output (may vary depending on the used MSVC "
|
||||
"compiler)."));
|
||||
connect(m_vslangCheckbox, &QCheckBox::toggled, this, [this](bool checked) {
|
||||
@@ -1481,8 +1470,8 @@ EnvironmentKitAspect::EnvironmentKitAspect()
|
||||
{
|
||||
setObjectName(QLatin1String("EnvironmentKitAspect"));
|
||||
setId(EnvironmentKitAspect::id());
|
||||
setDisplayName(tr("Environment"));
|
||||
setDescription(tr("Additional build environment settings when using this kit."));
|
||||
setDisplayName(Tr::tr("Environment"));
|
||||
setDescription(Tr::tr("Additional build environment settings when using this kit."));
|
||||
setPriority(29000);
|
||||
}
|
||||
|
||||
@@ -1493,7 +1482,7 @@ Tasks EnvironmentKitAspect::validate(const Kit *k) const
|
||||
|
||||
const QVariant variant = k->value(EnvironmentKitAspect::id());
|
||||
if (!variant.isNull() && !variant.canConvert(QVariant::List))
|
||||
result << BuildSystemTask(Task::Error, tr("The environment setting value is invalid."));
|
||||
result << BuildSystemTask(Task::Error, Tr::tr("The environment setting value is invalid."));
|
||||
|
||||
return result;
|
||||
}
|
||||
@@ -1530,7 +1519,7 @@ KitAspectWidget *EnvironmentKitAspect::createConfigWidget(Kit *k) const
|
||||
|
||||
KitAspect::ItemList EnvironmentKitAspect::toUserOutput(const Kit *k) const
|
||||
{
|
||||
return {{tr("Environment"), EnvironmentItem::toStringList(environmentChanges(k)).join("<br>")}};
|
||||
return {{Tr::tr("Environment"), EnvironmentItem::toStringList(environmentChanges(k)).join("<br>")}};
|
||||
}
|
||||
|
||||
Id EnvironmentKitAspect::id()
|
||||
|
@@ -11,6 +11,7 @@
|
||||
#include "kitmanagerconfigwidget.h"
|
||||
#include "project.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "task.h"
|
||||
#include "toolchainmanager.h"
|
||||
|
||||
@@ -344,7 +345,7 @@ void KitManager::restoreKits()
|
||||
continue;
|
||||
}
|
||||
if (isHostKit(kit.get()))
|
||||
kit->setUnexpandedDisplayName(tr("Desktop (%1)").arg(it.key().toString()));
|
||||
kit->setUnexpandedDisplayName(Tr::tr("Desktop (%1)").arg(it.key().toString()));
|
||||
else
|
||||
kit->setUnexpandedDisplayName(it.key().toString());
|
||||
DeviceTypeKitAspect::setDeviceTypeId(kit.get(), deviceTypeForKit(kit.get()));
|
||||
@@ -396,7 +397,7 @@ void KitManager::restoreKits()
|
||||
}
|
||||
|
||||
if (hostKits.size() == 1)
|
||||
hostKits.first()->setUnexpandedDisplayName(tr("Desktop"));
|
||||
hostKits.first()->setUnexpandedDisplayName(Tr::tr("Desktop"));
|
||||
}
|
||||
|
||||
Kit *k = kitForBinary;
|
||||
@@ -726,7 +727,7 @@ KitAspectWidget::KitAspectWidget(Kit *kit, const KitAspect *ki)
|
||||
: m_kit(kit), m_kitInformation(ki)
|
||||
{
|
||||
const Id id = ki->id();
|
||||
m_mutableAction = new QAction(tr("Mark as Mutable"));
|
||||
m_mutableAction = new QAction(Tr::tr("Mark as Mutable"));
|
||||
m_mutableAction->setCheckable(true);
|
||||
m_mutableAction->setChecked(m_kit->isMutable(id));
|
||||
m_mutableAction->setEnabled(!m_kit->isSticky(id));
|
||||
@@ -773,7 +774,7 @@ QWidget *KitAspectWidget::createManageButton(Id pageId)
|
||||
|
||||
QString KitAspectWidget::msgManage()
|
||||
{
|
||||
return tr("Manage...");
|
||||
return Tr::tr("Manage...");
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
@@ -2,13 +2,12 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "kitmanagerconfigwidget.h"
|
||||
#include "projectconfiguration.h"
|
||||
|
||||
#include "devicesupport/idevicefactory.h"
|
||||
#include "kit.h"
|
||||
#include "kitinformation.h"
|
||||
#include "kitmanager.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "task.h"
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
@@ -46,11 +45,11 @@ KitManagerConfigWidget::KitManagerConfigWidget(Kit *k) :
|
||||
{
|
||||
setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
|
||||
|
||||
auto label = new QLabel(tr("Name:"));
|
||||
label->setToolTip(tr("Kit name and icon."));
|
||||
auto label = new QLabel(Tr::tr("Name:"));
|
||||
label->setToolTip(Tr::tr("Kit name and icon."));
|
||||
|
||||
QString toolTip =
|
||||
tr("<html><head/><body><p>The name of the kit suitable for generating "
|
||||
Tr::tr("<html><head/><body><p>The name of the kit suitable for generating "
|
||||
"directory names. This value is used for the variable <i>%1</i>, "
|
||||
"which for example determines the name of the shadow build directory."
|
||||
"</p></body></html>").arg(QLatin1String("Kit:FileSystemName"));
|
||||
@@ -59,7 +58,7 @@ KitManagerConfigWidget::KitManagerConfigWidget(Kit *k) :
|
||||
Q_ASSERT(fileSystemFriendlyNameRegexp.isValid());
|
||||
m_fileSystemFriendlyNameLineEdit->setValidator(new QRegularExpressionValidator(fileSystemFriendlyNameRegexp, m_fileSystemFriendlyNameLineEdit));
|
||||
|
||||
auto fsLabel = new QLabel(tr("File system name:"));
|
||||
auto fsLabel = new QLabel(Tr::tr("File system name:"));
|
||||
fsLabel->setToolTip(toolTip);
|
||||
connect(m_fileSystemFriendlyNameLineEdit, &QLineEdit::textChanged,
|
||||
this, &KitManagerConfigWidget::setFileSystemFriendlyName);
|
||||
@@ -70,10 +69,10 @@ KitManagerConfigWidget::KitManagerConfigWidget(Kit *k) :
|
||||
fsLabel, m_fileSystemFriendlyNameLineEdit
|
||||
}.attachTo(this, WithFormAlignment);
|
||||
|
||||
m_iconButton->setToolTip(tr("Kit icon."));
|
||||
auto setIconAction = new QAction(tr("Select Icon..."), this);
|
||||
m_iconButton->setToolTip(Tr::tr("Kit icon."));
|
||||
auto setIconAction = new QAction(Tr::tr("Select Icon..."), this);
|
||||
m_iconButton->addAction(setIconAction);
|
||||
auto resetIconAction = new QAction(tr("Reset to Device Default Icon"), this);
|
||||
auto resetIconAction = new QAction(Tr::tr("Reset to Device Default Icon"), this);
|
||||
m_iconButton->addAction(resetIconAction);
|
||||
|
||||
discard();
|
||||
@@ -183,7 +182,7 @@ QString KitManagerConfigWidget::validityMessage() const
|
||||
{
|
||||
Tasks tmp;
|
||||
if (!m_hasUniqueName)
|
||||
tmp.append(CompileTask(Task::Warning, tr("Display name is not unique.")));
|
||||
tmp.append(CompileTask(Task::Warning, Tr::tr("Display name is not unique.")));
|
||||
|
||||
return m_modifiedKit->toHtml(tmp);
|
||||
}
|
||||
@@ -276,7 +275,7 @@ void KitManagerConfigWidget::setIcon()
|
||||
if (factory->icon().isNull())
|
||||
continue;
|
||||
QAction *action = iconMenu.addAction(factory->icon(),
|
||||
tr("Default for %1").arg(factory->displayName()),
|
||||
Tr::tr("Default for %1").arg(factory->displayName()),
|
||||
[this, factory] {
|
||||
m_iconButton->setIcon(factory->icon());
|
||||
m_modifiedKit->setDeviceTypeForIcon(
|
||||
@@ -287,9 +286,9 @@ void KitManagerConfigWidget::setIcon()
|
||||
}
|
||||
iconMenu.addSeparator();
|
||||
iconMenu.addAction(PathChooser::browseButtonLabel(), [this] {
|
||||
const FilePath path = FileUtils::getOpenFilePath(this, tr("Select Icon"),
|
||||
const FilePath path = FileUtils::getOpenFilePath(this, Tr::tr("Select Icon"),
|
||||
m_modifiedKit->iconPath(),
|
||||
tr("Images (*.png *.xpm *.jpg)"));
|
||||
Tr::tr("Images (*.png *.xpm *.jpg)"));
|
||||
if (path.isEmpty())
|
||||
return;
|
||||
const QIcon icon(path.toString());
|
||||
|
@@ -6,8 +6,9 @@
|
||||
#include "kit.h"
|
||||
#include "kitmanagerconfigwidget.h"
|
||||
#include "kitmanager.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectexplorertr.h"
|
||||
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/utilsicons.h>
|
||||
@@ -60,7 +61,7 @@ public:
|
||||
QString baseName = widget->displayName();
|
||||
if (widget->isDefaultKit())
|
||||
//: Mark up a kit as the default one.
|
||||
baseName = KitModel::tr("%1 (default)").arg(baseName);
|
||||
baseName = Tr::tr("%1 (default)").arg(baseName);
|
||||
return baseName;
|
||||
}
|
||||
if (role == Qt::DecorationRole) {
|
||||
@@ -84,7 +85,7 @@ KitModel::KitModel(QBoxLayout *parentLayout, QObject *parent)
|
||||
: TreeModel<TreeItem, TreeItem, KitNode>(parent),
|
||||
m_parentLayout(parentLayout)
|
||||
{
|
||||
setHeader(QStringList(tr("Name")));
|
||||
setHeader(QStringList(Tr::tr("Name")));
|
||||
m_autoRoot = new StaticTreeItem({ProjectExplorer::Constants::msgAutoDetected()},
|
||||
{ProjectExplorer::Constants::msgAutoDetectedToolTip()});
|
||||
m_manualRoot = new StaticTreeItem(ProjectExplorer::Constants::msgManual());
|
||||
|
@@ -7,7 +7,7 @@
|
||||
#include "kitmodel.h"
|
||||
#include "kit.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectexplorericons.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "kitmanagerconfigwidget.h"
|
||||
#include "kitmanager.h"
|
||||
|
||||
@@ -29,8 +29,6 @@ namespace Internal {
|
||||
|
||||
class KitOptionsPageWidget : public QWidget
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjextExplorer::Internal::KitOptionsPageWidget)
|
||||
|
||||
public:
|
||||
KitOptionsPageWidget();
|
||||
|
||||
@@ -66,14 +64,14 @@ KitOptionsPageWidget::KitOptionsPageWidget()
|
||||
m_kitsView->setSizePolicy(m_kitsView->sizePolicy().horizontalPolicy(),
|
||||
QSizePolicy::Ignored);
|
||||
|
||||
m_addButton = new QPushButton(tr("Add"), this);
|
||||
m_cloneButton = new QPushButton(tr("Clone"), this);
|
||||
m_delButton = new QPushButton(tr("Remove"), this);
|
||||
m_makeDefaultButton = new QPushButton(tr("Make Default"), this);
|
||||
m_filterButton = new QPushButton(tr("Settings Filter..."), this);
|
||||
m_filterButton->setToolTip(tr("Choose which settings to display for this kit."));
|
||||
m_defaultFilterButton = new QPushButton(tr("Default Settings Filter..."), this);
|
||||
m_defaultFilterButton->setToolTip(tr("Choose which kit settings to display by default."));
|
||||
m_addButton = new QPushButton(Tr::tr("Add"), this);
|
||||
m_cloneButton = new QPushButton(Tr::tr("Clone"), this);
|
||||
m_delButton = new QPushButton(Tr::tr("Remove"), this);
|
||||
m_makeDefaultButton = new QPushButton(Tr::tr("Make Default"), this);
|
||||
m_filterButton = new QPushButton(Tr::tr("Settings Filter..."), this);
|
||||
m_filterButton->setToolTip(Tr::tr("Choose which settings to display for this kit."));
|
||||
m_defaultFilterButton = new QPushButton(Tr::tr("Default Settings Filter..."), this);
|
||||
m_defaultFilterButton->setToolTip(Tr::tr("Choose which kit settings to display by default."));
|
||||
|
||||
auto buttonLayout = new QVBoxLayout;
|
||||
buttonLayout->setSpacing(6);
|
||||
@@ -247,9 +245,9 @@ KitOptionsPage::KitOptionsPage()
|
||||
{
|
||||
theKitOptionsPage = this;
|
||||
setId(Constants::KITS_SETTINGS_PAGE_ID);
|
||||
setDisplayName(Internal::KitOptionsPageWidget::tr("Kits"));
|
||||
setDisplayName(Tr::tr("Kits"));
|
||||
setCategory(Constants::KITS_SETTINGS_CATEGORY);
|
||||
setDisplayCategory(QCoreApplication::translate("::ProjectExplorer", "Kits"));
|
||||
setDisplayCategory(Tr::tr("Kits"));
|
||||
setCategoryIconPath(":/projectexplorer/images/settingscategory_kits.png");
|
||||
}
|
||||
|
||||
|
@@ -4,8 +4,8 @@
|
||||
#include "localenvironmentaspect.h"
|
||||
|
||||
#include "buildconfiguration.h"
|
||||
#include "environmentaspectwidget.h"
|
||||
#include "kit.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "target.h"
|
||||
|
||||
using namespace Utils;
|
||||
@@ -15,14 +15,14 @@ namespace ProjectExplorer {
|
||||
LocalEnvironmentAspect::LocalEnvironmentAspect(Target *target, bool includeBuildEnvironment)
|
||||
{
|
||||
setIsLocal(true);
|
||||
addSupportedBaseEnvironment(tr("Clean Environment"), {});
|
||||
addSupportedBaseEnvironment(Tr::tr("Clean Environment"), {});
|
||||
|
||||
addSupportedBaseEnvironment(tr("System Environment"), [] {
|
||||
addSupportedBaseEnvironment(Tr::tr("System Environment"), [] {
|
||||
return Environment::systemEnvironment();
|
||||
});
|
||||
|
||||
if (includeBuildEnvironment) {
|
||||
addPreferredBaseEnvironment(tr("Build Environment"), [target] {
|
||||
addPreferredBaseEnvironment(Tr::tr("Build Environment"), [target] {
|
||||
Environment env;
|
||||
if (BuildConfiguration *bc = target->activeBuildConfiguration()) {
|
||||
env = bc->environment();
|
||||
|
@@ -9,6 +9,7 @@
|
||||
#include "processparameters.h"
|
||||
#include "projectexplorer.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "target.h"
|
||||
#include "toolchain.h"
|
||||
|
||||
@@ -57,41 +58,41 @@ MakeStep::MakeStep(BuildStepList *parent, Id id)
|
||||
|
||||
m_userArgumentsAspect = addAspect<StringAspect>();
|
||||
m_userArgumentsAspect->setSettingsKey(id.withSuffix(MAKE_ARGUMENTS_SUFFIX).toString());
|
||||
m_userArgumentsAspect->setLabelText(tr("Make arguments:"));
|
||||
m_userArgumentsAspect->setLabelText(Tr::tr("Make arguments:"));
|
||||
m_userArgumentsAspect->setDisplayStyle(StringAspect::LineEditDisplay);
|
||||
|
||||
m_userJobCountAspect = addAspect<IntegerAspect>();
|
||||
m_userJobCountAspect->setSettingsKey(id.withSuffix(JOBCOUNT_SUFFIX).toString());
|
||||
m_userJobCountAspect->setLabel(tr("Parallel jobs:"));
|
||||
m_userJobCountAspect->setLabel(Tr::tr("Parallel jobs:"));
|
||||
m_userJobCountAspect->setRange(1, 999);
|
||||
m_userJobCountAspect->setValue(defaultJobCount());
|
||||
m_userJobCountAspect->setDefaultValue(defaultJobCount());
|
||||
|
||||
const QString text = tr("Override MAKEFLAGS");
|
||||
const QString text = Tr::tr("Override MAKEFLAGS");
|
||||
m_overrideMakeflagsAspect = addAspect<BoolAspect>();
|
||||
m_overrideMakeflagsAspect->setSettingsKey(id.withSuffix(OVERRIDE_MAKEFLAGS_SUFFIX).toString());
|
||||
m_overrideMakeflagsAspect->setLabel(text, BoolAspect::LabelPlacement::AtCheckBox);
|
||||
|
||||
m_nonOverrideWarning = addAspect<TextDisplay>();
|
||||
m_nonOverrideWarning->setText("<html><body><p>" +
|
||||
tr("<code>MAKEFLAGS</code> specifies parallel jobs. Check \"%1\" to override.")
|
||||
Tr::tr("<code>MAKEFLAGS</code> specifies parallel jobs. Check \"%1\" to override.")
|
||||
.arg(text) + "</p></body></html>");
|
||||
m_nonOverrideWarning->setIconType(InfoLabel::Warning);
|
||||
|
||||
m_disabledForSubdirsAspect = addAspect<BoolAspect>();
|
||||
m_disabledForSubdirsAspect->setSettingsKey(id.withSuffix(".disabledForSubdirs").toString());
|
||||
m_disabledForSubdirsAspect->setLabel(tr("Disable in subdirectories:"));
|
||||
m_disabledForSubdirsAspect->setToolTip(tr("Runs this step only for a top-level build."));
|
||||
m_disabledForSubdirsAspect->setLabel(Tr::tr("Disable in subdirectories:"));
|
||||
m_disabledForSubdirsAspect->setToolTip(Tr::tr("Runs this step only for a top-level build."));
|
||||
|
||||
m_buildTargetsAspect = addAspect<MultiSelectionAspect>();
|
||||
m_buildTargetsAspect->setSettingsKey(id.withSuffix(BUILD_TARGETS_SUFFIX).toString());
|
||||
m_buildTargetsAspect->setLabelText(tr("Targets:"));
|
||||
m_buildTargetsAspect->setLabelText(Tr::tr("Targets:"));
|
||||
|
||||
const auto updateMakeLabel = [this] {
|
||||
const FilePath defaultMake = defaultMakeCommand();
|
||||
const QString labelText = defaultMake.isEmpty()
|
||||
? tr("Make:")
|
||||
: tr("Override %1:").arg(defaultMake.toUserOutput());
|
||||
? Tr::tr("Make:")
|
||||
: Tr::tr("Override %1:").arg(defaultMake.toUserOutput());
|
||||
m_makeCommandAspect->setLabelText(labelText);
|
||||
};
|
||||
|
||||
@@ -137,7 +138,7 @@ void MakeStep::setupOutputFormatter(OutputFormatter *formatter)
|
||||
|
||||
QString MakeStep::defaultDisplayName()
|
||||
{
|
||||
return tr("Make");
|
||||
return Tr::tr("Make");
|
||||
}
|
||||
|
||||
static const QList<ToolChain *> preferredToolChains(const Kit *kit)
|
||||
@@ -169,7 +170,7 @@ FilePath MakeStep::defaultMakeCommand() const
|
||||
|
||||
QString MakeStep::msgNoMakeCommand()
|
||||
{
|
||||
return tr("Make command missing. Specify Make command in step configuration.");
|
||||
return Tr::tr("Make command missing. Specify Make command in step configuration.");
|
||||
}
|
||||
|
||||
Task MakeStep::makeCommandMissingTask()
|
||||
@@ -331,10 +332,10 @@ QWidget *MakeStep::createConfigWidget()
|
||||
setSummaryUpdater([this] {
|
||||
const CommandLine make = effectiveMakeCommand(MakeStep::Display);
|
||||
if (make.executable().isEmpty())
|
||||
return tr("<b>Make:</b> %1").arg(MakeStep::msgNoMakeCommand());
|
||||
return Tr::tr("<b>Make:</b> %1").arg(MakeStep::msgNoMakeCommand());
|
||||
|
||||
if (!buildConfiguration())
|
||||
return tr("<b>Make:</b> No build configuration.");
|
||||
return Tr::tr("<b>Make:</b> No build configuration.");
|
||||
|
||||
ProcessParameters param;
|
||||
param.setMacroExpander(macroExpander());
|
||||
@@ -343,7 +344,7 @@ QWidget *MakeStep::createConfigWidget()
|
||||
param.setEnvironment(buildEnvironment());
|
||||
|
||||
if (param.commandMissing()) {
|
||||
return tr("<b>Make:</b> %1 not found in the environment.")
|
||||
return Tr::tr("<b>Make:</b> %1 not found in the environment.")
|
||||
.arg(param.command().executable().toUserOutput()); // Override display text
|
||||
}
|
||||
|
||||
|
@@ -12,6 +12,7 @@
|
||||
#include "projectexplorer.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectexplorericons.h"
|
||||
#include "projectexplorertr.h"
|
||||
#include "runconfiguration.h"
|
||||
#include "session.h"
|
||||
#include "target.h"
|
||||
@@ -121,7 +122,7 @@ private:
|
||||
QVariant data(int column, int role) const override
|
||||
{
|
||||
if (column == 1 && role == Qt::ToolTipRole)
|
||||
return QCoreApplication::translate("RunConfigSelector", "Run Without Deployment");
|
||||
return Tr::tr("Run Without Deployment");
|
||||
if (column != 0)
|
||||
return {};
|
||||
switch (role) {
|
||||
@@ -676,14 +677,14 @@ MiniProjectTargetSelector::MiniProjectTargetSelector(QAction *targetSelectorActi
|
||||
m_titleWidgets.resize(LAST);
|
||||
m_listWidgets[PROJECT] = nullptr; //project is not a generic list widget
|
||||
|
||||
m_titleWidgets[PROJECT] = createTitleLabel(tr("Project"));
|
||||
m_titleWidgets[PROJECT] = createTitleLabel(Tr::tr("Project"));
|
||||
m_projectListWidget = new ProjectListView(this);
|
||||
connect(m_projectListWidget, &QAbstractItemView::doubleClicked,
|
||||
this, &MiniProjectTargetSelector::hide);
|
||||
|
||||
QStringList titles;
|
||||
titles << tr("Kit") << tr("Build")
|
||||
<< tr("Deploy") << tr("Run");
|
||||
titles << Tr::tr("Kit") << Tr::tr("Build")
|
||||
<< Tr::tr("Deploy") << Tr::tr("Run");
|
||||
|
||||
for (int i = TARGET; i < LAST; ++i) {
|
||||
m_titleWidgets[i] = createTitleLabel(titles.at(i -1));
|
||||
@@ -1487,24 +1488,24 @@ void MiniProjectTargetSelector::updateActionAndSummary()
|
||||
}
|
||||
m_projectAction->setProperty("heading", projectName);
|
||||
if (project && project->needsConfiguration())
|
||||
m_projectAction->setProperty("subtitle", tr("Unconfigured"));
|
||||
m_projectAction->setProperty("subtitle", Tr::tr("Unconfigured"));
|
||||
else
|
||||
m_projectAction->setProperty("subtitle", buildConfig);
|
||||
m_projectAction->setIcon(targetIcon);
|
||||
QStringList lines;
|
||||
lines << tr("<b>Project:</b> %1").arg(projectName);
|
||||
lines << Tr::tr("<b>Project:</b> %1").arg(projectName);
|
||||
if (!fileName.isEmpty())
|
||||
lines << tr("<b>Path:</b> %1").arg(fileName);
|
||||
lines << Tr::tr("<b>Path:</b> %1").arg(fileName);
|
||||
if (!targetName.isEmpty())
|
||||
lines << tr("<b>Kit:</b> %1").arg(targetName);
|
||||
lines << Tr::tr("<b>Kit:</b> %1").arg(targetName);
|
||||
if (!buildConfig.isEmpty())
|
||||
lines << tr("<b>Build:</b> %1").arg(buildConfig);
|
||||
lines << Tr::tr("<b>Build:</b> %1").arg(buildConfig);
|
||||
if (!deployConfig.isEmpty())
|
||||
lines << tr("<b>Deploy:</b> %1").arg(deployConfig);
|
||||
lines << Tr::tr("<b>Deploy:</b> %1").arg(deployConfig);
|
||||
if (!runConfig.isEmpty())
|
||||
lines << tr("<b>Run:</b> %1").arg(runConfig);
|
||||
lines << Tr::tr("<b>Run:</b> %1").arg(runConfig);
|
||||
if (!targetToolTipText.isEmpty())
|
||||
lines << tr("%1").arg(targetToolTipText);
|
||||
lines << Tr::tr("%1").arg(targetToolTipText);
|
||||
QString toolTip = QString("<html><nobr>%1</html>")
|
||||
.arg(lines.join(QLatin1String("<br/>")));
|
||||
m_projectAction->setToolTip(toolTip);
|
||||
@@ -1516,21 +1517,21 @@ void MiniProjectTargetSelector::updateSummary()
|
||||
QString summary;
|
||||
if (Project *startupProject = SessionManager::startupProject()) {
|
||||
if (!m_projectListWidget->isVisibleTo(this))
|
||||
summary.append(tr("Project: <b>%1</b><br/>").arg(startupProject->displayName()));
|
||||
summary.append(Tr::tr("Project: <b>%1</b><br/>").arg(startupProject->displayName()));
|
||||
if (Target *activeTarget = startupProject->activeTarget()) {
|
||||
if (!m_listWidgets[TARGET]->isVisibleTo(this))
|
||||
summary.append(tr("Kit: <b>%1</b><br/>").arg( activeTarget->displayName()));
|
||||
summary.append(Tr::tr("Kit: <b>%1</b><br/>").arg( activeTarget->displayName()));
|
||||
if (!m_listWidgets[BUILD]->isVisibleTo(this) && activeTarget->activeBuildConfiguration())
|
||||
summary.append(tr("Build: <b>%1</b><br/>").arg(
|
||||
summary.append(Tr::tr("Build: <b>%1</b><br/>").arg(
|
||||
activeTarget->activeBuildConfiguration()->displayName()));
|
||||
if (!m_listWidgets[DEPLOY]->isVisibleTo(this) && activeTarget->activeDeployConfiguration())
|
||||
summary.append(tr("Deploy: <b>%1</b><br/>").arg(
|
||||
summary.append(Tr::tr("Deploy: <b>%1</b><br/>").arg(
|
||||
activeTarget->activeDeployConfiguration()->displayName()));
|
||||
if (!m_listWidgets[RUN]->isVisibleTo(this) && activeTarget->activeRunConfiguration())
|
||||
summary.append(tr("Run: <b>%1</b><br/>").arg(
|
||||
summary.append(Tr::tr("Run: <b>%1</b><br/>").arg(
|
||||
activeTarget->activeRunConfiguration()->expandedDisplayName()));
|
||||
} else if (startupProject->needsConfiguration()) {
|
||||
summary = tr("<style type=text/css>"
|
||||
summary = Tr::tr("<style type=text/css>"
|
||||
"a:link {color: rgb(128, 128, 255);}</style>"
|
||||
"The project <b>%1</b> is not yet configured<br/><br/>"
|
||||
"You can configure it in the <a href=\"projectmode\">Projects mode</a><br/>")
|
||||
|
@@ -859,7 +859,7 @@ MsvcToolChain::MsvcToolChain(Utils::Id typeId)
|
||||
: ToolChain(typeId)
|
||||
{
|
||||
setDisplayName("Microsoft Visual C++ Compiler");
|
||||
setTypeDisplayName(tr("MSVC"));
|
||||
setTypeDisplayName(Tr::tr("MSVC"));
|
||||
addToAvailableMsvcToolchains(this);
|
||||
setTargetAbiKey(KEY_ROOT "SupportedAbi");
|
||||
}
|
||||
@@ -1274,7 +1274,7 @@ MsvcBasedToolChainConfigWidget::MsvcBasedToolChainConfigWidget(ToolChain *tc)
|
||||
m_nameDisplayLabel->setTextInteractionFlags(Qt::TextBrowserInteraction);
|
||||
m_mainLayout->addRow(m_nameDisplayLabel);
|
||||
m_varsBatDisplayLabel->setTextInteractionFlags(Qt::TextBrowserInteraction);
|
||||
m_mainLayout->addRow(tr("Initialization:"), m_varsBatDisplayLabel);
|
||||
m_mainLayout->addRow(Tr::tr("Initialization:"), m_varsBatDisplayLabel);
|
||||
}
|
||||
|
||||
static QString msvcVarsToDisplay(const MsvcToolChain &tc)
|
||||
@@ -1322,7 +1322,7 @@ MsvcToolChainConfigWidget::MsvcToolChainConfigWidget(ToolChain *tc)
|
||||
const bool isAmd64
|
||||
= Utils::HostOsInfo::hostArchitecture() == Utils::HostOsInfo::HostArchitectureAMD64;
|
||||
// TODO: Add missing values to MsvcToolChain::Platform
|
||||
m_varsBatArchCombo->addItem(tr("<empty>"), isAmd64 ? MsvcToolChain::amd64 : MsvcToolChain::x86);
|
||||
m_varsBatArchCombo->addItem(Tr::tr("<empty>"), isAmd64 ? MsvcToolChain::amd64 : MsvcToolChain::x86);
|
||||
m_varsBatArchCombo->addItem("x86", MsvcToolChain::x86);
|
||||
m_varsBatArchCombo->addItem("amd64", MsvcToolChain::amd64);
|
||||
m_varsBatArchCombo->addItem("arm", MsvcToolChain::arm);
|
||||
@@ -1338,12 +1338,12 @@ MsvcToolChainConfigWidget::MsvcToolChainConfigWidget(ToolChain *tc)
|
||||
m_varsBatArchCombo->addItem("arm64_x86", MsvcToolChain::arm64_x86);
|
||||
m_varsBatArchCombo->addItem("arm64_amd64", MsvcToolChain::arm64_amd64);
|
||||
m_varsBatArgumentsEdit->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
|
||||
m_varsBatArgumentsEdit->setToolTip(tr("Additional arguments for the vcvarsall.bat call"));
|
||||
m_varsBatArgumentsEdit->setToolTip(Tr::tr("Additional arguments for the vcvarsall.bat call"));
|
||||
hLayout->addWidget(m_varsBatPathCombo);
|
||||
hLayout->addWidget(m_varsBatArchCombo);
|
||||
hLayout->addWidget(m_varsBatArgumentsEdit);
|
||||
m_mainLayout->addRow(tr("Initialization:"), hLayout);
|
||||
m_mainLayout->addRow(tr("&ABI:"), m_abiWidget);
|
||||
m_mainLayout->addRow(Tr::tr("Initialization:"), hLayout);
|
||||
m_mainLayout->addRow(Tr::tr("&ABI:"), m_abiWidget);
|
||||
addErrorLabel();
|
||||
setFromMsvcToolChain();
|
||||
|
||||
@@ -1472,7 +1472,7 @@ void MsvcToolChainConfigWidget::handleVcVarsArchChange(const QString &)
|
||||
QString MsvcToolChainConfigWidget::vcVarsArguments() const
|
||||
{
|
||||
QString varsBatArg
|
||||
= m_varsBatArchCombo->currentText() == tr("<empty>")
|
||||
= m_varsBatArchCombo->currentText() == Tr::tr("<empty>")
|
||||
? "" : m_varsBatArchCombo->currentText();
|
||||
if (!m_varsBatArgumentsEdit->text().isEmpty())
|
||||
varsBatArg += QLatin1Char(' ') + m_varsBatArgumentsEdit->text();
|
||||
@@ -1491,19 +1491,19 @@ ClangClToolChainConfigWidget::ClangClToolChainConfigWidget(ToolChain *tc) :
|
||||
|
||||
m_varsBatDisplayCombo->setObjectName("varsBatCombo");
|
||||
m_varsBatDisplayCombo->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
||||
m_mainLayout->addRow(tr("Initialization:"), m_varsBatDisplayCombo);
|
||||
m_mainLayout->addRow(Tr::tr("Initialization:"), m_varsBatDisplayCombo);
|
||||
|
||||
if (tc->isAutoDetected()) {
|
||||
m_llvmDirLabel = new QLabel(this);
|
||||
m_llvmDirLabel->setTextInteractionFlags(Qt::TextBrowserInteraction);
|
||||
m_mainLayout->addRow(tr("&Compiler path:"), m_llvmDirLabel);
|
||||
m_mainLayout->addRow(Tr::tr("&Compiler path:"), m_llvmDirLabel);
|
||||
} else {
|
||||
const QStringList gnuVersionArgs = QStringList("--version");
|
||||
m_compilerCommand = new Utils::PathChooser(this);
|
||||
m_compilerCommand->setExpectedKind(Utils::PathChooser::ExistingCommand);
|
||||
m_compilerCommand->setCommandVersionArguments(gnuVersionArgs);
|
||||
m_compilerCommand->setHistoryCompleter("PE.Clang.Command.History");
|
||||
m_mainLayout->addRow(tr("&Compiler path:"), m_compilerCommand);
|
||||
m_mainLayout->addRow(Tr::tr("&Compiler path:"), m_compilerCommand);
|
||||
}
|
||||
addErrorLabel();
|
||||
setFromClangClToolChain();
|
||||
@@ -1697,7 +1697,7 @@ ClangClToolChain::ClangClToolChain()
|
||||
: MsvcToolChain(Constants::CLANG_CL_TOOLCHAIN_TYPEID)
|
||||
{
|
||||
setDisplayName("clang-cl");
|
||||
setTypeDisplayName(QCoreApplication::translate("ProjectExplorer::ClangToolChainFactory", "Clang"));
|
||||
setTypeDisplayName(Tr::tr("Clang"));
|
||||
}
|
||||
|
||||
bool ClangClToolChain::isValid() const
|
||||
@@ -1820,7 +1820,7 @@ ClangClToolChain::BuiltInHeaderPathsRunner ClangClToolChain::createBuiltInHeader
|
||||
|
||||
MsvcToolChainFactory::MsvcToolChainFactory()
|
||||
{
|
||||
setDisplayName(MsvcToolChain::tr("MSVC"));
|
||||
setDisplayName(Tr::tr("MSVC"));
|
||||
setSupportedToolChainType(Constants::MSVC_TOOLCHAIN_TYPEID);
|
||||
setSupportedLanguages({Constants::C_LANGUAGE_ID, Constants::CXX_LANGUAGE_ID});
|
||||
setToolchainConstructor([] { return new MsvcToolChain(Constants::MSVC_TOOLCHAIN_TYPEID); });
|
||||
@@ -2017,7 +2017,7 @@ Toolchains MsvcToolChainFactory::autoDetect(const ToolchainDetector &detector) c
|
||||
|
||||
ClangClToolChainFactory::ClangClToolChainFactory()
|
||||
{
|
||||
setDisplayName(ClangClToolChain::tr("clang-cl"));
|
||||
setDisplayName(Tr::tr("clang-cl"));
|
||||
setSupportedLanguages({Constants::C_LANGUAGE_ID, Constants::CXX_LANGUAGE_ID});
|
||||
setSupportedToolChainType(Constants::CLANG_CL_TOOLCHAIN_TYPEID);
|
||||
setToolchainConstructor([] { return new ClangClToolChain; });
|
||||
@@ -2153,9 +2153,7 @@ std::optional<QString> MsvcToolChain::generateEnvironmentSettings(const Utils::E
|
||||
QString command = QDir::toNativeSeparators(batchFile);
|
||||
if (!batchArgs.isEmpty())
|
||||
command += ' ' + batchArgs;
|
||||
return QCoreApplication::translate("ProjectExplorer::Internal::MsvcToolChain",
|
||||
"Failed to retrieve MSVC Environment from \"%1\":\n"
|
||||
"%2")
|
||||
return Tr::tr("Failed to retrieve MSVC Environment from \"%1\":\n%2")
|
||||
.arg(command, message);
|
||||
}
|
||||
|
||||
|
@@ -31,8 +31,6 @@ namespace Internal {
|
||||
|
||||
class MsvcToolChain : public ToolChain
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::Internal::MsvcToolChain)
|
||||
|
||||
public:
|
||||
enum Type { WindowsSDK, VS };
|
||||
enum Platform { x86, amd64, x86_amd64, ia64, x86_ia64, arm, x86_arm, amd64_arm, amd64_x86,
|
||||
@@ -139,8 +137,6 @@ protected:
|
||||
|
||||
class PROJECTEXPLORER_EXPORT ClangClToolChain : public MsvcToolChain
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ProjectExplorer::Internal::ClangClToolChain)
|
||||
|
||||
public:
|
||||
ClangClToolChain();
|
||||
|
||||
|
@@ -2,12 +2,13 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "osparser.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
|
||||
#include "projectexplorertr.h"
|
||||
#include "task.h"
|
||||
|
||||
#include <utils/hostosinfo.h>
|
||||
|
||||
using namespace ProjectExplorer;
|
||||
namespace ProjectExplorer {
|
||||
|
||||
OsParser::OsParser()
|
||||
{
|
||||
@@ -21,7 +22,7 @@ Utils::OutputLineParser::Result OsParser::handleLine(const QString &line, Utils:
|
||||
const QString trimmed = line.trimmed();
|
||||
if (trimmed == QLatin1String("The process cannot access the file because it is "
|
||||
"being used by another process.")) {
|
||||
scheduleTask(CompileTask(Task::Error, tr(
|
||||
scheduleTask(CompileTask(Task::Error, Tr::tr(
|
||||
"The process cannot access the file because it is being used "
|
||||
"by another process.\n"
|
||||
"Please close all running instances of your application before "
|
||||
@@ -41,3 +42,5 @@ Utils::OutputLineParser::Result OsParser::handleLine(const QString &line, Utils:
|
||||
}
|
||||
return Status::NotHandled;
|
||||
}
|
||||
|
||||
} // ProjectExplorer
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user