About project
Babe will handle your whole music collection,
letting you create custom playlists to
organize your music.
Last commit
Files in
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 | diff -urN babe-1.2.1/src/dialogs/about.cpp babe-1.2.1-patched/src/dialogs/about.cpp
--- babe-1.2.1/src/dialogs/about.cpp 2018-01-29 21:16:31.000000000 +0300
+++ babe-1.2.1-patched/src/dialogs/about.cpp 2018-02-25 03:43:05.344975786 +0300
@@ -29,10 +29,10 @@
ui->icon->setPixmap(QPixmap(":Data/data/banner.png"));
- ui->about->appendPlainText("Babe..\nTiny Qt Music Player\nVersion: 1.0\nBabe is developed and designed by Camilo Higuita \nThis is a free and open source app, so feel free to fork it, submit code or redistribute it");
+ ui->about->appendPlainText(i18n("Babe..\nTiny Qt Music Player\nVersion: 1.0\nBabe is developed and designed by Camilo Higuita \nThis is a free and open source app, so feel free to fork it, submit code or redistribute it"));
//connect(ui->about,SIGNAL(clicked()),this,SLOT(labelClicked()));
this->setWindowIcon(QIcon(":Data/data/48-apps-babe.svg"));
- this->setWindowIconText("About Babe...");
+ this->setWindowIconText(i18n("About Babe..."));
}
diff -urN babe-1.2.1/src/settings/settings.cpp babe-1.2.1-patched/src/settings/settings.cpp
--- babe-1.2.1/src/settings/settings.cpp 2018-01-29 21:16:31.000000000 +0300
+++ babe-1.2.1-patched/src/settings/settings.cpp 2018-02-25 03:46:34.091645332 +0300
@@ -190,7 +190,7 @@
void settings::on_open_clicked()
{
- QString url = QFileDialog::getExistingDirectory(this,"Select folder...", BAE::MusicPath);
+ QString url = QFileDialog::getExistingDirectory(this,i18n("Select folder..."), BAE::MusicPath);
if (!url.isEmpty())
{
@@ -286,7 +286,7 @@
void settings::fetchArt()
{
this->startBrainz(500);
- BabeWindow::nof->notify("Fetching art","this might take some time depending on your collection size and internet connection speed...");
+ BabeWindow::nof->notify(i18n("Fetching art"),i18n("this might take some time depending on your collection size and internet connection speed..."));
ui->label->show();
movie->start();
}
diff -urN babe-1.2.1/src/views/babewindow.cpp babe-1.2.1-patched/src/views/babewindow.cpp
--- babe-1.2.1/src/views/babewindow.cpp 2018-01-29 21:16:31.000000000 +0300
+++ babe-1.2.1-patched/src/views/babewindow.cpp 2018-02-25 03:43:05.344975786 +0300
@@ -166,12 +166,12 @@
connect(this->connection, &CollectionDB::artistsCleaned, [this](int amount)
{
- this->nof->notify(QString::number(amount)+tr(" Artists cleaned up"), "");
+ this->nof->notify(QString::number(amount)+i18n(" Artists cleaned up"), "");
});
connect(this->connection, &CollectionDB::albumsCleaned, [this](int amount)
{
- this->nof->notify(QString::number(amount)+tr(" Albums cleaned up"), "");
+ this->nof->notify(QString::number(amount)+i18n(" Albums cleaned up"), "");
});
this->playlistTable = new PlaylistsView(this);
@@ -221,9 +221,9 @@
this->mainList->enableRowColoring(true);
this->mainList->enableRowDragging(true);
this->mainList->enablePreview(false);
- this->mainList->setAddMusicMsg(tr("\nDrag and drop music here!"),"face-ninja");
+ this->mainList->setAddMusicMsg(i18n("\nDrag and drop music here!"),"face-ninja");
- auto contextAction = new QAction(tr("Context..."));
+ auto contextAction = new QAction(i18n("Context..."));
connect(contextAction, &QAction::triggered, [this]()
{
this->ui->search->setText(this->mainList->currentIndex().data().toString());
@@ -274,7 +274,7 @@
this->queueList->enableRowColoring(true);
this->queueList->enableRowDragging(true);
this->queueList->enablePreview(true);
- this->queueList->setAddMusicMsg(tr("\nQueue list"),"face-ninja");
+ this->queueList->setAddMusicMsg(i18n("\nQueue list"),"face-ninja");
connect(this->queueList, &BabeTable::tableWidget_doubleClicked, [this] (BAE::DB_LIST list)
{
@@ -454,7 +454,7 @@
{
this->mainLayout = new QHBoxLayout;
- this->mainToolbar = new QToolBar(tr("Views"), this);
+ this->mainToolbar = new QToolBar(i18n("Views"), this);
this->mainToolbar->setMovable(false);
connect(this->mainToolbar, &QToolBar::topLevelChanged, [this](bool topLevel)
{
@@ -569,8 +569,8 @@
"QSlider::sub-page:horizontal:disabled {background: transparent;border-color: #999;}QSlider::add-page:horizontal:disabled {background: transparent;border-color: #999;}"
"QSlider::handle:horizontal:disabled {background: transparent;border: 1px solid #aaa;border-radius: 4px;}").arg(this->palette().color(QPalette::Highlight).name()));
- ui->hide_sidebar_btn->setToolTip(tr("Go Mini"));
- ui->shuffle_btn->setToolTip(tr("Shuffle"));
+ ui->hide_sidebar_btn->setToolTip(i18n("Go Mini"));
+ ui->shuffle_btn->setToolTip(i18n("Shuffle"));
playlistWidget_layout->addWidget(album_art, 0,0,Qt::AlignTop);
playlistWidget_layout->addWidget(ui->controls, 0,0,Qt::AlignTop);
@@ -609,7 +609,7 @@
this->mainLayout->removeWidget(this->rightFrame);
this->rightFrame->setWindowFlags(Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint);
- this->rightFrame->setWindowTitle(tr("Playlist"));
+ this->rightFrame->setWindowTitle(i18n("Playlist"));
this->rightFrame->show();
this->rightFrame->setMinimumHeight(static_cast<int>(ALBUM_SIZE)*2);
@@ -674,23 +674,23 @@
void BabeWindow::setUpMenuBar()
{
- this->popPanel = new QAction(tr("Pop panel out"), this);
+ this->popPanel = new QAction(i18n("Pop panel out"), this);
this->popPanel->setShortcut(QKeySequence("Ctrl+p"));
connect(popPanel, &QAction::triggered, [this]()
{
if(this->playlistSta == POSITION::OUT)
{
this->movePanel(POSITION::IN);
- this->popPanel->setText(tr("Pop panel out"));
+ this->popPanel->setText(i18n("Pop panel out"));
}
else if (this->playlistSta == POSITION::IN)
{
this->movePanel(POSITION::OUT);
- this->popPanel->setText(tr("Pop panel in"));
+ this->popPanel->setText(i18n("Pop panel in"));
}
});
- auto moveIt= new QAction(tr("Move to left"), this);
+ auto moveIt= new QAction(i18n("Move to left"), this);
moveIt->setShortcut(QKeySequence("Ctrl+m"));
connect(moveIt, &QAction::triggered,[=]()
{
@@ -699,39 +699,39 @@
if(this->playlistPos == POSITION::RIGHT)
{
this->movePanel(POSITION::LEFT);
- moveIt->setText(tr("Move to right"));
+ moveIt->setText(i18n("Move to right"));
}else if(this->playlistPos == POSITION::LEFT)
{
this->movePanel(POSITION::RIGHT);
- moveIt->setText(tr("Move to left"));
+ moveIt->setText(i18n("Move to left"));
}
});
- auto hideTimeLabels = new QAction(tr("Hide time labels"), this);
+ auto hideTimeLabels = new QAction(i18n("Hide time labels"), this);
connect (hideTimeLabels, &QAction::triggered, [hideTimeLabels, this]()
{
if(ui->time->isVisible() && ui->duration->isVisible())
{
ui->time->setVisible(false);
ui->duration->setVisible(false);
- hideTimeLabels->setText(tr("Show time labels"));
+ hideTimeLabels->setText(i18n("Show time labels"));
}else
{
ui->time->setVisible(true);
ui->duration->setVisible(true);
- hideTimeLabels->setText(tr("Hide time labels"));
+ hideTimeLabels->setText(i18n("Hide time labels"));
}
});
- auto refreshIt = new QAction(tr("Calibrate..."), this);
+ auto refreshIt = new QAction(i18n("Calibrate..."), this);
refreshIt->setShortcut(QKeySequence("Ctrl+b"));
- refreshIt->setToolTip(tr("Clean & play Babe'd tracks"));
+ refreshIt->setToolTip(i18n("Clean & play Babe'd tracks"));
connect(refreshIt, &QAction::triggered, [this]() { calibrateMainList(); });
- auto clearIt = new QAction(tr("Clear out..."), this);
+ auto clearIt = new QAction(i18n("Clear out..."), this);
clearIt->setShortcut(QKeySequence("Ctrl+e"));
- clearIt->setToolTip(tr("Remove unselected tracks"));
+ clearIt->setToolTip(i18n("Remove unselected tracks"));
connect(clearIt, &QAction::triggered, [this]()
{
this->clearMainList();
@@ -742,34 +742,34 @@
}
});
- auto cleanIt = new QAction(tr("Clean..."),this);
+ auto cleanIt = new QAction(i18n("Clean..."),this);
cleanIt->setShortcut(QKeySequence("Ctrl+c"));
- cleanIt->setToolTip(tr("Remove repeated tracks"));
+ cleanIt->setToolTip(i18n("Remove repeated tracks"));
connect(cleanIt, &QAction::triggered, [this]()
{
this->mainList->removeRepeated();
});
- auto clearQueue = new QAction(tr("Clear Queue..."), this);
- clearQueue->setToolTip(tr("Remove queued tracks"));
+ auto clearQueue = new QAction(i18n("Clear Queue..."), this);
+ clearQueue->setToolTip(i18n("Remove queued tracks"));
connect(clearQueue, &QAction::triggered, [this]()
{
this->removeQueuedTracks();
});
- auto open = new QAction(tr("Open..."), this);
+ auto open = new QAction(i18n("Open..."), this);
open->setShortcut(QKeySequence("Ctrl+o"));
connect(open, &QAction::triggered, this, &BabeWindow::on_open_btn_clicked);
- auto fileMenu = this->menuBar()->addMenu(tr("&File"));
+ auto fileMenu = this->menuBar()->addMenu(i18n("&File"));
fileMenu->addAction(open);
- auto panelMenu = this->menuBar()->addMenu(tr("&Panel"));
+ auto panelMenu = this->menuBar()->addMenu(i18n("&Panel"));
panelMenu->addAction(moveIt);
panelMenu->addAction(popPanel);
panelMenu->addAction(hideTimeLabels);
- auto playlistMenu = this->menuBar()->addMenu(tr("&Playlist"));
+ auto playlistMenu = this->menuBar()->addMenu(i18n("&Playlist"));
playlistMenu->addAction(refreshIt);
playlistMenu->addAction(clearIt);
playlistMenu->addAction(cleanIt);
@@ -777,18 +777,18 @@
playlistMenu->addAction(clearQueue);
- auto toolBarText = new QAction(tr("Show text"), this);
+ auto toolBarText = new QAction(i18n("Show text"), this);
connect(toolBarText, &QAction::triggered, [toolBarText,this]()
{
switch(this->mainToolbar->toolButtonStyle())
{
case Qt::ToolButtonStyle::ToolButtonIconOnly:
this->mainToolbar->setToolButtonStyle(Qt::ToolButtonStyle::ToolButtonTextBesideIcon);
- toolBarText->setText(tr("Hide text"));
+ toolBarText->setText(i18n("Hide text"));
break;
case Qt::ToolButtonStyle::ToolButtonTextBesideIcon:
this->mainToolbar->setToolButtonStyle(Qt::ToolButtonStyle::ToolButtonIconOnly);
- toolBarText->setText(tr("Show text"));
+ toolBarText->setText(i18n("Show text"));
break;
default:break;
}
@@ -797,10 +797,10 @@
});
- auto toolBarMenu = this->menuBar()->addMenu(tr("&Toolbar"));
+ auto toolBarMenu = this->menuBar()->addMenu(i18n("&Toolbar"));
toolBarMenu->addAction(toolBarText);
- auto sizes = toolBarMenu->addMenu(tr("Icon size"));
+ auto sizes = toolBarMenu->addMenu(i18n("Icon size"));
auto iconSize16 = new QAction("16", this);
auto iconSize22 = new QAction("22", this);
auto iconSize32 = new QAction("32", this);
@@ -814,11 +814,11 @@
this->setToolbarIconSize(static_cast<uint>(size));
});
- auto position = toolBarMenu->addMenu(tr("Position"));
- auto top = new QAction(tr("Top"), this);
- auto bottom = new QAction(tr("Bottom"), this);
- auto left = new QAction(tr("Left"), this);
- auto right = new QAction(tr("Right"), this);
+ auto position = toolBarMenu->addMenu(i18n("Position"));
+ auto top = new QAction(i18n("Top"), this);
+ auto bottom = new QAction(i18n("Bottom"), this);
+ auto left = new QAction(i18n("Left"), this);
+ auto right = new QAction(i18n("Right"), this);
position->addAction(top);
position->addAction(bottom);
position->addAction(left);
@@ -838,29 +838,29 @@
this->mainToolbar->show();
});
- auto expandMode = new QAction(tr("Collection mode"), this);
+ auto expandMode = new QAction(i18n("Collection mode"), this);
connect(expandMode, &QAction::triggered, this, &BabeWindow::expand);
- auto playlistMode = new QAction(tr("Playlist mode"), this);
+ auto playlistMode = new QAction(i18n("Playlist mode"), this);
connect(playlistMode, &QAction::triggered, this, &BabeWindow::go_playlistMode);
- auto miniMode = new QAction(tr("Mini mode"), this);
+ auto miniMode = new QAction(i18n("Mini mode"), this);
connect(miniMode, &QAction::triggered, this, &BabeWindow::go_mini);
- auto tracksView = new QAction(tr("Tracks"), this);
+ auto tracksView = new QAction(i18n("Tracks"), this);
connect(tracksView, &QAction::triggered, this, &BabeWindow::collectionView);
- auto albumsView = new QAction(tr("Albums"), this);
+ auto albumsView = new QAction(i18n("Albums"), this);
connect(albumsView, &QAction::triggered, this, &BabeWindow::albumsView);
- auto artistsView = new QAction(tr("Artists"), this);
+ auto artistsView = new QAction(i18n("Artists"), this);
connect(artistsView, &QAction::triggered, this, &BabeWindow::artistsView);
- auto playlistsView = new QAction(tr("Playlists"), this);
+ auto playlistsView = new QAction(i18n("Playlists"), this);
connect(playlistsView, &QAction::triggered, this, &BabeWindow::playlistsView);
- auto infosView = new QAction(tr("Info"), this);
+ auto infosView = new QAction(i18n("Info"), this);
connect(infosView, &QAction::triggered, this, &BabeWindow::infoView);
- auto rabbitsView = new QAction(tr("Rabbit"), this);
+ auto rabbitsView = new QAction(i18n("Rabbit"), this);
connect(rabbitsView, &QAction::triggered, this, &BabeWindow::rabbitView);
- auto viewMenu = this->menuBar()->addMenu(tr("&View"));
+ auto viewMenu = this->menuBar()->addMenu(i18n("&View"));
viewMenu->addAction(expandMode);
viewMenu->addAction(playlistMode);
viewMenu->addAction(miniMode);
@@ -872,7 +872,7 @@
viewMenu->addAction(infosView);
viewMenu->addAction(rabbitsView);
- auto moods = new QAction(tr("Assign Moods"), this);
+ auto moods = new QAction(i18n("Assign Moods"), this);
connect(moods, &QAction::triggered, [this]()
{
auto moodForm = new MoodForm(this);
@@ -880,40 +880,40 @@
moodForm->show();
});
- auto pulpoDeamon = new QAction(tr("Run Pulpo Deamon"), this);
+ auto pulpoDeamon = new QAction(i18n("Run Pulpo Deamon"), this);
connect(pulpoDeamon, &QAction::triggered, this->settings_widget, &settings::fetchArt);
- auto refreshCollection = new QAction(tr("Refresh Collection"), this);
+ auto refreshCollection = new QAction(i18n("Refresh Collection"), this);
connect(refreshCollection, &QAction::triggered, [this]
{
this->refreshTables({{TABLE::TRACKS, true}, {TABLE::ALBUMS, true}, {TABLE::ARTISTS, true}, {TABLE::PLAYLISTS, true}});
});
- auto cleanCollection = new QAction(tr("Clean up Collection"), this);
+ auto cleanCollection = new QAction(i18n("Clean up Collection"), this);
connect(cleanCollection, &QAction::triggered, [this]
{
if(this->connection->cleanAlbums())
this->connection->cleanArtists();
});
- auto settings = new QAction(tr("Settings"), this);
+ auto settings = new QAction(i18n("Settings"), this);
connect(settings, &QAction::triggered, this, &BabeWindow::settingsView);
- auto toolsMenu = this->menuBar()->addMenu(tr("&Tools"));
+ auto toolsMenu = this->menuBar()->addMenu(i18n("&Tools"));
toolsMenu->addAction(moods);
toolsMenu->addAction(pulpoDeamon);
toolsMenu->addAction(refreshCollection);
toolsMenu->addAction(cleanCollection);
toolsMenu->addAction(settings);
- auto aboutBabe = new QAction(tr("About Babe"), this);
+ auto aboutBabe = new QAction(i18n("About Babe"), this);
connect(aboutBabe, &QAction::triggered, this->settings_widget->about_ui, &About::show);
- auto aboutQt = new QAction(tr("About Qt"), this);
+ auto aboutQt = new QAction(i18n("About Qt"), this);
connect(aboutQt, &QAction::triggered, qApp, &QApplication::aboutQt);
- auto helpMenu = this->menuBar()->addMenu(tr("&Help"));
+ auto helpMenu = this->menuBar()->addMenu(i18n("&Help"));
helpMenu->addAction(aboutBabe);
helpMenu->addAction(aboutQt);
}
@@ -1137,8 +1137,8 @@
if(this->settings_widget->brainDeamon->isRunning())
{
QMessageBox msgBox;
- msgBox.setText(tr("Babe is still collecting important information about your collection."));
- msgBox.setInformativeText(tr("Do you want to quit?"));
+ msgBox.setText(i18n("Babe is still collecting important information about your collection."));
+ msgBox.setInformativeText(i18n("Do you want to quit?"));
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
msgBox.setDefaultButton(QMessageBox::No);
switch(msgBox.exec())
@@ -1167,7 +1167,7 @@
void BabeWindow::refreshTables(const QMap<BAE::TABLE, bool> &tableReset)
{
- nof->notify("Loading collection","this might take some time depending on your colleciton size");
+ nof->notify(i18n("Loading collection"),i18n("this might take some time depending on your colleciton size"));
for (auto table : tableReset.keys())
{
QString queryTxt;
@@ -1377,7 +1377,7 @@
animation->start();
- ui->hide_sidebar_btn->setToolTip(tr("Go Mini"));
+ ui->hide_sidebar_btn->setToolTip(i18n("Go Mini"));
}
@@ -1405,7 +1405,7 @@
animation->start();
- ui->hide_sidebar_btn->setToolTip(tr("Expand"));
+ ui->hide_sidebar_btn->setToolTip(i18n("Expand"));
}
void BabeWindow::go_playlistMode()
@@ -1438,7 +1438,7 @@
this->viewsWidget->setVisible(false);
- ui->hide_sidebar_btn->setToolTip(tr("Go Mini"));
+ ui->hide_sidebar_btn->setToolTip(i18n("Go Mini"));
}
}
@@ -1472,20 +1472,20 @@
if(this->shuffle_state == PLAY_MODE::REGULAR)
{
ui->shuffle_btn->setIcon(QIcon::fromTheme("media-playlist-shuffle"));
- ui->shuffle_btn->setToolTip(tr("Repeat"));
+ ui->shuffle_btn->setToolTip(i18n("Repeat"));
this->shuffle_state = PLAY_MODE::SHUFFLE;
}else if (this->shuffle_state == PLAY_MODE::SHUFFLE)
{
ui->shuffle_btn->setIcon(QIcon::fromTheme("media-playlist-repeat"));
- ui->shuffle_btn->setToolTip(tr("Consecutive"));
+ ui->shuffle_btn->setToolTip(i18n("Consecutive"));
this->shuffle_state = PLAY_MODE::REGULAR;
}
}
void BabeWindow::on_open_btn_clicked()
{
- QStringList files = QFileDialog::getOpenFileNames(this, tr("Select Music Files"),QDir().homePath()+"/Music/", tr("Audio (*.mp3 *.wav *.mp4 *.flac *.ogg *.m4a)"));
+ QStringList files = QFileDialog::getOpenFileNames(this, i18n("Select Music Files"),QDir().homePath()+"/Music/", i18n("Audio (*.mp3 *.wav *.mp4 *.flac *.ogg *.m4a)"));
if(!files.isEmpty()) this->appendFiles(files);
}
diff -urN babe-1.2.1/src/views/infoview.cpp babe-1.2.1-patched/src/views/infoview.cpp
--- babe-1.2.1/src/views/infoview.cpp 2018-01-29 21:16:31.000000000 +0300
+++ babe-1.2.1-patched/src/views/infoview.cpp 2018-02-25 03:43:05.344975786 +0300
@@ -323,5 +323,5 @@
void InfoView::on_save_clicked()
{
if(this->connection->lyricsTrack(this->track, this->ui->lyricsText->toHtml()))
- BabeWindow::nof->notify("Lyrics saved",this->track[BAE::KEY::TITLE]+" "+this->track[BAE::KEY::ARTIST]);
+ BabeWindow::nof->notify(i18n("Lyrics saved"),this->track[BAE::KEY::TITLE]+" "+this->track[BAE::KEY::ARTIST]);
}
diff -urN babe-1.2.1/src/views/playlistsview.cpp babe-1.2.1-patched/src/views/playlistsview.cpp
--- babe-1.2.1/src/views/playlistsview.cpp 2018-01-29 21:16:31.000000000 +0300
+++ babe-1.2.1-patched/src/views/playlistsview.cpp 2018-02-25 03:43:05.344975786 +0300
@@ -34,7 +34,7 @@
this->table = new BabeTable(this);
this->table->setFrameShape(QFrame::StyledPanel);
this->table->setFrameShadow(QFrame::Sunken);
- this->table->setAddMusicMsg("\nPlaylist is empty...","face-hug-right");
+ this->table->setAddMusicMsg(i18n("\nPlaylist is empty..."),"face-hug-right");
this->list = new QListWidget(this);
connect(this->list, SIGNAL(doubleClicked(QModelIndex)), list, SLOT(edit(QModelIndex)));
@@ -115,7 +115,7 @@
btnLayout->setContentsMargins(5, 0, 5, 0);
this->btnContainer->setLayout(btnLayout);
- btnLayout->addWidget(new QLabel("Playlists"));
+ btnLayout->addWidget(new QLabel(i18n("Playlists")));
btnLayout->addStretch();
btnLayout->addWidget(this->addBtn);
btnLayout->addWidget(this->removeBtn);
@@ -192,7 +192,7 @@
layout->addWidget(splitter, 0, 0);
- this->removeFromPlaylist = new QAction(tr("Remove from Playlist"), this->table);
+ this->removeFromPlaylist = new QAction(i18n("Remove from Playlist"), this->table);
connect(this->removeFromPlaylist, &QAction::triggered, [this]()
{
for(auto row : this->table->getSelectedRows(true))
@@ -223,47 +223,47 @@
{
auto mostPlayed = new QListWidgetItem;
mostPlayed->setIcon(QIcon::fromTheme("amarok_playcount"));
- mostPlayed->setText(tr("Most Played"));
+ mostPlayed->setText(i18n("Most Played"));
this->list->insertItem(PLAYLIST::LIST::MOSTPLAYED, mostPlayed);
auto favorites = new QListWidgetItem;
favorites->setIcon(QIcon::fromTheme("draw-star"));
- favorites->setText(tr("Favorites"));
+ favorites->setText(i18n("Favorites"));
this->list->insertItem(PLAYLIST::LIST::FAVORITES, favorites);
auto recent = new QListWidgetItem;
recent->setIcon(QIcon::fromTheme("filename-year-amarok"));
- recent->setText(tr("Recent"));
+ recent->setText(i18n("Recent"));
this->list->insertItem(PLAYLIST::LIST::RECENT, recent);
auto babes = new QListWidgetItem;
babes->setIcon(QIcon::fromTheme("love-amarok"));
- babes->setText(tr("Babes"));
+ babes->setText(i18n("Babes"));
this->list->insertItem(PLAYLIST::LIST::BABES, babes);
auto online = new QListWidgetItem;
online->setIcon(QIcon::fromTheme("internet-amarok"));
- online->setText(tr("Online"));
+ online->setText(i18n("Online"));
this->list->insertItem(PLAYLIST::LIST::ONLINE, online);
auto tags = new QListWidgetItem;
tags->setIcon(QIcon::fromTheme("tag"));
- tags->setText(tr("Tags"));
+ tags->setText(i18n("Tags"));
this->list->insertItem(PLAYLIST::LIST::TAGS, tags);
auto relations = new QListWidgetItem;
relations->setIcon(QIcon::fromTheme("similarartists-amarok"));
- relations->setText(tr("Relationships"));
+ relations->setText(i18n("Relationships"));
this->list->insertItem(PLAYLIST::LIST::RELATIONS, relations);
auto popular = new QListWidgetItem;
popular->setIcon(QIcon::fromTheme("office-chart-line"));
- popular->setText(tr("Popular"));
+ popular->setText(i18n("Popular"));
this->list->insertItem(PLAYLIST::LIST::POPULAR, popular);
auto genres = new QListWidgetItem;
genres->setIcon(QIcon::fromTheme("filename-track-amarok"));
- genres->setText(tr("Genres"));
+ genres->setText(i18n("Genres"));
this->list->insertItem(PLAYLIST::LIST::GENRES, genres);
}
@@ -398,7 +398,7 @@
void PlaylistsView::createPlaylist()
{
auto item = new QListWidgetItem;
- item->setText("new playlist");
+ item->setText(i18n("new playlist"));
item->setFlags(item->flags() | Qt::ItemIsEditable);
this->list->addItem(item);
this->currentPlaylist = "";
diff -urN babe-1.2.1/src/widget_models/babetable.cpp babe-1.2.1-patched/src/widget_models/babetable.cpp
--- babe-1.2.1/src/widget_models/babetable.cpp 2018-01-29 21:16:31.000000000 +0300
+++ babe-1.2.1-patched/src/widget_models/babetable.cpp 2018-02-25 03:43:05.344975786 +0300
@@ -82,32 +82,32 @@
this->contextMenu = new QMenu(this);
- auto babeIt = new QAction("Babe it \xe2\x99\xa1", this->contextMenu);
+ auto babeIt = new QAction(i18n("Babe it \xe2\x99\xa1"), this->contextMenu);
babeIt->setData(ACTION::BABEIT);
contextMenu->addAction(babeIt);
- auto queueIt = new QAction(tr("Queue"), this->contextMenu);
+ auto queueIt = new QAction(i18n("Queue"), this->contextMenu);
queueIt->setData(ACTION::QUEUEIT);
contextMenu->addAction(queueIt);
- QAction *sendEntry = this->contextMenu->addAction(tr("Send to phone..."));
+ QAction *sendEntry = this->contextMenu->addAction(i18n("Send to phone..."));
sendEntry->setData(ACTION::SENDTO);
sendToMenu = new QMenu(this->contextMenu);
sendEntry->setMenu(sendToMenu);
- auto infoIt = new QAction(tr("Info"), this->contextMenu);
+ auto infoIt = new QAction(i18n("Info"), this->contextMenu);
infoIt->setData(ACTION::INFOIT);
contextMenu->addAction(infoIt);
- auto editIt = new QAction(tr("Edit"), this->contextMenu);
+ auto editIt = new QAction(i18n("Edit"), this->contextMenu);
editIt->setData(ACTION::EDITIT);
contextMenu->addAction(editIt);
- auto removeIt = new QAction(tr("Remove"), this->contextMenu);
+ auto removeIt = new QAction(i18n("Remove"), this->contextMenu);
removeIt->setData(ACTION::REMOVEIT);
contextMenu->addAction(removeIt);
- auto addTo = new QAction(tr("Add to..."), this->contextMenu);
+ auto addTo = new QAction(i18n("Add to..."), this->contextMenu);
addTo->setData(ACTION::ADDTO);
contextMenu->addAction(addTo);
|