aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-05-09 10:39:33 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-05-09 10:39:33 +0000
commit2146260029e61d6a60a0f53a5575793f6f99cdb8 (patch)
tree63f56e83929e8349e8b8c13646aa6642f0e5ea0d /src
parent154bbf62809030c288ffd0d26e04b4e82c208c6c (diff)
downloadqmmp-2146260029e61d6a60a0f53a5575793f6f99cdb8.tar.gz
qmmp-2146260029e61d6a60a0f53a5575793f6f99cdb8.tar.bz2
qmmp-2146260029e61d6a60a0f53a5575793f6f99cdb8.zip
updated Russian translation
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4951 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
-rw-r--r--src/app/desktop-translations/qmmp_dir_ru.desktop.in18
-rw-r--r--src/app/desktop-translations/qmmp_enqueue_ru.desktop.in17
-rw-r--r--src/app/desktop-translations/qmmp_ru.desktop.in39
3 files changed, 74 insertions, 0 deletions
diff --git a/src/app/desktop-translations/qmmp_dir_ru.desktop.in b/src/app/desktop-translations/qmmp_dir_ru.desktop.in
new file mode 100644
index 000000000..4846253ac
--- /dev/null
+++ b/src/app/desktop-translations/qmmp_dir_ru.desktop.in
@@ -0,0 +1,18 @@
+[Desktop Entry]
+X-Desktop-File-Install-Version=0.11
+Name=Qmmp
+Comment=Qt4-based Multimedia Player
+GenericName=Audio player
+Exec=qmmp %F
+Icon=qmmp
+Terminal=false
+NoDisplay=true
+Type=Application
+Categories=AudioVideo;Player;Audio;Qt;
+MimeType=inode/directory;
+X-KDE-StartupNotify=false
+
+
+# Translations
+Comment[ru]=Мультимедиа плеер на основе Qt4
+GenericName[ru]=Аудио-плеер
diff --git a/src/app/desktop-translations/qmmp_enqueue_ru.desktop.in b/src/app/desktop-translations/qmmp_enqueue_ru.desktop.in
new file mode 100644
index 000000000..716dc22d5
--- /dev/null
+++ b/src/app/desktop-translations/qmmp_enqueue_ru.desktop.in
@@ -0,0 +1,17 @@
+[Desktop Entry]
+X-Desktop-File-Install-Version=0.11
+Name=Enqueue in Qmmp
+Comment=Add file(s) to the Qmmp playlist
+Exec=qmmp -e %F
+Icon=qmmp
+Categories=AudioVideo;Player;Audio;Qt;
+MimeType=application/x-ogg;audio/mp3;audio/mpeg;audio/flac;audio/x-mp3;audio/x-mpeg;audio/x-ms-wma;audio/x-musepack;application/ogg;audio/x-vorbis+ogg;audio/x-scpls;audio/x-mpegurl;audio/x-it;audio/x-mod;audio/x-ape;application/x-cue;audio/x-ffmpeg-shorten;inode/directory;
+Type=Application
+X-KDE-StartupNotify=false
+NoDisplay=true
+Terminal=false
+
+
+# Translations
+Comment[ru]=Добавить файл(ы) в список воспроизведения Qmmp
+Name[ru]=Проиграть в Qmmp
diff --git a/src/app/desktop-translations/qmmp_ru.desktop.in b/src/app/desktop-translations/qmmp_ru.desktop.in
new file mode 100644
index 000000000..be9199fda
--- /dev/null
+++ b/src/app/desktop-translations/qmmp_ru.desktop.in
@@ -0,0 +1,39 @@
+[Desktop Entry]
+X-Desktop-File-Install-Version=0.11
+Name=Qmmp
+Comment=Qt4-based Multimedia Player
+GenericName=Audio player
+Keywords=player;audio;video;multimedia;
+Exec=qmmp %F
+Icon=qmmp
+Terminal=false
+Type=Application
+Categories=AudioVideo;Player;Audio;Qt;
+MimeType=application/x-ogg;audio/mp3;audio/mpeg;audio/flac;audio/x-mp3;audio/x-mpeg;audio/x-ms-wma;audio/x-musepack;application/ogg;audio/x-vorbis+ogg;audio/x-scpls;audio/x-mpegurl;audio/x-it;audio/x-mod;audio/x-ape;application/x-cue;x-content/audio-cdda;audio/x-ffmpeg-shorten;
+X-KDE-StartupNotify=false
+Actions=Play;Pause;Stop;Previous;Next;
+
+[Desktop Action Play]
+Name=Play
+Exec=qmmp --no-start --play
+
+[Desktop Action Pause]
+Name=Pause
+Exec=qmmp --no-start --pause
+
+[Desktop Action Stop]
+Name=Stop
+Exec=qmmp --no-start --stop
+
+[Desktop Action Previous]
+Name=Previous
+Exec=qmmp --no-start --previous
+
+[Desktop Action Next]
+Name=Next
+Exec=qmmp --no-start --next
+
+
+# Translations
+Comment[ru]=Мультимедиа плеер на основе Qt4
+GenericName[ru]=Аудио-плеер
es, partial mpris 2.0 implementation' href='/qmmp/commit/src/plugins/Input/modplug/decodermodplugfactory.cpp?id=aa3f57c0236c77f2fd90415fc1f3062a93b25b93'>aa3f57c02
3995fa885


5dc0158ee
3995fa885
e48a196c8
5dc0158ee
3995fa885

f91f63b99
3995fa885
e48a196c8
ae75e5707
11b7655bb
3995fa885
e48a196c8


3995fa885
77fd0d754
3995fa885
e48a196c8
3995fa885
e48a196c8
3995fa885


e48a196c8
77fd0d754
3995fa885

e48a196c8
3995fa885




5dc0158ee
e48a196c8


3995fa885

e48a196c8
3995fa885

5dc0158ee
3995fa885
5dc0158ee
3995fa885











41c8a60a2
77fd0d754
3995fa885








f0a1d05ed
3995fa885


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
                                                                            
                                                                            
                                                                            













                                                                            
                                                                            

                                                                             

                    



                      


                               
                           
                                 






                                  

                                                        
                 





                                                                 



                                                                                                      
                                                                                                  

                                                 
                                     


                                  
                                   


                      
                                                                             
 
                    
                                    

 
                                                                                                                 
 
                           
                                                                 
                                                                      
     


                                                                       
     
                            
                      
                                     
     
                                         


        
                             
                                            

                                                                                          
                        




                                             
                                                               


                                                                                   

                         
                

 
                                                                                               
 
                                                  











                                                                 
                                                                             
                                                                        








                                                                         
                                              


                                                            
/***************************************************************************
 *   Copyright (C) 2008-2015 by Ilya Kotov                                 *
 *   forkotov02@ya.ru                                                      *
 *                                                                         *
 *   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 2 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, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
 ***************************************************************************/

#include <QSettings>
#include <QFile>
#include <QTranslator>
#include <QMessageBox>
#include <QStringList>
#include <QRegExp>
#include <libmodplug/stdafx.h>
#include <libmodplug/it_defs.h>
#include <libmodplug/sndfile.h>
#include "settingsdialog.h"
#include "modplugmetadatamodel.h"
#include "decoder_modplug.h"
#include "archivereader.h"
#include "decodermodplugfactory.h"


// DecoderModPlugFactory

bool DecoderModPlugFactory::canDecode(QIODevice *) const
{
    return false;
}

const DecoderProperties DecoderModPlugFactory::properties() const
{
    DecoderProperties properties;
    properties.name = tr("ModPlug Plugin");
    properties.filters << "*.amf" << "*.ams" << "*.dbm" << "*.dbf" << "*.dsm" << "*.far" << "*.mdl";
    properties.filters << "*.stm" << "*.ult" << "*.j2b" << "*.mt2" << "*.mdz" << "*.mdr" << "*.mdgz";
    properties.filters << "*.mdbz" << "*.mod" << "*.s3z" << "*.s3r" << "*.s3gz" << "*.s3m" << "*.xmz";
    properties.filters << "*.xmr" << "*.xmgz" << "*.itz" << "*.itr" << "*.itgz" << "*.dmf" "*.umx";
    properties.filters << "*.it" << "*.669" << "*.xm" << "*.mtm" << "*.psm" << "*.ft2" << "*.med";
    properties.description = tr("ModPlug Files");
    //properties.contentType = ;
    properties.shortName = "modplug";
    properties.hasAbout = true;
    properties.hasSettings = true;
    properties.noInput = true;
    properties.protocols << "file";
    return properties;
}

Decoder *DecoderModPlugFactory::create(const QString &path, QIODevice *input)
{
    Q_UNUSED(input);
    return new DecoderModPlug(path);
}

QList<FileInfo *> DecoderModPlugFactory::createPlayList(const QString &fileName, bool useMetaData, QStringList *)
{
    QList <FileInfo*> list;
    QSettings settings(Qmmp::configFile(), QSettings::IniFormat);
    if (!useMetaData || settings.value("UseFileName", false).toBool())
    {
        list << new FileInfo(fileName);
        list.at(0)->setMetaData(Qmmp::TITLE, fileName.section('/',-1));
        return list;
    }
    ArchiveReader reader(0);
    QByteArray buffer;
    if (reader.isSupported(fileName))
    {
        buffer = reader.unpack(fileName);
    }
    else
    {
        QFile file(fileName);
        if (!file.open(QIODevice::ReadOnly))
        {
            qWarning("DecoderModPlugFactory: error: %s", qPrintable(file.errorString ()));
            return list;
        }
        buffer = file.readAll();
        file.close();
    }
    CSoundFile* soundFile = new CSoundFile();
    soundFile->Create((uchar*) buffer.data(), buffer.size()+1);
    list << new FileInfo(fileName);
    list.at(0)->setLength((int) soundFile->GetSongTime());
    list.at(0)->setMetaData(Qmmp::TITLE, QString::fromUtf8(soundFile->GetTitle()));
    soundFile->Destroy();
    delete soundFile;
    return list;
}

MetaDataModel* DecoderModPlugFactory::createMetaDataModel(const QString &path, QObject *parent)
{
    return new ModPlugMetaDataModel(path, parent);
}

void DecoderModPlugFactory::showSettings(QWidget *parent)
{
    SettingsDialog *d = new SettingsDialog(parent);
    d->show();
}

void DecoderModPlugFactory::showAbout(QWidget *parent)
{
    QMessageBox::about (parent, tr("About ModPlug Audio Plugin"),
                        tr("Qmmp ModPlug Audio Plugin")+"\n"+
                        tr("Written by: Ilya Kotov <forkotov02@ya.ru>")+"\n"+