1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-02-01 20:06:53 +01:00

Merge pull request #4234 from Shedward/master

Translation, typos and mac build fixes for Vk.com plugin.
This commit is contained in:
John Maguire 2014-03-08 13:29:33 +01:00
commit 3adaa88c5b
4 changed files with 6 additions and 6 deletions

View File

@ -14,10 +14,10 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with Clementine. If not, see <http://www.gnu.org/licenses/>. along with Clementine. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "vkmusiccache.h" #include "vkmusiccache.h"
#include "vkservice.h" #include "vkservice.h"
#include <qmath.h>
#include <QDir> #include <QDir>
#include "core/application.h" #include "core/application.h"
@ -130,7 +130,7 @@ void VkMusicCache::DownloadNext() {
void VkMusicCache::DownloadProgress(qint64 bytesReceived, qint64 bytesTotal) { void VkMusicCache::DownloadProgress(qint64 bytesReceived, qint64 bytesTotal) {
if (bytesTotal) { if (bytesTotal) {
int progress = round(100 * bytesReceived / bytesTotal); int progress = qRound(100 * bytesReceived / bytesTotal);
app_->task_manager()->SetTaskProgress(task_id, progress, 100); app_->task_manager()->SetTaskProgress(task_id, progress, 100);
} }
} }

View File

@ -91,7 +91,7 @@ void VkSearchDialog::ReceiveResults(const SearchID& id, const MusicOwnerList& ow
popup->addTopLevelItem(createItem(own)); popup->addTopLevelItem(createItem(own));
} }
} else { } else {
popup->addTopLevelItem(new QTreeWidgetItem(QStringList(tr("Nothig found")))); popup->addTopLevelItem(new QTreeWidgetItem(QStringList(tr("Nothing found"))));
} }
popup->setCurrentItem(popup->topLevelItem(0)); popup->setCurrentItem(popup->topLevelItem(0));

View File

@ -148,7 +148,7 @@ Song MusicOwner::toOwnerRadio() const {
.arg(songs_count_) .arg(songs_count_)
.arg(screen_name_) .arg(screen_name_)
.arg(QString(name_).replace('/', '_')))); .arg(QString(name_).replace('/', '_'))));
song.set_artist(" " + QObject::tr("Group radio")); song.set_artist(" " + QObject::tr("Community Radio"));
song.set_valid(true); song.set_valid(true);
return song; return song;
} }

View File

@ -150,7 +150,7 @@
<item> <item>
<widget class="QToolButton" name="choose_path"> <widget class="QToolButton" name="choose_path">
<property name="text"> <property name="text">
<string>...</string> <string notr="true">...</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -171,7 +171,7 @@
<item> <item>
<widget class="QLineEdit" name="cache_filename"> <widget class="QLineEdit" name="cache_filename">
<property name="text"> <property name="text">
<string>%artist - %title</string> <string notr="true">%artist - %title</string>
</property> </property>
</widget> </widget>
</item> </item>