From df265f7f4cfb8343197ed86f5c20fb2d14c51b0f Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 12 Feb 2020 09:01:31 -0500 Subject: Localization and library system in progress --- .gitignore | 2 + AleePlayer.desktop | 4 +- AleePlayer.pro | 6 +- AleePlayer_en_CA.ts | 3 - about.cpp | 19 +++++ about.h | 17 +++++ about.ui | 38 +++++----- library.cpp | 54 ++++++++++++++ library.h | 39 ++++++++++ main.cpp | 24 +++++- player.cpp | 51 ++++++++----- player.h | 27 ++++++- player.ui | 4 +- translations/en_CA.ts | 202 ++++++++++++++++++++++++++++++++++++++++++++++++++ translations/fr_CA.ts | 202 ++++++++++++++++++++++++++++++++++++++++++++++++++ translations/vi_VN.ts | 202 ++++++++++++++++++++++++++++++++++++++++++++++++++ 16 files changed, 848 insertions(+), 46 deletions(-) delete mode 100644 AleePlayer_en_CA.ts create mode 100644 library.cpp create mode 100644 library.h create mode 100644 translations/en_CA.ts create mode 100644 translations/fr_CA.ts create mode 100644 translations/vi_VN.ts diff --git a/.gitignore b/.gitignore index c74505c..3f0e9d0 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,5 @@ compile_commands.json *creator.user* build + +android diff --git a/AleePlayer.desktop b/AleePlayer.desktop index 8c5b8aa..da6d3a5 100644 --- a/AleePlayer.desktop +++ b/AleePlayer.desktop @@ -1,7 +1,7 @@ [Desktop Entry] Type=Application -Name=AleePlayer -Comment=Music Player by Alee Productions +Name=Alee Music Player +Comment=Music Player Exec=AleePlayer Icon=ALP Categories=Audio; diff --git a/AleePlayer.pro b/AleePlayer.pro index c7ffdff..ecb90de 100644 --- a/AleePlayer.pro +++ b/AleePlayer.pro @@ -17,11 +17,13 @@ DEFINES += QT_DEPRECATED_WARNINGS SOURCES += \ about.cpp \ + library.cpp \ main.cpp \ player.cpp HEADERS += \ about.h \ + library.h \ player.h FORMS += \ @@ -29,7 +31,9 @@ FORMS += \ player.ui TRANSLATIONS += \ - AleePlayer_en_CA.ts + translations/en_CA.ts \ + translations/fr_CA.ts \ + translations/vi_VN.ts unix:!macx:!android { diff --git a/AleePlayer_en_CA.ts b/AleePlayer_en_CA.ts deleted file mode 100644 index 3cee958..0000000 --- a/AleePlayer_en_CA.ts +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/about.cpp b/about.cpp index e3fde67..250945d 100644 --- a/about.cpp +++ b/about.cpp @@ -1,5 +1,23 @@ +/* + AleePlayer: Music player in Qt + Copyright (C) 2020 Alee Productions + + This program 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ #include "about.h" #include "ui_about.h" +#include About::About(QWidget *parent) : QDialog(parent), @@ -16,5 +34,6 @@ About::About(QWidget *parent) : About::~About() { + qDebug() << "Closing about dialog"; delete ui; } diff --git a/about.h b/about.h index a88d2ac..595f3f5 100644 --- a/about.h +++ b/about.h @@ -1,3 +1,20 @@ +/* + AleePlayer: Music player in Qt + Copyright (C) 2020 Alee Productions + + This program 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ #ifndef ABOUT_H #define ABOUT_H diff --git a/about.ui b/about.ui index 6de397b..572e794 100644 --- a/about.ui +++ b/about.ui @@ -23,7 +23,7 @@ - About + About - Alee Music Player false @@ -53,7 +53,7 @@ - AleePlayer 0.2 by Alee Productions + Alee Music Player 0.2 by Alee Productions Qt::AlignCenter @@ -111,23 +111,23 @@ <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Noto Sans'; font-size:10pt; font-weight:400; font-style:normal;"> -<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Noto Sans';"><br /></p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Sans';"> AleePlayer: Music player in Qt </span></p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Sans';"> Copyright (C) 2020 Alee Productions</span></p> -<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Noto Sans';"><br /></p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Sans';"> This program is free software: you can redistribute it and/or modify</span></p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Sans';"> it under the terms of the GNU General Public License as published by</span></p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Sans';"> the Free Software Foundation, either version 3 of the License, or</span></p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Sans';"> (at your option) any later version.</span></p> -<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Noto Sans';"><br /></p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Sans';"> This program is distributed in the hope that it will be useful,</span></p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Sans';"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span></p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Sans';"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Sans';"> GNU General Public License for more details.</span></p> -<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Noto Sans';"><br /></p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Sans';"> You should have received a copy of the GNU General Public License</span></p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Sans';"> along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.</span></p> -<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Noto Sans';"><br /></p></body></html> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> Alee Music Player: An audio player written in Qt</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> Copyright (C) 2020 Alee Productions</p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> This program is free software: you can redistribute it and/or modify</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> it under the terms of the GNU General Public License as published by</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> the Free Software Foundation, either version 3 of the License, or</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> (at your option) any later version.</p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> This program is distributed in the hope that it will be useful,</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> but WITHOUT ANY WARRANTY; without even the implied warranty of</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> GNU General Public License for more details.</p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> You should have received a copy of the GNU General Public License</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.</p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html> diff --git a/library.cpp b/library.cpp new file mode 100644 index 0000000..aa3e8c1 --- /dev/null +++ b/library.cpp @@ -0,0 +1,54 @@ +/* + AleePlayer: Music player in Qt + Copyright (C) 2020 Alee Productions + + This program 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ +#include "library.h" + +Library::Library(QObject *parent) + : QAbstractListModel(parent) +{ +} + +int Library::rowCount(const QModelIndex &parent) const +{ + // For list models only the root node (an invalid parent) should return the list's size. For all + // other (valid) parents, rowCount() should return 0 so that it does not become a tree model. + if (parent.isValid()) + return 0; + + return 3; + +} + +QVariant Library::data(const QModelIndex &index, int role) const +{ + + if (!index.isValid()) + return QVariant(); + + if (role == Qt::DisplayRole) { + switch (index.row()) { + case 0: + return "Item 1"; + case 1: + return "Item 2"; + case 2: + return "Item 3"; + } + } + + return QVariant(); +} diff --git a/library.h b/library.h new file mode 100644 index 0000000..9858d9f --- /dev/null +++ b/library.h @@ -0,0 +1,39 @@ +/* + AleePlayer: Music player in Qt + Copyright (C) 2020 Alee Productions + + This program 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ +#ifndef LIBRARY_H +#define LIBRARY_H + +#include +#include + +class Library : public QAbstractListModel +{ + Q_OBJECT + +public: + explicit Library(QObject *parent = nullptr); + + // Basic functionality: + int rowCount(const QModelIndex &parent = QModelIndex()) const override; + + QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; + +private: +}; + +#endif // LIBRARY_H diff --git a/main.cpp b/main.cpp index 063d45d..e9f00e6 100644 --- a/main.cpp +++ b/main.cpp @@ -1,6 +1,24 @@ +/* + AleePlayer: Music player in Qt + Copyright (C) 2020 Alee Productions + + This program 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ #include "player.h" #include #include +#include #include #include @@ -14,12 +32,16 @@ int main(int argc, char *argv[]) //QDir directory(QDir::homePath() + "/.alee-productions/AleePlayer"); - //File file(directory.absoluteFilePath("test.txt")); + //File file(directory.absoluteFilePath("test.txt")); //file.open(QFile::WriteOnly); //file.close(); QApplication a(argc, argv); + QTranslator translator; + translator.load(QLocale(), "/home/andrew/Documents/GitHub/AleePlayer/translations/"); + a.installTranslator(&translator); + Player musicPlayer; musicPlayer.show(); return a.exec(); diff --git a/player.cpp b/player.cpp index 632e9e2..fdc41c7 100644 --- a/player.cpp +++ b/player.cpp @@ -1,28 +1,41 @@ -#include -#include -#include -#include +/* + AleePlayer: Music player in Qt + Copyright (C) 2020 Alee Productions + + This program 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ #include "player.h" #include "ui_player.h" #include "about.h" +#include "library.h" void Player::loadFile() { - QString mFile; QMessageBox msgbox; - mFile = QFileDialog::getOpenFileName(this, "Open any audio file", QDir::homePath(), tr("Audio Files (*.mp3 *.wav *.ogg *.flac)")); + mFile = QFileDialog::getOpenFileName(this, tr("Open any audio file"), QDir::homePath(), tr("Audio Files (*.mp3 *.wav *.ogg *.flac *.mp4)")); if (mFile == NULL) { - qDebug() << "File cannot be found"; - msgbox.setWindowTitle("Uh oh! An error has occured!"); - msgbox.setText("File is invalid. Maybe try loading a valid audio file."); + qDebug() << tr("File cannot be found"); + msgbox.setWindowTitle(tr("Uh oh! An error has occured!")); + msgbox.setText(tr("File is invalid. Maybe try loading a valid audio file.")); msgbox.setIcon(QMessageBox::Critical); msgbox.exec(); return; } else { mPlayer->setMedia(QUrl::fromLocalFile(mFile)); - qDebug() << "Opening" << mFile; - msgbox.setWindowTitle("Success!"); - msgbox.setText("This audio file has been loaded."); + qDebug() << tr("Opening") << mFile; + msgbox.setWindowTitle(tr("Success!")); + msgbox.setText(tr("This audio file has been loaded.")); msgbox.setIcon(QMessageBox::Information); msgbox.exec(); ui->volumeSlider->setValue(100); @@ -39,6 +52,8 @@ Player::Player(QWidget *parent) { ui->setupUi(this); + ui->library->setModel(new Library()); + connect(mPlayer, &QMediaPlayer::positionChanged, this, &Player::on_positionChanged); connect(mPlayer, &QMediaPlayer::durationChanged, this, &Player::on_durationChanged); @@ -46,7 +61,7 @@ Player::Player(QWidget *parent) Player::~Player() { - qInfo() << "Closing AleePlayer..."; + qInfo() << tr("Closing AleePlayer..."); mPlayer->deleteLater(); delete ui; } @@ -62,20 +77,22 @@ void Player::on_playButton_pressed() ui->volumeSlider->setEnabled(true); if (mPlayer->state() == mPlayer->PlayingState) { - qDebug() << "Pausing music..."; + qDebug() << tr("Pausing music..."); mPlayer->pause(); ui->playButton->setText(tr("Play")); } else { - qDebug() << "Playing music..."; + qDebug() << tr("Playing music..."); mPlayer->play(); ui->playButton->setText(tr("Pause")); + amount++; + //qDebug() << "You have pressed play for" << amount << "time(s)."; } } void Player::on_stopButton_pressed() { - qInfo() << "Stopping music..."; + qInfo() << tr("Stopping music..."); mPlayer->stop(); ui->volumeSlider->setEnabled(false); ui->volumeSlider->setValue(100); @@ -85,7 +102,7 @@ void Player::on_stopButton_pressed() void Player::on_actionAbout_triggered() { - qDebug() << "Opening dialog"; + qDebug() << tr("Opening about dialog"); About about; about.exec(); } diff --git a/player.h b/player.h index 69d035e..f0cb0b9 100644 --- a/player.h +++ b/player.h @@ -1,8 +1,28 @@ +/* + AleePlayer: Music player in Qt + Copyright (C) 2020 Alee Productions + + This program 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ #ifndef PLAYER_H #define PLAYER_H #include - +#include #include +#include +#include +#include QT_BEGIN_NAMESPACE namespace Ui { class Player; } @@ -17,7 +37,10 @@ public: ~Player(); QMediaPlayer* mPlayer = new QMediaPlayer(); + int amount = 0; + private slots: + void on_actionQuit_triggered(); void on_playButton_pressed(); @@ -42,5 +65,7 @@ private slots: private: Ui::Player *ui; + QString mFile; + QStringListModel *model; }; #endif // PLAYER_H diff --git a/player.ui b/player.ui index 6127b82..a33d78a 100644 --- a/player.ui +++ b/player.ui @@ -11,7 +11,7 @@ - AleePlayer + Alee Music Player @@ -51,7 +51,7 @@ - + diff --git a/translations/en_CA.ts b/translations/en_CA.ts new file mode 100644 index 0000000..090d22b --- /dev/null +++ b/translations/en_CA.ts @@ -0,0 +1,202 @@ + + + + + About + + + About - Alee Music Player + + + + + Alee Music Player 0.2 by Alee Productions + + + + + Licensed with GPL-3.0 + + + + + <html><head/><body><p><a href="https://alee-productions.xyz"><span style=" text-decoration: underline; color:#007af4;">Website</span></a></p></body></html> + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Noto Sans'; font-size:10pt; font-weight:400; font-style:normal;"> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> Alee Music Player: An audio player written in Qt</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> Copyright (C) 2020 Alee Productions</p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> This program is free software: you can redistribute it and/or modify</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> it under the terms of the GNU General Public License as published by</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> the Free Software Foundation, either version 3 of the License, or</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> (at your option) any later version.</p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> This program is distributed in the hope that it will be useful,</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> but WITHOUT ANY WARRANTY; without even the implied warranty of</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> GNU General Public License for more details.</p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> You should have received a copy of the GNU General Public License</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.</p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html> + + + + + Player + + + Alee Music Player + + + + + Library + + + + + Playlist + + + + + Stop + + + + + Browse + + + + + Volume + + + + + Title + + + + + + + Play + + + + + File + + + + + View + + + + + Quit + + + + + Ctrl+Q + + + + + About + + + + + Open + + + + + Ctrl+O + + + + + Open any audio file + + + + + Audio Files (*.mp3 *.wav *.ogg *.flac *.mp4) + + + + + File cannot be found + + + + + Uh oh! An error has occured! + + + + + File is invalid. Maybe try loading a valid audio file. + + + + + Opening + + + + + Success! + + + + + This audio file has been loaded. + + + + + Closing AleePlayer... + + + + + Pausing music... + + + + + Playing music... + + + + + Pause + + + + + Stopping music... + + + + + Opening about dialog + + + + diff --git a/translations/fr_CA.ts b/translations/fr_CA.ts new file mode 100644 index 0000000..ce4ff90 --- /dev/null +++ b/translations/fr_CA.ts @@ -0,0 +1,202 @@ + + + + + About + + + About - Alee Music Player + + + + + Alee Music Player 0.2 by Alee Productions + + + + + Licensed with GPL-3.0 + + + + + <html><head/><body><p><a href="https://alee-productions.xyz"><span style=" text-decoration: underline; color:#007af4;">Website</span></a></p></body></html> + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Noto Sans'; font-size:10pt; font-weight:400; font-style:normal;"> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> Alee Music Player: An audio player written in Qt</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> Copyright (C) 2020 Alee Productions</p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> This program is free software: you can redistribute it and/or modify</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> it under the terms of the GNU General Public License as published by</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> the Free Software Foundation, either version 3 of the License, or</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> (at your option) any later version.</p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> This program is distributed in the hope that it will be useful,</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> but WITHOUT ANY WARRANTY; without even the implied warranty of</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> GNU General Public License for more details.</p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> You should have received a copy of the GNU General Public License</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.</p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html> + + + + + Player + + + Alee Music Player + Alee Music Player + + + + Library + Bibliothèque + + + + Playlist + Liste de chansons + + + + Stop + Arrêt + + + + Browse + Feuilleter + + + + Volume + Le volume + + + + Title + Titre + + + + + + Play + Jouer + + + + File + Fichier + + + + View + Vue + + + + Quit + Quitter + + + + Ctrl+Q + Ctrl + Q + + + + About + À propos du logiciel + + + + Open + Ouvrir + + + + Ctrl+O + Ctrl+O + + + + Open any audio file + Ouvrir n'importe quel fichier audio + + + + Audio Files (*.mp3 *.wav *.ogg *.flac *.mp4) + Fichiers Audio (*.mp3 *.wav *.ogg *.flac *.mp4) + + + + File cannot be found + Le fichier est introuvable + + + + Uh oh! An error has occured! + Euh oh! Une erreur est survenue! + + + + File is invalid. Maybe try loading a valid audio file. + Le fichier n'est pas valide. Essayez peut-être de charger un fichier audio valide. + + + + Opening + Overture + + + + Success! + Succès! + + + + This audio file has been loaded. + Ce fichier audio a été chargé. + + + + Closing AleePlayer... + Fermeture AleePlayer... + + + + Pausing music... + Pause la musique... + + + + Playing music... + Jouer la musique... + + + + Pause + Pause + + + + Stopping music... + Arrêtez la musique... + + + + Opening about dialog + Boîte de dialogue d'ouverture + + + diff --git a/translations/vi_VN.ts b/translations/vi_VN.ts new file mode 100644 index 0000000..85ffb90 --- /dev/null +++ b/translations/vi_VN.ts @@ -0,0 +1,202 @@ + + + + + About + + + About - Alee Music Player + + + + + Alee Music Player 0.2 by Alee Productions + + + + + Licensed with GPL-3.0 + + + + + <html><head/><body><p><a href="https://alee-productions.xyz"><span style=" text-decoration: underline; color:#007af4;">Website</span></a></p></body></html> + <html><head/><body><p><a href="https://alee-productions.xyz"><span style=" text-decoration: underline; color:#007af4;">Trang Web</span></a></p></body></html> + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Noto Sans'; font-size:10pt; font-weight:400; font-style:normal;"> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> Alee Music Player: An audio player written in Qt</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> Copyright (C) 2020 Alee Productions</p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> This program is free software: you can redistribute it and/or modify</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> it under the terms of the GNU General Public License as published by</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> the Free Software Foundation, either version 3 of the License, or</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> (at your option) any later version.</p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> This program is distributed in the hope that it will be useful,</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> but WITHOUT ANY WARRANTY; without even the implied warranty of</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> GNU General Public License for more details.</p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> You should have received a copy of the GNU General Public License</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.</p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html> + + + + + Player + + + Alee Music Player + + + + + Library + Thư viện + + + + Playlist + Hàng phát + + + + Stop + Dừng lại + + + + Browse + Duyệt + + + + Volume + Âm lượng + + + + Title + Tiêu đề + + + + + + Play + Phát + + + + File + Tệp + + + + View + Xem + + + + Quit + Thoát + + + + Ctrl+Q + Ctrl+Q + + + + About + Giới Thiệu + + + + Open + Mở + + + + Ctrl+O + + + + + Open any audio file + Mở bất kỳ tệp nhạc nào + + + + Audio Files (*.mp3 *.wav *.ogg *.flac *.mp4) + Tệp nhạc (*.mp3 *.wav *.ogg *.flac *.mp4) + + + + File cannot be found + Không thể tìm tệp + + + + Uh oh! An error has occured! + Chà, một lỗi đã xảy ra! + + + + File is invalid. Maybe try loading a valid audio file. + Tệp không hợp lệ. Hãy tải một tệp nhạc hợp lệ. + + + + Opening + Đang mở + + + + Success! + Tốt đẹp! + + + + This audio file has been loaded. + Tệp nhạc đã bị tải. + + + + Closing AleePlayer... + Đang thoát AleePlayer... + + + + Pausing music... + Đang tạm dừng nhạc... + + + + Playing music... + Đang phát nhạc... + + + + Pause + Tạm dừng + + + + Stopping music... + Đang dừng lại nhắc... + + + + Opening about dialog + Đang mở cửa sổ giới thiệu + + + -- cgit v1.2.3