diff --git a/src/collection/collectionfilterwidget.cpp b/src/collection/collectionfilterwidget.cpp index 880294658..077edbe6e 100644 --- a/src/collection/collectionfilterwidget.cpp +++ b/src/collection/collectionfilterwidget.cpp @@ -61,9 +61,28 @@ CollectionFilterWidget::CollectionFilterWidget(QWidget *parent) ui_->setupUi(this); - // Add the available fields to the tooltip here instead of the ui file to prevent that they get translated by mistake. QString available_fields = Song::kFtsColumns.join(", ").replace(QRegExp("\\bfts"), ""); - ui_->filter->setToolTip(ui_->filter->toolTip().arg(available_fields)); + + ui_->filter->setToolTip( + "
" + + tr("Prefix a word with a field name to limit the search to that field, e.g.:") + + " " + + "" + + tr("artist") + + ":" + + "Strawbs" + + " " + + tr("searches the collection for all artists that contain the word") + + "Strawbs" + + "." + + "
" + + tr("Available fields") + + ": " + + "" + + available_fields + + "." + + "
" + ); connect(ui_->filter, SIGNAL(returnPressed()), SIGNAL(ReturnPressed())); connect(filter_delay_, SIGNAL(timeout()), SLOT(FilterDelayTimeout())); diff --git a/src/collection/collectionfilterwidget.ui b/src/collection/collectionfilterwidget.ui index d6b1f08d4..5567b82b7 100644 --- a/src/collection/collectionfilterwidget.ui +++ b/src/collection/collectionfilterwidget.ui @@ -11,7 +11,7 @@Version %1
").arg(QCoreApplication::applicationVersion()); + ret += ""; + ret += tr("Version %1").arg(QCoreApplication::applicationVersion()); + ret += "
"; ret += "";
- ret += tr("Strawberry is a music player and music collection organizer.
");
- ret += tr("It is a fork of Clementine released in 2018 aimed at music collectors, audio enthusiasts and audiophiles.
");
+ ret += tr("Strawberry is a music player and music collection organizer.");
+ ret += "
";
+ ret += tr("It is a fork of Clementine released in 2018 aimed at music collectors, audio enthusiasts and audiophiles.");
+ ret += "
";
ret += tr("The name is inspired by the band Strawbs. It's based on a heavily modified version of Clementine created in 2012-2013. It's written in C++ and Qt 5.");
ret += "
";
- ret += tr("Strawberry is free software: you can redistribute it and/or modify
");
- ret += tr("it under the terms of the GNU General Public License as published by
");
- ret += tr("the Free Software Foundation, either version 3 of the License, or
");
- ret += tr("(at your option) any later version.
");
- ret += "
";
- ret += tr("Strawberry is distributed in the hope that it will be useful,
");
- ret += tr("but WITHOUT ANY WARRANTY; without even the implied warranty of
");
- ret += tr("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
");
- ret += tr("GNU General Public License for more details.
");
- ret += "
";
- ret += tr("You should have received a copy of the GNU General Public License
");
- ret += tr("along with Strawberry. If not, see http://www.gnu.org/licenses/.");
+ ret += tr("Strawberry is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.");
ret += "
Strawberry authors"); + ret += "
";
+ ret += "";
+ ret += tr("Maintainer");
+ ret += "";
for (const Person &person : strawberry_authors_) {
ret += "
" + PersonToHtml(person);
}
ret += "
Strawberry contributors"); + ret += "
";
+ ret += "";
+ ret += tr("Contributors");
+ ret += "";
for (const Person &person : strawberry_contributors_) {
ret += "
" + PersonToHtml(person);
}
ret += "
Thanks to"); + ret += "
";
+ ret += "";
+ ret += tr("Thanks to");
+ ret += "";
for (const Person &person : strawberry_thanks_) {
ret += "
" + PersonToHtml(person);
}
ret += "
Clementine authors"); + ret += "
";
+ ret += "";
+ ret += tr("Clementine authors");
+ ret += "";
for (const Person &person : clementine_authors_) {
ret += "
" + PersonToHtml(person);
}
ret += "
Clementine contributors"); + ret += "
";
+ ret += "";
+ ret += tr("Clementine contributors");
+ ret += "";
for (const Person &person : clementine_contributors_) {
ret += "
" + PersonToHtml(person);
}
diff --git a/src/dialogs/about.ui b/src/dialogs/about.ui
index c04c0ff0a..0ff7e0660 100644
--- a/src/dialogs/about.ui
+++ b/src/dialogs/about.ui
@@ -6,8 +6,8 @@
" + tr("Enter your user token from") + " " + "https://listenbrainz.org/profile/
"); + resize(sizeHint()); } diff --git a/src/settings/scrobblersettingspage.ui b/src/settings/scrobblersettingspage.ui index 30c4002f4..3e869397f 100644 --- a/src/settings/scrobblersettingspage.ui +++ b/src/settings/scrobblersettingspage.ui @@ -6,8 +6,8 @@