From dca857498e15d000b6ba27dd07380302a47d1fcc Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 4 Mar 2010 11:56:59 +0000 Subject: improved command line support git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1597 90c681e8-e032-0410-971d-27865f9a5e38 --- .../IncDecVolumeOption/incdecvolumeoption.cpp | 7 +-- .../IncDecVolumeOption/incdecvolumeoption.h | 6 +- src/qmmpui/commandlinemanager.cpp | 6 +- src/qmmpui/commandlinemanager.h | 5 +- src/qmmpui/commandlineoption.h | 5 +- src/qmmpui/generalhandler.cpp | 6 +- src/qmmpui/generalhandler.h | 6 +- src/ui/builtincommandlineoption.cpp | 55 +++++++++---------- src/ui/builtincommandlineoption.h | 8 +-- src/ui/mainwindow.cpp | 64 +++++++++++++--------- src/ui/qmmpstarter.cpp | 32 +++++++---- src/ui/translations/qmmp_cs.ts | 51 +++++++++-------- src/ui/translations/qmmp_de.ts | 51 +++++++++-------- src/ui/translations/qmmp_hu.ts | 47 +++++++++------- src/ui/translations/qmmp_it.ts | 51 +++++++++-------- src/ui/translations/qmmp_lt.ts | 51 +++++++++-------- src/ui/translations/qmmp_pl_PL.ts | 51 +++++++++-------- src/ui/translations/qmmp_pt_BR.ts | 47 +++++++++------- src/ui/translations/qmmp_ru.ts | 51 +++++++++-------- src/ui/translations/qmmp_tr.ts | 51 +++++++++-------- src/ui/translations/qmmp_uk_UA.ts | 51 +++++++++-------- src/ui/translations/qmmp_zh_CN.ts | 51 +++++++++-------- src/ui/translations/qmmp_zh_TW.ts | 51 +++++++++-------- 23 files changed, 443 insertions(+), 361 deletions(-) (limited to 'src') diff --git a/src/plugins/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.cpp b/src/plugins/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.cpp index 0fd9dcd4d..f113c4919 100644 --- a/src/plugins/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.cpp +++ b/src/plugins/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008 by Ilya Kotov * + * Copyright (C) 2008-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -46,10 +46,9 @@ const QString IncDecVolumeCommandLineOption::helpString() const ); } - -void IncDecVolumeCommandLineOption::executeCommand(const QString& opt_str, CommandLineManager* clm) +void IncDecVolumeCommandLineOption::executeCommand(const QString& opt_str, const QStringList &args) { - Q_UNUSED(clm); + Q_UNUSED(args); SoundCore *core = SoundCore::instance(); int volume = qMax(core->leftVolume(), core->rightVolume()); int balance = 0; diff --git a/src/plugins/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.h b/src/plugins/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.h index 8d6b10f7e..55c3579c4 100644 --- a/src/plugins/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.h +++ b/src/plugins/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008 by Ilya Kotov * + * Copyright (C) 2008-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -23,7 +23,7 @@ #include #include - +#include #include #include @@ -36,7 +36,7 @@ public: virtual bool identify(const QString& opt_str)const; virtual const QString name()const; virtual const QString helpString()const; - virtual void executeCommand(const QString& opt_str, CommandLineManager* clm); + virtual void executeCommand(const QString& opt_str, const QStringList &args); virtual QTranslator *createTranslator(QObject *parent); }; diff --git a/src/qmmpui/commandlinemanager.cpp b/src/qmmpui/commandlinemanager.cpp index e6b23ac4c..82c8d7861 100644 --- a/src/qmmpui/commandlinemanager.cpp +++ b/src/qmmpui/commandlinemanager.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008 by Ilya Kotov * + * Copyright (C) 2008-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -79,14 +79,14 @@ CommandLineManager::~CommandLineManager() { } -void CommandLineManager::executeCommand(const QString& opt_str) +void CommandLineManager::executeCommand(const QString& opt_str, const QStringList &args) { checkOptions(); foreach(CommandLineOption *opt, *m_options) { if (opt->identify(opt_str)) { - opt->executeCommand(opt_str, this); + opt->executeCommand(opt_str, args); return; } } diff --git a/src/qmmpui/commandlinemanager.h b/src/qmmpui/commandlinemanager.h index a985f260a..aa393ac42 100644 --- a/src/qmmpui/commandlinemanager.h +++ b/src/qmmpui/commandlinemanager.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2009 by Ilya Kotov * + * Copyright (C) 2008-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -43,8 +43,9 @@ public: /*! * Executes command \b opt_str * @param opt_str Command line option string + * @param args Command arguments */ - void executeCommand(const QString& opt_str); + void executeCommand(const QString& opt_str, const QStringList &args = QStringList()); /*! * Return \b true if command \b opt_str is supported, otherwise returns \b false */ diff --git a/src/qmmpui/commandlineoption.h b/src/qmmpui/commandlineoption.h index 9799d063e..edbd40a5c 100644 --- a/src/qmmpui/commandlineoption.h +++ b/src/qmmpui/commandlineoption.h @@ -25,6 +25,7 @@ class CommandLineManager; class QTranslator; class QString; class QObject; +class QStringList; /*! @brief Abstract base class of the command line plugins. * @author Vladimir Kuznetsov @@ -47,8 +48,10 @@ public: virtual const QString helpString()const = 0; /*! * Parses \b opt_str args(if needed), executes command. + * @param opt_str Command to execute + * @param args Command arguments */ - virtual void executeCommand(const QString& opt_str, CommandLineManager* clm) = 0; + virtual void executeCommand(const QString &opt_str, const QStringList &args) = 0; /*! * Creates translator with parent object \b parent */ diff --git a/src/qmmpui/generalhandler.cpp b/src/qmmpui/generalhandler.cpp index 744591243..fa8659046 100644 --- a/src/qmmpui/generalhandler.cpp +++ b/src/qmmpui/generalhandler.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2009 by Ilya Kotov * + * Copyright (C) 2008-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -102,10 +102,10 @@ bool GeneralHandler::visibilityControl() return FALSE; } -void GeneralHandler::executeCommand(const QString &opt_str) +void GeneralHandler::executeCommand(const QString &opt_str, const QStringList &args) { if (CommandLineManager::hasOption(opt_str)) - m_commandLineManager->executeCommand(opt_str); + m_commandLineManager->executeCommand(opt_str, args); } void GeneralHandler::addAction(QAction *action, MenuType type) diff --git a/src/qmmpui/generalhandler.h b/src/qmmpui/generalhandler.h index fa064f3ee..5d2e9cef0 100644 --- a/src/qmmpui/generalhandler.h +++ b/src/qmmpui/generalhandler.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2009 by Ilya Kotov * + * Copyright (C) 2008-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -24,6 +24,7 @@ #include #include #include +#include class QAction; class QMenu; @@ -76,8 +77,9 @@ public: /*! * Executes command by command line plugins * @param opt_str Command line option string + * @param args Command arguments */ - void executeCommand(const QString &opt_str); + void executeCommand(const QString &opt_str, const QStringList &args = QStringList()); /*! * Adds the newly created action to the menu with type \b type. * Menu with type \b type should be created first. diff --git a/src/ui/builtincommandlineoption.cpp b/src/ui/builtincommandlineoption.cpp index 8a6762897..5c3d51ebc 100644 --- a/src/ui/builtincommandlineoption.cpp +++ b/src/ui/builtincommandlineoption.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008 by Ilya Kotov * + * Copyright (C) 2008-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -36,23 +36,18 @@ BuiltinCommandLineOption::~BuiltinCommandLineOption() // BuiltinCommandLineOption methods implementation bool BuiltinCommandLineOption::identify(const QString & str) const { - if ( - str == QString("--next") || - str == QString("--previous") || - str == QString("--play") || str == QString("-p") || - str == QString("--pause") || str == QString("-u") || - str == QString("--play-pause") || str == QString("-t") || - str == QString("--stop") || str == QString("-s") || - str.startsWith("--volume") || - str.startsWith("--jump-to-file") || str.startsWith("-j") || - str.startsWith("--toggle-visibility") || - str.startsWith("--add-file") || - str.startsWith("--add-dir") - ) - { + if (str == "--next" || + str == "--previous" || + str == "--play" || str == "-p" || + str == "--pause" || str == "-u" || + str == "--play-pause" || str == "-t" || + str == "--stop" || str == "-s" || + str == "--volume" || + str == "--jump-to-file" || str == "-j" || + str == "--toggle-visibility" || + str == "--add-file" || + str == "--add-dir") return TRUE; - } - return FALSE; } @@ -64,7 +59,7 @@ const QString BuiltinCommandLineOption::helpString() const "-t, --play-pause "+tr("Pause if playing, play otherwise")+ "\n" "-s, --stop "+tr("Stop current song")+ "\n" + "-j, --jump-to-file "+tr("Display Jump to File dialog")+ "\n" + - "--volume "+tr("Set playback volume(example: qmmp --volume20, qmmp --volume100)")+ "\n" + "--volume <0..100> "+tr("Set playback volume (example: qmmp --volume 20") + "\n" "--next "+tr("Skip forward in playlist")+ "\n" + "--previous "+tr("Skip backwards in playlist")+"\n" + "--toggle-visibility "+tr("Show/hide application")+ "\n" + @@ -73,7 +68,8 @@ const QString BuiltinCommandLineOption::helpString() const ); } -void BuiltinCommandLineOption::executeCommand(const QString &option_string, MainWindow *mw) +void BuiltinCommandLineOption::executeCommand(const QString &option_string, + const QStringList &args, MainWindow *mw) { if (option_string == "--play" || option_string == "-p") { @@ -119,21 +115,24 @@ void BuiltinCommandLineOption::executeCommand(const QString &option_string, Main { mw->addDir(); } - else if (option_string.startsWith("--volume")) + else if (option_string == "--volume" && !args.isEmpty()) { - QString vol_str(option_string); - vol_str.remove("--volume"); bool ok = FALSE; - int volume = vol_str.toUInt(&ok); + int volume = args.at(0).toInt(&ok); if (ok) - { mw->soundCore()->setVolume(volume,volume); - } } } -const QString BuiltinCommandLineOption::name() const +QHash BuiltinCommandLineOption::splitArgs(const QStringList &args) const { - return "BuiltinCommandLineOption"; + QHash commands; + foreach(QString arg, args) + { + if(arg.startsWith("-") || arg.startsWith("--")) + commands.insert(arg, QStringList()); + else if(!commands.isEmpty()) + commands[commands.keys().last()] << arg; + } + return commands; } - diff --git a/src/ui/builtincommandlineoption.h b/src/ui/builtincommandlineoption.h index df6c6dfb2..a650aa585 100644 --- a/src/ui/builtincommandlineoption.h +++ b/src/ui/builtincommandlineoption.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008 by Ilya Kotov * + * Copyright (C) 2008-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -21,6 +21,7 @@ #define BUILTINCOMMANDLINEOPTION_H #include +#include class MainWindow; @@ -41,9 +42,8 @@ public: bool identify(const QString& str)const; const QString helpString()const; - void executeCommand(const QString& option,MainWindow* = NULL); - const QString name()const; - + void executeCommand(const QString& option, const QStringList &args, MainWindow* = NULL); + QHash splitArgs(const QStringList &args) const; }; #endif diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index 4fad52ce8..46cde2af1 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -526,47 +526,57 @@ void MainWindow::playPause() play(); } -bool MainWindow::processCommandArgs(const QStringList &slist,const QString& cwd) +bool MainWindow::processCommandArgs(const QStringList &slist, const QString& cwd) { - if (slist.count() > 0) + if(slist.isEmpty()) + return TRUE; + QString paths; + foreach(QString arg, slist) { - QString str = slist[0]; - - if (str.startsWith("--enqueue") || str.startsWith("-e")) //check for "--enqueue" modifier - { - if (slist.count() < 2) - return FALSE; - QStringList full_path_list; - for (int i = 1; i < slist.count(); ++i) - { - if ((slist.at(i).startsWith("/")) || (slist.at(i).contains("://"))) //is it absolute path or url? - full_path_list << slist.at(i); - else - full_path_list << cwd + "/" + slist.at(i); - } - m_pl_manager->currentPlayList()->addFileList(full_path_list); //TODO url support - } - else if (str.startsWith("-")) // is it a command? + if(arg.startsWith("-")) + break; + else + paths.append(arg); + } + if(!paths.isEmpty()) + { + QStringList full_path_list; + foreach(QString s, paths) { - if (CommandLineManager::hasOption(str)) - m_generalHandler->executeCommand(str); - else if (m_option_manager->identify(str)) - m_option_manager->executeCommand(str, this); + if ((s.startsWith("/")) || (s.contains("://"))) //is it absolute path or url? + full_path_list << s; else - return FALSE; + full_path_list << cwd + "/" + s; } - else// maybe it is a list of files or dirs + setFileList(full_path_list); + return TRUE; + } + QHash commands = m_option_manager->splitArgs(slist); + if(commands.isEmpty()) + return FALSE; + foreach(QString key, commands.keys()) + { + if(key == "--enqueue" || key == "-e") { + QStringList args = commands.value(key); + if(args.isEmpty()) + return FALSE; QStringList full_path_list; - foreach(QString s,slist) + foreach(QString s, args) { if ((s.startsWith("/")) || (s.contains("://"))) //is it absolute path or url? full_path_list << s; else full_path_list << cwd + "/" + s; } - setFileList(full_path_list); //TODO url support + m_pl_manager->currentPlayList()->addFileList(full_path_list); } + else if (CommandLineManager::hasOption(key)) + m_generalHandler->executeCommand(key, commands.value(key)); + else if (m_option_manager->identify(key)) + m_option_manager->executeCommand(key, commands.value(key), this); + else + return FALSE; } return TRUE; } diff --git a/src/ui/qmmpstarter.cpp b/src/ui/qmmpstarter.cpp index d0c126ba4..8735a66f2 100644 --- a/src/ui/qmmpstarter.cpp +++ b/src/ui/qmmpstarter.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006-2009 by Ilya Kotov * + * Copyright (C) 2006-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -44,30 +44,37 @@ QMMPStarter::QMMPStarter(int argc,char **argv, QObject* parent) : QObject(parent m_option_manager = new BuiltinCommandLineOption(this); QStringList tmp; for (int i = 1;i < argc;i++) - tmp << QString::fromLocal8Bit(argv[i]); + tmp << QString::fromLocal8Bit(argv[i]).trimmed(); argString = tmp.join("\n"); + QHash commands = m_option_manager->splitArgs(tmp); - if (argString == "--help") + if(commands.keys().contains("--help")) { printUsage(); exit(0); } - else if (argString == "--version") + if(commands.keys().contains("--version")) { printVersion(); exit(0); } - if (argString.startsWith("-") && // command? - !(m_option_manager->identify(argString) || - CommandLineManager::hasOption(argString) || - argString.startsWith("--enqueue") || - argString.startsWith("-e"))) + if(!commands.isEmpty()) { - qFatal("QMMP: Unknown command..."); - exit(1); + foreach(QString arg, commands.keys()) + { + if(!m_option_manager->identify(arg) && + !CommandLineManager::hasOption(arg) && + arg != "--enqueue" && + arg != "-e") + { + cout << qPrintable(tr("Unknown command")) << endl; + exit(0); + } + } } + #ifndef Q_OS_WIN32 m_sock = new UnixDomainSocket(this); if (m_sock->bind(UDS_PATH)) @@ -97,7 +104,8 @@ QMMPStarter::QMMPStarter(int argc,char **argv, QObject* parent) : QObject(parent QMMPStarter::~ QMMPStarter() { - if (mw) delete mw; + if (mw) + delete mw; } void QMMPStarter::startMainWindow() diff --git a/src/ui/translations/qmmp_cs.ts b/src/ui/translations/qmmp_cs.ts index da042b4e5..95321a994 100644 --- a/src/ui/translations/qmmp_cs.ts +++ b/src/ui/translations/qmmp_cs.ts @@ -115,57 +115,57 @@ BuiltinCommandLineOption - + Skip forward in playlist Přejít vpřed v seznamu skladeb - + Skip backwards in playlist Přejít zpět v seznamu skladeb - + Start playing current song Spustit přehrávání aktuální skladby - + Pause current song Pozastavit aktuální skladbu - + Pause if playing, play otherwise Pozastavit, přehrává-li se, jinak přehrávat - + Stop current song Zastavit aktuální skladbu - - Set playback volume(example: qmmp --volume20, qmmp --volume100) - Nastavit hlasitot přehrávání (příklady: qmmp --volume20, qmmp --volume100) - - - + Display Jump to File dialog Zobrazit dialog Přeskočit na soubor - + + Set playback volume (example: qmmp --volume 20 + + + + Show/hide application Zobrazit/skrýt aplikaci - + Display Add File dialog Zobrazit dialog Přidat soubor - + Display Add Directory dialog Zobrazit dialog Přidat adresář @@ -1573,42 +1573,47 @@ QMMPStarter - + Usage: qmmp [options] [files] Použití: qmmp [volby] [soubory] - + Options: Volby: - + Print version number and exit Vypsat číslo verze a skončit - + Ideas, patches, bugreports send to forkotov02@hotmail.ru Nápady, patche, hlášení chyb posílejte na forkotov02@hotmail.ru (anglicky) - + Display this text and exit Zobrazit tento text a skončit - + + Unknown command + + + + QMMP version: Verze QMMP: - + Don't clear the playlist Nevyprazdňovat seznam skladeb - + Qt version: Verze Qt: diff --git a/src/ui/translations/qmmp_de.ts b/src/ui/translations/qmmp_de.ts index bde2ce5fe..eda6a772e 100644 --- a/src/ui/translations/qmmp_de.ts +++ b/src/ui/translations/qmmp_de.ts @@ -115,57 +115,57 @@ BuiltinCommandLineOption - + Skip forward in playlist Nächsten Titel in Wiedergabeliste abspielen - + Skip backwards in playlist Vorherigen Titel in Wiedergabeliste abspielen - + Start playing current song Aktuellen Titel abspielen - + Pause current song Aktuellen Titel anhalten - + Pause if playing, play otherwise Wiedergabe anhalten oder fortsetzen - + Stop current song Aktuellen Titel stoppen - - Set playback volume(example: qmmp --volume20, qmmp --volume100) - Lautstärke einstellen (Beispiel: qmmp --volume20, qmmp --volume100) - - - + Display Jump to File dialog „Springe zu Titel“-Dialog anzeigen - + + Set playback volume (example: qmmp --volume 20 + + + + Show/hide application Anwendung ein-/ausblenden - + Display Add File dialog „Datei hinzufügen“-Dialog anzeigen - + Display Add Directory dialog „Verzeichnis hinzufügen“-Dialog anzeigen @@ -1573,42 +1573,47 @@ QMMPStarter - + Usage: qmmp [options] [files] Aufruf: qmmp [Optionen] [Dateien] - + Options: Optionen: - + Print version number and exit Gibt die Versionsnummer aus - + Ideas, patches, bugreports send to forkotov02@hotmail.ru Ideen, Patches und Bugreports an <forkotov02@hotmail.ru> senden - + Display this text and exit Zeigt diesen Hilfetext an - + + Unknown command + + + + QMMP version: Qmmp-Version: - + Don't clear the playlist Titel an Wiedergabeliste anhängen - + Qt version: Qt-Version: diff --git a/src/ui/translations/qmmp_hu.ts b/src/ui/translations/qmmp_hu.ts index 5a50807e9..70a010475 100644 --- a/src/ui/translations/qmmp_hu.ts +++ b/src/ui/translations/qmmp_hu.ts @@ -115,57 +115,57 @@ BuiltinCommandLineOption - + Start playing current song Aktuális szám lejátszásának indítása - + Pause current song Aktuális szám szüneteltetése - + Pause if playing, play otherwise Szünet ha lejátszás van, különben lejátszás - + Stop current song Aktuális szám megállítása - + Display Jump to File dialog Számra ugrás ablak mutatása - - Set playback volume(example: qmmp --volume20, qmmp --volume100) - Lejátszási hangerő beállítása(pl.: qmmp --volume20, qmmp --volume100) + + Set playback volume (example: qmmp --volume 20 + - + Skip forward in playlist Lejátszási lista következő számának kihagyása - + Skip backwards in playlist Lejátszási lista előző számainak kihagyása - + Show/hide application Alkalmazás mutatása/elrejtése - + Display Add File dialog Fájl hozzáadása ablak mutatása - + Display Add Directory dialog Könyvtár hozzáadása ablak mutatása @@ -1573,42 +1573,47 @@ QMMPStarter - + + Unknown command + + + + Usage: qmmp [options] [files] Használat: qmmp [opciók] [fájlok] - + Options: Opciók: - + Don't clear the playlist Ne töröld a lejátszási listát - + Display this text and exit Mutasd ezt a szöveget, majd lépj ki - + Print version number and exit Mutasd a verziószámot, majd lépj ki - + Ideas, patches, bugreports send to forkotov02@hotmail.ru Ötleteket, foltokat, hibajelentéseket küld a forkotov02@hotmail.ru címre - + QMMP version: QMMP verzió: - + Qt version: Qt verzió: diff --git a/src/ui/translations/qmmp_it.ts b/src/ui/translations/qmmp_it.ts index e91e22d94..d6ca74c03 100644 --- a/src/ui/translations/qmmp_it.ts +++ b/src/ui/translations/qmmp_it.ts @@ -115,57 +115,57 @@ BuiltinCommandLineOption - + Skip forward in playlist Scorri in avanti lista dei brani - + Skip backwards in playlist Scorri indietro la lista dei brani - + Start playing current song Inizia il brano scelto - + Pause current song Sospendi il brano in esecuzione - + Pause if playing, play otherwise Sospendi il brano se in esecuzione; lo riprende se in pausa - + Stop current song Arresta il brano in esecuzione - - Set playback volume(example: qmmp --volume20, qmmp --volume100) - Configurare il volume di riproduzione (esempio: qmmp --volume20, qmmp --volume100) - - - + Display Jump to File dialog Mostra il menu «Vai al brano» - + + Set playback volume (example: qmmp --volume 20 + + + + Show/hide application Mostra/nascondi Qmmp - + Display Add File dialog Mostra il menu «Aggiungi brani» - + Display Add Directory dialog Mostra il menu «Aggiungi cartella» @@ -1573,42 +1573,47 @@ QMMPStarter - + Usage: qmmp [options] [files] Uso: qmmp [options] [fichiers] - + Options: Opzioni: - + Don't clear the playlist Non ripulire la lista esecuzione - + Print version number and exit Stampa il numero di versione ed esci - + Ideas, patches, bugreports send to forkotov02@hotmail.ru Per idee, modifiche, segnalazione di errori scrivire a: forkotov02@hotmail.ru - + Qt version: Versione Qt: - + Display this text and exit Mostra questo testo ed esci - + + Unknown command + + + + QMMP version: Versione di Qmmp: diff --git a/src/ui/translations/qmmp_lt.ts b/src/ui/translations/qmmp_lt.ts index c37fa9279..977039bb1 100644 --- a/src/ui/translations/qmmp_lt.ts +++ b/src/ui/translations/qmmp_lt.ts @@ -115,57 +115,57 @@ BuiltinCommandLineOption - + Skip forward in playlist Eiti prie sekančio elemento - + Skip backwards in playlist Eiti prie ankstesnio elemento - + Start playing current song Groti dainą - + Pause current song Pristabdyti dainą - + Pause if playing, play otherwise Pristabdyti/Groti - + Stop current song Sustabdyti dainą - - Set playback volume(example: qmmp --volume20, qmmp --volume100) - Nustatyti garsumą (pvz: qmmp --volume20, qmmp --volume100) - - - + Display Jump to File dialog Parodyti langą bylos pasirinkimui - + + Set playback volume (example: qmmp --volume 20 + + + + Show/hide application Parodyti/Slėpti programą - + Display Add File dialog Parodyti langą bylų pridėjimui - + Display Add Directory dialog Parodyti langą aplanko pridėjimui @@ -1574,42 +1574,47 @@ QMMPStarter - + Usage: qmmp [options] [files] Naudojimas: qmmp [nuostatos] [bylos] - + Options: Nustatymai: - + Print version number and exit Parodyti versiją ir išeiti - + Display this text and exit Parodyti šį tekstą ir išeiti - + + Unknown command + + + + Ideas, patches, bugreports send to forkotov02@hotmail.ru Idėjas, pataisymus, klaidas siųsti forkotov02@hotmail.ru - + QMMP version: QMMP versija: - + Don't clear the playlist Neišvalyti sąrašo - + Qt version: Qt versija: diff --git a/src/ui/translations/qmmp_pl_PL.ts b/src/ui/translations/qmmp_pl_PL.ts index 05e148026..cbb7d1153 100644 --- a/src/ui/translations/qmmp_pl_PL.ts +++ b/src/ui/translations/qmmp_pl_PL.ts @@ -115,57 +115,57 @@ BuiltinCommandLineOption - + Skip forward in playlist Przeskocz do przodu na liście odtwarzania - + Skip backwards in playlist Przeskocz do tyłu na liście odtwarzania - + Start playing current song Zacznij odtwarzać bieżący utwór - + Pause current song Wstrzymaj bieżący utwór - + Pause if playing, play otherwise Wstrzymaj jeśli odtwarza, odtwarzaj w przeciwnym wypadku - + Stop current song Zatrzymaj bieżący utwór - - Set playback volume(example: qmmp --volume20, qmmp --volume100) - Ustaw głośność odtwarzania (przykład: qmmp --volume20, qmmp --volume100) - - - + Display Jump to File dialog Wyświetl okno dialogowe Skocz do - + + Set playback volume (example: qmmp --volume 20 + + + + Show/hide application Pokaż/ukryj aplikację - + Display Add File dialog Wyświetl okno dialogowe dodawania plików - + Display Add Directory dialog Wyświetl okno dialogowe dodawania katalogów @@ -1573,42 +1573,47 @@ QMMPStarter - + Usage: qmmp [options] [files] Użycie: qmmp [opcje] [pliki] - + Options: Opcje: - + Print version number and exit Wyświetla wersję programu i wychodzi - + Ideas, patches, bugreports send to forkotov02@hotmail.ru Pomysły, poprawki, raporty o błędach proszę wysyłać na forkotov02@hotmail.ru - + Display this text and exit Wyświetla ten tekst i wychodzi - + + Unknown command + + + + QMMP version: Wersja QMMP: - + Don't clear the playlist Nie czyść listy - + Qt version: Wersja QT: diff --git a/src/ui/translations/qmmp_pt_BR.ts b/src/ui/translations/qmmp_pt_BR.ts index 49b86e80c..49b8827f0 100644 --- a/src/ui/translations/qmmp_pt_BR.ts +++ b/src/ui/translations/qmmp_pt_BR.ts @@ -115,57 +115,57 @@ BuiltinCommandLineOption - + Skip forward in playlist - + Skip backwards in playlist - + Start playing current song - + Pause current song - + Pause if playing, play otherwise - + Stop current song - - Set playback volume(example: qmmp --volume20, qmmp --volume100) + + Display Jump to File dialog - - Display Jump to File dialog + + Set playback volume (example: qmmp --volume 20 - + Show/hide application - + Display Add File dialog - + Display Add Directory dialog @@ -1573,42 +1573,47 @@ QMMPStarter - + Usage: qmmp [options] [files] - + Options: - + Print version number and exit - + Ideas, patches, bugreports send to forkotov02@hotmail.ru - + Display this text and exit - + + Unknown command + + + + QMMP version: - + Don't clear the playlist - + Qt version: diff --git a/src/ui/translations/qmmp_ru.ts b/src/ui/translations/qmmp_ru.ts index ca949d2fb..5e28a9171 100644 --- a/src/ui/translations/qmmp_ru.ts +++ b/src/ui/translations/qmmp_ru.ts @@ -115,57 +115,57 @@ BuiltinCommandLineOption - + Skip forward in playlist Перейти к следующему фрагменту - + Skip backwards in playlist Перейти к предыдущему фрагменту - + Start playing current song Воспроизвести текущую песню - + Pause current song Приостановить текущую песню - + Pause if playing, play otherwise Приостановить/воспроизвести - + Stop current song Остановить текущую песню - - Set playback volume(example: qmmp --volume20, qmmp --volume100) - Установить громкость (пример: qmmp --volume20, qmmp --volume100) - - - + Display Jump to File dialog Показать диалог перехода к файлу - + + Set playback volume (example: qmmp --volume 20 + Установить громкость (пример: qmmp --volume 20) + + + Show/hide application Показать/скрытть приложение - + Display Add File dialog Показать диалог добавления файлов - + Display Add Directory dialog Показать диалог добавления директорий @@ -1573,42 +1573,47 @@ QMMPStarter - + Usage: qmmp [options] [files] Использование: qmmp [options] [files] - + Options: Опции: - + Print version number and exit Показать версии и выйти - + Ideas, patches, bugreports send to forkotov02@hotmail.ru Идеи, исправления, отчёты об ошибках: forkotov02@hotmail.ru - + Display this text and exit Показать этот текст и выйти - + + Unknown command + + + + QMMP version: Версия QMMP: - + Don't clear the playlist Не очищать лист - + Qt version: Версия Qt: diff --git a/src/ui/translations/qmmp_tr.ts b/src/ui/translations/qmmp_tr.ts index a4210d7ac..ee4ac5e51 100644 --- a/src/ui/translations/qmmp_tr.ts +++ b/src/ui/translations/qmmp_tr.ts @@ -115,57 +115,57 @@ BuiltinCommandLineOption - + Skip forward in playlist İleri atla - + Skip backwards in playlist Geri atla - + Start playing current song Mevcut şarkıyı çalmaya başla - + Pause current song Mevcut şarkıyı duraklat - + Pause if playing, play otherwise Çalıyorsa duraklat, değilse oynat - + Stop current song Mevcut şarkıyı durdur - - Set playback volume(example: qmmp --volume20, qmmp --volume100) - Sesi ayarla(örnek: qmmp --volume, qmmp --volume100) - - - + Display Jump to File dialog Dosyaya atlama diyaloğunu göster - + + Set playback volume (example: qmmp --volume 20 + + + + Show/hide application Uygulamayı göster/gizle - + Display Add File dialog Dosya ekleme diyaloğunu göster - + Display Add Directory dialog Dizin ekleme diyaloğunu göster @@ -1573,42 +1573,47 @@ QMMPStarter - + Usage: qmmp [options] [files] Kullanım:qmmp [seçenek] [dosyalar] - + Options: Seçenekler: - + Print version number and exit Sürüm numarasını yazdır ve çık - + Ideas, patches, bugreports send to forkotov02@hotmail.ru Fikirleinizi, yamalarınızı, hata raporlarınızı forkotov02@hotmail.ru adresine gönderin - + Display this text and exit Bu metni göster ve çık - + + Unknown command + + + + QMMP version: QMMP sürümü: - + Don't clear the playlist Çalma listesini temizleme - + Qt version: Qt sürümü: diff --git a/src/ui/translations/qmmp_uk_UA.ts b/src/ui/translations/qmmp_uk_UA.ts index 5821b8269..84f31dbd2 100644 --- a/src/ui/translations/qmmp_uk_UA.ts +++ b/src/ui/translations/qmmp_uk_UA.ts @@ -115,57 +115,57 @@ BuiltinCommandLineOption - + Skip forward in playlist Перейти до наступного фрагменту - + Skip backwards in playlist Перейти до попереднього фрагменту - + Start playing current song Грати поточну пісню - + Pause current song Призупитини поточну пісню - + Pause if playing, play otherwise Призупинити/відтворити - + Stop current song Зупитини поточну пісню - - Set playback volume(example: qmmp --volume20, qmmp --volume100) - Встановить гучність (приклад: qmmp --volume20, qmmp --volume100) - - - + Display Jump to File dialog Показати діалог переходу до файла - + + Set playback volume (example: qmmp --volume 20 + + + + Show/hide application Показати/сховати програму - + Display Add File dialog Показати діалог додавання файлів - + Display Add Directory dialog Показати діалог додавання тек @@ -1573,42 +1573,47 @@ QMMPStarter - + Usage: qmmp [options] [files] Використання: qmmp [options] [files] - + Options: Опції: - + Print version number and exit Показати версію та вийти - + Ideas, patches, bugreports send to forkotov02@hotmail.ru Ідеї, виправлення, звіти про помилки: forkotov02@hotmail.ru - + Display this text and exit Показати цей текст та вийти - + + Unknown command + + + + QMMP version: Версія QMMP: - + Don't clear the playlist Не очищати список - + Qt version: Версія Qt: diff --git a/src/ui/translations/qmmp_zh_CN.ts b/src/ui/translations/qmmp_zh_CN.ts index f0bcdc2bb..94b1834d7 100644 --- a/src/ui/translations/qmmp_zh_CN.ts +++ b/src/ui/translations/qmmp_zh_CN.ts @@ -115,57 +115,57 @@ BuiltinCommandLineOption - + Skip forward in playlist 跳到播放列表中的下一曲 - + Skip backwards in playlist 跳到播放列表中的上一曲 - + Start playing current song 开始播放当前曲目 - + Pause current song 暂停当前曲目 - + Pause if playing, play otherwise 正在播放则暂停,相反处于暂停则播放 - + Stop current song 停止当前曲目 - - Set playback volume(example: qmmp --volume20, qmmp --volume100) - 设置回放音量(例如:qmmp --volume20, qmmp --volume100) - - - + Display Jump to File dialog 显示跳到文件对话 - + + Set playback volume (example: qmmp --volume 20 + + + + Show/hide application 显示/隐藏程序 - + Display Add File dialog 显示添加文件对话 - + Display Add Directory dialog 显示添加目录对话 @@ -1573,42 +1573,47 @@ QMMPStarter - + Usage: qmmp [options] [files] 使用:qmmp [设置] [文件] - + Options: 设置: - + Print version number and exit 显示版本并退出 - + Ideas, patches, bugreports send to forkotov02@hotmail.ru 建议、补丁或提交 bug 请发送到 forkotov02@hotmail.ru - + Display this text and exit 显示这些文本并退出 - + + Unknown command + + + + QMMP version: Qmmp 版本: - + Don't clear the playlist 不要清除这个播放列表 - + Qt version: Qt 版本: diff --git a/src/ui/translations/qmmp_zh_TW.ts b/src/ui/translations/qmmp_zh_TW.ts index 2e87c7f63..119e3591b 100644 --- a/src/ui/translations/qmmp_zh_TW.ts +++ b/src/ui/translations/qmmp_zh_TW.ts @@ -115,57 +115,57 @@ BuiltinCommandLineOption - + Skip forward in playlist 跳到播放清單中的下一曲 - + Skip backwards in playlist 跳到播放清單中的上一曲 - + Start playing current song 開始播放目前曲目 - + Pause current song 暫停目前曲目 - + Pause if playing, play otherwise 正在播放則暫停,相反處於暫停則播放 - + Stop current song 停止目前曲目 - - Set playback volume(example: qmmp --volume20, qmmp --volume100) - 設定重播音量(例如:qmmp --volume20, qmmp --volume100) - - - + Display Jump to File dialog 察看跳到檔案對話 - + + Set playback volume (example: qmmp --volume 20 + + + + Show/hide application 察看/隱藏程式 - + Display Add File dialog 察看添加檔案對話 - + Display Add Directory dialog 察看添加目錄對話 @@ -1573,42 +1573,47 @@ QMMPStarter - + Usage: qmmp [options] [files] 使用:qmmp [設定] [檔案] - + Options: 設定: - + Print version number and exit 察看版本並結束 - + Ideas, patches, bugreports send to forkotov02@hotmail.ru 建議、補丁或提交 bug 請傳送到 forkotov02@hotmail.ru - + Display this text and exit 察看這些字檔並結束 - + + Unknown command + + + + QMMP version: Qmmp 版本: - + Don't clear the playlist 不要清除這個播放清單 - + Qt version: Qt 版本: -- cgit v1.2.3-13-gbd6f