# HG changeset patch # User diego # Date 1185643015 0 # Node ID 702707dc752186964c33e7df26de85f0e1f144fc # Parent 49a433e2e78f1244be5661e17cdb86622ded1b10 Give message string a more meaningful name. diff -r 49a433e2e78f -r 702707dc7521 help/help_mp-cs.h --- a/help/help_mp-cs.h Sat Jul 28 14:28:38 2007 +0000 +++ b/help/help_mp-cs.h Sat Jul 28 17:16:55 2007 +0000 @@ -1573,7 +1573,7 @@ // libmenu/menu_console.c #define MSGTR_LIBMENU_WaitPidError "[MENU] Chyba při čekání na PID: %s.\n" #define MSGTR_LIBMENU_SelectError "[MENU] Chyba výběru.\n" -#define MSGTR_LIBMENU_ReadErrorOnChildren "[MENU] Chyba čtení na popisovači souboru potomka: %s.\n" +#define MSGTR_LIBMENU_ReadErrorOnChildFD "[MENU] Chyba čtení na popisovači souboru potomka: %s.\n" #define MSGTR_LIBMENU_ConsoleRun "[MENU] Spuštění v konsoli: %s ...\n" #define MSGTR_LIBMENU_AChildIsAlreadyRunning "[MENU] Potomek už běží.\n" #define MSGTR_LIBMENU_ForkFailed "[MENU] Forkování selhalo!!!\n" diff -r 49a433e2e78f -r 702707dc7521 help/help_mp-de.h --- a/help/help_mp-de.h Sat Jul 28 14:28:38 2007 +0000 +++ b/help/help_mp-de.h Sat Jul 28 17:16:55 2007 +0000 @@ -1634,7 +1634,7 @@ // libmenu/menu_console.c #define MSGTR_LIBMENU_WaitPidError "[MENU] Waitpid-Fehler: %s.\n" #define MSGTR_LIBMENU_SelectError "[MENU] Fehler bei der Auswahl.\n" -#define MSGTR_LIBMENU_ReadErrorOnChildren "[MENU] Lesefehler bei child-Dateideskriptor: %s.\n" +#define MSGTR_LIBMENU_ReadErrorOnChildFD "[MENU] Lesefehler bei child-Dateideskriptor: %s.\n" #define MSGTR_LIBMENU_ConsoleRun "[MENU] Konsolenaufruf: %s ...\n" #define MSGTR_LIBMENU_AChildIsAlreadyRunning "[MENU] Es läuft schon ein Child.\n" #define MSGTR_LIBMENU_ForkFailed "[MENU] Fork fehlgeschlagen!!!\n" diff -r 49a433e2e78f -r 702707dc7521 help/help_mp-en.h --- a/help/help_mp-en.h Sat Jul 28 14:28:38 2007 +0000 +++ b/help/help_mp-en.h Sat Jul 28 17:16:55 2007 +0000 @@ -1596,7 +1596,7 @@ // libmenu/menu_console.c #define MSGTR_LIBMENU_WaitPidError "[MENU] Waitpid error: %s.\n" #define MSGTR_LIBMENU_SelectError "[MENU] Select error.\n" -#define MSGTR_LIBMENU_ReadErrorOnChildren "[MENU] Read error on child's file descriptor: %s.\n" +#define MSGTR_LIBMENU_ReadErrorOnChildFD "[MENU] Read error on child's file descriptor: %s.\n" #define MSGTR_LIBMENU_ConsoleRun "[MENU] Console run: %s ...\n" #define MSGTR_LIBMENU_AChildIsAlreadyRunning "[MENU] A child is already running.\n" #define MSGTR_LIBMENU_ForkFailed "[MENU] Fork failed !!!\n" diff -r 49a433e2e78f -r 702707dc7521 help/help_mp-es.h --- a/help/help_mp-es.h Sat Jul 28 14:28:38 2007 +0000 +++ b/help/help_mp-es.h Sat Jul 28 17:16:55 2007 +0000 @@ -1568,7 +1568,7 @@ // libmenu/menu_console.c #define MSGTR_LIBMENU_WaitPidError "[MENU] Error Waitpid: %s.\n" #define MSGTR_LIBMENU_SelectError "[MENU] Error en Select.\n" -#define MSGTR_LIBMENU_ReadErrorOnChildren "[MENU] Error de lectura en el descriptor de archivo hijo: %s.\n" +#define MSGTR_LIBMENU_ReadErrorOnChildFD "[MENU] Error de lectura en el descriptor de archivo hijo: %s.\n" #define MSGTR_LIBMENU_ConsoleRun "[MENU] Consola corriendo: %s ...\n" #define MSGTR_LIBMENU_AChildIsAlreadyRunning "[MENU] Ya hay un hijo/child corriendo.\n" #define MSGTR_LIBMENU_ForkFailed "[MENU] Falló el Fork!!!\n" diff -r 49a433e2e78f -r 702707dc7521 help/help_mp-fr.h --- a/help/help_mp-fr.h Sat Jul 28 14:28:38 2007 +0000 +++ b/help/help_mp-fr.h Sat Jul 28 17:16:55 2007 +0000 @@ -1565,7 +1565,7 @@ // libmenu/menu_console.c #define MSGTR_LIBMENU_WaitPidError "[MENU] Erreur attente identificateur processus : %s.\n" #define MSGTR_LIBMENU_SelectError "[MENU] Erreur sélection.\n" -#define MSGTR_LIBMENU_ReadErrorOnChildren "[MENU] Erreur lecture sur processus enfant : %s.\n" +#define MSGTR_LIBMENU_ReadErrorOnChildFD "[MENU] Erreur lecture sur processus enfant : %s.\n" #define MSGTR_LIBMENU_ConsoleRun "[MENU] Console run : %s ...\n" #define MSGTR_LIBMENU_AChildIsAlreadyRunning "[MENU] Processus enfant déjà en cours.\n" #define MSGTR_LIBMENU_ForkFailed "[MENU] Échec branchement !!!\n" diff -r 49a433e2e78f -r 702707dc7521 help/help_mp-hu.h --- a/help/help_mp-hu.h Sat Jul 28 14:28:38 2007 +0000 +++ b/help/help_mp-hu.h Sat Jul 28 17:16:55 2007 +0000 @@ -1595,7 +1595,7 @@ // libmenu/menu_console.c #define MSGTR_LIBMENU_WaitPidError "[MENU] Waitpid hiba: %s.\n" #define MSGTR_LIBMENU_SelectError "[MENU] Kiválasztási hiba.\n" -#define MSGTR_LIBMENU_ReadErrorOnChildren "[MENU] Olvasási hiba a gyerek fájlleírójában: %s.\n" +#define MSGTR_LIBMENU_ReadErrorOnChildFD "[MENU] Olvasási hiba a gyerek fájlleírójában: %s.\n" #define MSGTR_LIBMENU_ConsoleRun "[MENU] Konzol futtatás: %s ...\n" #define MSGTR_LIBMENU_AChildIsAlreadyRunning "[MENU] Egy gyermek már fut.\n" #define MSGTR_LIBMENU_ForkFailed "[MENU] Fork sikertelen !!!\n" diff -r 49a433e2e78f -r 702707dc7521 help/help_mp-it.h --- a/help/help_mp-it.h Sat Jul 28 14:28:38 2007 +0000 +++ b/help/help_mp-it.h Sat Jul 28 17:16:55 2007 +0000 @@ -1593,7 +1593,7 @@ // libmenu/menu_console.c #define MSGTR_LIBMENU_WaitPidError "[MENU] Errore di attesa pid: %s.\n" #define MSGTR_LIBMENU_SelectError "[MENU] Errore di selezione.\n" -#define MSGTR_LIBMENU_ReadErrorOnChildren "[MENU] Errore di lettura sul descrittore file del processo figlio: %s.\n" +#define MSGTR_LIBMENU_ReadErrorOnChildFD "[MENU] Errore di lettura sul descrittore file del processo figlio: %s.\n" #define MSGTR_LIBMENU_ConsoleRun "[MENU] Esecuzione in console: %s ...\n" #define MSGTR_LIBMENU_AChildIsAlreadyRunning "[MENU] Un processo figlio è già in esecuzione.\n" #define MSGTR_LIBMENU_ForkFailed "[MENU] Fork fallito !!!\n" diff -r 49a433e2e78f -r 702707dc7521 help/help_mp-pl.h --- a/help/help_mp-pl.h Sat Jul 28 14:28:38 2007 +0000 +++ b/help/help_mp-pl.h Sat Jul 28 17:16:55 2007 +0000 @@ -1476,7 +1476,7 @@ // libmenu/menu_console.c #define MSGTR_LIBMENU_WaitPidError "[MENU] błąd waitpid: %s.\n" #define MSGTR_LIBMENU_SelectError "[MENU] Błąd wyboru.\n" -#define MSGTR_LIBMENU_ReadErrorOnChildren "[MENU] Błąd odczytu deskryptora pliku potomnego: %s.\n" +#define MSGTR_LIBMENU_ReadErrorOnChildFD "[MENU] Błąd odczytu deskryptora pliku potomnego: %s.\n" #define MSGTR_LIBMENU_ConsoleRun "[MENU] Uruchom: %s ...\n" #define MSGTR_LIBMENU_AChildIsAlreadyRunning "[MENU] Proces potomny już działa.\n" #define MSGTR_LIBMENU_ForkFailed "[MENU] Fork nie powiodło się !!!\n" diff -r 49a433e2e78f -r 702707dc7521 help/help_mp-ru.h --- a/help/help_mp-ru.h Sat Jul 28 14:28:38 2007 +0000 +++ b/help/help_mp-ru.h Sat Jul 28 17:16:55 2007 +0000 @@ -1707,7 +1707,7 @@ // libmenu/menu_console.c #define MSGTR_LIBMENU_WaitPidError "[МЕНЮ] Ошибка вызова waitpid: %s.\n" #define MSGTR_LIBMENU_SelectError "[МЕНЮ] Ошибка вызова select.\n" -#define MSGTR_LIBMENU_ReadErrorOnChildren "[МЕНЮ] Ошибка чтения дочернего файлового описателя: %s.\n" +#define MSGTR_LIBMENU_ReadErrorOnChildFD "[МЕНЮ] Ошибка чтения дочернего файлового описателя: %s.\n" #define MSGTR_LIBMENU_ConsoleRun "[МЕНЮ] Запуск консоли: %s ...\n" #define MSGTR_LIBMENU_AChildIsAlreadyRunning "[МЕНЮ] Дочерний процесс уже запущен.\n" #define MSGTR_LIBMENU_ForkFailed "[МЕНЮ] Вызов fork не удался !!!\n" diff -r 49a433e2e78f -r 702707dc7521 help/help_mp-tr.h --- a/help/help_mp-tr.h Sat Jul 28 14:28:38 2007 +0000 +++ b/help/help_mp-tr.h Sat Jul 28 17:16:55 2007 +0000 @@ -1465,7 +1465,7 @@ // libmenu/menu_console.c #define MSGTR_LIBMENU_WaitPidError "[MENU] Waitpid hatası: %s.\n" #define MSGTR_LIBMENU_SelectError "[MENU] Seçim hatası.\n" -#define MSGTR_LIBMENU_ReadErrorOnChildren "[MENU] Alt süreçte okuma hatası: %s.\n" +#define MSGTR_LIBMENU_ReadErrorOnChildFD "[MENU] Alt süreçte okuma hatası: %s.\n" #define MSGTR_LIBMENU_ConsoleRun "[MENU] Console işlemi: %s ...\n" #define MSGTR_LIBMENU_AChildIsAlreadyRunning "[MENU] Bir alt süreç zaten çalışıyor.\n" #define MSGTR_LIBMENU_ForkFailed "[MENU] Çatallama başarısız !!!\n" diff -r 49a433e2e78f -r 702707dc7521 help/help_mp-zh_CN.h --- a/help/help_mp-zh_CN.h Sat Jul 28 14:28:38 2007 +0000 +++ b/help/help_mp-zh_CN.h Sat Jul 28 17:16:55 2007 +0000 @@ -1588,7 +1588,7 @@ // libmenu/menu_console.c #define MSGTR_LIBMENU_WaitPidError "[MENU] Waitpid 错误: %s。\n" #define MSGTR_LIBMENU_SelectError "[MENU] Select 错误。\n" -#define MSGTR_LIBMENU_ReadErrorOnChildren "[MENU] 子进程的文件描述符读取错误: %s。\n" +#define MSGTR_LIBMENU_ReadErrorOnChildFD "[MENU] 子进程的文件描述符读取错误: %s。\n" #define MSGTR_LIBMENU_ConsoleRun "[MENU] 终端运行: %s ...\n" #define MSGTR_LIBMENU_AChildIsAlreadyRunning "[MENU] 子进程已经运行。\n" #define MSGTR_LIBMENU_ForkFailed "[MENU] Fork 失败!!!\n" diff -r 49a433e2e78f -r 702707dc7521 help/help_mp-zh_TW.h --- a/help/help_mp-zh_TW.h Sat Jul 28 14:28:38 2007 +0000 +++ b/help/help_mp-zh_TW.h Sat Jul 28 17:16:55 2007 +0000 @@ -1573,7 +1573,7 @@ // libmenu/menu_console.c #define MSGTR_LIBMENU_WaitPidError "[MENU] Waitpid 錯誤: %s。\n" #define MSGTR_LIBMENU_SelectError "[MENU] Select 錯誤。\n" -#define MSGTR_LIBMENU_ReadErrorOnChildren "[MENU] 子進程的文件描述符讀取錯誤: %s。\n" +#define MSGTR_LIBMENU_ReadErrorOnChildFD "[MENU] 子進程的文件描述符讀取錯誤: %s。\n" #define MSGTR_LIBMENU_ConsoleRun "[MENU] 終端運行: %s ...\n" #define MSGTR_LIBMENU_AChildIsAlreadyRunning "[MENU] 子進程已經運行。\n" #define MSGTR_LIBMENU_ForkFailed "[MENU] Fork 失敗!!!\n" diff -r 49a433e2e78f -r 702707dc7521 libmenu/menu_console.c --- a/libmenu/menu_console.c Sat Jul 28 14:28:38 2007 +0000 +++ b/libmenu/menu_console.c Sat Jul 28 17:16:55 2007 +0000 @@ -275,7 +275,7 @@ if(w) mpriv->add_line = 1; r = read(mpriv->child_fd[i],buffer,255); if(r < 0) - mp_msg(MSGT_GLOBAL,MSGL_ERR,MSGTR_LIBMENU_ReadErrorOnChildren, i == 1 ? "stdout":"stderr"); + mp_msg(MSGT_GLOBAL,MSGL_ERR,MSGTR_LIBMENU_ReadErrorOnChildFD, i == 1 ? "stdout":"stderr"); else if(r>0) { buffer[r] = '\0'; add_string(mpriv,buffer);