[libcalamaresui] Document 'we do not translate this' for developer-tooltip

This commit is contained in:
Adriaan de Groot 2023-04-25 11:17:11 +02:00
parent 6eff07eff2
commit f385c94729

View File

@ -544,7 +544,11 @@ ViewManager::data( const QModelIndex& index, int role ) const
if ( Calamares::Settings::instance()->debugMode() ) if ( Calamares::Settings::instance()->debugMode() )
{ {
auto key = step->moduleInstanceKey(); auto key = step->moduleInstanceKey();
QString toolTip( "<b>Debug information</b>" ); // The tooltip is intentionally not translated:
// we must be in debug-mode (-d) so presumably it
// is a distro-developer or Calamares-developer
// running it, and we don't need translation for them.
QString toolTip( "<b>Debug information</b>" ); // Intentionally no translation here
toolTip.append( "<br/>Type:\tViewStep" ); toolTip.append( "<br/>Type:\tViewStep" );
toolTip.append( QString( "<br/>Pretty:\t%1" ).arg( step->prettyName() ) ); toolTip.append( QString( "<br/>Pretty:\t%1" ).arg( step->prettyName() ) );
toolTip.append( QString( "<br/>Status:\t%1" ).arg( step->prettyStatus() ) ); toolTip.append( QString( "<br/>Status:\t%1" ).arg( step->prettyStatus() ) );