Commit 4a1d2a21 authored by Antoni Bella Pérez's avatar Antoni Bella Pérez 🚵🏻
Browse files

GUI l10n fixes

* Add @title:window helpers and a @action:inmenu
* Suitable capitalization and punctuation
parent 2847ec22
......@@ -40,7 +40,7 @@ Calculator::Calculator( QWidget * parent )
{
setModal( false );
QWidget * widget = new QWidget( this );
setWindowTitle( i18n("Calculator") );
setWindowTitle( i18nc("@title:window", "Calculator") );
QVBoxLayout *layout = new QVBoxLayout( this );
......
......@@ -50,7 +50,7 @@ CoordsConfigDialog::CoordsConfigDialog(QWidget *parent)
configAxesDialog->kcfg_YMin->setTabChain( configAxesDialog->kcfg_YMax->focusProxy() );
configAxesDialog->layout()->setContentsMargins( 0, 0, 0, 0 );
addPage(configAxesDialog , i18n( "Coordinates" ), "coords", i18n( "Coordinate System" ) );
setWindowTitle( i18n( "Coordinate System" ) );
setWindowTitle( i18nc("@title:window", "Coordinate System") );
setHelp(QString::fromLatin1("axes-config"));
setFaceType( Plain );
connect( configAxesDialog->kcfg_XMin, &EquationEdit::textEdited, this, &CoordsConfigDialog::updateButtons );
......
......@@ -37,7 +37,7 @@ EquationEditor::EquationEditor(QWidget* parent)
m_widget->edit->m_equationEditWidget->setClearSelectionOnFocusOut(false);
m_widget->layout()->setContentsMargins(0, 0, 0, 0);
setWindowTitle(i18n("Equation Editor"));
setWindowTitle(i18nc("@title:window", "Equation Editor"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close);
connect(buttonBox, &QDialogButtonBox::rejected, this, &EquationEditor::reject);
QVBoxLayout *dialogLayout = new QVBoxLayout (this);
......
......@@ -71,21 +71,21 @@ void FunctionTools::init( Mode m )
case FindMinimum:
{
m_widget->rangeTitle->setText( i18n("Search between:") );
setWindowTitle(i18n("Find Minimum Point"));
setWindowTitle(i18nc("@title:window", "Find Minimum Point"));
break;
}
case FindMaximum:
{
m_widget->rangeTitle->setText( i18n("Search between:") );
setWindowTitle(i18n("Find Maximum Point"));
setWindowTitle(i18nc("@title:window", "Find Maximum Point"));
break;
}
case CalculateArea:
{
m_widget->rangeTitle->setText( i18n("Calculate the area between:") );
setWindowTitle(i18n("Area Under Graph"));
setWindowTitle(i18nc("@title:window", "Area Under Graph"));
break;
}
}
......
......@@ -64,7 +64,7 @@ KConstantEditor::KConstantEditor( QWidget * parent )
m_widget->cmdNew->setIcon( QIcon::fromTheme("document-new") );
m_widget->cmdDelete->setIcon( QIcon::fromTheme("edit-delete") );
setWindowTitle( i18n("Constants Editor") );
setWindowTitle( i18nc("@title:window", "Constants Editor") );
connect( this, &KConstantEditor::finished, this, &KConstantEditor::dialogFinished );
......
......@@ -407,7 +407,7 @@ KGradientDialog::KGradientDialog( QWidget * parent, bool modal )
resize( layout->minimumSize() );
//END layout widgets
setWindowTitle( i18n("Choose a Gradient") );
setWindowTitle( i18nc("@title:window", "Choose a Gradient") );
setModal( modal );
......
......@@ -51,7 +51,7 @@ KParameterEditor::KParameterEditor( QList<Value> *l, QWidget *parent )
m_parameter(l)
{
m_mainWidget = new QParameterEditor( this );
setWindowTitle( i18n( "Parameter Editor" ) );
setWindowTitle( i18nc("@title:window", "Parameter Editor") );
QVBoxLayout *mainLayout = new QVBoxLayout;
setLayout(mainLayout);
mainLayout->addWidget(m_mainWidget);
......
......@@ -40,7 +40,7 @@
KPrinterDlg::KPrinterDlg( QWidget *parent )
: QWidget( parent )
{
setWindowTitle( i18n( "KmPlot Options" ) );
setWindowTitle( i18nc("@title:window", "KmPlot Options") );
QGridLayout *layout = new QGridLayout( this );
......
......@@ -93,7 +93,7 @@ KSliderWindow::KSliderWindow( QWidget * parent ) :
{
setModal( false );
QWidget * widget = new QWidget( this );
setWindowTitle( i18n("Sliders") );
setWindowTitle( i18nc("@title:window", "Sliders") );
QVBoxLayout *layout = new QVBoxLayout( this );
layout->addWidget(widget);
......
......@@ -316,7 +316,7 @@ void MainDlg::setupActions()
//BEGIN help menu
QAction * namesAction = actionCollection()->addAction( "names" );
namesAction->setText( i18n( "Predefined &Math Functions" ) );
namesAction->setText( i18nc("@action:inmenu Help", "Predefined &Math Functions") );
namesAction->setIcon( QIcon::fromTheme("functionhelp") );
connect( namesAction, &QAction::triggered, this, &MainDlg::slotNames );
//END help menu
......@@ -699,7 +699,7 @@ void MainDlg::slotPrint()
printdlg->setObjectName( "KmPlot page" );
QPointer<QPrintDialog> printDialog = new QPrintDialog( &prt, m_parent );
printDialog->setOptionTabs( QList<QWidget*>() << printdlg );
printDialog->setWindowTitle( i18n("Print Plot") );
printDialog->setWindowTitle( i18nc("@title:window", "Print Plot") );
if (printDialog->exec())
{
......@@ -721,7 +721,7 @@ void MainDlg::slotPrintPreview()
QPrintPreviewWidget *previewWidget = previewWidgetsList.first();
connect( printSettings, &QAction::triggered, [preview, previewWidget, printdlg]{
QDialog *printSettingsDialog = new QDialog( preview, Qt::WindowFlags() );
printSettingsDialog->setWindowTitle( i18n("Print Settings") );
printSettingsDialog->setWindowTitle( i18nc("@title:window", "Print Settings") );
QVBoxLayout *mainLayout = new QVBoxLayout;
printSettingsDialog->setLayout(mainLayout);
mainLayout->addWidget(printdlg);
......
......@@ -61,7 +61,7 @@ ParameterAnimator::ParameterAnimator( QWidget * parent, Function * function )
{
m_widget = new ParameterAnimatorWidget( this );
setWindowTitle( i18n("Parameter Animator") );
setWindowTitle( i18nc("@title:window", "Parameter Animator") );
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close);
connect(buttonBox, &QDialogButtonBox::rejected, this, &ParameterAnimator::reject);
......
......@@ -68,7 +68,7 @@ PlotStyleWidget::PlotStyleWidget( QWidget * parent )
m_dialog = new QDialog( this );
QVBoxLayout *mainLayout = new QVBoxLayout;
m_dialog->setLayout(mainLayout);
m_dialog->setWindowTitle( i18n("Plot Appearance") );
m_dialog->setWindowTitle( i18nc("@title:window", "Plot Appearance") );
m_dialogWidget = new PlotStyleDialogWidget( m_dialog );
m_dialogWidget->layout()->setContentsMargins( 0, 0, 0, 0 );
......
......@@ -32,7 +32,7 @@
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Background Color:</string>
<string>Background color:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
......@@ -81,7 +81,7 @@
<item row="1" column="1">
<widget class="KColorButton" name="kcfg_AxesColor">
<property name="toolTip">
<string>select color for the axes</string>
<string>Select color for the axes.</string>
</property>
<property name="whatsThis">
<string>Specify the color of the axes. The change will appear as soon as you press the OK button.</string>
......@@ -94,7 +94,7 @@
<item row="2" column="1">
<widget class="KColorButton" name="kcfg_GridColor">
<property name="toolTip">
<string>select color for the grid</string>
<string>Select color for the grid.</string>
</property>
<property name="whatsThis">
<string>Specify the color of the grid. The change will appear as soon as you press the OK button.</string>
......@@ -130,7 +130,7 @@
<item row="1" column="1">
<widget class="KColorButton" name="kcfg_Color1">
<property name="toolTip">
<string>the default color for function number 2</string>
<string>The default color for function number 2.</string>
</property>
<property name="whatsThis">
<string>The default color for function number 2. Please note that this color setting only affects empty functions, so if you have defined a function at number 1 and you change color for that number here, the setting will be shown next time you define a new function at number 1.</string>
......@@ -143,7 +143,7 @@
<item row="4" column="1">
<widget class="KColorButton" name="kcfg_Color4">
<property name="toolTip">
<string>the default color for function number 5</string>
<string>The default color for function number 5.</string>
</property>
<property name="whatsThis">
<string>The default color for function number 5. Please note that this color setting only affects empty functions, so if you have defined a function at number 1 and you change color for that number here, the setting will be shown next time you define a new function at number 1.</string>
......@@ -156,7 +156,7 @@
<item row="0" column="1">
<widget class="KColorButton" name="kcfg_Color0">
<property name="toolTip">
<string>the default color for function number 1</string>
<string>The default color for function number 1.</string>
</property>
<property name="whatsThis">
<string>The default color for function number 1. Please note that this color setting only affects empty functions, so if you have defined a function at number 1 and you change color for that number here, the setting will be shown next time you define a new function at number 1.</string>
......@@ -182,7 +182,7 @@
<item row="2" column="1">
<widget class="KColorButton" name="kcfg_Color2">
<property name="toolTip">
<string>the default color for function number 3</string>
<string>The default color for function number 3.</string>
</property>
<property name="whatsThis">
<string>The default color for function number 3. Please note that this color setting only affects empty functions, so if you have defined a function at number 1 and you change color for that number here, the setting will be shown next time you define a new function at number 1.</string>
......@@ -234,7 +234,7 @@
<item row="3" column="1">
<widget class="KColorButton" name="kcfg_Color3">
<property name="toolTip">
<string>the default color for function number 4</string>
<string>The default color for function number 4.</string>
</property>
<property name="whatsThis">
<string>The default color for function number 4. Please note that this color setting only affects empty functions, so if you have defined a function at number 1 and you change color for that number here, the setting will be shown next time you define a new function at number 1.</string>
......@@ -312,7 +312,7 @@
<item row="3" column="1">
<widget class="KColorButton" name="kcfg_Color8">
<property name="toolTip">
<string>the default color for function number 9</string>
<string>The default color for function number 9.</string>
</property>
<property name="whatsThis">
<string>The default color for function number 9. Please note that this color setting only affects empty functions, so if you have defined a function at number 1 and you change color for that number here, the setting will be shown next time you define a new function at number 1.</string>
......@@ -338,7 +338,7 @@
<item row="1" column="1">
<widget class="KColorButton" name="kcfg_Color6">
<property name="toolTip">
<string>the default color for function number 7</string>
<string>The default color for function number 7.</string>
</property>
<property name="whatsThis">
<string>The default color for function number 7. Please note that this color setting only affects empty functions, so if you have defined a function at number 1 and you change color for that number here, the setting will be shown next time you define a new function at number 1.</string>
......@@ -351,7 +351,7 @@
<item row="2" column="1">
<widget class="KColorButton" name="kcfg_Color7">
<property name="toolTip">
<string>the default color for function number 8</string>
<string>The default color for function number 8.</string>
</property>
<property name="whatsThis">
<string>The default color for function number 8. Please note that this color setting only affects empty functions, so if you have defined a function at number 1 and you change color for that number here, the setting will be shown next time you define a new function at number 1.</string>
......@@ -364,7 +364,7 @@
<item row="0" column="1">
<widget class="KColorButton" name="kcfg_Color5">
<property name="toolTip">
<string>the default color for function number 6</string>
<string>The default color for function number 6.</string>
</property>
<property name="whatsThis">
<string>The default color for function number 6. Please note that this color setting only affects empty functions, so if you have defined a function at number 1 and you change color for that number here, the setting will be shown next time you define a new function at number 1.</string>
......@@ -390,7 +390,7 @@
<item row="4" column="1">
<widget class="KColorButton" name="kcfg_Color9">
<property name="toolTip">
<string>the default color for function number 10</string>
<string>The default color for function number 10.</string>
</property>
<property name="whatsThis">
<string>The default color for function number 10. Please note that this color setting only affects empty functions, so if you have defined a function at number 1 and you change color for that number here, the setting will be shown next time you define a new function at number 1.</string>
......
......@@ -81,7 +81,7 @@
<string>Label on horizontal axis.</string>
</property>
<property name="text">
<string>Horizontal Axis Label: </string>
<string>Horizontal axis label:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
......@@ -101,7 +101,7 @@
<string>Label on vertical axis.</string>
</property>
<property name="text">
<string>Vertical Axis Label:</string>
<string>Vertical axis label:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
......@@ -249,7 +249,7 @@
<item row="6" column="0">
<widget class="QCheckBox" name="kcfg_ShowLabel">
<property name="toolTip">
<string>visible tic labels</string>
<string>Visible tic labels.</string>
</property>
<property name="whatsThis">
<string>Check this if the axes' tics should be labeled.</string>
......@@ -265,7 +265,7 @@
<item row="7" column="0">
<widget class="QCheckBox" name="kcfg_ShowAxes">
<property name="toolTip">
<string>visible axes</string>
<string>Visible axes.</string>
</property>
<property name="whatsThis">
<string>Check this if the axes should be visible.</string>
......@@ -281,7 +281,7 @@
<item row="8" column="0">
<widget class="QCheckBox" name="kcfg_ShowArrows">
<property name="toolTip">
<string>visible arrows at the end of the axes</string>
<string>Visible arrows at the end of the axes.</string>
</property>
<property name="whatsThis">
<string>Check this if the axes should have arrows at their ends.</string>
......
......@@ -70,7 +70,7 @@
<item row="0" column="0">
<widget class="QLabel" name="textLabel1_2">
<property name="text">
<string>Zoom In by:</string>
<string>Zoom in by:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
......@@ -83,7 +83,7 @@
<item row="1" column="0">
<widget class="QLabel" name="textLabel1_2_2">
<property name="text">
<string>Zoom Out by:</string>
<string>Zoom out by:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment