diff options
author | Max Kellermann <max@duempel.org> | 2009-01-06 18:21:30 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-06 18:21:30 +0100 |
commit | cad3e3407ce71e3ba82f7f8158e9ab7505e85a1f (patch) | |
tree | 88fea9ec88fc2d9fd46bdd48af16c02940226f45 | |
parent | cc9502576b1fb669b71ddf3f772a567d55789928 (diff) | |
download | mpd-cad3e3407ce71e3ba82f7f8158e9ab7505e85a1f.tar.gz mpd-cad3e3407ce71e3ba82f7f8158e9ab7505e85a1f.tar.xz mpd-cad3e3407ce71e3ba82f7f8158e9ab7505e85a1f.zip |
screen_browser: removed "OLD_ADD" code
The code was disabled via CPP.
-rw-r--r-- | po/da.po | 15 | ||||
-rw-r--r-- | po/de.po | 15 | ||||
-rw-r--r-- | po/es.po | 15 | ||||
-rw-r--r-- | po/fr.po | 15 | ||||
-rw-r--r-- | po/gl.po | 15 | ||||
-rw-r--r-- | po/hu.po | 15 | ||||
-rw-r--r-- | po/ncmpc.pot | 12 | ||||
-rw-r--r-- | po/no.po | 15 | ||||
-rw-r--r-- | po/ru.po | 15 | ||||
-rw-r--r-- | po/sk.po | 15 | ||||
-rw-r--r-- | po/sv.po | 15 | ||||
-rw-r--r-- | src/screen_browser.c | 58 |
12 files changed, 65 insertions, 155 deletions
@@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: ncmpc 0.11.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-01-06 18:12+0100\n" +"POT-Creation-Date: 2009-01-06 18:21+0100\n" "PO-Revision-Date: 2009-01-06 18:13+0100\n" "Last-Translator: Niels Anker <nanker@webspeed.dk>\n" "Language-Team: da <da@li.org>\n" @@ -181,22 +181,16 @@ msgstr "Album: %s - %s" msgid "All tracks of artist: %s" msgstr "Alle spor fra kunstneren: %s" -#: src/screen_browser.c:238 +#: src/screen_browser.c:236 #, c-format msgid "Loading playlist %s..." msgstr "Henter %s..." -#: src/screen_browser.c:261 src/screen_browser.c:371 src/screen_browser.c:397 +#: src/screen_browser.c:259 src/screen_browser.c:317 src/screen_browser.c:343 #, c-format msgid "Adding '%s' to playlist" msgstr "Tilføjer '%s' til listen" -#. translators: a directory is being added the to playlist -#: src/screen_browser.c:316 -#, c-format -msgid "Adding directory %s...\n" -msgstr "Tilføjer mappen %s...\n" - #: src/screen_utils.c:32 msgid "Find: " msgstr "Søg: " @@ -931,6 +925,9 @@ msgstr "" " Mikkel Kirkgaard Nielsen https://launchpad.net/~ncmpc\n" " Niels Anker https://launchpad.net/~nanker" +#~ msgid "Adding directory %s...\n" +#~ msgstr "Tilføjer mappen %s...\n" + #~ msgid "Key %s assigned to %s and %s (press %s for the key editor)" #~ msgstr "Tast %s bundet til kommando %s og %s (tryk på %s for at redigere)" @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: ncmpc 0.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-01-06 18:12+0100\n" +"POT-Creation-Date: 2009-01-06 18:21+0100\n" "PO-Revision-Date: 2009-01-06 18:14+0100\n" "Last-Translator: Monika Brinkert <moni@sunpig.de>\n" "Language-Team: de <de@li.org>\n" @@ -181,22 +181,16 @@ msgstr "Album: %s - %s" msgid "All tracks of artist: %s" msgstr "Alle Lieder des Künstlers: %s" -#: src/screen_browser.c:238 +#: src/screen_browser.c:236 #, c-format msgid "Loading playlist %s..." msgstr "Lade Playlist %s..." -#: src/screen_browser.c:261 src/screen_browser.c:371 src/screen_browser.c:397 +#: src/screen_browser.c:259 src/screen_browser.c:317 src/screen_browser.c:343 #, c-format msgid "Adding '%s' to playlist" msgstr "Füge '%s' der Playlist hinzu" -#. translators: a directory is being added the to playlist -#: src/screen_browser.c:316 -#, c-format -msgid "Adding directory %s...\n" -msgstr "Füge Verzeichnis %s hinzu...\n" - #: src/screen_utils.c:32 msgid "Find: " msgstr "Suche: " @@ -928,6 +922,9 @@ msgstr "Unbekannter Konfigurationsparameter" msgid "translator-credits" msgstr "" +#~ msgid "Adding directory %s...\n" +#~ msgstr "Füge Verzeichnis %s hinzu...\n" + #~ msgid "Key %s assigned to %s and %s (press %s for the key editor)" #~ msgstr "Taste %s ist %s und %s zugeordnet (drücke %s für den Tasteneditor)" @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: ncmpc\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-01-06 18:12+0100\n" +"POT-Creation-Date: 2009-01-06 18:21+0100\n" "PO-Revision-Date: 2009-01-06 18:14+0100\n" "Last-Translator: Johám-Luís Miguéns Vila <ashtophet@ashtophet.org>\n" "Language-Team: es\n" @@ -186,22 +186,16 @@ msgstr "Álbum: %s - %s" msgid "All tracks of artist: %s" msgstr "Todas las pistas del artista: %s" -#: src/screen_browser.c:238 +#: src/screen_browser.c:236 #, c-format msgid "Loading playlist %s..." msgstr "Cargando la lista %s..." -#: src/screen_browser.c:261 src/screen_browser.c:371 src/screen_browser.c:397 +#: src/screen_browser.c:259 src/screen_browser.c:317 src/screen_browser.c:343 #, c-format msgid "Adding '%s' to playlist" msgstr "Añadiendo '%s' a la lista de canciones" -#. translators: a directory is being added the to playlist -#: src/screen_browser.c:316 -#, c-format -msgid "Adding directory %s...\n" -msgstr "Añadiendo directorio %s...\n" - #: src/screen_utils.c:32 msgid "Find: " msgstr "Buscar:" @@ -933,6 +927,9 @@ msgstr "Parámetro de configuración desconocido" msgid "translator-credits" msgstr "ashtophet" +#~ msgid "Adding directory %s...\n" +#~ msgstr "Añadiendo directorio %s...\n" + #~ msgid "Key %s assigned to %s and %s (press %s for the key editor)" #~ msgstr "" #~ "Tecla %s asignada a %s y %s (pressiona %s para accer al editor de teclas)" @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: ncmpc 0.12.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-01-06 18:12+0100\n" +"POT-Creation-Date: 2009-01-06 18:21+0100\n" "PO-Revision-Date: 2009-01-06 18:15+0100\n" "Last-Translator: Yann Cézard <eesprit@free.fr>\n" "Language-Team: fr <fr@li.org>\n" @@ -179,22 +179,16 @@ msgstr "Album: %s - %s" msgid "All tracks of artist: %s" msgstr "Toutes les pistes de l'artiste : %s" -#: src/screen_browser.c:238 +#: src/screen_browser.c:236 #, c-format msgid "Loading playlist %s..." msgstr "Chargement de la liste de lecture %s..." -#: src/screen_browser.c:261 src/screen_browser.c:371 src/screen_browser.c:397 +#: src/screen_browser.c:259 src/screen_browser.c:317 src/screen_browser.c:343 #, c-format msgid "Adding '%s' to playlist" msgstr "Ajout de '%s' à la liste de lecture" -#. translators: a directory is being added the to playlist -#: src/screen_browser.c:316 -#, c-format -msgid "Adding directory %s...\n" -msgstr "Ajout du répertoire %s...\n" - #: src/screen_utils.c:32 msgid "Find: " msgstr "Trouver: " @@ -926,6 +920,9 @@ msgstr "Paramètre de configuration inconnu" msgid "translator-credits" msgstr "Traduction française : Yann Cézard <eesprit@free.fr>" +#~ msgid "Adding directory %s...\n" +#~ msgstr "Ajout du répertoire %s...\n" + #~ msgid "Key %s assigned to %s and %s (press %s for the key editor)" #~ msgstr "" #~ "La touche %s est assignée à %s et à %s (appuyez sur %s pour l'éditeur de " @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: ncmpc\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-01-06 18:12+0100\n" +"POT-Creation-Date: 2009-01-06 18:21+0100\n" "PO-Revision-Date: 2009-01-06 18:15+0100\n" "Last-Translator: Johám-Luís Miguéns Vila <galiza.ceive@gmail.com>\n" "Language-Team: galician\n" @@ -181,22 +181,16 @@ msgstr "Álbum: %s - %s" msgid "All tracks of artist: %s" msgstr "Todas as pistas do artista: %s" -#: src/screen_browser.c:238 +#: src/screen_browser.c:236 #, c-format msgid "Loading playlist %s..." msgstr "A carregar a lista %s..." -#: src/screen_browser.c:261 src/screen_browser.c:371 src/screen_browser.c:397 +#: src/screen_browser.c:259 src/screen_browser.c:317 src/screen_browser.c:343 #, c-format msgid "Adding '%s' to playlist" msgstr "A engadir '%s' à lista" -#. translators: a directory is being added the to playlist -#: src/screen_browser.c:316 -#, c-format -msgid "Adding directory %s...\n" -msgstr "Engadindo o cartafol %s...\n" - #: src/screen_utils.c:32 msgid "Find: " msgstr "Procurar" @@ -928,6 +922,9 @@ msgstr "Parâmetro de configuraçom desconhecido" msgid "translator-credits" msgstr "ashtophet" +#~ msgid "Adding directory %s...\n" +#~ msgstr "Engadindo o cartafol %s...\n" + #~ msgid "Key %s assigned to %s and %s (press %s for the key editor)" #~ msgstr "" #~ "A tecla %s assignou-se a %s e a %s (preme %s para ir ao editor de atalhos)" @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: ncmpc\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-01-06 18:12+0100\n" +"POT-Creation-Date: 2009-01-06 18:21+0100\n" "PO-Revision-Date: 2009-01-06 18:16+0100\n" "Last-Translator: Laszlo Ashin <kodest@gmail.com>\n" "Language-Team: Hungarian <hu@li.org>\n" @@ -181,22 +181,16 @@ msgstr "Album: %s - %s" msgid "All tracks of artist: %s" msgstr "%s előadó minden száma" -#: src/screen_browser.c:238 +#: src/screen_browser.c:236 #, c-format msgid "Loading playlist %s..." msgstr "%s lejátszólista betöltése..." -#: src/screen_browser.c:261 src/screen_browser.c:371 src/screen_browser.c:397 +#: src/screen_browser.c:259 src/screen_browser.c:317 src/screen_browser.c:343 #, c-format msgid "Adding '%s' to playlist" msgstr "'%s' hozzáadása a lejátszólistához" -#. translators: a directory is being added the to playlist -#: src/screen_browser.c:316 -#, c-format -msgid "Adding directory %s...\n" -msgstr "%s könyvtár hozzáadása...\n" - #: src/screen_utils.c:32 msgid "Find: " msgstr "Keresés: " @@ -930,6 +924,9 @@ msgstr "" "Launchpad Contributions:\n" " Laszlo Ashin https://launchpad.net/~kodest" +#~ msgid "Adding directory %s...\n" +#~ msgstr "%s könyvtár hozzáadása...\n" + #~ msgid "Key %s assigned to %s and %s (press %s for the key editor)" #~ msgstr "" #~ "%s gomb hozzárendelve a következőkhöz: %s és %s (nyomj %s-t a " diff --git a/po/ncmpc.pot b/po/ncmpc.pot index ea777a322..4b288c56a 100644 --- a/po/ncmpc.pot +++ b/po/ncmpc.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-01-06 18:12+0100\n" +"POT-Creation-Date: 2009-01-06 18:21+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -180,22 +180,16 @@ msgstr "" msgid "All tracks of artist: %s" msgstr "" -#: src/screen_browser.c:238 +#: src/screen_browser.c:236 #, c-format msgid "Loading playlist %s..." msgstr "" -#: src/screen_browser.c:261 src/screen_browser.c:371 src/screen_browser.c:397 +#: src/screen_browser.c:259 src/screen_browser.c:317 src/screen_browser.c:343 #, c-format msgid "Adding '%s' to playlist" msgstr "" -#. translators: a directory is being added the to playlist -#: src/screen_browser.c:316 -#, c-format -msgid "Adding directory %s...\n" -msgstr "" - #: src/screen_utils.c:32 msgid "Find: " msgstr "" @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: ncmpc 0.11.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-01-06 18:12+0100\n" +"POT-Creation-Date: 2009-01-06 18:21+0100\n" "PO-Revision-Date: 2009-01-06 18:17+0100\n" "Last-Translator: Ole R. Thorsen <ole.rth@gmail.com>\n" "Language-Team: no <no@li.org>\n" @@ -181,22 +181,16 @@ msgstr "" msgid "All tracks of artist: %s" msgstr "" -#: src/screen_browser.c:238 +#: src/screen_browser.c:236 #, c-format msgid "Loading playlist %s..." msgstr "Henter spilleliste %s..." -#: src/screen_browser.c:261 src/screen_browser.c:371 src/screen_browser.c:397 +#: src/screen_browser.c:259 src/screen_browser.c:317 src/screen_browser.c:343 #, c-format msgid "Adding '%s' to playlist" msgstr "Legger '%s' til spillelisten" -#. translators: a directory is being added the to playlist -#: src/screen_browser.c:316 -#, c-format -msgid "Adding directory %s...\n" -msgstr "Legger til mappen %s...\n" - #: src/screen_utils.c:32 msgid "Find: " msgstr "Søk: " @@ -941,6 +935,9 @@ msgstr "Tastaturkonfigurasjon" msgid "translator-credits" msgstr "" +#~ msgid "Adding directory %s...\n" +#~ msgstr "Legger til mappen %s...\n" + #~ msgid "Key %s assigned to %s and %s (press %s for the key editor)" #~ msgstr "%s tildelt kommandoen %s og %s (trykk %s for å rette)" @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: ncmpc 0.11.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-01-06 18:12+0100\n" +"POT-Creation-Date: 2009-01-06 18:21+0100\n" "PO-Revision-Date: 2009-01-06 18:17+0100\n" "Last-Translator: Max Arnold <amv_cbx@mail.ru>\n" "Language-Team: ru <ru@li.org>\n" @@ -181,22 +181,16 @@ msgstr ": %s - %s" msgid "All tracks of artist: %s" msgstr " : %s" -#: src/screen_browser.c:238 +#: src/screen_browser.c:236 #, c-format msgid "Loading playlist %s..." msgstr " %s..." -#: src/screen_browser.c:261 src/screen_browser.c:371 src/screen_browser.c:397 +#: src/screen_browser.c:259 src/screen_browser.c:317 src/screen_browser.c:343 #, c-format msgid "Adding '%s' to playlist" msgstr " '%s'" -#. translators: a directory is being added the to playlist -#: src/screen_browser.c:316 -#, c-format -msgid "Adding directory %s...\n" -msgstr " %s...\n" - #: src/screen_utils.c:32 msgid "Find: " msgstr ": " @@ -931,6 +925,9 @@ msgstr " " msgid "translator-credits" msgstr ": Max Arnold <lwarxx@gmail.com>" +#~ msgid "Adding directory %s...\n" +#~ msgstr " %s...\n" + #~ msgid "Key %s assigned to %s and %s (press %s for the key editor)" #~ msgstr " %s %s %s (%s - )" @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: ncmpc 0.11.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-01-06 18:12+0100\n" +"POT-Creation-Date: 2009-01-06 18:21+0100\n" "PO-Revision-Date: 2009-01-06 18:18+0100\n" "Last-Translator: Jozef Riha <jose1711@gmail.com>\n" "Language-Team: sk <sk@li.org>\n" @@ -179,22 +179,16 @@ msgstr "Album: %s - %s" msgid "All tracks of artist: %s" msgstr "Všetky stopy od interpreta: %s" -#: src/screen_browser.c:238 +#: src/screen_browser.c:236 #, c-format msgid "Loading playlist %s..." msgstr "Nahrávam playlist %s..." -#: src/screen_browser.c:261 src/screen_browser.c:371 src/screen_browser.c:397 +#: src/screen_browser.c:259 src/screen_browser.c:317 src/screen_browser.c:343 #, c-format msgid "Adding '%s' to playlist" msgstr "Pridávam '%s' do playlistu" -#. translators: a directory is being added the to playlist -#: src/screen_browser.c:316 -#, c-format -msgid "Adding directory %s...\n" -msgstr "Pridávam adresár %s...\n" - #: src/screen_utils.c:32 msgid "Find: " msgstr "Vyhľadať: " @@ -926,6 +920,9 @@ msgstr "Neznámy parameter konfigurácie" msgid "translator-credits" msgstr "Jozef Riha <jose1711@gmail.com>" +#~ msgid "Adding directory %s...\n" +#~ msgstr "Pridávam adresár %s...\n" + #~ msgid "Key %s assigned to %s and %s (press %s for the key editor)" #~ msgstr "Kláves %s priradený k %s a %s (stlačte %s pre editor klávesov)" @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: ncmpc 0.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-01-06 18:12+0100\n" +"POT-Creation-Date: 2009-01-06 18:21+0100\n" "PO-Revision-Date: 2009-01-06 18:18+0100\n" "Last-Translator: Björn Pettersson <bjorn@hygiena.org>\n" "Language-Team: sv <sv@li.org>\n" @@ -181,22 +181,16 @@ msgstr "Album: %s - %s" msgid "All tracks of artist: %s" msgstr "Alla spår av artist: %s" -#: src/screen_browser.c:238 +#: src/screen_browser.c:236 #, c-format msgid "Loading playlist %s..." msgstr "Laddar spellista %s..." -#: src/screen_browser.c:261 src/screen_browser.c:371 src/screen_browser.c:397 +#: src/screen_browser.c:259 src/screen_browser.c:317 src/screen_browser.c:343 #, c-format msgid "Adding '%s' to playlist" msgstr "Lägger till '%s' till spellista" -#. translators: a directory is being added the to playlist -#: src/screen_browser.c:316 -#, c-format -msgid "Adding directory %s...\n" -msgstr "Lägger till katalog %s...\n" - #: src/screen_utils.c:32 msgid "Find: " msgstr "Sök: " @@ -932,6 +926,9 @@ msgstr "" " Kalle Wallin https://launchpad.net/~kaw\n" " nanker https://launchpad.net/~nanker" +#~ msgid "Adding directory %s...\n" +#~ msgstr "Lägger till katalog %s...\n" + #~ msgid "Key %s assigned to %s and %s (press %s for the key editor)" #~ msgstr "%s tilldelat kommandona %s och %s (tryck på %s för att korrigera)" diff --git a/src/screen_browser.c b/src/screen_browser.c index fcc8ddb83..3f1b5e37c 100644 --- a/src/screen_browser.c +++ b/src/screen_browser.c @@ -26,8 +26,6 @@ #include <string.h> -#undef USE_OLD_ADD - #define BUFSIZE 1024 #ifndef NCMPC_MINI @@ -300,56 +298,6 @@ browser_handle_enter(struct screen_browser *browser, mpdclient_t *c) return false; } - -#ifdef USE_OLD_ADD - -static int -add_directory(mpdclient_t *c, char *dir) -{ - mpd_InfoEntity *entity; - GList *subdir_list = NULL; - GList *list = NULL; - char *dirname; - - dirname = utf8_to_locale(dir); - /* translators: a directory is being added the to playlist */ - screen_status_printf(_("Adding directory %s...\n"), dirname); - doupdate(); - g_free(dirname); - dirname = NULL; - - mpd_sendLsInfoCommand(c->connection, dir); - mpd_sendCommandListBegin(c->connection); - while( (entity=mpd_getNextInfoEntity(c->connection)) ) { - if( entity->type==MPD_INFO_ENTITY_TYPE_SONG ) { - mpd_Song *song = entity->info.song; - mpd_sendAddCommand(c->connection, song->file); - mpd_freeInfoEntity(entity); - } else if( entity->type==MPD_INFO_ENTITY_TYPE_DIRECTORY ) { - subdir_list = g_list_append(subdir_list, (gpointer) entity); - } else - mpd_freeInfoEntity(entity); - } - mpd_sendCommandListEnd(c->connection); - mpdclient_finish_command(c); - c->need_update = TRUE; - - list = g_list_first(subdir_list); - while( list!=NULL ) { - mpd_Directory *dir; - - entity = list->data; - dir = entity->info.directory; - add_directory(c, dir->path); - mpd_freeInfoEntity(entity); - list->data=NULL; - list=list->next; - } - g_list_free(subdir_list); - return 0; -} -#endif - static bool browser_select_entry(mpdclient_t *c, filelist_entry_t *entry, G_GNUC_UNUSED gboolean toggle) @@ -362,16 +310,14 @@ browser_select_entry(mpdclient_t *c, filelist_entry_t *entry, if (entry->entity->type == MPD_INFO_ENTITY_TYPE_DIRECTORY) { mpd_Directory *dir = entry->entity->info.directory; -#ifdef USE_OLD_ADD - add_directory(c, tmp); -#else + if (mpdclient_cmd_add_path(c, dir->path) == 0) { char *tmp = utf8_to_locale(dir->path); screen_status_printf(_("Adding \'%s\' to playlist"), tmp); g_free(tmp); } -#endif + return true; } |