Commit af8242d5 authored by Antoni Bella Pérez's avatar Antoni Bella Pérez 🚵🏻 Committed by Yuri Chornoivan
Browse files

l10n improves

* Add @title:window helpers, capitalization and punctuation fixes
* Fix the menu options in the tips file and delete a tip outdated
parent eb0eeec8
......@@ -117,21 +117,21 @@
<item row="5" column="1">
<widget class="QPushButton" name="newButton">
<property name="text">
<string>Create a New Collection</string>
<string>Create a New Collection...</string>
</property>
</widget>
</item>
<item row="5" column="2">
<widget class="QPushButton" name="openButton">
<property name="text">
<string>Open an Existing Collection</string>
<string>Open an Existing Collection...</string>
</property>
</widget>
</item>
<item row="5" column="3">
<widget class="QPushButton" name="ghnsButton">
<property name="text">
<string>Download New Collections</string>
<string>Download New Collections...</string>
</property>
</widget>
</item>
......
......@@ -189,7 +189,7 @@ void EditorWindow::initDockWidgets()
connect(m_vocabularyView, &VocabularyView::translationChanged, m_inflectionWidget, &InflectionWidget::setTranslation);
// Comparison forms
QDockWidget *comparisonDock = new QDockWidget(i18n("Comparison forms"), this);
QDockWidget *comparisonDock = new QDockWidget(i18n("Comparison Forms"), this);
comparisonDock->setObjectName(QStringLiteral("ComparisonDock"));
m_comparisonWidget = new ComparisonWidget(this);
QScrollArea *comparisonScrollArea = new QScrollArea(this);
......
......@@ -121,7 +121,7 @@ void InflectionWidget::setWordType()
QPointer<QDialog> dialog = new QDialog(this);
dialog->setLayout(layout);
dialog->setWindowTitle(i18n("Please select the noun's gender"));
dialog->setWindowTitle(i18nc("@title:window", "Please select the noun's gender"));
connect(getGenderDialog.data(), &QDialogButtonBox::accepted, dialog.data(), &QDialog::accept);
connect(getGenderDialog.data(), &QDialogButtonBox::rejected, dialog.data(), &QDialog::reject);
......
......@@ -40,7 +40,7 @@ VocabularyColumnsDialog::VocabularyColumnsDialog(KEduVocDocument *doc, QWidget *
m_doc = doc;
m_settings = new DocumentSettings(m_doc->url().url());
setWindowTitle(i18n("Vocabulary Columns"));
setWindowTitle(i18nc("@title:window", "Vocabulary Columns"));
QWidget *main_widget = new QWidget(this);
main_widget->setLayout(m_box);
......
......@@ -52,7 +52,7 @@ ExportDialog::ExportDialog(ParleyDocument *doc, QWidget *parent)
connect(button_dialog, &QDialogButtonBox::accepted, this, &ExportDialog::accept);
connect(button_dialog, &QDialogButtonBox::rejected, this, &ExportDialog::reject);
setWindowTitle(i18n("Export"));
setWindowTitle(i18nc("@title:window", "Export"));
}
void ExportDialog::accept()
......
......@@ -200,7 +200,7 @@ QAction *ParleyActions::create(ParleyAction id, const QObject *recvr, const char
slot,
parent,
QStringLiteral("practice_export"),
i18n("Export results..."),
i18n("Export Results..."),
i18n("Write a file with the results of the practice"),
QStringLiteral("document-export"));
break;
......
......@@ -161,7 +161,7 @@ void ParleyDocument::slotFileOpen()
if (queryClose()) {
///@todo frameworks check filters are fixed in kvocdoc
///@todo frameworks check how to add child checkbox to this dialog
QFileDialog dialog(m_parleyApp, i18n("Open Vocabulary Collection"), QString(), KEduVocDocument::pattern(KEduVocDocument::Reading));
QFileDialog dialog(m_parleyApp, i18nc("@title:window", "Open Vocabulary Collection"), QString(), KEduVocDocument::pattern(KEduVocDocument::Reading));
QCheckBox *practiceCheckBox = new QCheckBox(i18n("Open in practice &mode"), &dialog);
practiceCheckBox->setChecked(m_parleyApp->currentComponent() != ParleyMainWindow::EditorComponent);
dialog.setFileMode(QFileDialog::ExistingFile);
......@@ -296,7 +296,7 @@ void ParleyDocument::openGHNS()
downloadDir.mkpath(downloadDir.absolutePath());
QUrl url = QUrl::fromUserInput(QFileDialog::getOpenFileName(m_parleyApp,
i18n("Open Downloaded Vocabulary Collection"),
i18nc("@title:window", "Open Downloaded Vocabulary Collection"),
downloadDir.path(),
KEduVocDocument::pattern(KEduVocDocument::Reading)));
......@@ -379,7 +379,7 @@ void ParleyDocument::saveAs(QUrl url)
if (url.isEmpty()) {
url = QUrl::fromLocalFile(QFileDialog::getSaveFileName(m_parleyApp->parentWidget(),
i18n("Save Vocabulary As"),
i18nc("@title:window", "Save Vocabulary As"),
QString(),
KEduVocDocument::pattern(KEduVocDocument::Writing)));
......
......@@ -23,7 +23,7 @@
<string>Answers with wrong accents are still counted as correct.</string>
</property>
<property name="text">
<string>Ignore Accents</string>
<string>Ignore accents</string>
</property>
<property name="checked">
<bool>true</bool>
......@@ -36,7 +36,7 @@
<string>Any captitalization in the answer is counted as correct.</string>
</property>
<property name="text">
<string>Ignore Capitalization</string>
<string>Ignore capitalization</string>
</property>
<property name="checked">
<bool>true</bool>
......@@ -97,7 +97,7 @@
<string>During the practice, images are shown for the question.</string>
</property>
<property name="text">
<string>Image for Question</string>
<string>Image for question</string>
</property>
<property name="checked">
<bool>true</bool>
......@@ -110,7 +110,7 @@
<string>During the practice, images are shown for the solution.</string>
</property>
<property name="text">
<string>Image for Solution</string>
<string>Image for solution</string>
</property>
<property name="checked">
<bool>true</bool>
......@@ -165,7 +165,7 @@
<item>
<widget class="QCheckBox" name="kcfg_CountSynonymsAsCorrect">
<property name="text">
<string>Accept any Synonym</string>
<string>Accept any synonym</string>
</property>
</widget>
</item>
......@@ -199,7 +199,7 @@
<number>1</number>
</property>
<property name="text">
<string>Max session size</string>
<string>Max session size:</string>
</property>
<property name="indent">
<number>0</number>
......@@ -248,7 +248,7 @@
<number>1</number>
</property>
<property name="text">
<string>Max number of new words</string>
<string>Max number of new words:</string>
</property>
<property name="indent">
<number>0</number>
......
......@@ -40,7 +40,7 @@
<item row="1" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Grade</string>
<string>Grade:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
......@@ -50,7 +50,7 @@
<item row="2" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Times practiced</string>
<string>Times practiced:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
......@@ -77,7 +77,7 @@
<item row="3" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Answered incorrectly</string>
<string>Answered incorrectly:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
......
......@@ -216,14 +216,14 @@
<item>
<widget class="QPushButton" name="countAsWrongButton">
<property name="text">
<string>I did not know it</string>
<string>I Did not Know it</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="countAsCorrectButton">
<property name="text">
<string>I knew it</string>
<string>I Knew it</string>
</property>
</widget>
</item>
......
......@@ -157,7 +157,7 @@
<item row="4" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Cate&amp;gory</string>
<string>Cate&amp;gory:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
......@@ -308,7 +308,7 @@ If you consider contributing your file to KDE in the future, an appropriate lice
<item row="4" column="2">
<widget class="QCheckBox" name="grammarCheckBox">
<property name="text">
<string>&amp;Setup Grammar Details</string>
<string>&amp;Setup grammar details</string>
</property>
<property name="checked">
<bool>true</bool>
......@@ -318,7 +318,7 @@ If you consider contributing your file to KDE in the future, an appropriate lice
<item row="5" column="2">
<widget class="QCheckBox" name="downloadGrammarCheckBox">
<property name="text">
<string comment="Attept to download grammar properties for the selected languages">Download Grammar</string>
<string comment="Attept to download grammar properties for the selected languages">Download grammar</string>
</property>
<property name="checked">
<bool>true</bool>
......
......@@ -20,7 +20,7 @@ LanguageProperties::LanguageProperties(KEduVocDocument *doc, QWidget *parent)
: KPageDialog(parent)
, m_doc(doc)
{
setWindowTitle(i18n("Edit Languages"));
setWindowTitle(i18nc("@title:window", "Edit Languages"));
setFaceType(List);
setStandardButtons(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
......
......@@ -72,7 +72,7 @@
<item row="10" column="2">
<widget class="QPushButton" name="downloadGrammarButton">
<property name="text">
<string>&amp;Download Grammar</string>
<string>&amp;Download grammar</string>
</property>
<property name="checkable">
<bool>false</bool>
......
<tip category="Parley">
<html>
<p>Parley enables you to edit many additional properties of the words you enter.</p>
<p>Use "Settings" -> "Tools" to enable different tools that will help you set additional information for your vocabulary. These include images, sound, word types and many more. Choose the ones you like.</p>
<p>Use "View -> ..." check boxes to enable different information that will help you set additional information for your vocabulary. These include Image, Sound, Word Types and many more. Choose the ones you like.</p>
</html>
</tip>
......@@ -11,17 +11,10 @@
</html>
</tip>
<tip category="Parley">
<html>
<p>If you do not want to see the answer again after pressing enter when practicing, you can configure Parley to directly skip to the next entry.</p>
<p>You can even choose to display the answer for a fixed amount of time. Use "Configure Practice..." -> "Advanced" -> "Show solution after answering".</p>
</html>
</tip>
<tip category="Parley">
<html>
<p>If you want to see all words of a certain word type (e.g. nouns), simply select the word type in the list.</p>
<p>To show the word type list, use "Settings" -> "Tools" -> "Word Types" in the menu.</p>
<p>To show the word type list, use "View -> Word Types" check box.</p>
</html>
</tip>
......
Supports Markdown
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