Commit 06fa3790 authored by Antoni Bella Pérez's avatar Antoni Bella Pérez 🚵🏻
Browse files

Documentation updates

* Update date and version numbers
* Suitable tags and tables improve (menu items)
* Add a menu item and some fixes
* Add a button image
* GUI fixes: punctuation, add @title:window helpers
parent 9331a9c4
This diff is collapsed.
......@@ -7,8 +7,8 @@
<refentryinfo>
<title>&kalzium; User's Manual</title>
<author><firstname>Ben</firstname><surname>Burton</surname> <contrib>Kalzium man page.</contrib></author>
<date>2016-10-31</date><!--Update only when changing/reviewing this man page-->
<releaseinfo>2.5.0 (Applications 16.12)</releaseinfo><!--Update only when changing/reviewing this man page-->
<date>2020-12-19</date><!--Update only when changing/reviewing this man page-->
<releaseinfo>Applications 20.12</releaseinfo><!--Update only when changing/reviewing this man page-->
<productname>KDE Applications</productname>
</refentryinfo>
......@@ -43,7 +43,7 @@ about the elements or to learn facts about the PSE.</para>
PSE. You can look up lots of information about the elements and also
use visualisations to show them.</para>
<para>This package is part of the official KDE edutainment module. </para>
<para>This package is part of the official KDE edutainment module.</para>
</refsect1>
......
This diff is collapsed.
......@@ -138,7 +138,7 @@ void KalziumPlasma::showConfigurationInterface()
if (m_dialog == 0) {
m_dialog = new QDialog;
m_dialog->setWindowIcon(QIcon::fromTheme("kalzium"));
m_dialog->setWindowTitle(i18n("KalziumPlasma Configuration"));
m_dialog->setWindowTitle(i18nc("@title:window", "KalziumPlasma Configuration"));
ui.setupUi(m_dialog->mainWidget());
m_dialog->mainWidget()->layout()->setContentsMargins(0, 0, 0, 0);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel|QDialogButtonBox::Apply);
......
......@@ -34,7 +34,7 @@
calculator::calculator(QWidget *parent) : QDialog(parent)
{
setWindowTitle(i18n("Chemical Calculator"));
setWindowTitle(i18nc("@title:window", "Chemical Calculator"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Help|QDialogButtonBox::Close);
QWidget *mainWidget = new QWidget(this);
QVBoxLayout *mainLayout = new QVBoxLayout;
......
......@@ -231,7 +231,7 @@ QString DetailedInfoDlg::getHtml(DATATYPE type)
// van der Waals radius
html.append("<tr><td><img src=\"file://" + m_baseHtml + "radius.png\" alt=\"icon\"/></td><td>");
html.append(createWikiLink(i18n("van der Waals Radius")));
html.append(createWikiLink(i18n("Van der Waals Radius")));
html.append("</td><td>");
html.append(KalziumUtils::prettyUnit(m_element, ChemicalDataObject::radiusVDW));
html.append("</td></tr>");
......@@ -1538,7 +1538,7 @@ void DetailedInfoDlg::reloadContent()
const QString element_block = m_element->dataAsString(ChemicalDataObject::periodTableBlock);
// updating caption
setWindowTitle(i18nc("For example: [C] Carbon (6 - Block p)", "[%1] %2 (%3 - Block %4)",
setWindowTitle(i18nc("@title:window, for example: [C] Carbon (6 - Block p)", "[%1] %2 (%3 - Block %4)",
element_symbol, element_name, m_elementNumber, element_block));
//X // updating picture tab
......
......@@ -56,7 +56,7 @@ ElementDataViewer::ElementDataViewer(QWidget *parent)
m_yData(new AxisData(AxisData::Y)),
m_xData(new AxisData(AxisData::X))
{
setWindowTitle(i18n("Plot Data"));
setWindowTitle(i18nc("@title:window", "Plot Data"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Help|QDialogButtonBox::Close);
QWidget *mainWidget = new QWidget(this);
QVBoxLayout *mainLayout = new QVBoxLayout;
......
......@@ -103,7 +103,7 @@ ExportDialog::ExportDialog(QWidget * parent)
ui.targetFile->setMode(KFile::File | KFile::Directory | KFile::LocalOnly);
qDebug() << "ui.targetFile->setMode(KFile::File | KFile::Directory | KFile::LocalOnly);";
setWindowTitle(i18n("Export Chemical Data"));
setWindowTitle(i18nc("@title:window", "Export Chemical Data"));
qDebug() << "ui.targetFile->setMode(KFile::File | KFile::Directory | KFile::LocalOnly);";
populateElementList();
......
......@@ -37,7 +37,7 @@
IsotopeTableDialog::IsotopeTableDialog(QWidget* parent) : QDialog(parent)
{
setWindowTitle(i18n("Isotope Table"));
setWindowTitle(i18nc("@title:window", "Isotope Table"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close);
QWidget *mainWidget = new QWidget(this);
QVBoxLayout *mainLayout = new QVBoxLayout;
......
......@@ -230,7 +230,7 @@ QByteArray KalziumVanDerWaalsRadiusGradientType::name() const
QString KalziumVanDerWaalsRadiusGradientType::description() const
{
return i18n("van Der Waals");
return i18n("Van Der Waals");
}
double KalziumVanDerWaalsRadiusGradientType::value(int el) const
......
......@@ -420,7 +420,7 @@ QColor KalziumColorSchemeType::textColor(int) const
QList<legendPair> KalziumColorSchemeType::legendItems() const
{
QList<legendPair> ll;
ll << qMakePair(i18n("Nice colors without meaning. (From the Openbabel project)"), QColor());
ll << qMakePair(i18n("Nice colors without meaning. (From the Open Babel project)"), QColor());
return ll;
}
#endif
......
......@@ -316,7 +316,7 @@ QString Glossary::backgroundPicture()const
GlossaryDialog::GlossaryDialog(QWidget *parent) : QDialog(parent), d(new Private(this))
{
setWindowTitle(i18n("Glossary"));
setWindowTitle(i18nc("@title:window", "Glossary"));
//this string will be used for all items. If a backgroundpicture should
//be used call Glossary::setBackgroundPicture().
......
......@@ -35,7 +35,7 @@
RSDialog::RSDialog(QWidget* parent) : QDialog(parent)
{
setWindowTitle(i18n("Risks/Security Phrases"));
setWindowTitle(i18nc("@title:window", "Risks/Security Phrases"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Help|QDialogButtonBox::Close);
QWidget *mainWidget = new QWidget(this);
QVBoxLayout *mainLayout = new QVBoxLayout;
......
......@@ -62,7 +62,7 @@ MoleculeDialog::MoleculeDialog(QWidget * parent)
defFormat.setSampleBuffers(true);
QGLFormat::setDefaultFormat(defFormat);
setWindowTitle(i18n("Molecular Editor"));
setWindowTitle(i18nc("@title:window", "Molecular Editor"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close);
QWidget *mainWidget = new QWidget(this);
QVBoxLayout *mainLayout = new QVBoxLayout;
......
......@@ -45,7 +45,7 @@ using namespace OpenBabel;
KOpenBabel::KOpenBabel(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("OpenBabel Frontend"));
setWindowTitle(i18nc("@title:window", "OpenBabel Frontend"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Help|QDialogButtonBox::Close);
QWidget *mainWidget = new QWidget(this);
QVBoxLayout *mainLayout = new QVBoxLayout;
......
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