Git commit 58d446e8e6356e70a0671da70966222b6cf56d3e by Antoni Bella Pérez. Committed on 06/12/2020 at 16:19. Pushed by bellaperez into branch 'master'.
Translation improves - Fixes and add @title:window" helper to GUI messages - Change http: to https: M +18 -18 doc/index.docbook M +1 -1 src/gui/element/associatedfilesui.cpp M +1 -1 src/gui/element/findpdfui.cpp M +2 -2 src/gui/file/fileview.cpp M +1 -1 src/gui/file/findduplicatesui.cpp M +1 -1 src/gui/preferences/kbibtexpreferencesdialog.cpp M +1 -1 src/gui/preferences/settingsidsuggestionseditor.cpp M +1 -1 src/networking/zotero/oauthwizard.cpp M +2 -2 src/parts/part.cpp M +1 -1 src/processing/findduplicates.cpp https://invent.kde.org/office/kbibtex/commit/58d446e8e6356e70a0671da70966222b6cf56d3e diff --git a/doc/index.docbook b/doc/index.docbook index 6b26caa5..45a3cdbc 100644 --- a/doc/index.docbook +++ b/doc/index.docbook @@ -65,12 +65,12 @@ <itemizedlist> <listitem> <para> - <ulink url="http://www.kde.org/">&kf5-full; libraries</ulink>. + <ulink url="https://www.kde.org/">&kf5-full; libraries</ulink>. </para> </listitem> <listitem> <para> - <ulink url="http://www.ctan.org/">&latex;</ulink>: high-quality document typesetting program. Most likely you want the &texlive; (or on older systems the &tetex;) package, if you are on a Unix-like system. It is an optional dependency, but without it &kbibtex; provides very limited functionality. + <ulink url="https://www.ctan.org/">&latex;</ulink>: high-quality document typesetting program. Most likely you want the &texlive; (or on older systems the &tetex;) package, if you are on a Unix-like system. It is an optional dependency, but without it &kbibtex; provides very limited functionality. </para> </listitem> <listitem> @@ -132,7 +132,7 @@ pages = {R49}, publisher = {Springer}, title = {{The calculation of crack opening area and crack opening volume from stress intensity factors}}, - url = {http://dx.doi.org/10.1007/BF00048294}, + url = {https://dx.doi.org/10.1007/BF00048294}, volume = {76}, x-fetchedfrom = {SpringerLink}, year = {1995} @@ -319,7 +319,7 @@ \bibliographystyle{plain} </programlisting> <para> - Here, <replaceable>foo</replaceable> is the name of your <filename role="extension">bib</filename> file created with &kbibtex; and <quote>plain</quote> is the name of bibliography style. + Here, <replaceable>foo</replaceable> is the name of your <filename role="extension">bib</filename> file created with &kbibtex; and <quote><literal>plain</literal></quote> is the name of bibliography style. </para> <para> There is a plenty of specific bibliography styles. Please consult your publisher for the one to choose or try and find the one that suits the best for your purposes. @@ -330,7 +330,7 @@ <variablelist> <varlistentry> <term> - plain + <literal>plain</literal> </term> <listitem> <para> @@ -340,31 +340,31 @@ </varlistentry> <varlistentry> <term> - unsrt + <literal>unsrt</literal> </term> <listitem> <para> - same as plain except entries appear in order of citation + same as <literal>plain</literal> except entries appear in order of citation </para> </listitem> </varlistentry> <varlistentry> <term> - alpha + <literal>alpha</literal> </term> <listitem> <para> - same as plain except entry identifiers are used + same as <literal>plain</literal> except entry identifiers are used </para> </listitem> </varlistentry> <varlistentry> <term> - abbrv + <literal>abbrv</literal> </term> <listitem> <para> - same as plain except uses abbreviations for first names, month names, and journal names + same as <literal>plain</literal> except uses abbreviations for first names, month names, and journal names </para> </listitem> </varlistentry> @@ -392,7 +392,7 @@ Now that you have the basis for a document, you have to run both <application>latex</application> and <application>bibtex</application> to process it. </para> <para> - First, you should run <application>latex</application> (to create a foo.aux file, which <application>bibtex</application> reads). Then run <application>bibtex</application> once to get some of the citations and create a <filename role="extension">bbl</filename> file. Then run <application>latex</application> again so that the cross references between the text file and the bibliography are correct. You may want to repeat running <application>bibtex</application> and <application>latex</application> on the file to make sure that all cross references are correct. Be warned that adding/deleting citations and sources will require running <application>bibtex</application> again. + First, you should run <application>latex</application> (to create a <filename>foo.aux</filename> file, which <application>bibtex</application> reads). Then run <application>bibtex</application> once to get some of the citations and create a <filename role="extension">bbl</filename> file. Then run <application>latex</application> again so that the cross references between the text file and the bibliography are correct. You may want to repeat running <application>bibtex</application> and <application>latex</application> on the file to make sure that all cross references are correct. Be warned that adding/deleting citations and sources will require running <application>bibtex</application> again. </para> <para> Thus, the following commands can be used to compile the document from console: @@ -654,7 +654,7 @@ latex example</screen> <imagedata fileref="preferences-web-browser-identification.png" format="PNG"/> </imageobject> </inlinemediaobject> - Get Credentials</guibutton> button on <guilabel>Credentials</guilabel> tab to start the Zotero authorization wizard. Follow the instructions to allow &kbibtex; access your Zotero library. + Get New Credentials</guibutton> button on <guilabel>Credentials</guilabel> tab to start the Zotero authorization wizard. Follow the instructions to allow &kbibtex; access your Zotero library. </para> <para> To access the library entries double-click on the corresponding item on <guilabel>Collections</guilabel> or <guilabel>Tags</guilabel> tabs. The entries that satisfy the chosen criteria will be shown on the <link linkend="search-results">Search Results panel</link>. @@ -806,7 +806,7 @@ latex example</screen> button to open the page or the document in the default external application. </para> <para> - The address drop down box can be used to switch between the pages and documents. + The <guilabel>Address</guilabel> drop down box can be used to switch between the pages and documents. </para> </sect2> </sect1> @@ -818,7 +818,7 @@ latex example</screen> &kbibtex; has two completely customizable toolbars located on the top part of its window. </para> <para> - More information on customizing the toolbars can be found in the <ulink url="Help:/fundamentals/config.html#toolbars">corresponding section of &kde; Fundamentals manual</ulink>. Below is the short description of the default buttons of &kbibtex; toolbars. + More information on customizing the toolbars can be found in the <ulink url="help:/fundamentals/config.html#toolbars">corresponding section of &kde; Fundamentals manual</ulink>. Below is the short description of the default buttons of &kbibtex; toolbars. </para> <sect2 id="main-toolbar"> <title> @@ -1249,7 +1249,7 @@ latex example</screen> &kbibtex;'s Configuration Dialog </title> <para> - Several &kbibtex; parameters can be configured via the <guilabel>Preferences</guilabel> dialog. This dialog can be opened using the <menuchoice><guimenu>Settings</guimenu><guimenuitem>Configure &kbibtex;</guimenuitem></menuchoice> menu item. Below you can find a description of &kbibtex; configuration pages. + Several &kbibtex; parameters can be configured via the <guilabel>Preferences</guilabel> dialog. This dialog can be opened using the <menuchoice><guimenu>Settings</guimenu><guimenuitem>Configure &kbibtex;...</guimenuitem></menuchoice> menu item. Below you can find a description of &kbibtex; configuration pages. </para> <para> Click the <guibutton> @@ -1468,7 +1468,7 @@ latex example</screen> </mediaobject> </screenshot> <para> - This configuration page can be used to choose some options for <link linkend="element-editor">previewing of &kbibtex; entries</link>. You can select <guilabel>Paper Size</guilabel>, language for <ulink url="http://www.ctan.org/pkg/babel">babel</ulink> &latex; package and the <link linkend="quick-using">bibliography style</link>. + This configuration page can be used to choose some options for <link linkend="element-editor">previewing of &kbibtex; entries</link>. You can select <guilabel>Paper Size</guilabel>, language for <ulink url="https://www.ctan.org/pkg/babel">babel</ulink> &latex; package and the <link linkend="quick-using">bibliography style</link>. </para> </sect2> </sect1> @@ -1622,7 +1622,7 @@ latex example</screen> Integration with &lyx; </title> <para> - <ulink url="http://www.lyx.org/">&lyx;</ulink> is a document processor that encourages an approach to writing based on the structure of your documents (WYSIWYM) and not simply their appearance (WYSIWYG). + <ulink url="https://www.lyx.org/">&lyx;</ulink> is a document processor that encourages an approach to writing based on the structure of your documents (WYSIWYM) and not simply their appearance (WYSIWYG). </para> <para> &kbibtex; can be integrated into &lyx; via &lyx; input/output pipe. diff --git a/src/gui/element/associatedfilesui.cpp b/src/gui/element/associatedfilesui.cpp index 29ddddce..f995f1f8 100644 --- a/src/gui/element/associatedfilesui.cpp +++ b/src/gui/element/associatedfilesui.cpp @@ -162,7 +162,7 @@ public: QString AssociatedFilesUI::associateUrl(const QUrl &url, QSharedPointer<Entry> &entry, const File *bibTeXfile, const bool doInsertUrl, QWidget *parent) { QPointer<QDialog> dlg = new QDialog(parent); - dlg->setWindowTitle(i18n("Associate Document with Entry")); + dlg->setWindowTitle(i18nc("@title:window", "Associate Document with Entry")); QBoxLayout *layout = new QVBoxLayout(dlg); QPointer<AssociatedFilesUI> ui = new AssociatedFilesUI(entry->id(), bibTeXfile, dlg); layout->addWidget(ui); diff --git a/src/gui/element/findpdfui.cpp b/src/gui/element/findpdfui.cpp index 2dd1d862..9d5e8f4e 100644 --- a/src/gui/element/findpdfui.cpp +++ b/src/gui/element/findpdfui.cpp @@ -437,7 +437,7 @@ void FindPDFUI::interactiveFindPDF(Entry &entry, const File &bibtexFile, QWidget { QPointer<QDialog> dlg = new QDialog(parent); QPointer<FindPDFUI> widget = new FindPDFUI(entry, dlg); - dlg->setWindowTitle(i18n("Find PDF")); + dlg->setWindowTitle(i18nc("@title:window", "Find PDF")); QBoxLayout *layout = new QVBoxLayout(dlg); layout->addWidget(widget); QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Abort | QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal, dlg); diff --git a/src/gui/file/fileview.cpp b/src/gui/file/fileview.cpp index 4d4e9dfa..267e1475 100644 --- a/src/gui/file/fileview.cpp +++ b/src/gui/file/fileview.cpp @@ -328,7 +328,7 @@ void FileView::prepareEditorDialog(DialogType dialogType) if (dialogType == DialogType::View) { /// View mode, as use in read-only situations m_elementEditor->setReadOnly(true); - m_elementEditorDialog->setWindowTitle(i18n("View Element")); + m_elementEditorDialog->setWindowTitle(i18nc("@title:window", "View Element")); m_dbb = new QDialogButtonBox(QDialogButtonBox::Close, m_elementEditorDialog); QBoxLayout *boxLayout = qobject_cast<QBoxLayout *>(m_elementEditorDialog->layout()); boxLayout->addWidget(m_dbb); @@ -336,7 +336,7 @@ void FileView::prepareEditorDialog(DialogType dialogType) } else if (dialogType == DialogType::Edit) { /// Edit mode, used in normal operations m_elementEditor->setReadOnly(false); - m_elementEditorDialog->setWindowTitle(i18n("Edit Element")); + m_elementEditorDialog->setWindowTitle(i18nc("@title:window", "Edit Element")); m_dbb = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Apply | QDialogButtonBox::Cancel | QDialogButtonBox::Reset, m_elementEditorDialog); QBoxLayout *boxLayout = qobject_cast<QBoxLayout *>(m_elementEditorDialog->layout()); boxLayout->addWidget(m_dbb); diff --git a/src/gui/file/findduplicatesui.cpp b/src/gui/file/findduplicatesui.cpp index a21517e4..bea4127f 100644 --- a/src/gui/file/findduplicatesui.cpp +++ b/src/gui/file/findduplicatesui.cpp @@ -709,7 +709,7 @@ void FindDuplicatesUI::startDuplicatesSearch() /// Why is a QPointer used here you may wonder? Check here in case the link still works: /// https://blogs.kde.org/2009/03/26/how-crash-almost-every-qtkde-application-and-how-fix-it-0 QPointer<QDialog> dlg = new QDialog(d->part->widget()); - dlg->setWindowTitle(i18n("Merge Duplicates")); + dlg->setWindowTitle(i18nc("@title:window", "Merge Duplicates")); MergeWidget *mw = new MergeWidget(workingSetFile, cliques, dlg); mw->layout()->setMargin(0); QBoxLayout *layout = new QVBoxLayout(dlg); diff --git a/src/gui/preferences/kbibtexpreferencesdialog.cpp b/src/gui/preferences/kbibtexpreferencesdialog.cpp index dd2a06ac..0feb5410 100644 --- a/src/gui/preferences/kbibtexpreferencesdialog.cpp +++ b/src/gui/preferences/kbibtexpreferencesdialog.cpp @@ -167,7 +167,7 @@ KBibTeXPreferencesDialog::KBibTeXPreferencesDialog(QWidget *parent) : KPageDialog(parent), d(new KBibTeXPreferencesDialogPrivate(this)) { setFaceType(KPageDialog::Tree); - setWindowTitle(i18n("Preferences")); + setWindowTitle(i18nc("@title:window", "Preferences")); QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::RestoreDefaults | QDialogButtonBox::Reset | QDialogButtonBox::Ok | QDialogButtonBox::Apply | QDialogButtonBox::Cancel, Qt::Horizontal, this); buttonBox->button(QDialogButtonBox::Apply)->setEnabled(false); buttonBox->button(QDialogButtonBox::Reset)->setEnabled(false); diff --git a/src/gui/preferences/settingsidsuggestionseditor.cpp b/src/gui/preferences/settingsidsuggestionseditor.cpp index be006244..3a824f7b 100644 --- a/src/gui/preferences/settingsidsuggestionseditor.cpp +++ b/src/gui/preferences/settingsidsuggestionseditor.cpp @@ -932,7 +932,7 @@ void IdSuggestionsEditWidget::updatePreview() IdSuggestionsEditDialog::IdSuggestionsEditDialog(QWidget *parent) : QDialog(parent) { - setWindowTitle(i18n("Edit Id Suggestion")); + setWindowTitle(i18nc("@title:window", "Edit Id Suggestion")); } IdSuggestionsEditDialog::~IdSuggestionsEditDialog() diff --git a/src/networking/zotero/oauthwizard.cpp b/src/networking/zotero/oauthwizard.cpp index aab1b547..5c402e56 100644 --- a/src/networking/zotero/oauthwizard.cpp +++ b/src/networking/zotero/oauthwizard.cpp @@ -167,7 +167,7 @@ public: p->reject(); }); - p->setWindowTitle(i18n("Zotero OAuth Key Exchange")); + p->setWindowTitle(i18nc("@title:window", "Zotero OAuth Key Exchange")); } }; diff --git a/src/parts/part.cpp b/src/parts/part.cpp index cba12e14..176fd0b4 100644 --- a/src/parts/part.cpp +++ b/src/parts/part.cpp @@ -551,7 +551,7 @@ public: if (FileExporterBibTeX::isFileExporterBibTeX(*exporter)) { QPointer<QDialog> dlg = new QDialog(p->widget()); - dlg->setWindowTitle(i18n("BibTeX File Settings")); + dlg->setWindowTitle(i18nc("@title:window", "BibTeX File Settings")); QBoxLayout *layout = new QVBoxLayout(dlg); FileSettingsWidget *settingsWidget = new FileSettingsWidget(dlg); layout->addWidget(settingsWidget); @@ -568,7 +568,7 @@ public: delete dlg; } else if ((fet = qobject_cast<FileExporterToolchain *>(exporter)) != nullptr) { QPointer<QDialog> dlg = new QDialog(p->widget()); - dlg->setWindowTitle(i18n("PDF/PostScript File Settings")); + dlg->setWindowTitle(i18nc("@title:window", "PDF/PostScript File Settings")); QBoxLayout *layout = new QVBoxLayout(dlg); SettingsFileExporterPDFPSWidget *settingsWidget = new SettingsFileExporterPDFPSWidget(dlg); layout->addWidget(settingsWidget); diff --git a/src/processing/findduplicates.cpp b/src/processing/findduplicates.cpp index 1d8fcb54..284dca72 100644 --- a/src/processing/findduplicates.cpp +++ b/src/processing/findduplicates.cpp @@ -383,7 +383,7 @@ bool FindDuplicates::findDuplicateEntries(File *file, QVector<EntryClique *> &en QApplication::setOverrideCursor(Qt::WaitCursor); QScopedPointer<QProgressDialog> progressDlg(new QProgressDialog(i18n("Searching ..."), i18n("Cancel"), 0, 100000 /* to be set later to actual value */, d->widget)); progressDlg->setModal(true); - progressDlg->setWindowTitle(i18n("Finding Duplicates")); + progressDlg->setWindowTitle(i18nc("@title:window", "Finding Duplicates")); progressDlg->setMinimumWidth(d->widget->fontMetrics().averageCharWidth() * 48); progressDlg->setAutoReset(false); entryCliqueList.clear();
