Changeset 499

Show
Ignore:
Timestamp:
11/25/06 15:36:18 (2 years ago)
Author:
nicfit
Message:

mp3->mpeg and po updates

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/po/POTFILES.in

    r495 r499  
    1717src/main_window.py 
    1818src/mesk/audio/__init__.py 
    19 src/mesk/audio/mp3.py 
     19src/mesk/audio/mpeg.py 
    2020src/mesk/audio/oggvorbis.py 
    2121src/mesk/audio/source.py 
  • trunk/po/es.po

    r495 r499  
    88"Project-Id-Version: 0.1.1\n" 
    99"Report-Msgid-Bugs-To: \n" 
    10 "POT-Creation-Date: 2006-11-24 19:56-0700\n" 
     10"POT-Creation-Date: 2006-11-25 15:35-0700\n" 
    1111"PO-Revision-Date: 2006-04-15 17:38-0600\n" 
    1212"Last-Translator: Travis Shirk <travis@pobox.com>\n" 
     
    141141 
    142142#: ../src/data/glade/playlist.glade.h:1 
    143 msgid "Name" 
    144 msgstr "Nombre" 
     143#, fuzzy 
     144msgid "<b>Comments:</b>" 
     145msgstr "<b>Copyright:</b>" 
    145146 
    146147#: ../src/data/glade/playlist.glade.h:2 
     148#, fuzzy 
     149msgid "<b>Options:</b>" 
     150msgstr "<b>Descripción:</b>" 
     151 
     152#: ../src/data/glade/playlist.glade.h:3 
     153#, fuzzy 
     154msgid "<b>Playlist Name:</b>" 
     155msgstr "<b>Nombre Plugin</b>" 
     156 
     157#: ../src/data/glade/playlist.glade.h:4 
     158msgid "Read Only" 
     159msgstr "" 
     160 
     161#: ../src/data/glade/playlist.glade.h:5 
     162#, fuzzy 
     163msgid "_Properties" 
     164msgstr "_Anterior" 
     165 
     166#: ../src/data/glade/playlist.glade.h:6 
    147167msgid "_Rename..." 
    148168msgstr "" 
     
    258278 
    259279#. Tooltip strings 
    260 #: ../src/audio_control.py:43 ../src/status_icon.py:54 
     280#: ../src/audio_control.py:43 
    261281msgid "Play" 
    262282msgstr "Juego" 
     
    288308msgstr "No me pregunte otra vez." 
    289309 
    290 #: ../src/main.py:216 
     310#: ../src/main.py:204 
    291311msgid "Start with profile NAME." 
    292312msgstr "Comience con el perfil NAME." 
    293313 
    294 #: ../src/main.py:219 
     314#: ../src/main.py:207 
    295315msgid "" 
    296316"Select the amount of terminal logging.  May be CRITICAL, ERROR, WARNING, " 
     
    301321 
    302322#. Developer options 
    303 #: ../src/main.py:225 
     323#: ../src/main.py:213 
    304324msgid "Advanced Options" 
    305325msgstr "Opciones Avanzadas" 
    306326 
    307 #: ../src/main.py:228 
     327#: ../src/main.py:216 
    308328msgid "Break in python debugger on unhandled exceptions." 
    309329msgstr "La rotura en la depuración del python encendido unhandled excepciones." 
    310330 
    311 #: ../src/main.py:232 
     331#: ../src/main.py:220 
    312332msgid "Run using python profiler." 
    313333msgstr "Funcione con el profiler del python." 
    314334 
    315 #: ../src/main.py:235 
     335#: ../src/main.py:223 
    316336msgid "Display Gstreamer command line options." 
    317337msgstr "Línea de comando de Gstreamer de la exhibición opciones." 
    318338 
    319 #: ../src/main_window.py:115 
     339#: ../src/main_window.py:120 
     340#, fuzzy, python-format 
     341msgid "Loading '%s'..." 
     342msgstr "El crear %s..." 
     343 
     344#: ../src/main_window.py:127 
    320345#, python-format 
    321346msgid "Error loading playlist '%s'" 
    322347msgstr "Playlist '%s' del cargamento del error" 
    323348 
    324 #: ../src/main_window.py:267 
     349#: ../src/main_window.py:145 
     350#, python-format 
     351msgid "'%s' loaded" 
     352msgstr "" 
     353 
     354#: ../src/main_window.py:284 
    325355msgid "Are you sure you want to quit?" 
    326356msgstr "¿Es usted seguro usted desea parar?" 
     
    511541 
    512542#. Text columns 
    513 #: ../src/playlist_control.py:176 
     543#: ../src/playlist_control.py:177 
    514544msgid "Title" 
    515545msgstr "Título" 
    516546 
    517 #: ../src/playlist_control.py:177 
     547#: ../src/playlist_control.py:178 
    518548msgid "Artist" 
    519549msgstr "Artista" 
    520550 
    521 #: ../src/playlist_control.py:178 
     551#: ../src/playlist_control.py:179 
    522552msgid "Album" 
    523553msgstr "Álbum" 
    524554 
    525 #: ../src/playlist_control.py:179 
     555#: ../src/playlist_control.py:180 
    526556msgid "#" 
    527557msgstr "#" 
    528558 
    529 #: ../src/playlist_control.py:180 
     559#: ../src/playlist_control.py:181 
    530560msgid "Year" 
    531561msgstr "Año" 
    532562 
    533 #: ../src/playlist_control.py:181 
     563#: ../src/playlist_control.py:182 
    534564msgid "Time" 
    535565msgstr "Tiempo" 
    536566 
    537 #: ../src/playlist_control.py:475 
     567#: ../src/playlist_control.py:479 
    538568#, python-format 
    539569msgid "Are you sure you want to delete playlist '%s'?" 
    540570msgstr "¿Es usted seguro usted desea suprimir el playlist ' %s'?" 
    541571 
    542 #: ../src/playlist_control.py:477 
     572#: ../src/playlist_control.py:481 
    543573msgid "All playlist data will be lost." 
    544574msgstr "Todos los datos del playlist serán perdidos." 
    545575 
    546 #: ../src/playlist_control.py:664 
     576#: ../src/playlist_control.py:668 
    547577msgid "tracks" 
    548578msgstr "pistas" 
    549579 
    550 #: ../src/playlist_control.py:1035 
     580#: ../src/playlist_control.py:972 
     581#, python-format 
     582msgid "Adding items to '%s'..." 
     583msgstr "" 
     584 
     585#: ../src/playlist_control.py:1042 
    551586#, python-format 
    552587msgid "" 
     
    559594"%s" 
    560595 
    561 #: ../src/playlist_control.py:1044 
     596#: ../src/playlist_control.py:1051 
    562597#, python-format 
    563598msgid "" 
     
    570605"%s" 
    571606 
    572 #: ../src/playlist_control.py:1099 
     607#: ../src/playlist_control.py:1069 
     608#, python-format 
     609msgid "%d items added to '%s'" 
     610msgstr "" 
     611 
     612#: ../src/playlist_control.py:1112 
    573613msgid "Add Music" 
    574614msgstr "Agregue La Música" 
    575615 
    576 #: ../src/playlist_control.py:1121 
     616#: ../src/playlist_control.py:1134 
    577617msgid "All" 
    578618msgstr "Todos" 
    579619 
    580 #: ../src/playlist_control.py:1122 
     620#: ../src/playlist_control.py:1135 
    581621msgid "Audio" 
    582622msgstr "Audio" 
    583623 
    584 #: ../src/playlist_control.py:1123 
     624#: ../src/playlist_control.py:1136 
    585625msgid "Playlists" 
    586626msgstr "Playlists" 
     
    589629#. the checkbox is toggles and files when not since this is not 
    590630#. possible by default 
    591 #: ../src/playlist_control.py:1128 
     631#: ../src/playlist_control.py:1141 
    592632msgid "Make the _dialog be able/unable to select directories" 
    593633msgstr "Haga que el _diálogo es able/unable para seleccionar directorios" 
    594634 
    595 #: ../src/playlist_control.py:1275 
     635#: ../src/playlist_control.py:1288 
    596636msgid "No match found" 
    597637msgstr "Ningún fósforo encontró" 
    598638 
    599 #: ../src/playlist_control.py:1276 
     639#: ../src/playlist_control.py:1289 
    600640#, python-format 
    601641msgid "The string '%s' does not match any playlist entries." 
     
    731771msgid "Plugin deactivation error" 
    732772msgstr "Error plugin de la desactivación" 
    733  
    734 #: ../src/status_icon.py:71 
    735 #, fuzzy 
    736 msgid "Show Mesk Player" 
    737 msgstr "Jugador De la Música" 
    738773 
    739774#. Set frame label, one is added for non-zero display 
     
    875910"Repute.\n" 
    876911 
     912#~ msgid "Name" 
     913#~ msgstr "Nombre" 
     914 
     915#, fuzzy 
     916#~ msgid "Show Mesk Player" 
     917#~ msgstr "Jugador De la Música" 
     918 
    877919#, fuzzy 
    878920#~ msgid "Converting playlist '%s' to XSPF" 
     
    915957#~ msgstr "El directorio a abrirse al agregar archivos" 
    916958 
    917 #~ msgid "Creating %s..." 
    918 #~ msgstr "El crear %s..." 
    919  
    920959#~ msgid "<b>Last.fm Credentials:</b>" 
    921960#~ msgstr "<b>Credenciales de last.fm:</b>" 
  • trunk/po/mesk.pot

    r495 r499  
    99"Project-Id-Version: PACKAGE VERSION\n" 
    1010"Report-Msgid-Bugs-To: \n" 
    11 "POT-Creation-Date: 2006-11-24 19:56-0700\n" 
     11"POT-Creation-Date: 2006-11-25 15:35-0700\n" 
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
     
    138138 
    139139#: ../src/data/glade/playlist.glade.h:1 
    140 msgid "Name
     140msgid "<b>Comments:</b>
    141141msgstr "" 
    142142 
    143143#: ../src/data/glade/playlist.glade.h:2 
     144msgid "<b>Options:</b>" 
     145msgstr "" 
     146 
     147#: ../src/data/glade/playlist.glade.h:3 
     148msgid "<b>Playlist Name:</b>" 
     149msgstr "" 
     150 
     151#: ../src/data/glade/playlist.glade.h:4 
     152msgid "Read Only" 
     153msgstr "" 
     154 
     155#: ../src/data/glade/playlist.glade.h:5 
     156msgid "_Properties" 
     157msgstr "" 
     158 
     159#: ../src/data/glade/playlist.glade.h:6 
    144160msgid "_Rename..." 
    145161msgstr "" 
     
    251267 
    252268#. Tooltip strings 
    253 #: ../src/audio_control.py:43 ../src/status_icon.py:54 
     269#: ../src/audio_control.py:43 
    254270msgid "Play" 
    255271msgstr "" 
     
    281297msgstr "" 
    282298 
    283 #: ../src/main.py:216 
     299#: ../src/main.py:204 
    284300msgid "Start with profile NAME." 
    285301msgstr "" 
    286302 
    287 #: ../src/main.py:219 
     303#: ../src/main.py:207 
    288304msgid "" 
    289305"Select the amount of terminal logging.  May be CRITICAL, ERROR, WARNING, " 
     
    292308 
    293309#. Developer options 
    294 #: ../src/main.py:225 
     310#: ../src/main.py:213 
    295311msgid "Advanced Options" 
    296312msgstr "" 
    297313 
    298 #: ../src/main.py:228 
     314#: ../src/main.py:216 
    299315msgid "Break in python debugger on unhandled exceptions." 
    300316msgstr "" 
    301317 
    302 #: ../src/main.py:232 
     318#: ../src/main.py:220 
    303319msgid "Run using python profiler." 
    304320msgstr "" 
    305321 
    306 #: ../src/main.py:235 
     322#: ../src/main.py:223 
    307323msgid "Display Gstreamer command line options." 
    308324msgstr "" 
    309325 
    310 #: ../src/main_window.py:115 
     326#: ../src/main_window.py:120 
     327#, python-format 
     328msgid "Loading '%s'..." 
     329msgstr "" 
     330 
     331#: ../src/main_window.py:127 
    311332#, python-format 
    312333msgid "Error loading playlist '%s'" 
    313334msgstr "" 
    314335 
    315 #: ../src/main_window.py:267 
     336#: ../src/main_window.py:145 
     337#, python-format 
     338msgid "'%s' loaded" 
     339msgstr "" 
     340 
     341#: ../src/main_window.py:284 
    316342msgid "Are you sure you want to quit?" 
    317343msgstr "" 
     
    485511 
    486512#. Text columns 
    487 #: ../src/playlist_control.py:176 
     513#: ../src/playlist_control.py:177 
    488514msgid "Title" 
    489515msgstr "" 
    490516 
    491 #: ../src/playlist_control.py:177 
     517#: ../src/playlist_control.py:178 
    492518msgid "Artist" 
    493519msgstr "" 
    494520 
    495 #: ../src/playlist_control.py:178 
     521#: ../src/playlist_control.py:179 
    496522msgid "Album" 
    497523msgstr "" 
    498524 
    499 #: ../src/playlist_control.py:179 
     525#: ../src/playlist_control.py:180 
    500526msgid "#" 
    501527msgstr "" 
    502528 
    503 #: ../src/playlist_control.py:180 
     529#: ../src/playlist_control.py:181 
    504530msgid "Year" 
    505531msgstr "" 
    506532 
    507 #: ../src/playlist_control.py:181 
     533#: ../src/playlist_control.py:182 
    508534msgid "Time" 
    509535msgstr "" 
    510536 
    511 #: ../src/playlist_control.py:475 
     537#: ../src/playlist_control.py:479 
    512538#, python-format 
    513539msgid "Are you sure you want to delete playlist '%s'?" 
    514540msgstr "" 
    515541 
    516 #: ../src/playlist_control.py:477 
     542#: ../src/playlist_control.py:481 
    517543msgid "All playlist data will be lost." 
    518544msgstr "" 
    519545 
    520 #: ../src/playlist_control.py:664 
     546#: ../src/playlist_control.py:668 
    521547msgid "tracks" 
    522548msgstr "" 
    523549 
    524 #: ../src/playlist_control.py:1035 
     550#: ../src/playlist_control.py:972 
     551#, python-format 
     552msgid "Adding items to '%s'..." 
     553msgstr "" 
     554 
     555#: ../src/playlist_control.py:1042 
    525556#, python-format 
    526557msgid "" 
     
    530561msgstr "" 
    531562 
    532 #: ../src/playlist_control.py:1044 
     563#: ../src/playlist_control.py:1051 
    533564#, python-format 
    534565msgid "" 
     
    538569msgstr "" 
    539570 
    540 #: ../src/playlist_control.py:1099 
     571#: ../src/playlist_control.py:1069 
     572#, python-format 
     573msgid "%d items added to '%s'" 
     574msgstr "" 
     575 
     576#: ../src/playlist_control.py:1112 
    541577msgid "Add Music" 
    542578msgstr "" 
    543579 
    544 #: ../src/playlist_control.py:1121 
     580#: ../src/playlist_control.py:1134 
    545581msgid "All" 
    546582msgstr "" 
    547583 
    548 #: ../src/playlist_control.py:1122 
     584#: ../src/playlist_control.py:1135 
    549585msgid "Audio" 
    550586msgstr "" 
    551587 
    552 #: ../src/playlist_control.py:1123 
     588#: ../src/playlist_control.py:1136 
    553589msgid "Playlists" 
    554590msgstr "" 
     
    557593#. the checkbox is toggles and files when not since this is not 
    558594#. possible by default 
    559 #: ../src/playlist_control.py:1128 
     595#: ../src/playlist_control.py:1141 
    560596msgid "Make the _dialog be able/unable to select directories" 
    561597msgstr "" 
    562598 
    563 #: ../src/playlist_control.py:1275 
     599#: ../src/playlist_control.py:1288 
    564600msgid "No match found" 
    565601msgstr "" 
    566602 
    567 #: ../src/playlist_control.py:1276 
     603#: ../src/playlist_control.py:1289 
    568604#, python-format 
    569605msgid "The string '%s' does not match any playlist entries." 
     
    696732#: ../src/preference_window.py:134 
    697733msgid "Plugin deactivation error" 
    698 msgstr "" 
    699  
    700 #: ../src/status_icon.py:71 
    701 msgid "Show Mesk Player" 
    702734msgstr "" 
    703735 
  • trunk/src/mesk/audio/__init__.py

    r496 r499  
    5151 
    5252# Initialize audio format modules 
    53 modules = ['mp3', 
     53modules = ['mpeg', 
    5454           'oggvorbis', 
    5555          ] 
  • trunk/src/mesk/audio/mpeg.py

    r495 r499  
    2525from mesk.i18n import _ 
    2626 
    27 # Test for mp3 support in gstreamer 
     27# Test for mpeg support in gstreamer 
    2828try: 
    2929    gst.element_factory_make('mad') 
    3030except Exception, ex: 
    31     print >> sys.stderr, 'No MP3 audio support' 
     31    print >> sys.stderr, 'No mpeg (mp3) audio support' 
    3232    raise 
    3333 
     
    4545    from eyeD3.frames import ImageFrame 
    4646 
    47 NAME = 'MP3
     47NAME = 'MPEG
    4848MIME_TYPE = 'audio/mpeg' 
    4949EXTENSIONS = ['.mp3', '.mp2'] 
    5050 
    5151from source import AudioSource, AudioMetaData 
    52 class Mp3AudioSource(AudioSource): 
     52class MpegAudioSource(AudioSource): 
    5353    def __init__(self, uri, meta_data=None): 
    5454        AudioSource.__init__(self, uri, meta_data) 
     
    5656        if not self.meta_data: 
    5757            if self.uri.scheme == 'file': 
    58                 self.meta_data = Mp3MetaData(self.uri) 
     58                self.meta_data = MpegMetaData(self.uri) 
    5959            elif self.uri.scheme in ['http', 'https']: 
    60                 self.meta_data = Mp3MetaData() 
     60                self.meta_data = MpegMetaData() 
    6161            else: 
    6262                raise UnsupportedScheme('\'%s\' URI scheme is not supported' % \ 
     
    103103 
    104104from eyeD3 import TagException, InvalidAudioFormatException 
    105 class Mp3MetaData(AudioMetaData): 
     105class MpegMetaData(AudioMetaData): 
    106106 
    107107    def __init__(self, uri=None): 
     
    116116            audio_file = eyeD3.Mp3AudioFile(uri_path) 
    117117        except (TagException, InvalidAudioFormatException), ex: 
    118             mesk.log.warning('Error reading mp3 source for \'%s\': %s' % 
     118            mesk.log.warning('Error reading mpeg source for \'%s\': %s' % 
    119119                             (uri_path, str(ex))) 
    120120        else: 
     
    131131                self.frozen = True 
    132132 
    133 # The factory class for mp3 files 
    134 factory = Mp3AudioSource 
     133# The factory class for mpeg files 
     134factory = MpegAudioSource 
    135135