diff --git a/configure.in b/configure.in index 59695935f..38d5093a8 100644 --- a/configure.in +++ b/configure.in @@ -66,6 +66,7 @@ AC_CHECK_FUNCS([gethostbyname gethostname getsockname gettimeofday inet_ntoa mem AH_VERBATIM([PLUGINS], [#undef PLUGINS]) AH_VERBATIM([PLUGIN_PERL], [#undef PLUGIN_PERL]) AH_VERBATIM([PLUGIN_PYTHON], [#undef PLUGIN_PYTHON]) +AH_VERBATIM([PLUGIN_RUBY], [#undef PLUGIN_RUBY]) AH_VERBATIM([HAVE_GNUTLS], [#undef HAVE_GNUTLS]) AH_VERBATIM([DEBUG], [#undef DEBUG]) @@ -75,12 +76,11 @@ AC_ARG_ENABLE(gtk, [ --enable-gtk Turn on Gtk+ interface (defau AC_ARG_ENABLE(qt, [ --enable-qt Turn on Qt interface (default=no)],enable_qt=$enableval,enable_qt=no) AC_ARG_ENABLE(perl, [ --enable-perl Turn on Perl plugins (default=no)],enable_perl=$enableval,enable_perl=no) AC_ARG_ENABLE(python, [ --enable-python Turn on Python plugins (default=no)],enable_python=$enableval,enable_python=no) +AC_ARG_ENABLE(ruby, [ --enable-ruby Turn on Ruby plugins (default=no)],enable_ruby=$enableval,enable_ruby=no) AC_ARG_ENABLE(gnutls, [ --disable-gnutls Turn off gnutls support (default=auto)],enable_gnutls=$enableval,enable_gnutls=yes) AC_ARG_WITH(debug, [ --with-debug Debugging: 0=no debug, 1=debug compilation, 2=debug compilation + verbose msgs (default=0)],debug=$withval,debug=0) enable_plugins="no" -enable_ruby="no" -RUBY_CFLAGS= AM_CONDITIONAL(GUI_NCURSES, test "$enable_ncurses" = "yes") AM_CONDITIONAL(GUI_WXWIDGETS, test "$enable_wxwidgets" = "yes") @@ -88,7 +88,7 @@ AM_CONDITIONAL(GUI_GTK, test "$enable_gtk" = "yes") AM_CONDITIONAL(GUI_QT, test "$enable_qt" = "yes") AM_CONDITIONAL(PLUGIN_PERL, test "$enable_perl" = "yes") AM_CONDITIONAL(PLUGIN_PYTHON, test "$enable_python" = "yes") -# AM_CONDITIONAL(PLUGIN_RUBY, test "$enable_ruby" = "yes") +AM_CONDITIONAL(PLUGIN_RUBY, test "$enable_ruby" = "yes") AM_CONDITIONAL(HAVE_GNUTLS, test "$enable_gnutls" = "yes") if test "x$enable_ncurses" = "xyes" ; then @@ -225,6 +225,18 @@ if test "x$enable_python" = "xyes" ; then AC_DEFINE(PLUGIN_PYTHON) fi +if test "x$enable_ruby" = "xyes" ; then + enable_plugins="yes" + + # TODO: check that ruby lib and headers are installed + + RUBY_CFLAGS=-I`ruby -rrbconfig -e "puts Config::CONFIG[['archdir']]"` + RUBY_LFLAGS=-L`ruby -rrbconfig -e "puts Config::CONFIG[['archdir']]"` -lruby + PLUGINS_LIBS="$PLUGINS_LIBS ../../plugins/ruby/lib_weechat_ruby.a $RUBY_LFLAGS" + AC_SUBST(RUBY_CFLAGS) + AC_DEFINE(PLUGIN_RUBY) +fi + if test "x$enable_plugins" = "xyes" ; then AC_DEFINE(PLUGINS) fi @@ -272,6 +284,7 @@ AC_OUTPUT([Makefile src/plugins/Makefile src/plugins/perl/Makefile src/plugins/python/Makefile + src/plugins/ruby/Makefile src/gui/Makefile src/gui/curses/Makefile src/gui/wxwidgets/Makefile diff --git a/po/POTFILES.in b/po/POTFILES.in index 298b0b30d..74592dd0c 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -11,6 +11,8 @@ ./src/plugins/perl/wee-perl.h ./src/plugins/python/wee-python.c ./src/plugins/python/wee-python.h +./src/plugins/ruby/wee-ruby.c +./src/plugins/ruby/wee-ruby.h ./src/plugins/plugins.c ./src/plugins/plugins.h ./src/gui/curses/gui-input.c diff --git a/po/es.po b/po/es.po index a0829dcb9..8e996764d 100644 --- a/po/es.po +++ b/po/es.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.1.5-cvs\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2005-08-16 16:52+0200\n" -"PO-Revision-Date: 2005-08-16 16:54+0200\n" +"POT-Creation-Date: 2005-08-21 14:31+0200\n" +"PO-Revision-Date: 2005-08-21 14:32+0200\n" "Last-Translator: Roberto González Cardenete \n" "Language-Team: weechat-dev \n" "MIME-Version: 1.0\n" @@ -1317,7 +1317,7 @@ msgstr "no es posible cambiar el modo para el resto de usuarios" msgid "whois (secure connection)" msgstr "whois (conexión segura)" -#: src/irc/irc-display.c:163 src/common/command.c:848 +#: src/irc/irc-display.c:163 src/common/command.c:853 msgid "Server: " msgstr "Servidor: " @@ -1347,7 +1347,7 @@ msgstr " (servidor temporal, no ser msgid "(hidden)" msgstr "(oculto)" -#: src/irc/irc-send.c:59 src/irc/irc-recv.c:3992 +#: src/irc/irc-send.c:59 src/irc/irc-recv.c:4008 msgid "unknown" msgstr "desconocido" @@ -1356,7 +1356,7 @@ msgstr "desconocido" msgid "%s: using local hostname \"%s\"\n" msgstr "%s: utilización del nombre de máquina local \"%s\"\n" -#: src/irc/irc-send.c:126 src/common/command.c:726 +#: src/irc/irc-send.c:126 src/common/command.c:731 #, c-format msgid "%s cannot find nick for sending message\n" msgstr "%s no ha sido posible encontrar el usuario al que enviar el mensaje\n" @@ -1373,8 +1373,9 @@ msgstr "" #: src/irc/irc-send.c:415 src/irc/irc-send.c:427 src/irc/irc-send.c:445 #: src/irc/irc-send.c:1097 src/irc/irc-send.c:1190 src/irc/irc-send.c:1722 -#: src/common/command.c:1191 src/common/command.c:1458 -#: src/common/command.c:1608 src/common/command.c:1751 +#: src/common/command.c:1196 src/common/command.c:1463 +#: src/common/command.c:1613 src/common/command.c:1756 +#: src/common/command.c:1899 #, c-format msgid "%s wrong argument count for \"%s\" command\n" msgstr "%s número de argumentos incorrecto para el comando \"%s\"\n" @@ -1396,7 +1397,8 @@ msgstr "" msgid "%s nick \"%s\" not found for \"%s\" command\n" msgstr "%s usuario \"%s\" no encontrado para el comando \"%s\"\n" -#: src/irc/irc-send.c:1067 src/irc/irc-send.c:1375 src/irc/irc-recv.c:1819 +#: src/irc/irc-send.c:1067 src/irc/irc-send.c:1375 src/irc/irc-recv.c:1822 +#: src/irc/irc-recv.c:1900 #, c-format msgid "%s cannot create new private window \"%s\"\n" msgstr "%s no es posible crear una nueva ventana privada \"%s\"\n" @@ -1415,8 +1417,8 @@ msgid "by" msgstr "por" #: src/irc/irc-recv.c:282 src/irc/irc-recv.c:376 src/irc/irc-recv.c:875 -#: src/irc/irc-recv.c:1210 src/irc/irc-recv.c:1452 src/irc/irc-recv.c:3210 -#: src/irc/irc-recv.c:3277 +#: src/irc/irc-recv.c:1210 src/irc/irc-recv.c:1452 src/irc/irc-recv.c:3226 +#: src/irc/irc-recv.c:3293 #, c-format msgid "%s channel \"%s\" not found for \"%s\" command\n" msgstr "%s canal \"%s\" no encontrado para el comando \"%s\"\n" @@ -1560,7 +1562,7 @@ msgid "removes voice from" msgstr "quita la voz a" #: src/irc/irc-recv.c:830 src/irc/irc-recv.c:915 src/irc/irc-recv.c:1284 -#: src/irc/irc-recv.c:1950 +#: src/irc/irc-recv.c:1966 #, c-format msgid "%s \"%s\" command received without host\n" msgstr "%s comando \"%s\" recibido sin host \n" @@ -1609,7 +1611,7 @@ msgstr "%s comando \"%s\" recibido sin host o canal\n" msgid " has left " msgstr " ha salido " -#: src/irc/irc-recv.c:1333 src/irc/irc-recv.c:1845 +#: src/irc/irc-recv.c:1333 src/irc/irc-recv.c:1846 #, c-format msgid "On %s: * %s %s" msgstr "En %s: * %s %s" @@ -1620,11 +1622,11 @@ msgid "Received a CTCP SOUND \"%s\" from " msgstr "Recibido un sonido CTCP \\\"%s\\\" de " #: src/irc/irc-recv.c:1384 src/irc/irc-recv.c:1412 src/irc/irc-recv.c:1512 -#: src/irc/irc-recv.c:1548 src/irc/irc-recv.c:1880 +#: src/irc/irc-recv.c:1548 src/irc/irc-recv.c:1881 msgid "received from" msgstr "recibido de" -#: src/irc/irc-recv.c:1408 src/irc/irc-recv.c:1876 +#: src/irc/irc-recv.c:1408 src/irc/irc-recv.c:1877 msgid "Unknown CTCP " msgstr "" @@ -1637,10 +1639,10 @@ msgstr "En %s: %s> %s" #: src/irc/irc-recv.c:1612 src/irc/irc-recv.c:1637 src/irc/irc-recv.c:1654 #: src/irc/irc-recv.c:1670 src/irc/irc-recv.c:1694 src/irc/irc-recv.c:1711 #: src/irc/irc-recv.c:1727 src/irc/irc-recv.c:1751 src/irc/irc-recv.c:1768 -#: src/irc/irc-recv.c:1783 src/irc/irc-recv.c:1926 src/irc/irc-recv.c:3576 -#: src/irc/irc-recv.c:3634 src/irc/irc-recv.c:3786 src/irc/irc-recv.c:3801 -#: src/irc/irc-recv.c:3816 src/irc/irc-recv.c:3831 src/irc/irc-recv.c:3844 -#: src/irc/irc-recv.c:3894 src/irc/irc-recv.c:3908 +#: src/irc/irc-recv.c:1783 src/irc/irc-recv.c:1942 src/irc/irc-recv.c:3592 +#: src/irc/irc-recv.c:3650 src/irc/irc-recv.c:3802 src/irc/irc-recv.c:3817 +#: src/irc/irc-recv.c:3832 src/irc/irc-recv.c:3847 src/irc/irc-recv.c:3860 +#: src/irc/irc-recv.c:3910 src/irc/irc-recv.c:3924 #, c-format msgid "%s cannot parse \"%s\" command\n" msgstr "%s no es posible analizar el comando \"%s\"\n" @@ -1650,195 +1652,195 @@ msgstr "%s no es posible analizar el comando \"%s\"\n" msgid "%s unknown DCC CHAT type received from " msgstr "%s tipo DCC CHAT desconocido recibido de " -#: src/irc/irc-recv.c:1905 src/irc/irc-dcc.c:1039 +#: src/irc/irc-recv.c:1921 src/irc/irc-dcc.c:1039 #, c-format msgid "Private %s> %s" msgstr "Privado %s> %s" -#: src/irc/irc-recv.c:1982 +#: src/irc/irc-recv.c:1998 msgid "has quit" msgstr "ha salido" -#: src/irc/irc-recv.c:2103 +#: src/irc/irc-recv.c:2119 #, c-format msgid "%s \"%s\" command received without channel\n" msgstr "%s comando \"%s\" recibido sin canal\n" -#: src/irc/irc-recv.c:2131 +#: src/irc/irc-recv.c:2147 msgid " has changed topic for " msgstr "ha cambiado el tema por " -#: src/irc/irc-recv.c:2136 +#: src/irc/irc-recv.c:2152 #, c-format msgid " to: \"%s\"\n" msgstr " a: \"%s\"\n" -#: src/irc/irc-recv.c:2142 +#: src/irc/irc-recv.c:2158 msgid " has unset topic for " msgstr " ha quitado el tema por " -#: src/irc/irc-recv.c:2260 +#: src/irc/irc-recv.c:2276 #, c-format msgid " is away: %s\n" msgstr " está ausente: %s\n" -#: src/irc/irc-recv.c:2334 +#: src/irc/irc-recv.c:2350 msgid "Users online: " msgstr "Usuarios conectados: " -#: src/irc/irc-recv.c:2781 +#: src/irc/irc-recv.c:2797 msgid "idle: " msgstr "sin actividad: " -#: src/irc/irc-recv.c:2789 +#: src/irc/irc-recv.c:2805 msgid "days" msgstr "días" -#: src/irc/irc-recv.c:2789 +#: src/irc/irc-recv.c:2805 msgid "day" msgstr "día" -#: src/irc/irc-recv.c:2799 +#: src/irc/irc-recv.c:2815 msgid "hours" msgstr "horas" -#: src/irc/irc-recv.c:2799 +#: src/irc/irc-recv.c:2815 msgid "hour" msgstr "hora" -#: src/irc/irc-recv.c:2805 +#: src/irc/irc-recv.c:2821 msgid "minutes" msgstr "minutos" -#: src/irc/irc-recv.c:2805 +#: src/irc/irc-recv.c:2821 msgid "minute" msgstr "minuto" -#: src/irc/irc-recv.c:2811 +#: src/irc/irc-recv.c:2827 msgid "seconds" msgstr "segundos" -#: src/irc/irc-recv.c:2811 +#: src/irc/irc-recv.c:2827 msgid "second" msgstr "segundo" -#: src/irc/irc-recv.c:2816 +#: src/irc/irc-recv.c:2832 msgid "signon at: " msgstr "firmado el: " -#: src/irc/irc-recv.c:2904 +#: src/irc/irc-recv.c:2920 msgid "Channels: " msgstr "Canales: " -#: src/irc/irc-recv.c:3156 +#: src/irc/irc-recv.c:3172 msgid "No topic set for " msgstr "No hay tema definido para " -#: src/irc/irc-recv.c:3198 +#: src/irc/irc-recv.c:3214 msgid "Topic for " msgstr "El tema para " -#: src/irc/irc-recv.c:3202 +#: src/irc/irc-recv.c:3218 #, c-format msgid " is: \"%s\"\n" msgstr " es: \"%s\"\n" -#: src/irc/irc-recv.c:3220 src/irc/irc-recv.c:3304 src/irc/irc-recv.c:3357 +#: src/irc/irc-recv.c:3236 src/irc/irc-recv.c:3320 src/irc/irc-recv.c:3373 #, c-format msgid "%s cannot identify channel for \"%s\" command\n" msgstr "%s no es posible identificar el canal para el comando \"%s\"\n" -#: src/irc/irc-recv.c:3266 +#: src/irc/irc-recv.c:3282 msgid "Topic set by " msgstr "Tema definido por " -#: src/irc/irc-recv.c:3286 +#: src/irc/irc-recv.c:3302 #, c-format msgid "%s cannot identify date/time for \"%s\" command\n" msgstr "%s no es posible identificar la fecha/hora para el comando \"%s\"\n" -#: src/irc/irc-recv.c:3295 src/irc/irc-recv.c:3366 +#: src/irc/irc-recv.c:3311 src/irc/irc-recv.c:3382 #, c-format msgid "%s cannot identify nickname for \"%s\" command\n" msgstr "" "%s no es posible determinar el nombre de usuario para el comando \"%s\"\n" -#: src/irc/irc-recv.c:3345 +#: src/irc/irc-recv.c:3361 msgid "has invited" msgstr "ha invitado" -#: src/irc/irc-recv.c:3348 src/irc/irc-recv.c:3499 +#: src/irc/irc-recv.c:3364 src/irc/irc-recv.c:3515 msgid "on" msgstr "en" -#: src/irc/irc-recv.c:3622 +#: src/irc/irc-recv.c:3638 #, c-format msgid "%s cannot create nick \"%s\" for channel \"%s\"\n" msgstr "%s no es posible crear el usuario \"%s\" para el canal \"%s\"\n" -#: src/irc/irc-recv.c:3678 +#: src/irc/irc-recv.c:3694 msgid "Nicks " msgstr "Usuarios " -#: src/irc/irc-recv.c:3698 +#: src/irc/irc-recv.c:3714 msgid "Channel " msgstr "Canal " -#: src/irc/irc-recv.c:3709 +#: src/irc/irc-recv.c:3725 msgid "nicks" msgstr "usuarios" -#: src/irc/irc-recv.c:3709 +#: src/irc/irc-recv.c:3725 msgid "nick" msgstr "usuario" -#: src/irc/irc-recv.c:3717 +#: src/irc/irc-recv.c:3733 msgid "ops" msgstr "operadores" -#: src/irc/irc-recv.c:3717 +#: src/irc/irc-recv.c:3733 msgid "op" msgstr "operador" -#: src/irc/irc-recv.c:3726 +#: src/irc/irc-recv.c:3742 msgid "halfops" msgstr "semi-operadores" -#: src/irc/irc-recv.c:3726 +#: src/irc/irc-recv.c:3742 msgid "halfop" msgstr "semi-operador" -#: src/irc/irc-recv.c:3735 +#: src/irc/irc-recv.c:3751 msgid "voices" msgstr "voces" -#: src/irc/irc-recv.c:3735 +#: src/irc/irc-recv.c:3751 msgid "voice" msgstr "voz" -#: src/irc/irc-recv.c:3744 +#: src/irc/irc-recv.c:3760 msgid "normal" msgstr "normal" -#: src/irc/irc-recv.c:3857 +#: src/irc/irc-recv.c:3873 msgid "banned by" msgstr "baneado por" -#: src/irc/irc-recv.c:3946 +#: src/irc/irc-recv.c:3962 #, c-format msgid "%s: nickname \"%s\" is already in use, trying 2nd nickname \"%s\"\n" msgstr "" "%s: el nombre de usuario \"%s\" ya está en uso, probando con el 2º nombre de " "usuario \"%s\"\n" -#: src/irc/irc-recv.c:3958 +#: src/irc/irc-recv.c:3974 #, c-format msgid "%s: nickname \"%s\" is already in use, trying 3rd nickname \"%s\"\n" msgstr "" "%s: el nombre de usuario \"%s\" ya está en uso, probando con el 3º nombre de " "usuario \"%s\"\n" -#: src/irc/irc-recv.c:3970 +#: src/irc/irc-recv.c:3986 #, c-format msgid "" "%s: all declared nicknames are already in use, closing connection with " @@ -1847,7 +1849,7 @@ msgstr "" "%s: ¡todos los nombres de usuario declarados ya están en uso, cerrando la " "conexión con el servidor!\n" -#: src/irc/irc-recv.c:3980 +#: src/irc/irc-recv.c:3996 #, c-format msgid "%s: nickname \"%s\" is already in use, trying 1st nickname \"%s\"\n" msgstr "" @@ -2014,7 +2016,7 @@ msgid "Aborting active DCC: \"%s\" from %s\n" msgstr "Abandonar el DCC activo: \"%s\" de %s\n" #: src/plugins/perl/wee-perl.c:88 src/plugins/perl/wee-perl.c:463 -#: src/plugins/python/wee-python.c:81 +#: src/plugins/python/wee-python.c:81 src/plugins/ruby/wee-ruby.c:89 #, c-format msgid "" "%s error: unable to register \"%s\" script (another script already exists " @@ -2024,13 +2026,13 @@ msgstr "" "script con ese nombre)\n" #: src/plugins/perl/wee-perl.c:112 src/plugins/perl/wee-perl.c:487 -#: src/plugins/python/wee-python.c:105 +#: src/plugins/python/wee-python.c:105 src/plugins/ruby/wee-ruby.c:113 #, c-format msgid "Registered %s script: \"%s\", version %s (%s)\n" msgstr "%s script registrado: \"%s\", versión %s (%s)\n" #: src/plugins/perl/wee-perl.c:119 src/plugins/perl/wee-perl.c:494 -#: src/plugins/python/wee-python.c:112 +#: src/plugins/python/wee-python.c:112 src/plugins/ruby/wee-ruby.c:120 #, c-format msgid "%s error: unable to load script \"%s\" (not enough memory)\n" msgstr "" @@ -2044,17 +2046,22 @@ msgstr "" #: src/plugins/python/wee-python.c:142 src/plugins/python/wee-python.c:179 #: src/plugins/python/wee-python.c:211 src/plugins/python/wee-python.c:243 #: src/plugins/python/wee-python.c:272 src/plugins/python/wee-python.c:311 +#: src/plugins/ruby/wee-ruby.c:58 src/plugins/ruby/wee-ruby.c:146 +#: src/plugins/ruby/wee-ruby.c:192 src/plugins/ruby/wee-ruby.c:226 +#: src/plugins/ruby/wee-ruby.c:267 src/plugins/ruby/wee-ruby.c:298 +#: src/plugins/ruby/wee-ruby.c:339 #, c-format msgid "%s error: wrong parameters for \"%s\" function\n" msgstr "Error de %s: parámetros incorrectos para la función \"%s\"\n" #: src/plugins/perl/wee-perl.c:270 src/plugins/perl/wee-perl.c:374 #: src/plugins/perl/wee-perl.c:723 src/plugins/python/wee-python.c:331 +#: src/plugins/ruby/wee-ruby.c:367 #, c-format msgid "%s error: server not found for \"%s\" function\n" msgstr "Error de %s: servidor no encontrado para el comando \"%s\"\n" -#: src/plugins/perl/wee-perl.c:873 src/plugins/python/wee-python.c:456 +#: src/plugins/perl/wee-perl.c:873 src/plugins/python/wee-python.c:457 #, c-format msgid "Loading %s module \"weechat\"\n" msgstr "Cargando módulo %s \"weechat\"\n" @@ -2070,70 +2077,73 @@ msgid "%s error: too much values from \"%s\" (%d). Expected: 1.\n" msgstr "Error de %s: demasiados valores desde \"%s\" (%d). Esperado: 1.\n" #: src/plugins/perl/wee-perl.c:964 src/plugins/perl/wee-perl.c:966 -#: src/plugins/python/wee-python.c:614 src/plugins/python/wee-python.c:616 +#: src/plugins/python/wee-python.c:615 src/plugins/python/wee-python.c:617 #, c-format msgid "Loading %s script \"%s\"\n" msgstr "Cargando %s script \"%s\"\n" -#: src/plugins/perl/wee-perl.c:1015 src/plugins/python/wee-python.c:685 +#: src/plugins/perl/wee-perl.c:1015 src/plugins/python/wee-python.c:686 +#: src/plugins/ruby/wee-ruby.c:722 #, c-format msgid "Unloading %s script \"%s\"\n" msgstr "Descarga del %s script \"%s\"\n" -#: src/plugins/perl/wee-perl.c:1032 src/plugins/python/wee-python.c:702 +#: src/plugins/perl/wee-perl.c:1032 src/plugins/python/wee-python.c:703 +#: src/plugins/ruby/wee-ruby.c:739 #, c-format msgid "Unloading all %s scripts...\n" msgstr "Descargando todos los %s scripts...\n" -#: src/plugins/perl/wee-perl.c:1037 src/plugins/python/wee-python.c:707 +#: src/plugins/perl/wee-perl.c:1037 src/plugins/python/wee-python.c:708 +#: src/plugins/ruby/wee-ruby.c:744 #, c-format msgid "%s scripts unloaded\n" msgstr "%s scripts descargados\n" -#: src/plugins/python/wee-python.c:451 +#: src/plugins/python/wee-python.c:452 #, c-format msgid "%s error: error while launching interpreter\n" msgstr "%s error: error al lanzar el intérprete\n" -#: src/plugins/python/wee-python.c:480 +#: src/plugins/python/wee-python.c:481 #, c-format msgid "%s error: error while redirecting stdout and stderr\n" msgstr "%s error: error al redireccionar stdout y stderr\n" -#: src/plugins/python/wee-python.c:533 src/plugins/python/wee-python.c:561 -#: src/plugins/python/wee-python.c:593 +#: src/plugins/python/wee-python.c:534 src/plugins/python/wee-python.c:562 +#: src/plugins/python/wee-python.c:594 #, c-format msgid "%s error: unable to run function \"%s\" in script (not enough memory)\n" msgstr "" "Error de %s: no ha sido posible cargar el script \"%s\" (memoria " "insuficiente)\n" -#: src/plugins/python/wee-python.c:583 +#: src/plugins/python/wee-python.c:584 #, c-format msgid "%s error: error while running function \"%s\"\n" msgstr "%s error: error al ejecutar la función \"%s\"\n" -#: src/plugins/python/wee-python.c:622 +#: src/plugins/python/wee-python.c:623 #, c-format msgid "%s error: error while opening file \"%s\"\n" msgstr "%s error: error al abrir el fichero \"%s\"\n" -#: src/plugins/python/wee-python.c:631 +#: src/plugins/python/wee-python.c:632 #, c-format msgid "%s error: error while parsing file \"%s\"\n" msgstr "%s error: error al comparar el fichero \"%s\"\n" -#: src/plugins/python/wee-python.c:733 +#: src/plugins/python/wee-python.c:734 #, c-format msgid "%s error: error while freeing interpreter\n" msgstr "%s error: error al liberar el intérprete\n" -#: src/plugins/plugins.c:93 +#: src/plugins/plugins.c:97 #, c-format msgid "Auto-loading %s script: %s%s%s\n" msgstr "Carga automática del script %s : %s%s%s\n" -#: src/plugins/plugins.c:212 +#: src/plugins/plugins.c:223 #, c-format msgid "%s unable to add handler for \"%s\" message (not enough memory)\n" msgstr "" @@ -2145,60 +2155,60 @@ msgstr "" msgid "%s lag is high, disconnecting from server...\n" msgstr "%s el lag (retraso) es alto, desconectando del servidor...\n" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "bytes" msgstr "bytes" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "Kb" msgstr "KB" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "Mb" msgstr "MB" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "Gb" msgstr "GB" -#: src/gui/curses/gui-display.c:1119 +#: src/gui/curses/gui-display.c:1131 msgid "(away)" msgstr "(ausente)" -#: src/gui/curses/gui-display.c:1236 +#: src/gui/curses/gui-display.c:1248 msgid "[not connected]" msgstr "[no conectado]" -#: src/gui/curses/gui-display.c:1252 +#: src/gui/curses/gui-display.c:1264 msgid "Act: " msgstr "Act: " -#: src/gui/curses/gui-display.c:1305 +#: src/gui/curses/gui-display.c:1317 #, c-format msgid "Lag: %.1f" msgstr "Lag: %.1f" -#: src/gui/curses/gui-display.c:1326 +#: src/gui/curses/gui-display.c:1338 msgid "-MORE-" msgstr "-MÁS-" -#: src/gui/curses/gui-display.c:1516 +#: src/gui/curses/gui-display.c:1528 msgid " [A] Accept" msgstr " [A] Aceptar" -#: src/gui/curses/gui-display.c:1517 src/gui/curses/gui-display.c:1521 +#: src/gui/curses/gui-display.c:1529 src/gui/curses/gui-display.c:1533 msgid " [C] Cancel" msgstr " [C] Cancelar" -#: src/gui/curses/gui-display.c:1526 +#: src/gui/curses/gui-display.c:1538 msgid " [R] Remove" msgstr " [R] Eliminar" -#: src/gui/curses/gui-display.c:1530 +#: src/gui/curses/gui-display.c:1542 msgid " [P] Purge old DCC" msgstr " [P] Purgar los viejos DCC" -#: src/gui/curses/gui-display.c:1531 +#: src/gui/curses/gui-display.c:1543 msgid " [Q] Close DCC view" msgstr " [Q] Cerrar la vista DCC" @@ -2362,7 +2372,7 @@ msgstr "limpiar hotlist" msgid "grab a key" msgstr "" -#: src/gui/gui-keyboard.c:426 src/common/command.c:1473 +#: src/gui/gui-keyboard.c:426 src/common/command.c:1478 #, c-format msgid "%s unable to bind key \"%s\"\n" msgstr "%s No ha sido posible atar la clave \"%s\"\n" @@ -2514,7 +2524,7 @@ msgstr "" msgid "list/load/unload Perl scripts" msgstr "lista/carga/descarga de los Perl scripts" -#: src/common/command.c:83 src/common/command.c:88 +#: src/common/command.c:83 src/common/command.c:88 src/common/command.c:93 msgid "[load filename] | [autoload] | [reload] | [unload]" msgstr "[load fichero] | [autoload] | [reload] | [unload]" @@ -2539,10 +2549,22 @@ msgstr "" "Sin argumentos, el comando /python lista todos los Python scripts cargados." #: src/common/command.c:92 +msgid "list/load/unload Ruby scripts" +msgstr "lista/carga/descarga de los Ruby scripts" + +#: src/common/command.c:94 +msgid "" +"filename: Ruby script (file) to load\n" +"Without argument, /ruby command lists all loaded Ruby scripts." +msgstr "" +"fichero: Ruby script (archivo) a cargar\n" +"Sin argumentos, el comando /ruby lista todos los Ruby scripts cargados." + +#: src/common/command.c:97 msgid "list, add or remove servers" msgstr "lista, añade o elimina servidores" -#: src/common/command.c:93 +#: src/common/command.c:98 msgid "" "[servername] | [servername hostname port [-auto | -noauto] [-ipv6] [-ssl] [-" "pwd password] [-nicks nick1 [nick2 [nick3]]] [-username username] [-realname " @@ -2554,7 +2576,7 @@ msgstr "" "username nombre de usuario] [-realname nombre_real] [-command comando] [-" "autojoin canal[,canal]] ] | [del nombre_de_servidor]" -#: src/common/command.c:98 +#: src/common/command.c:103 msgid "" "servername: server name, for internal & display use\n" "hostname: name or IP address of server\n" @@ -2580,27 +2602,27 @@ msgstr "" "nombre_de_usuario: nombre de usuario\n" "nombre_real: nombre real del usuario" -#: src/common/command.c:110 +#: src/common/command.c:115 msgid "save config to disk" msgstr "guardar configuración a disco" -#: src/common/command.c:111 +#: src/common/command.c:116 msgid "[file]" msgstr "[archivo]" -#: src/common/command.c:111 +#: src/common/command.c:116 msgid "file: filename for writing config" msgstr "archivo: fichero en el que guardar la configuración" -#: src/common/command.c:113 +#: src/common/command.c:118 msgid "set config parameters" msgstr "modificar parámetros de configuración" -#: src/common/command.c:114 +#: src/common/command.c:119 msgid "[option[=value]]" msgstr "[opción[=valor]]" -#: src/common/command.c:114 +#: src/common/command.c:119 msgid "" "option: name of an option\n" "value: value for option" @@ -2608,27 +2630,27 @@ msgstr "" "opción: nombre de una opción\n" "valor: valor para la opción" -#: src/common/command.c:116 +#: src/common/command.c:121 msgid "remove an alias" msgstr "eliminar un alias" -#: src/common/command.c:117 +#: src/common/command.c:122 msgid "alias_name" msgstr "alias" -#: src/common/command.c:117 +#: src/common/command.c:122 msgid "alias_name: name of alias to remove" msgstr "alias: nombre del alias a suprimir" -#: src/common/command.c:119 +#: src/common/command.c:124 msgid "manage windows" msgstr "gestión de ventanas" -#: src/common/command.c:120 +#: src/common/command.c:125 msgid "[list | splith | splitv | [merge [down | up | left | right | all]]]" msgstr "[list | splith | splitv | [merge [down | up | left | right | all]]]" -#: src/common/command.c:121 +#: src/common/command.c:126 msgid "" "list: list opened windows (no parameter implies this list)\n" "splith: split current window horizontally\n" @@ -2641,29 +2663,29 @@ msgstr "" "splitv: dividir la ventana actual verticalmente\n" "merge: fusionar una ventana con otra" -#: src/common/command.c:267 +#: src/common/command.c:272 #, c-format msgid "%s alias or command \"%s\" already exists!\n" msgstr "%s ¡el alias o el comando \"%s\" ya existe!\n" -#: src/common/command.c:277 +#: src/common/command.c:282 #, c-format msgid "%s alias cannot run another alias!\n" msgstr "%s ¡el alias no puede ejecutar otro alias!\n" -#: src/common/command.c:284 +#: src/common/command.c:289 #, c-format msgid "%s target command \"%s\" does not exist!\n" msgstr "%s ¡el comando objetivo \"%s\" no existe!\n" -#: src/common/command.c:492 +#: src/common/command.c:497 #, c-format msgid "%s wrong argument count for %s command \"%s\" (expected: %d arg%s)\n" msgstr "" "%s número de argumentos incorrecto para el comando %s \"%s\" (esperado: %d " "parámetro%s)\n" -#: src/common/command.c:504 +#: src/common/command.c:509 #, c-format msgid "" "%s wrong argument count for %s command \"%s\" (expected: between %d and %d " @@ -2672,19 +2694,19 @@ msgstr "" "%s número de argumentos incorrecto para el comando %s \"%s\" (esperado: " "entre %d y %d parámetro%s)\n" -#: src/common/command.c:526 src/common/command.c:596 +#: src/common/command.c:531 src/common/command.c:601 #, c-format msgid "%s command \"%s\" failed\n" msgstr "%s el comando \"%s\" ha fallado\n" -#: src/common/command.c:554 +#: src/common/command.c:559 #, c-format msgid "%s wrong argument count for IRC command \"%s\" (expected: %d arg%s)\n" msgstr "" "%s número de argumentos incorrecto para el comando IRC \"%s\" (esperado: %d " "parámetro%s)\n" -#: src/common/command.c:566 +#: src/common/command.c:571 #, c-format msgid "" "%s wrong argument count for IRC command \"%s\" (expected: between %d and %d " @@ -2693,215 +2715,222 @@ msgstr "" "%s número de argumentos incorrecto para el comando IRC \"%s\" (esperado: " "entre %d y %d parámetro%s)\n" -#: src/common/command.c:581 +#: src/common/command.c:586 #, c-format msgid "%s command \"%s\" needs a server connection!\n" msgstr "%s ¡el comando \"%s\" requiere una conexión a servidor!\n" -#: src/common/command.c:645 +#: src/common/command.c:650 #, c-format msgid "%s unknown command \"%s\" (type /help for help)\n" msgstr "%s comando \"%s\" desconocido (escriba /help para la ayuda)\n" -#: src/common/command.c:748 +#: src/common/command.c:753 #, c-format msgid "%s unable to call handler for message (not enough memory)\n" msgstr "" "%s No ha sido posible llamar al manejador para el mensaje (no hay suficiente " "memoria)\n" -#: src/common/command.c:756 +#: src/common/command.c:761 msgid "This window is not a channel!\n" msgstr "¡Esta ventana no es un canal!\n" -#: src/common/command.c:784 src/common/command.c:808 src/common/command.c:913 +#: src/common/command.c:789 src/common/command.c:813 src/common/command.c:918 #, c-format msgid "%s missing arguments for \"%s\" command\n" msgstr "%s faltan argumentos para el comando \"%s\"\n" -#: src/common/command.c:793 +#: src/common/command.c:798 #, c-format msgid "Alias \"%s\" => \"%s\" created\n" msgstr "Alias \"%s\" => \"%s\" creado\n" -#: src/common/command.c:799 +#: src/common/command.c:804 #, c-format msgid "Failed to create alias \"%s\" => \"%s\" (not enough memory)\n" msgstr "" "No ha sido posible crear el alias \"%s\" => \"%s\" (no hay suficiente " "memoria)\n" -#: src/common/command.c:819 +#: src/common/command.c:824 msgid "List of aliases:\n" msgstr "Lista de alias:\n" -#: src/common/command.c:831 +#: src/common/command.c:836 msgid "No alias defined.\n" msgstr "Ningún alias definido.\n" -#: src/common/command.c:854 +#: src/common/command.c:859 msgid "Channel: " msgstr "Canal: " -#: src/common/command.c:857 src/common/command.c:867 +#: src/common/command.c:862 src/common/command.c:872 msgid " (server: " msgstr " (servidor: " -#: src/common/command.c:864 +#: src/common/command.c:869 msgid "Private with: " msgstr "Privado con: " -#: src/common/command.c:893 +#: src/common/command.c:898 msgid "Opened buffers:\n" msgstr "Búfers abiertos:\n" -#: src/common/command.c:936 +#: src/common/command.c:941 #, c-format msgid "%s incorrect buffer number\n" msgstr "%s número de búfer incorrecto\n" -#: src/common/command.c:950 +#: src/common/command.c:955 #, c-format msgid "%s can not close the single buffer\n" msgstr "%s no es posible cerrar el único búfer\n" -#: src/common/command.c:960 +#: src/common/command.c:965 #, c-format msgid "%s can not close server buffer while channels are opened\n" msgstr "" "%s no se puede cerrar el búfer de servidor mientras haya canales abiertos\n" -#: src/common/command.c:1001 +#: src/common/command.c:1006 msgid "Notify levels: " msgstr "Niveles de notificación: " -#: src/common/command.c:1029 src/common/command.c:1051 +#: src/common/command.c:1034 src/common/command.c:1056 #, c-format msgid "%s incorrect notify level (must be between %d and %d)\n" msgstr "%s nivel de notificación incorrecto (debe estar entre %d y %d)\n" -#: src/common/command.c:1038 +#: src/common/command.c:1043 #, c-format msgid "%s incorrect buffer for notify (must be channel or private)\n" msgstr "%s búfer incorrecto para notificar (debe ser canal o privado)\n" -#: src/common/command.c:1118 +#: src/common/command.c:1123 #, c-format msgid "unknown parameter \"%s\" for \"%s\" command\n" msgstr "parámetro desconocido \"%s\" para el comando \"%s\"\n" -#: src/common/command.c:1148 +#: src/common/command.c:1153 #, c-format msgid "%s already connected to server \"%s\"!\n" msgstr "%s ya conectado al servidor \"%s\"!\n" -#: src/common/command.c:1156 +#: src/common/command.c:1161 #, c-format msgid "%s currently connecting to server \"%s\"!\n" msgstr "%s actualmente conectando al servidor \"%s\"!\n" -#: src/common/command.c:1174 src/common/command.c:1249 +#: src/common/command.c:1179 src/common/command.c:1254 #, c-format msgid "%s server not found\n" msgstr "%s servidor no encontrado\n" -#: src/common/command.c:1204 src/common/command.c:1601 -#: src/common/command.c:1744 src/common/command.c:2441 -#: src/common/command.c:2457 +#: src/common/command.c:1209 src/common/command.c:1606 +#: src/common/command.c:1749 src/common/command.c:1892 +#: src/common/command.c:2589 src/common/command.c:2605 #, c-format msgid "%s unknown option for \"%s\" command\n" msgstr "%s opción desconocida para el comando \"%s\"\n" -#: src/common/command.c:1233 +#: src/common/command.c:1238 #, c-format msgid "%s not connected to server \"%s\"!\n" msgstr "%s ¡no conectado al servidor \"%s\"!\n" -#: src/common/command.c:1241 +#: src/common/command.c:1246 msgid "Auto-reconnection is cancelled\n" msgstr "La reconexión automática está anulada\n" -#: src/common/command.c:1267 src/common/weechat.c:273 +#: src/common/command.c:1272 src/common/weechat.c:273 #, c-format msgid "%s internal commands:\n" msgstr "Comandos internos %s :\n" -#: src/common/command.c:1276 src/common/weechat.c:293 +#: src/common/command.c:1281 src/common/weechat.c:293 #, c-format msgid "IRC commands:\n" msgstr "Comandos IRC :\n" -#: src/common/command.c:1343 +#: src/common/command.c:1348 #, c-format msgid "No help available, \"%s\" is an unknown command\n" msgstr "No hay ayuda disponible, el comando \"%s\" es desconocido\n" -#: src/common/command.c:1361 +#: src/common/command.c:1366 msgid "New key binding:\n" msgstr "Nuevo anclaje de clave:\n" -#: src/common/command.c:1394 +#: src/common/command.c:1399 msgid "Key bindings:\n" msgstr "Anclajes de clave:\n" -#: src/common/command.c:1406 +#: src/common/command.c:1411 #, c-format msgid "Key \"%s\" unbinded\n" msgstr "Clave \"%s\" desatada\n" -#: src/common/command.c:1411 +#: src/common/command.c:1416 #, c-format msgid "%s unable to unbind key \"%s\"\n" msgstr "%s No ha sido posible desatar la clave \"%s\"\n" -#: src/common/command.c:1419 src/common/weechat.c:324 +#: src/common/command.c:1424 src/common/weechat.c:324 #, c-format msgid "Internal key functions:\n" msgstr "Funciones de clave internas:\n" -#: src/common/command.c:1438 +#: src/common/command.c:1443 msgid "Default key bindings restored\n" msgstr "Anclajes de clave por defecto restaurados\n" -#: src/common/command.c:1444 +#: src/common/command.c:1449 #, c-format msgid "%s \"-yes\" argument is required for keys reset (securuty reason)\n" msgstr "" "%s \"-yes\" se requiere argumento para resetear las claves (por razones de " "seguridad)\n" -#: src/common/command.c:1500 src/common/command.c:1643 +#: src/common/command.c:1505 src/common/command.c:1648 +#: src/common/command.c:1791 #, c-format msgid "Registered %s scripts:\n" msgstr "%s scripts registrados:\n" -#: src/common/command.c:1517 src/common/command.c:1540 -#: src/common/command.c:1563 src/common/command.c:1660 -#: src/common/command.c:1683 src/common/command.c:1706 +#: src/common/command.c:1522 src/common/command.c:1545 +#: src/common/command.c:1568 src/common/command.c:1665 +#: src/common/command.c:1688 src/common/command.c:1711 +#: src/common/command.c:1808 src/common/command.c:1831 +#: src/common/command.c:1854 msgid " (none)\n" msgstr " (ninguno)\n" -#: src/common/command.c:1522 src/common/command.c:1665 +#: src/common/command.c:1527 src/common/command.c:1670 +#: src/common/command.c:1813 #, c-format msgid "%s message handlers:\n" msgstr "Funciones %s para mensajes:\n" -#: src/common/command.c:1531 src/common/command.c:1674 +#: src/common/command.c:1536 src/common/command.c:1679 +#: src/common/command.c:1822 #, c-format msgid " IRC(%s) => %s(%s)\n" msgstr " IRC(%s) => %s(%s)\n" -#: src/common/command.c:1545 src/common/command.c:1688 +#: src/common/command.c:1550 src/common/command.c:1693 +#: src/common/command.c:1836 #, c-format msgid "%s command handlers:\n" msgstr "Comandos %s :\n" -#: src/common/command.c:1554 src/common/command.c:1697 +#: src/common/command.c:1559 src/common/command.c:1702 +#: src/common/command.c:1845 #, c-format msgid " Command /%s => %s(%s)\n" msgstr " Comando /%s => %s(%s)\n" -#: src/common/command.c:1614 +#: src/common/command.c:1619 msgid "" "WeeChat was build without Perl support.\n" "Please rebuild WeeChat with \"--enable-perl\" option for ./configure script\n" @@ -2910,7 +2939,7 @@ msgstr "" "Por favor, recompile WeeChat con la opción \"--enable-perl\" para el " "script ./configure\n" -#: src/common/command.c:1757 +#: src/common/command.c:1762 msgid "" "WeeChat was build without Python support.\n" "Please rebuild WeeChat with \"--enable-python\" option for ./configure " @@ -2920,32 +2949,40 @@ msgstr "" "Por favor, recompile WeeChat con la opción \"--enable-python\" para el " "script ./configure\n" -#: src/common/command.c:1805 +#: src/common/command.c:1905 +msgid "" +"WeeChat was build without Ruby support.\n" +"Please rebuild WeeChat with \"--enable-ruby\" option for ./configure script\n" +msgstr "" +"WeeChat ha sido compilado sin soporte para Ruby.\n" +"Por favor, recompile WeeChat con la opción \"--enable-ruby\" para el script ./configure\n" + +#: src/common/command.c:1953 msgid "No server.\n" msgstr "Ningún servidor.\n" -#: src/common/command.c:1816 +#: src/common/command.c:1964 #, c-format msgid "Server '%s' not found.\n" msgstr "Servidor '%s' no encontrado.\n" -#: src/common/command.c:1828 +#: src/common/command.c:1976 #, c-format msgid "%s missing servername for \"%s\" command\n" msgstr "%s falta el nombre de servidor para el comando \"%s\"\n" -#: src/common/command.c:1836 +#: src/common/command.c:1984 #, c-format msgid "%s too much arguments for \"%s\" command, ignoring arguments\n" msgstr "" "%s demasiados argumentos para el comando \"%s\", ignorando parámetros\n" -#: src/common/command.c:1855 +#: src/common/command.c:2003 #, c-format msgid "%s server \"%s\" not found for \"%s\" command\n" msgstr "%s servidor \"%s\" no encontrado para el comando \"%s\"\n" -#: src/common/command.c:1863 +#: src/common/command.c:2011 #, c-format msgid "" "%s you can not delete server \"%s\" because you are connected to. Try /" @@ -2954,108 +2991,108 @@ msgstr "" "%s usted no puede eliminar el servidor \"%s\" ya que está usted conectado a " "él. Pruebe /disconnect %s antes.\n" -#: src/common/command.c:1879 src/common/command.c:2025 +#: src/common/command.c:2027 src/common/command.c:2173 msgid "Server" msgstr "Servidor" -#: src/common/command.c:1882 +#: src/common/command.c:2030 msgid "has been deleted\n" msgstr "ha sido eliminado\n" -#: src/common/command.c:1897 +#: src/common/command.c:2045 #, c-format msgid "%s missing parameters for \"%s\" command\n" msgstr "%s faltan parámetros para el comando \"%s\"\n" -#: src/common/command.c:1907 +#: src/common/command.c:2055 #, c-format msgid "%s server \"%s\" already exists, can't create it!\n" msgstr "%s el servidor \"%s\" ya existe, ¡no se puede crear!\n" -#: src/common/command.c:1936 src/common/command.c:1964 -#: src/common/command.c:1977 src/common/command.c:2003 +#: src/common/command.c:2084 src/common/command.c:2112 +#: src/common/command.c:2125 src/common/command.c:2151 #, c-format msgid "%s missing password for \"%s\" parameter\n" msgstr "%s falta contraseña para el comando \"%s\"\n" -#: src/common/command.c:1949 +#: src/common/command.c:2097 #, c-format msgid "%s missing nick(s) for \"%s\" parameter\n" msgstr "%s falta(n) usuario(s) para el parámetro \"%s\"\n" -#: src/common/command.c:1990 +#: src/common/command.c:2138 #, c-format msgid "%s missing command for \"%s\" parameter\n" msgstr "%s falta comando para el parámetro \"%s\"\n" -#: src/common/command.c:2028 +#: src/common/command.c:2176 msgid "created\n" msgstr "creado\n" -#: src/common/command.c:2034 +#: src/common/command.c:2182 #, c-format msgid "%s unable to create server\n" msgstr "%s no es posible crear el servidor\n" -#: src/common/command.c:2089 +#: src/common/command.c:2237 msgid "(unknown)" msgstr "(desconocido)" -#: src/common/command.c:2112 +#: src/common/command.c:2260 msgid "(password hidden) " msgstr "(contraseña oculta) " -#: src/common/command.c:2176 +#: src/common/command.c:2324 #, c-format msgid "%s server \"%s\" not found\n" msgstr "%s servidor \"%s\" no encontrado\n" -#: src/common/command.c:2207 src/common/command.c:2253 +#: src/common/command.c:2355 src/common/command.c:2401 #, c-format msgid "%s config option \"%s\" not found\n" msgstr "%s opción de configuración \"%s\" no encontrada\n" -#: src/common/command.c:2212 src/common/command.c:2245 +#: src/common/command.c:2360 src/common/command.c:2393 #, c-format msgid "%s incorrect value for option \"%s\"\n" msgstr "%s valor incorrecto para la opción \"%s\"\n" -#: src/common/command.c:2228 +#: src/common/command.c:2376 #, c-format msgid "%s option \"%s\" can not be changed while WeeChat is running\n" msgstr "" "%s la opción \"%s\" no puede ser modificada mientras WeeChat esté en " "ejecución\n" -#: src/common/command.c:2327 +#: src/common/command.c:2475 #, c-format msgid "No config option found with \"%s\"\n" msgstr "Ninguna opción de configuración encontrada con \"%s\"\n" -#: src/common/command.c:2330 +#: src/common/command.c:2478 msgid "No config option found\n" msgstr "Ninguna opción de configuración encontrada\n" -#: src/common/command.c:2336 +#: src/common/command.c:2484 #, c-format msgid "config option(s) found with \"%s\"\n" msgstr "opción/opciones de configuración encontrada(s) con \"%s\"\n" -#: src/common/command.c:2339 +#: src/common/command.c:2487 msgid "config option(s) found\n" msgstr "opción/opciones de configuración encontrada(s)\n" -#: src/common/command.c:2359 +#: src/common/command.c:2507 #, c-format msgid "%s alias or command \"%s\" not found\n" msgstr "%s alias o comando \"%s\" no encontrado\n" -#: src/common/command.c:2369 +#: src/common/command.c:2517 #, c-format msgid "Alias \"%s\" removed\n" msgstr "Alias \"%s\" eliminado\n" -#: src/common/command.c:2389 +#: src/common/command.c:2537 msgid "Opened windows:\n" msgstr "Ventanas abiertas:\n" diff --git a/po/fr.po b/po/fr.po index 235862e89..677ab91cd 100644 --- a/po/fr.po +++ b/po/fr.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.1.5-cvs\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2005-08-16 16:52+0200\n" -"PO-Revision-Date: 2005-08-16 16:53+0200\n" +"POT-Creation-Date: 2005-08-21 14:31+0200\n" +"PO-Revision-Date: 2005-08-21 14:31+0200\n" "Last-Translator: FlashCode \n" "Language-Team: weechat-dev \n" "MIME-Version: 1.0\n" @@ -1318,7 +1318,7 @@ msgstr "impossible de changer le mode pour les autres utilisateurs" msgid "whois (secure connection)" msgstr "qui est (connexion sécurisée)" -#: src/irc/irc-display.c:163 src/common/command.c:848 +#: src/irc/irc-display.c:163 src/common/command.c:853 msgid "Server: " msgstr "Serveur: " @@ -1348,7 +1348,7 @@ msgstr " (serveur temporaire, ne sera pas sauv msgid "(hidden)" msgstr "(caché)" -#: src/irc/irc-send.c:59 src/irc/irc-recv.c:3992 +#: src/irc/irc-send.c:59 src/irc/irc-recv.c:4008 msgid "unknown" msgstr "inconnu" @@ -1357,7 +1357,7 @@ msgstr "inconnu" msgid "%s: using local hostname \"%s\"\n" msgstr "%s: utilisation du nom de machine local \"%s\"\n" -#: src/irc/irc-send.c:126 src/common/command.c:726 +#: src/irc/irc-send.c:126 src/common/command.c:731 #, c-format msgid "%s cannot find nick for sending message\n" msgstr "%s impossible de trouver le pseudo pour envoyer le message\n" @@ -1375,8 +1375,9 @@ msgstr "" #: src/irc/irc-send.c:415 src/irc/irc-send.c:427 src/irc/irc-send.c:445 #: src/irc/irc-send.c:1097 src/irc/irc-send.c:1190 src/irc/irc-send.c:1722 -#: src/common/command.c:1191 src/common/command.c:1458 -#: src/common/command.c:1608 src/common/command.c:1751 +#: src/common/command.c:1196 src/common/command.c:1463 +#: src/common/command.c:1613 src/common/command.c:1756 +#: src/common/command.c:1899 #, c-format msgid "%s wrong argument count for \"%s\" command\n" msgstr "%s nombre de paramètres erroné pour la commande \"%s\"\n" @@ -1398,7 +1399,8 @@ msgstr "" msgid "%s nick \"%s\" not found for \"%s\" command\n" msgstr "%s pseudo \"%s\" non trouvé pour la commande \"%s\"\n" -#: src/irc/irc-send.c:1067 src/irc/irc-send.c:1375 src/irc/irc-recv.c:1819 +#: src/irc/irc-send.c:1067 src/irc/irc-send.c:1375 src/irc/irc-recv.c:1822 +#: src/irc/irc-recv.c:1900 #, c-format msgid "%s cannot create new private window \"%s\"\n" msgstr "%s impossible de créer la fenêtre privée \"%s\"\n" @@ -1417,8 +1419,8 @@ msgid "by" msgstr "par" #: src/irc/irc-recv.c:282 src/irc/irc-recv.c:376 src/irc/irc-recv.c:875 -#: src/irc/irc-recv.c:1210 src/irc/irc-recv.c:1452 src/irc/irc-recv.c:3210 -#: src/irc/irc-recv.c:3277 +#: src/irc/irc-recv.c:1210 src/irc/irc-recv.c:1452 src/irc/irc-recv.c:3226 +#: src/irc/irc-recv.c:3293 #, c-format msgid "%s channel \"%s\" not found for \"%s\" command\n" msgstr "%s canal \"%s\" non trouvé pour la commande \"%s\"\n" @@ -1562,7 +1564,7 @@ msgid "removes voice from" msgstr "supprime la voix de" #: src/irc/irc-recv.c:830 src/irc/irc-recv.c:915 src/irc/irc-recv.c:1284 -#: src/irc/irc-recv.c:1950 +#: src/irc/irc-recv.c:1966 #, c-format msgid "%s \"%s\" command received without host\n" msgstr "%s commande \"%s\" reçue sans host\n" @@ -1611,7 +1613,7 @@ msgstr "%s commande \"%s\" re msgid " has left " msgstr " a quitté " -#: src/irc/irc-recv.c:1333 src/irc/irc-recv.c:1845 +#: src/irc/irc-recv.c:1333 src/irc/irc-recv.c:1846 #, c-format msgid "On %s: * %s %s" msgstr "Sur %s: * %s %s" @@ -1622,11 +1624,11 @@ msgid "Received a CTCP SOUND \"%s\" from " msgstr "CTCP SOUND \"%s\" reçu de " #: src/irc/irc-recv.c:1384 src/irc/irc-recv.c:1412 src/irc/irc-recv.c:1512 -#: src/irc/irc-recv.c:1548 src/irc/irc-recv.c:1880 +#: src/irc/irc-recv.c:1548 src/irc/irc-recv.c:1881 msgid "received from" msgstr "reçu de" -#: src/irc/irc-recv.c:1408 src/irc/irc-recv.c:1876 +#: src/irc/irc-recv.c:1408 src/irc/irc-recv.c:1877 msgid "Unknown CTCP " msgstr "CTCP inconnu " @@ -1639,10 +1641,10 @@ msgstr "Sur %s: %s> %s" #: src/irc/irc-recv.c:1612 src/irc/irc-recv.c:1637 src/irc/irc-recv.c:1654 #: src/irc/irc-recv.c:1670 src/irc/irc-recv.c:1694 src/irc/irc-recv.c:1711 #: src/irc/irc-recv.c:1727 src/irc/irc-recv.c:1751 src/irc/irc-recv.c:1768 -#: src/irc/irc-recv.c:1783 src/irc/irc-recv.c:1926 src/irc/irc-recv.c:3576 -#: src/irc/irc-recv.c:3634 src/irc/irc-recv.c:3786 src/irc/irc-recv.c:3801 -#: src/irc/irc-recv.c:3816 src/irc/irc-recv.c:3831 src/irc/irc-recv.c:3844 -#: src/irc/irc-recv.c:3894 src/irc/irc-recv.c:3908 +#: src/irc/irc-recv.c:1783 src/irc/irc-recv.c:1942 src/irc/irc-recv.c:3592 +#: src/irc/irc-recv.c:3650 src/irc/irc-recv.c:3802 src/irc/irc-recv.c:3817 +#: src/irc/irc-recv.c:3832 src/irc/irc-recv.c:3847 src/irc/irc-recv.c:3860 +#: src/irc/irc-recv.c:3910 src/irc/irc-recv.c:3924 #, c-format msgid "%s cannot parse \"%s\" command\n" msgstr "%s impossible d'analyser la commande \"%s\"\n" @@ -1652,195 +1654,195 @@ msgstr "%s impossible d'analyser la commande \"%s\"\n" msgid "%s unknown DCC CHAT type received from " msgstr "%s type de DCC CHAT inconnu reçu de " -#: src/irc/irc-recv.c:1905 src/irc/irc-dcc.c:1039 +#: src/irc/irc-recv.c:1921 src/irc/irc-dcc.c:1039 #, c-format msgid "Private %s> %s" msgstr "Prive %s> %s" -#: src/irc/irc-recv.c:1982 +#: src/irc/irc-recv.c:1998 msgid "has quit" msgstr "a quitté" -#: src/irc/irc-recv.c:2103 +#: src/irc/irc-recv.c:2119 #, c-format msgid "%s \"%s\" command received without channel\n" msgstr "%s commande \"%s\" reçue sans canal\n" -#: src/irc/irc-recv.c:2131 +#: src/irc/irc-recv.c:2147 msgid " has changed topic for " msgstr " a changé le titre pour " -#: src/irc/irc-recv.c:2136 +#: src/irc/irc-recv.c:2152 #, c-format msgid " to: \"%s\"\n" msgstr " en: \"%s\"\n" -#: src/irc/irc-recv.c:2142 +#: src/irc/irc-recv.c:2158 msgid " has unset topic for " msgstr " a retiré le titre pour " -#: src/irc/irc-recv.c:2260 +#: src/irc/irc-recv.c:2276 #, c-format msgid " is away: %s\n" msgstr " est absent: %s\n" -#: src/irc/irc-recv.c:2334 +#: src/irc/irc-recv.c:2350 msgid "Users online: " msgstr "Utilisateurs en ligne: " -#: src/irc/irc-recv.c:2781 +#: src/irc/irc-recv.c:2797 msgid "idle: " msgstr "inactivité: " -#: src/irc/irc-recv.c:2789 +#: src/irc/irc-recv.c:2805 msgid "days" msgstr "jours" -#: src/irc/irc-recv.c:2789 +#: src/irc/irc-recv.c:2805 msgid "day" msgstr "jour" -#: src/irc/irc-recv.c:2799 +#: src/irc/irc-recv.c:2815 msgid "hours" msgstr "heures" -#: src/irc/irc-recv.c:2799 +#: src/irc/irc-recv.c:2815 msgid "hour" msgstr "heure" -#: src/irc/irc-recv.c:2805 +#: src/irc/irc-recv.c:2821 msgid "minutes" msgstr "minutes" -#: src/irc/irc-recv.c:2805 +#: src/irc/irc-recv.c:2821 msgid "minute" msgstr "minute" -#: src/irc/irc-recv.c:2811 +#: src/irc/irc-recv.c:2827 msgid "seconds" msgstr "secondes" -#: src/irc/irc-recv.c:2811 +#: src/irc/irc-recv.c:2827 msgid "second" msgstr "seconde" -#: src/irc/irc-recv.c:2816 +#: src/irc/irc-recv.c:2832 msgid "signon at: " msgstr "signé le: " -#: src/irc/irc-recv.c:2904 +#: src/irc/irc-recv.c:2920 msgid "Channels: " msgstr "Canaux: " -#: src/irc/irc-recv.c:3156 +#: src/irc/irc-recv.c:3172 msgid "No topic set for " msgstr "Pas de titre défini pour " -#: src/irc/irc-recv.c:3198 +#: src/irc/irc-recv.c:3214 msgid "Topic for " msgstr "Le titre pour " -#: src/irc/irc-recv.c:3202 +#: src/irc/irc-recv.c:3218 #, c-format msgid " is: \"%s\"\n" msgstr " est: \"%s\"\n" -#: src/irc/irc-recv.c:3220 src/irc/irc-recv.c:3304 src/irc/irc-recv.c:3357 +#: src/irc/irc-recv.c:3236 src/irc/irc-recv.c:3320 src/irc/irc-recv.c:3373 #, c-format msgid "%s cannot identify channel for \"%s\" command\n" msgstr "%s impossible de déterminer le canal pour la commande \"%s\"\n" -#: src/irc/irc-recv.c:3266 +#: src/irc/irc-recv.c:3282 msgid "Topic set by " msgstr "Titre défini par " -#: src/irc/irc-recv.c:3286 +#: src/irc/irc-recv.c:3302 #, c-format msgid "%s cannot identify date/time for \"%s\" command\n" msgstr "%s impossible d'identifier la date/heure pour la commande \"%s\"\n" -#: src/irc/irc-recv.c:3295 src/irc/irc-recv.c:3366 +#: src/irc/irc-recv.c:3311 src/irc/irc-recv.c:3382 #, c-format msgid "%s cannot identify nickname for \"%s\" command\n" msgstr "" "%s impossible de déterminer le nom d'utilisateur pour la commande \"%s\"\n" -#: src/irc/irc-recv.c:3345 +#: src/irc/irc-recv.c:3361 msgid "has invited" msgstr "a invité" -#: src/irc/irc-recv.c:3348 src/irc/irc-recv.c:3499 +#: src/irc/irc-recv.c:3364 src/irc/irc-recv.c:3515 msgid "on" msgstr "sur" -#: src/irc/irc-recv.c:3622 +#: src/irc/irc-recv.c:3638 #, c-format msgid "%s cannot create nick \"%s\" for channel \"%s\"\n" msgstr "%s impossible de créer l'utilisateur \"%s\" pour le canal \"%s\"\n" -#: src/irc/irc-recv.c:3678 +#: src/irc/irc-recv.c:3694 msgid "Nicks " msgstr "Utilisateurs " -#: src/irc/irc-recv.c:3698 +#: src/irc/irc-recv.c:3714 msgid "Channel " msgstr "Canal " -#: src/irc/irc-recv.c:3709 +#: src/irc/irc-recv.c:3725 msgid "nicks" msgstr "utilisateurs" -#: src/irc/irc-recv.c:3709 +#: src/irc/irc-recv.c:3725 msgid "nick" msgstr "utilisateur" -#: src/irc/irc-recv.c:3717 +#: src/irc/irc-recv.c:3733 msgid "ops" msgstr "ops" -#: src/irc/irc-recv.c:3717 +#: src/irc/irc-recv.c:3733 msgid "op" msgstr "op" -#: src/irc/irc-recv.c:3726 +#: src/irc/irc-recv.c:3742 msgid "halfops" msgstr "halfops" -#: src/irc/irc-recv.c:3726 +#: src/irc/irc-recv.c:3742 msgid "halfop" msgstr "halfop" -#: src/irc/irc-recv.c:3735 +#: src/irc/irc-recv.c:3751 msgid "voices" msgstr "voices" -#: src/irc/irc-recv.c:3735 +#: src/irc/irc-recv.c:3751 msgid "voice" msgstr "voice" -#: src/irc/irc-recv.c:3744 +#: src/irc/irc-recv.c:3760 msgid "normal" msgstr "normal" -#: src/irc/irc-recv.c:3857 +#: src/irc/irc-recv.c:3873 msgid "banned by" msgstr "banni par" -#: src/irc/irc-recv.c:3946 +#: src/irc/irc-recv.c:3962 #, c-format msgid "%s: nickname \"%s\" is already in use, trying 2nd nickname \"%s\"\n" msgstr "" "%s: l'utilisateur \"%s\" est déjà en cours d'utilisation, essai avec le 2nd " "nom d'utilisateur \"%s\"\n" -#: src/irc/irc-recv.c:3958 +#: src/irc/irc-recv.c:3974 #, c-format msgid "%s: nickname \"%s\" is already in use, trying 3rd nickname \"%s\"\n" msgstr "" "%s: l'utilisateur \"%s\" est déjà en cours d'utilisation, essai avec le 3ème " "nom d'utilisateur \"%s\"\n" -#: src/irc/irc-recv.c:3970 +#: src/irc/irc-recv.c:3986 #, c-format msgid "" "%s: all declared nicknames are already in use, closing connection with " @@ -1849,7 +1851,7 @@ msgstr "" "%s: tous les noms d'utilisateurs déclarés sont déjà en cours d'utilisation, " "fermeture de la connexion avec le serveur !\n" -#: src/irc/irc-recv.c:3980 +#: src/irc/irc-recv.c:3996 #, c-format msgid "%s: nickname \"%s\" is already in use, trying 1st nickname \"%s\"\n" msgstr "" @@ -2018,7 +2020,7 @@ msgid "Aborting active DCC: \"%s\" from %s\n" msgstr "Abandon du DCC actif: \"%s\" de %s\n" #: src/plugins/perl/wee-perl.c:88 src/plugins/perl/wee-perl.c:463 -#: src/plugins/python/wee-python.c:81 +#: src/plugins/python/wee-python.c:81 src/plugins/ruby/wee-ruby.c:89 #, c-format msgid "" "%s error: unable to register \"%s\" script (another script already exists " @@ -2028,13 +2030,13 @@ msgstr "" "déjà avec ce nom)\n" #: src/plugins/perl/wee-perl.c:112 src/plugins/perl/wee-perl.c:487 -#: src/plugins/python/wee-python.c:105 +#: src/plugins/python/wee-python.c:105 src/plugins/ruby/wee-ruby.c:113 #, c-format msgid "Registered %s script: \"%s\", version %s (%s)\n" msgstr "Script %s enregistré: \"%s\", version %s (%s)\n" #: src/plugins/perl/wee-perl.c:119 src/plugins/perl/wee-perl.c:494 -#: src/plugins/python/wee-python.c:112 +#: src/plugins/python/wee-python.c:112 src/plugins/ruby/wee-ruby.c:120 #, c-format msgid "%s error: unable to load script \"%s\" (not enough memory)\n" msgstr "" @@ -2047,17 +2049,22 @@ msgstr "" #: src/plugins/python/wee-python.c:142 src/plugins/python/wee-python.c:179 #: src/plugins/python/wee-python.c:211 src/plugins/python/wee-python.c:243 #: src/plugins/python/wee-python.c:272 src/plugins/python/wee-python.c:311 +#: src/plugins/ruby/wee-ruby.c:58 src/plugins/ruby/wee-ruby.c:146 +#: src/plugins/ruby/wee-ruby.c:192 src/plugins/ruby/wee-ruby.c:226 +#: src/plugins/ruby/wee-ruby.c:267 src/plugins/ruby/wee-ruby.c:298 +#: src/plugins/ruby/wee-ruby.c:339 #, c-format msgid "%s error: wrong parameters for \"%s\" function\n" msgstr "Erreur %s: mauvais paramètres pour la fonction \"%s\"\n" #: src/plugins/perl/wee-perl.c:270 src/plugins/perl/wee-perl.c:374 #: src/plugins/perl/wee-perl.c:723 src/plugins/python/wee-python.c:331 +#: src/plugins/ruby/wee-ruby.c:367 #, c-format msgid "%s error: server not found for \"%s\" function\n" msgstr "Erreur %s: serveur non trouvé pour la fonction \"%s\"\n" -#: src/plugins/perl/wee-perl.c:873 src/plugins/python/wee-python.c:456 +#: src/plugins/perl/wee-perl.c:873 src/plugins/python/wee-python.c:457 #, c-format msgid "Loading %s module \"weechat\"\n" msgstr "Chargement du module %s \"weechat\"\n" @@ -2073,70 +2080,73 @@ msgid "%s error: too much values from \"%s\" (%d). Expected: 1.\n" msgstr "Erreur %s: trop de valeurs de \"%s\" (%d). Attendue: 1.\n" #: src/plugins/perl/wee-perl.c:964 src/plugins/perl/wee-perl.c:966 -#: src/plugins/python/wee-python.c:614 src/plugins/python/wee-python.c:616 +#: src/plugins/python/wee-python.c:615 src/plugins/python/wee-python.c:617 #, c-format msgid "Loading %s script \"%s\"\n" msgstr "Chargement du script %s \"%s\"\n" -#: src/plugins/perl/wee-perl.c:1015 src/plugins/python/wee-python.c:685 +#: src/plugins/perl/wee-perl.c:1015 src/plugins/python/wee-python.c:686 +#: src/plugins/ruby/wee-ruby.c:722 #, c-format msgid "Unloading %s script \"%s\"\n" msgstr "Déchargement du script %s \"%s\"\n" -#: src/plugins/perl/wee-perl.c:1032 src/plugins/python/wee-python.c:702 +#: src/plugins/perl/wee-perl.c:1032 src/plugins/python/wee-python.c:703 +#: src/plugins/ruby/wee-ruby.c:739 #, c-format msgid "Unloading all %s scripts...\n" msgstr "Déchargement de tous les scripts %s...\n" -#: src/plugins/perl/wee-perl.c:1037 src/plugins/python/wee-python.c:707 +#: src/plugins/perl/wee-perl.c:1037 src/plugins/python/wee-python.c:708 +#: src/plugins/ruby/wee-ruby.c:744 #, c-format msgid "%s scripts unloaded\n" msgstr "Scripts %s déchargés\n" -#: src/plugins/python/wee-python.c:451 +#: src/plugins/python/wee-python.c:452 #, c-format msgid "%s error: error while launching interpreter\n" msgstr "Erreur %s: erreur pendant le chargement de l'interpréteur\n" -#: src/plugins/python/wee-python.c:480 +#: src/plugins/python/wee-python.c:481 #, c-format msgid "%s error: error while redirecting stdout and stderr\n" msgstr "Erreur %s: erreur en redirection de stdout et stderr\n" -#: src/plugins/python/wee-python.c:533 src/plugins/python/wee-python.c:561 -#: src/plugins/python/wee-python.c:593 +#: src/plugins/python/wee-python.c:534 src/plugins/python/wee-python.c:562 +#: src/plugins/python/wee-python.c:594 #, c-format msgid "%s error: unable to run function \"%s\" in script (not enough memory)\n" msgstr "" "Erreur %s: impossible d'exécuter la fonction \"%s\" dans le script (mémoire " "insuffisante)\n" -#: src/plugins/python/wee-python.c:583 +#: src/plugins/python/wee-python.c:584 #, c-format msgid "%s error: error while running function \"%s\"\n" msgstr "Erreur %s: erreur dans la fonction \"%s\"\n" -#: src/plugins/python/wee-python.c:622 +#: src/plugins/python/wee-python.c:623 #, c-format msgid "%s error: error while opening file \"%s\"\n" msgstr "Erreur %s: erreur à l'ouverture du fichier \"%s\"\n" -#: src/plugins/python/wee-python.c:631 +#: src/plugins/python/wee-python.c:632 #, c-format msgid "%s error: error while parsing file \"%s\"\n" msgstr "Erreur %s: erreur en analysant le fichier \"%s\"\n" -#: src/plugins/python/wee-python.c:733 +#: src/plugins/python/wee-python.c:734 #, c-format msgid "%s error: error while freeing interpreter\n" msgstr "Erreur %s: impossible de libérer l'interpréteur\n" -#: src/plugins/plugins.c:93 +#: src/plugins/plugins.c:97 #, c-format msgid "Auto-loading %s script: %s%s%s\n" msgstr "Chargement automatique du script %s : %s%s%s\n" -#: src/plugins/plugins.c:212 +#: src/plugins/plugins.c:223 #, c-format msgid "%s unable to add handler for \"%s\" message (not enough memory)\n" msgstr "" @@ -2148,60 +2158,60 @@ msgstr "" msgid "%s lag is high, disconnecting from server...\n" msgstr "%s le lag est élevé, déconnexion du serveur...\n" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "bytes" msgstr "octets" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "Kb" msgstr "Ko" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "Mb" msgstr "Mo" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "Gb" msgstr "Go" -#: src/gui/curses/gui-display.c:1119 +#: src/gui/curses/gui-display.c:1131 msgid "(away)" msgstr "(absent)" -#: src/gui/curses/gui-display.c:1236 +#: src/gui/curses/gui-display.c:1248 msgid "[not connected]" msgstr "[non connecté]" -#: src/gui/curses/gui-display.c:1252 +#: src/gui/curses/gui-display.c:1264 msgid "Act: " msgstr "Act: " -#: src/gui/curses/gui-display.c:1305 +#: src/gui/curses/gui-display.c:1317 #, c-format msgid "Lag: %.1f" msgstr "Lag: %.1f" -#: src/gui/curses/gui-display.c:1326 +#: src/gui/curses/gui-display.c:1338 msgid "-MORE-" msgstr "-PLUS-" -#: src/gui/curses/gui-display.c:1516 +#: src/gui/curses/gui-display.c:1528 msgid " [A] Accept" msgstr " [A] Accepter" -#: src/gui/curses/gui-display.c:1517 src/gui/curses/gui-display.c:1521 +#: src/gui/curses/gui-display.c:1529 src/gui/curses/gui-display.c:1533 msgid " [C] Cancel" msgstr " [C] Annuler" -#: src/gui/curses/gui-display.c:1526 +#: src/gui/curses/gui-display.c:1538 msgid " [R] Remove" msgstr " [R] Retirer" -#: src/gui/curses/gui-display.c:1530 +#: src/gui/curses/gui-display.c:1542 msgid " [P] Purge old DCC" msgstr " [P] Purger anciens DCC" -#: src/gui/curses/gui-display.c:1531 +#: src/gui/curses/gui-display.c:1543 msgid " [Q] Close DCC view" msgstr " [Q] Fermer la vue DCC" @@ -2365,7 +2375,7 @@ msgstr "effacer la liste d'activit msgid "grab a key" msgstr "capturer une touche" -#: src/gui/gui-keyboard.c:426 src/common/command.c:1473 +#: src/gui/gui-keyboard.c:426 src/common/command.c:1478 #, c-format msgid "%s unable to bind key \"%s\"\n" msgstr "%s impossible de créer la touche \"%s\"\n" @@ -2517,7 +2527,7 @@ msgstr "" msgid "list/load/unload Perl scripts" msgstr "liste/charge/décharge des scripts Perl" -#: src/common/command.c:83 src/common/command.c:88 +#: src/common/command.c:83 src/common/command.c:88 src/common/command.c:93 msgid "[load filename] | [autoload] | [reload] | [unload]" msgstr "[load fichier] | [autoload] | [reload] | [unload]" @@ -2542,10 +2552,22 @@ msgstr "" "Sans paramètre, la commande /python liste tous les scripts Python chargés." #: src/common/command.c:92 +msgid "list/load/unload Ruby scripts" +msgstr "liste/charge/décharge des scripts Ruby" + +#: src/common/command.c:94 +msgid "" +"filename: Ruby script (file) to load\n" +"Without argument, /ruby command lists all loaded Ruby scripts." +msgstr "" +"fichier: script Ruby (fichier) à charger\n" +"Sans paramètre, la commande /ruby liste tous les scripts Ruby chargés." + +#: src/common/command.c:97 msgid "list, add or remove servers" msgstr "liste, ajoute ou retire des serveurs" -#: src/common/command.c:93 +#: src/common/command.c:98 msgid "" "[servername] | [servername hostname port [-auto | -noauto] [-ipv6] [-ssl] [-" "pwd password] [-nicks nick1 [nick2 [nick3]]] [-username username] [-realname " @@ -2557,7 +2579,7 @@ msgstr "" "nom_utilisateur] [-realname nom_réel] [-command commande] [-autojoin canal[," "canal]] ] | [del nom_serveur]" -#: src/common/command.c:98 +#: src/common/command.c:103 msgid "" "servername: server name, for internal & display use\n" "hostname: name or IP address of server\n" @@ -2583,27 +2605,27 @@ msgstr "" "nom_utilisateur: nom d'utilisateur\n" "nom_réel: nom réel de l'utilisateur" -#: src/common/command.c:110 +#: src/common/command.c:115 msgid "save config to disk" msgstr "sauvegarder la configuration sur disque" -#: src/common/command.c:111 +#: src/common/command.c:116 msgid "[file]" msgstr "[fichier]" -#: src/common/command.c:111 +#: src/common/command.c:116 msgid "file: filename for writing config" msgstr "fichier: fichier pour sauvegarder la configuration" -#: src/common/command.c:113 +#: src/common/command.c:118 msgid "set config parameters" msgstr "modifier des paramètres de configuration" -#: src/common/command.c:114 +#: src/common/command.c:119 msgid "[option[=value]]" msgstr "[option[=valeur]]" -#: src/common/command.c:114 +#: src/common/command.c:119 msgid "" "option: name of an option\n" "value: value for option" @@ -2611,27 +2633,27 @@ msgstr "" "option: nom d'une option\n" "valeur: valeur pour l'option" -#: src/common/command.c:116 +#: src/common/command.c:121 msgid "remove an alias" msgstr "supprimer un alias" -#: src/common/command.c:117 +#: src/common/command.c:122 msgid "alias_name" msgstr "nom_alias" -#: src/common/command.c:117 +#: src/common/command.c:122 msgid "alias_name: name of alias to remove" msgstr "nom_alias: nom de l'alias à supprimer" -#: src/common/command.c:119 +#: src/common/command.c:124 msgid "manage windows" msgstr "gestion des fenêtres" -#: src/common/command.c:120 +#: src/common/command.c:125 msgid "[list | splith | splitv | [merge [down | up | left | right | all]]]" msgstr "[list | splith | splitv | [merge [down | up | left | right | all]]]" -#: src/common/command.c:121 +#: src/common/command.c:126 msgid "" "list: list opened windows (no parameter implies this list)\n" "splith: split current window horizontally\n" @@ -2643,29 +2665,29 @@ msgstr "" "splitv: éclate la fenêtre en deux verticalement\n" "merge: fusionne la fenêtre avec une autre" -#: src/common/command.c:267 +#: src/common/command.c:272 #, c-format msgid "%s alias or command \"%s\" already exists!\n" msgstr "%s l'alias ou la commande \"%s\" existe déjà !\n" -#: src/common/command.c:277 +#: src/common/command.c:282 #, c-format msgid "%s alias cannot run another alias!\n" msgstr "%s l'alias ne peux pas lancer un autre alias !\n" -#: src/common/command.c:284 +#: src/common/command.c:289 #, c-format msgid "%s target command \"%s\" does not exist!\n" msgstr "%s la commande cible \"%s\" n'existe pas !\n" -#: src/common/command.c:492 +#: src/common/command.c:497 #, c-format msgid "%s wrong argument count for %s command \"%s\" (expected: %d arg%s)\n" msgstr "" "%s nombre de paramètres incorrect pour la commande %s \"%s\" (attendu: %d " "paramètre%s)\n" -#: src/common/command.c:504 +#: src/common/command.c:509 #, c-format msgid "" "%s wrong argument count for %s command \"%s\" (expected: between %d and %d " @@ -2674,19 +2696,19 @@ msgstr "" "%s nombre de paramètres incorrect pour la commande %s \"%s\" (attendu: entre " "%d et %d paramètre%s)\n" -#: src/common/command.c:526 src/common/command.c:596 +#: src/common/command.c:531 src/common/command.c:601 #, c-format msgid "%s command \"%s\" failed\n" msgstr "%s la commande \"%s\" a échoué\n" -#: src/common/command.c:554 +#: src/common/command.c:559 #, c-format msgid "%s wrong argument count for IRC command \"%s\" (expected: %d arg%s)\n" msgstr "" "%s nombre de paramètres incorrect pour la commande IRC \"%s\" (attendu: %d " "paramètre%s)\n" -#: src/common/command.c:566 +#: src/common/command.c:571 #, c-format msgid "" "%s wrong argument count for IRC command \"%s\" (expected: between %d and %d " @@ -2695,214 +2717,221 @@ msgstr "" "%s nombre de paramètres incorrect pour la commande IRC \"%s\" (attendu: " "entre %d et %d paramètre%s)\n" -#: src/common/command.c:581 +#: src/common/command.c:586 #, c-format msgid "%s command \"%s\" needs a server connection!\n" msgstr "%s la commande \"%s\" nécessite une connexion au serveur !\n" -#: src/common/command.c:645 +#: src/common/command.c:650 #, c-format msgid "%s unknown command \"%s\" (type /help for help)\n" msgstr "%s commande \"%s\" inconnue (tapez /help pour l'aide)\n" -#: src/common/command.c:748 +#: src/common/command.c:753 #, c-format msgid "%s unable to call handler for message (not enough memory)\n" msgstr "" "%s impossible d'appeler la fonction pour le message (mémoire insuffisante)\n" -#: src/common/command.c:756 +#: src/common/command.c:761 msgid "This window is not a channel!\n" msgstr "Cette fenêtre n'est pas un canal !\n" -#: src/common/command.c:784 src/common/command.c:808 src/common/command.c:913 +#: src/common/command.c:789 src/common/command.c:813 src/common/command.c:918 #, c-format msgid "%s missing arguments for \"%s\" command\n" msgstr "%s paramètres manquants pour la commande \"%s\"\n" -#: src/common/command.c:793 +#: src/common/command.c:798 #, c-format msgid "Alias \"%s\" => \"%s\" created\n" msgstr "Alias \"%s\" => \"%s\" créé\n" -#: src/common/command.c:799 +#: src/common/command.c:804 #, c-format msgid "Failed to create alias \"%s\" => \"%s\" (not enough memory)\n" msgstr "Impossible de créer l'alias \"%s\" => \"%s\" (pas assez de mémoire)\n" -#: src/common/command.c:819 +#: src/common/command.c:824 msgid "List of aliases:\n" msgstr "Liste des alias:\n" -#: src/common/command.c:831 +#: src/common/command.c:836 msgid "No alias defined.\n" msgstr "Aucun alias défini.\n" -#: src/common/command.c:854 +#: src/common/command.c:859 msgid "Channel: " msgstr "Canal: " -#: src/common/command.c:857 src/common/command.c:867 +#: src/common/command.c:862 src/common/command.c:872 msgid " (server: " msgstr " (serveur: " -#: src/common/command.c:864 +#: src/common/command.c:869 msgid "Private with: " msgstr "Privé avec: " -#: src/common/command.c:893 +#: src/common/command.c:898 msgid "Opened buffers:\n" msgstr "Tampons ouverts:\n" -#: src/common/command.c:936 +#: src/common/command.c:941 #, c-format msgid "%s incorrect buffer number\n" msgstr "%s numéro de buffer incorrect\n" -#: src/common/command.c:950 +#: src/common/command.c:955 #, c-format msgid "%s can not close the single buffer\n" msgstr "%s impossible de fermer le tampon unique\n" -#: src/common/command.c:960 +#: src/common/command.c:965 #, c-format msgid "%s can not close server buffer while channels are opened\n" msgstr "" "%s impossible de fermer le tampon du serveur tant que des canaux sont " "ouverts\n" -#: src/common/command.c:1001 +#: src/common/command.c:1006 msgid "Notify levels: " msgstr "Niveaux de notification: " -#: src/common/command.c:1029 src/common/command.c:1051 +#: src/common/command.c:1034 src/common/command.c:1056 #, c-format msgid "%s incorrect notify level (must be between %d and %d)\n" msgstr "%s niveau de notification incorrect (doit être entre %d et %d)\n" -#: src/common/command.c:1038 +#: src/common/command.c:1043 #, c-format msgid "%s incorrect buffer for notify (must be channel or private)\n" msgstr "" "%s tampon incorrect pour la notification (doit être un canal ou un privé)\n" -#: src/common/command.c:1118 +#: src/common/command.c:1123 #, c-format msgid "unknown parameter \"%s\" for \"%s\" command\n" msgstr "paramètre inconnu \"%s\" pour la commande \"%s\"\n" -#: src/common/command.c:1148 +#: src/common/command.c:1153 #, c-format msgid "%s already connected to server \"%s\"!\n" msgstr "%s déjà connecté au serveur \"%s\" !\n" -#: src/common/command.c:1156 +#: src/common/command.c:1161 #, c-format msgid "%s currently connecting to server \"%s\"!\n" msgstr "%s une connexion vers le serveur \"%s\" est en cours !\n" -#: src/common/command.c:1174 src/common/command.c:1249 +#: src/common/command.c:1179 src/common/command.c:1254 #, c-format msgid "%s server not found\n" msgstr "%s serveur non trouvé\n" -#: src/common/command.c:1204 src/common/command.c:1601 -#: src/common/command.c:1744 src/common/command.c:2441 -#: src/common/command.c:2457 +#: src/common/command.c:1209 src/common/command.c:1606 +#: src/common/command.c:1749 src/common/command.c:1892 +#: src/common/command.c:2589 src/common/command.c:2605 #, c-format msgid "%s unknown option for \"%s\" command\n" msgstr "%s option inconnue pour la commande \"%s\"\n" -#: src/common/command.c:1233 +#: src/common/command.c:1238 #, c-format msgid "%s not connected to server \"%s\"!\n" msgstr "%s non connecté au serveur \"%s\" !\n" -#: src/common/command.c:1241 +#: src/common/command.c:1246 msgid "Auto-reconnection is cancelled\n" msgstr "La reconnexion automatique est annulée\n" -#: src/common/command.c:1267 src/common/weechat.c:273 +#: src/common/command.c:1272 src/common/weechat.c:273 #, c-format msgid "%s internal commands:\n" msgstr "Commandes internes %s :\n" -#: src/common/command.c:1276 src/common/weechat.c:293 +#: src/common/command.c:1281 src/common/weechat.c:293 #, c-format msgid "IRC commands:\n" msgstr "Commandes IRC :\n" -#: src/common/command.c:1343 +#: src/common/command.c:1348 #, c-format msgid "No help available, \"%s\" is an unknown command\n" msgstr "Pas d'aide disponible, la commande \"%s\" est inconnue\n" -#: src/common/command.c:1361 +#: src/common/command.c:1366 msgid "New key binding:\n" msgstr "Nouvelle touche:\n" -#: src/common/command.c:1394 +#: src/common/command.c:1399 msgid "Key bindings:\n" msgstr "Associations de touches:\n" -#: src/common/command.c:1406 +#: src/common/command.c:1411 #, c-format msgid "Key \"%s\" unbinded\n" msgstr "Touche \"%s\" supprimée\n" -#: src/common/command.c:1411 +#: src/common/command.c:1416 #, c-format msgid "%s unable to unbind key \"%s\"\n" msgstr "%s impossible de supprimer la touche \"%s\"\n" -#: src/common/command.c:1419 src/common/weechat.c:324 +#: src/common/command.c:1424 src/common/weechat.c:324 #, c-format msgid "Internal key functions:\n" msgstr "Fonctions internes pour les touches:\n" -#: src/common/command.c:1438 +#: src/common/command.c:1443 msgid "Default key bindings restored\n" msgstr "Touches par défaut restaurées\n" -#: src/common/command.c:1444 +#: src/common/command.c:1449 #, c-format msgid "%s \"-yes\" argument is required for keys reset (securuty reason)\n" msgstr "" "%s le paramètre \"-yes\" est requis pour la réinitialisation des touches " "(raison de sécurité)\n" -#: src/common/command.c:1500 src/common/command.c:1643 +#: src/common/command.c:1505 src/common/command.c:1648 +#: src/common/command.c:1791 #, c-format msgid "Registered %s scripts:\n" msgstr "Scripts %s enregistrés :\n" -#: src/common/command.c:1517 src/common/command.c:1540 -#: src/common/command.c:1563 src/common/command.c:1660 -#: src/common/command.c:1683 src/common/command.c:1706 +#: src/common/command.c:1522 src/common/command.c:1545 +#: src/common/command.c:1568 src/common/command.c:1665 +#: src/common/command.c:1688 src/common/command.c:1711 +#: src/common/command.c:1808 src/common/command.c:1831 +#: src/common/command.c:1854 msgid " (none)\n" msgstr " (aucun)\n" -#: src/common/command.c:1522 src/common/command.c:1665 +#: src/common/command.c:1527 src/common/command.c:1670 +#: src/common/command.c:1813 #, c-format msgid "%s message handlers:\n" msgstr "Fonctions %s pour messages :\n" -#: src/common/command.c:1531 src/common/command.c:1674 +#: src/common/command.c:1536 src/common/command.c:1679 +#: src/common/command.c:1822 #, c-format msgid " IRC(%s) => %s(%s)\n" msgstr " IRC(%s) => %s(%s)\n" -#: src/common/command.c:1545 src/common/command.c:1688 +#: src/common/command.c:1550 src/common/command.c:1693 +#: src/common/command.c:1836 #, c-format msgid "%s command handlers:\n" msgstr "Commandes %s :\n" -#: src/common/command.c:1554 src/common/command.c:1697 +#: src/common/command.c:1559 src/common/command.c:1702 +#: src/common/command.c:1845 #, c-format msgid " Command /%s => %s(%s)\n" msgstr " Commande /%s => %s(%s)\n" -#: src/common/command.c:1614 +#: src/common/command.c:1619 msgid "" "WeeChat was build without Perl support.\n" "Please rebuild WeeChat with \"--enable-perl\" option for ./configure script\n" @@ -2911,7 +2940,7 @@ msgstr "" "Merci de reconstruire WeeChat avec l'option \"--enable-perl\" pour le " "script ./configure\n" -#: src/common/command.c:1757 +#: src/common/command.c:1762 msgid "" "WeeChat was build without Python support.\n" "Please rebuild WeeChat with \"--enable-python\" option for ./configure " @@ -2921,31 +2950,39 @@ msgstr "" "Merci de reconstruire WeeChat avec l'option \"--enable-python\" pour le " "script ./configure\n" -#: src/common/command.c:1805 +#: src/common/command.c:1905 +msgid "" +"WeeChat was build without Ruby support.\n" +"Please rebuild WeeChat with \"--enable-ruby\" option for ./configure script\n" +msgstr "" +"WeeChat a été construit sans le support Ruby.\n" +"Merci de reconstruire WeeChat avec l'option \"--enable-ruby\" pour le script ./configure\n" + +#: src/common/command.c:1953 msgid "No server.\n" msgstr "Pas de serveur.\n" -#: src/common/command.c:1816 +#: src/common/command.c:1964 #, c-format msgid "Server '%s' not found.\n" msgstr "Serveur '%s' non trouvé.\n" -#: src/common/command.c:1828 +#: src/common/command.c:1976 #, c-format msgid "%s missing servername for \"%s\" command\n" msgstr "%s il manque le nom du serveur pour la commande \"%s\"\n" -#: src/common/command.c:1836 +#: src/common/command.c:1984 #, c-format msgid "%s too much arguments for \"%s\" command, ignoring arguments\n" msgstr "%s trop de paramètres pour la commande \"%s\", paramètres ignorés\n" -#: src/common/command.c:1855 +#: src/common/command.c:2003 #, c-format msgid "%s server \"%s\" not found for \"%s\" command\n" msgstr "%s le serveur \"%s\" n'existe pas pour la commande \"%s\"\n" -#: src/common/command.c:1863 +#: src/common/command.c:2011 #, c-format msgid "" "%s you can not delete server \"%s\" because you are connected to. Try /" @@ -2954,106 +2991,106 @@ msgstr "" "%s vous ne pouvez pas supprimer le server \"%s\" car vous êtes connecté " "dessus. Essayez /disconnect %s avant.\n" -#: src/common/command.c:1879 src/common/command.c:2025 +#: src/common/command.c:2027 src/common/command.c:2173 msgid "Server" msgstr "Serveur" -#: src/common/command.c:1882 +#: src/common/command.c:2030 msgid "has been deleted\n" msgstr "a été supprimé\n" -#: src/common/command.c:1897 +#: src/common/command.c:2045 #, c-format msgid "%s missing parameters for \"%s\" command\n" msgstr "%s paramètres manquants pour la commande \"%s\"\n" -#: src/common/command.c:1907 +#: src/common/command.c:2055 #, c-format msgid "%s server \"%s\" already exists, can't create it!\n" msgstr "%s le serveur \"%s\" existe déjà, impossible de le créer !\n" -#: src/common/command.c:1936 src/common/command.c:1964 -#: src/common/command.c:1977 src/common/command.c:2003 +#: src/common/command.c:2084 src/common/command.c:2112 +#: src/common/command.c:2125 src/common/command.c:2151 #, c-format msgid "%s missing password for \"%s\" parameter\n" msgstr "%s mot de passe manquant pour le paramètre \"%s\"\n" -#: src/common/command.c:1949 +#: src/common/command.c:2097 #, c-format msgid "%s missing nick(s) for \"%s\" parameter\n" msgstr "%s pseudo(s) manquant(s) pour le paramètre \"%s\"\n" -#: src/common/command.c:1990 +#: src/common/command.c:2138 #, c-format msgid "%s missing command for \"%s\" parameter\n" msgstr "%s commande manquante pour le paramètre \"%s\"\n" -#: src/common/command.c:2028 +#: src/common/command.c:2176 msgid "created\n" msgstr "créé\n" -#: src/common/command.c:2034 +#: src/common/command.c:2182 #, c-format msgid "%s unable to create server\n" msgstr "%s impossible de créer le serveur\n" -#: src/common/command.c:2089 +#: src/common/command.c:2237 msgid "(unknown)" msgstr "(inconnu)" -#: src/common/command.c:2112 +#: src/common/command.c:2260 msgid "(password hidden) " msgstr "(mot de passe caché) " -#: src/common/command.c:2176 +#: src/common/command.c:2324 #, c-format msgid "%s server \"%s\" not found\n" msgstr "%s serveur \"%s\" non trouvé\n" -#: src/common/command.c:2207 src/common/command.c:2253 +#: src/common/command.c:2355 src/common/command.c:2401 #, c-format msgid "%s config option \"%s\" not found\n" msgstr "%s option de configuration \"%s\" non trouvée\n" -#: src/common/command.c:2212 src/common/command.c:2245 +#: src/common/command.c:2360 src/common/command.c:2393 #, c-format msgid "%s incorrect value for option \"%s\"\n" msgstr "%s valeur incorrecte pour l'option \"%s\"\n" -#: src/common/command.c:2228 +#: src/common/command.c:2376 #, c-format msgid "%s option \"%s\" can not be changed while WeeChat is running\n" msgstr "%s l'option \"%s\" ne peut pas être changée lorsque WeeChat tourne\n" -#: src/common/command.c:2327 +#: src/common/command.c:2475 #, c-format msgid "No config option found with \"%s\"\n" msgstr "Aucune option de configuration trouvée avec \"%s\"\n" -#: src/common/command.c:2330 +#: src/common/command.c:2478 msgid "No config option found\n" msgstr "Aucune option de configuration trouvée\n" -#: src/common/command.c:2336 +#: src/common/command.c:2484 #, c-format msgid "config option(s) found with \"%s\"\n" msgstr "option(s) de configuration trouvée(s) avec \"%s\"\n" -#: src/common/command.c:2339 +#: src/common/command.c:2487 msgid "config option(s) found\n" msgstr "option(s) de configuration trouvée(s)\n" -#: src/common/command.c:2359 +#: src/common/command.c:2507 #, c-format msgid "%s alias or command \"%s\" not found\n" msgstr "%s alias ou commande \"%s\" non trouvé\n" -#: src/common/command.c:2369 +#: src/common/command.c:2517 #, c-format msgid "Alias \"%s\" removed\n" msgstr "Alias \"%s\" supprimé\n" -#: src/common/command.c:2389 +#: src/common/command.c:2537 msgid "Opened windows:\n" msgstr "Fenêtres ouvertes:\n" diff --git a/po/weechat.pot b/po/weechat.pot index a17370ebe..6c0ba3253 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2005-08-16 16:52+0200\n" +"POT-Creation-Date: 2005-08-21 14:31+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -1207,7 +1207,7 @@ msgstr "" msgid "whois (secure connection)" msgstr "" -#: src/irc/irc-display.c:163 src/common/command.c:848 +#: src/irc/irc-display.c:163 src/common/command.c:853 msgid "Server: " msgstr "" @@ -1237,7 +1237,7 @@ msgstr "" msgid "(hidden)" msgstr "" -#: src/irc/irc-send.c:59 src/irc/irc-recv.c:3992 +#: src/irc/irc-send.c:59 src/irc/irc-recv.c:4008 msgid "unknown" msgstr "" @@ -1246,7 +1246,7 @@ msgstr "" msgid "%s: using local hostname \"%s\"\n" msgstr "" -#: src/irc/irc-send.c:126 src/common/command.c:726 +#: src/irc/irc-send.c:126 src/common/command.c:731 #, c-format msgid "%s cannot find nick for sending message\n" msgstr "" @@ -1262,8 +1262,9 @@ msgstr "" #: src/irc/irc-send.c:415 src/irc/irc-send.c:427 src/irc/irc-send.c:445 #: src/irc/irc-send.c:1097 src/irc/irc-send.c:1190 src/irc/irc-send.c:1722 -#: src/common/command.c:1191 src/common/command.c:1458 -#: src/common/command.c:1608 src/common/command.c:1751 +#: src/common/command.c:1196 src/common/command.c:1463 +#: src/common/command.c:1613 src/common/command.c:1756 +#: src/common/command.c:1899 #, c-format msgid "%s wrong argument count for \"%s\" command\n" msgstr "" @@ -1284,7 +1285,8 @@ msgstr "" msgid "%s nick \"%s\" not found for \"%s\" command\n" msgstr "" -#: src/irc/irc-send.c:1067 src/irc/irc-send.c:1375 src/irc/irc-recv.c:1819 +#: src/irc/irc-send.c:1067 src/irc/irc-send.c:1375 src/irc/irc-recv.c:1822 +#: src/irc/irc-recv.c:1900 #, c-format msgid "%s cannot create new private window \"%s\"\n" msgstr "" @@ -1303,8 +1305,8 @@ msgid "by" msgstr "" #: src/irc/irc-recv.c:282 src/irc/irc-recv.c:376 src/irc/irc-recv.c:875 -#: src/irc/irc-recv.c:1210 src/irc/irc-recv.c:1452 src/irc/irc-recv.c:3210 -#: src/irc/irc-recv.c:3277 +#: src/irc/irc-recv.c:1210 src/irc/irc-recv.c:1452 src/irc/irc-recv.c:3226 +#: src/irc/irc-recv.c:3293 #, c-format msgid "%s channel \"%s\" not found for \"%s\" command\n" msgstr "" @@ -1448,7 +1450,7 @@ msgid "removes voice from" msgstr "" #: src/irc/irc-recv.c:830 src/irc/irc-recv.c:915 src/irc/irc-recv.c:1284 -#: src/irc/irc-recv.c:1950 +#: src/irc/irc-recv.c:1966 #, c-format msgid "%s \"%s\" command received without host\n" msgstr "" @@ -1497,7 +1499,7 @@ msgstr "" msgid " has left " msgstr "" -#: src/irc/irc-recv.c:1333 src/irc/irc-recv.c:1845 +#: src/irc/irc-recv.c:1333 src/irc/irc-recv.c:1846 #, c-format msgid "On %s: * %s %s" msgstr "" @@ -1508,11 +1510,11 @@ msgid "Received a CTCP SOUND \"%s\" from " msgstr "" #: src/irc/irc-recv.c:1384 src/irc/irc-recv.c:1412 src/irc/irc-recv.c:1512 -#: src/irc/irc-recv.c:1548 src/irc/irc-recv.c:1880 +#: src/irc/irc-recv.c:1548 src/irc/irc-recv.c:1881 msgid "received from" msgstr "" -#: src/irc/irc-recv.c:1408 src/irc/irc-recv.c:1876 +#: src/irc/irc-recv.c:1408 src/irc/irc-recv.c:1877 msgid "Unknown CTCP " msgstr "" @@ -1525,10 +1527,10 @@ msgstr "" #: src/irc/irc-recv.c:1612 src/irc/irc-recv.c:1637 src/irc/irc-recv.c:1654 #: src/irc/irc-recv.c:1670 src/irc/irc-recv.c:1694 src/irc/irc-recv.c:1711 #: src/irc/irc-recv.c:1727 src/irc/irc-recv.c:1751 src/irc/irc-recv.c:1768 -#: src/irc/irc-recv.c:1783 src/irc/irc-recv.c:1926 src/irc/irc-recv.c:3576 -#: src/irc/irc-recv.c:3634 src/irc/irc-recv.c:3786 src/irc/irc-recv.c:3801 -#: src/irc/irc-recv.c:3816 src/irc/irc-recv.c:3831 src/irc/irc-recv.c:3844 -#: src/irc/irc-recv.c:3894 src/irc/irc-recv.c:3908 +#: src/irc/irc-recv.c:1783 src/irc/irc-recv.c:1942 src/irc/irc-recv.c:3592 +#: src/irc/irc-recv.c:3650 src/irc/irc-recv.c:3802 src/irc/irc-recv.c:3817 +#: src/irc/irc-recv.c:3832 src/irc/irc-recv.c:3847 src/irc/irc-recv.c:3860 +#: src/irc/irc-recv.c:3910 src/irc/irc-recv.c:3924 #, c-format msgid "%s cannot parse \"%s\" command\n" msgstr "" @@ -1538,197 +1540,197 @@ msgstr "" msgid "%s unknown DCC CHAT type received from " msgstr "" -#: src/irc/irc-recv.c:1905 src/irc/irc-dcc.c:1039 +#: src/irc/irc-recv.c:1921 src/irc/irc-dcc.c:1039 #, c-format msgid "Private %s> %s" msgstr "" -#: src/irc/irc-recv.c:1982 +#: src/irc/irc-recv.c:1998 msgid "has quit" msgstr "" -#: src/irc/irc-recv.c:2103 +#: src/irc/irc-recv.c:2119 #, c-format msgid "%s \"%s\" command received without channel\n" msgstr "" -#: src/irc/irc-recv.c:2131 +#: src/irc/irc-recv.c:2147 msgid " has changed topic for " msgstr "" -#: src/irc/irc-recv.c:2136 +#: src/irc/irc-recv.c:2152 #, c-format msgid " to: \"%s\"\n" msgstr "" -#: src/irc/irc-recv.c:2142 +#: src/irc/irc-recv.c:2158 msgid " has unset topic for " msgstr "" -#: src/irc/irc-recv.c:2260 +#: src/irc/irc-recv.c:2276 #, c-format msgid " is away: %s\n" msgstr "" -#: src/irc/irc-recv.c:2334 +#: src/irc/irc-recv.c:2350 msgid "Users online: " msgstr "" -#: src/irc/irc-recv.c:2781 +#: src/irc/irc-recv.c:2797 msgid "idle: " msgstr "" -#: src/irc/irc-recv.c:2789 +#: src/irc/irc-recv.c:2805 msgid "days" msgstr "" -#: src/irc/irc-recv.c:2789 +#: src/irc/irc-recv.c:2805 msgid "day" msgstr "" -#: src/irc/irc-recv.c:2799 +#: src/irc/irc-recv.c:2815 msgid "hours" msgstr "" -#: src/irc/irc-recv.c:2799 +#: src/irc/irc-recv.c:2815 msgid "hour" msgstr "" -#: src/irc/irc-recv.c:2805 +#: src/irc/irc-recv.c:2821 msgid "minutes" msgstr "" -#: src/irc/irc-recv.c:2805 +#: src/irc/irc-recv.c:2821 msgid "minute" msgstr "" -#: src/irc/irc-recv.c:2811 +#: src/irc/irc-recv.c:2827 msgid "seconds" msgstr "" -#: src/irc/irc-recv.c:2811 +#: src/irc/irc-recv.c:2827 msgid "second" msgstr "" -#: src/irc/irc-recv.c:2816 +#: src/irc/irc-recv.c:2832 msgid "signon at: " msgstr "" -#: src/irc/irc-recv.c:2904 +#: src/irc/irc-recv.c:2920 msgid "Channels: " msgstr "" -#: src/irc/irc-recv.c:3156 +#: src/irc/irc-recv.c:3172 msgid "No topic set for " msgstr "" -#: src/irc/irc-recv.c:3198 +#: src/irc/irc-recv.c:3214 msgid "Topic for " msgstr "" -#: src/irc/irc-recv.c:3202 +#: src/irc/irc-recv.c:3218 #, c-format msgid " is: \"%s\"\n" msgstr "" -#: src/irc/irc-recv.c:3220 src/irc/irc-recv.c:3304 src/irc/irc-recv.c:3357 +#: src/irc/irc-recv.c:3236 src/irc/irc-recv.c:3320 src/irc/irc-recv.c:3373 #, c-format msgid "%s cannot identify channel for \"%s\" command\n" msgstr "" -#: src/irc/irc-recv.c:3266 +#: src/irc/irc-recv.c:3282 msgid "Topic set by " msgstr "" -#: src/irc/irc-recv.c:3286 +#: src/irc/irc-recv.c:3302 #, c-format msgid "%s cannot identify date/time for \"%s\" command\n" msgstr "" -#: src/irc/irc-recv.c:3295 src/irc/irc-recv.c:3366 +#: src/irc/irc-recv.c:3311 src/irc/irc-recv.c:3382 #, c-format msgid "%s cannot identify nickname for \"%s\" command\n" msgstr "" -#: src/irc/irc-recv.c:3345 +#: src/irc/irc-recv.c:3361 msgid "has invited" msgstr "" -#: src/irc/irc-recv.c:3348 src/irc/irc-recv.c:3499 +#: src/irc/irc-recv.c:3364 src/irc/irc-recv.c:3515 msgid "on" msgstr "" -#: src/irc/irc-recv.c:3622 +#: src/irc/irc-recv.c:3638 #, c-format msgid "%s cannot create nick \"%s\" for channel \"%s\"\n" msgstr "" -#: src/irc/irc-recv.c:3678 +#: src/irc/irc-recv.c:3694 msgid "Nicks " msgstr "" -#: src/irc/irc-recv.c:3698 +#: src/irc/irc-recv.c:3714 msgid "Channel " msgstr "" -#: src/irc/irc-recv.c:3709 +#: src/irc/irc-recv.c:3725 msgid "nicks" msgstr "" -#: src/irc/irc-recv.c:3709 +#: src/irc/irc-recv.c:3725 msgid "nick" msgstr "" -#: src/irc/irc-recv.c:3717 +#: src/irc/irc-recv.c:3733 msgid "ops" msgstr "" -#: src/irc/irc-recv.c:3717 +#: src/irc/irc-recv.c:3733 msgid "op" msgstr "" -#: src/irc/irc-recv.c:3726 +#: src/irc/irc-recv.c:3742 msgid "halfops" msgstr "" -#: src/irc/irc-recv.c:3726 +#: src/irc/irc-recv.c:3742 msgid "halfop" msgstr "" -#: src/irc/irc-recv.c:3735 +#: src/irc/irc-recv.c:3751 msgid "voices" msgstr "" -#: src/irc/irc-recv.c:3735 +#: src/irc/irc-recv.c:3751 msgid "voice" msgstr "" -#: src/irc/irc-recv.c:3744 +#: src/irc/irc-recv.c:3760 msgid "normal" msgstr "" -#: src/irc/irc-recv.c:3857 +#: src/irc/irc-recv.c:3873 msgid "banned by" msgstr "" -#: src/irc/irc-recv.c:3946 +#: src/irc/irc-recv.c:3962 #, c-format msgid "%s: nickname \"%s\" is already in use, trying 2nd nickname \"%s\"\n" msgstr "" -#: src/irc/irc-recv.c:3958 +#: src/irc/irc-recv.c:3974 #, c-format msgid "%s: nickname \"%s\" is already in use, trying 3rd nickname \"%s\"\n" msgstr "" -#: src/irc/irc-recv.c:3970 +#: src/irc/irc-recv.c:3986 #, c-format msgid "" "%s: all declared nicknames are already in use, closing connection with " "server!\n" msgstr "" -#: src/irc/irc-recv.c:3980 +#: src/irc/irc-recv.c:3996 #, c-format msgid "%s: nickname \"%s\" is already in use, trying 1st nickname \"%s\"\n" msgstr "" @@ -1889,7 +1891,7 @@ msgid "Aborting active DCC: \"%s\" from %s\n" msgstr "" #: src/plugins/perl/wee-perl.c:88 src/plugins/perl/wee-perl.c:463 -#: src/plugins/python/wee-python.c:81 +#: src/plugins/python/wee-python.c:81 src/plugins/ruby/wee-ruby.c:89 #, c-format msgid "" "%s error: unable to register \"%s\" script (another script already exists " @@ -1897,13 +1899,13 @@ msgid "" msgstr "" #: src/plugins/perl/wee-perl.c:112 src/plugins/perl/wee-perl.c:487 -#: src/plugins/python/wee-python.c:105 +#: src/plugins/python/wee-python.c:105 src/plugins/ruby/wee-ruby.c:113 #, c-format msgid "Registered %s script: \"%s\", version %s (%s)\n" msgstr "" #: src/plugins/perl/wee-perl.c:119 src/plugins/perl/wee-perl.c:494 -#: src/plugins/python/wee-python.c:112 +#: src/plugins/python/wee-python.c:112 src/plugins/ruby/wee-ruby.c:120 #, c-format msgid "%s error: unable to load script \"%s\" (not enough memory)\n" msgstr "" @@ -1915,17 +1917,22 @@ msgstr "" #: src/plugins/python/wee-python.c:142 src/plugins/python/wee-python.c:179 #: src/plugins/python/wee-python.c:211 src/plugins/python/wee-python.c:243 #: src/plugins/python/wee-python.c:272 src/plugins/python/wee-python.c:311 +#: src/plugins/ruby/wee-ruby.c:58 src/plugins/ruby/wee-ruby.c:146 +#: src/plugins/ruby/wee-ruby.c:192 src/plugins/ruby/wee-ruby.c:226 +#: src/plugins/ruby/wee-ruby.c:267 src/plugins/ruby/wee-ruby.c:298 +#: src/plugins/ruby/wee-ruby.c:339 #, c-format msgid "%s error: wrong parameters for \"%s\" function\n" msgstr "" #: src/plugins/perl/wee-perl.c:270 src/plugins/perl/wee-perl.c:374 #: src/plugins/perl/wee-perl.c:723 src/plugins/python/wee-python.c:331 +#: src/plugins/ruby/wee-ruby.c:367 #, c-format msgid "%s error: server not found for \"%s\" function\n" msgstr "" -#: src/plugins/perl/wee-perl.c:873 src/plugins/python/wee-python.c:456 +#: src/plugins/perl/wee-perl.c:873 src/plugins/python/wee-python.c:457 #, c-format msgid "Loading %s module \"weechat\"\n" msgstr "" @@ -1941,68 +1948,71 @@ msgid "%s error: too much values from \"%s\" (%d). Expected: 1.\n" msgstr "" #: src/plugins/perl/wee-perl.c:964 src/plugins/perl/wee-perl.c:966 -#: src/plugins/python/wee-python.c:614 src/plugins/python/wee-python.c:616 +#: src/plugins/python/wee-python.c:615 src/plugins/python/wee-python.c:617 #, c-format msgid "Loading %s script \"%s\"\n" msgstr "" -#: src/plugins/perl/wee-perl.c:1015 src/plugins/python/wee-python.c:685 +#: src/plugins/perl/wee-perl.c:1015 src/plugins/python/wee-python.c:686 +#: src/plugins/ruby/wee-ruby.c:722 #, c-format msgid "Unloading %s script \"%s\"\n" msgstr "" -#: src/plugins/perl/wee-perl.c:1032 src/plugins/python/wee-python.c:702 +#: src/plugins/perl/wee-perl.c:1032 src/plugins/python/wee-python.c:703 +#: src/plugins/ruby/wee-ruby.c:739 #, c-format msgid "Unloading all %s scripts...\n" msgstr "" -#: src/plugins/perl/wee-perl.c:1037 src/plugins/python/wee-python.c:707 +#: src/plugins/perl/wee-perl.c:1037 src/plugins/python/wee-python.c:708 +#: src/plugins/ruby/wee-ruby.c:744 #, c-format msgid "%s scripts unloaded\n" msgstr "" -#: src/plugins/python/wee-python.c:451 +#: src/plugins/python/wee-python.c:452 #, c-format msgid "%s error: error while launching interpreter\n" msgstr "" -#: src/plugins/python/wee-python.c:480 +#: src/plugins/python/wee-python.c:481 #, c-format msgid "%s error: error while redirecting stdout and stderr\n" msgstr "" -#: src/plugins/python/wee-python.c:533 src/plugins/python/wee-python.c:561 -#: src/plugins/python/wee-python.c:593 +#: src/plugins/python/wee-python.c:534 src/plugins/python/wee-python.c:562 +#: src/plugins/python/wee-python.c:594 #, c-format msgid "%s error: unable to run function \"%s\" in script (not enough memory)\n" msgstr "" -#: src/plugins/python/wee-python.c:583 +#: src/plugins/python/wee-python.c:584 #, c-format msgid "%s error: error while running function \"%s\"\n" msgstr "" -#: src/plugins/python/wee-python.c:622 +#: src/plugins/python/wee-python.c:623 #, c-format msgid "%s error: error while opening file \"%s\"\n" msgstr "" -#: src/plugins/python/wee-python.c:631 +#: src/plugins/python/wee-python.c:632 #, c-format msgid "%s error: error while parsing file \"%s\"\n" msgstr "" -#: src/plugins/python/wee-python.c:733 +#: src/plugins/python/wee-python.c:734 #, c-format msgid "%s error: error while freeing interpreter\n" msgstr "" -#: src/plugins/plugins.c:93 +#: src/plugins/plugins.c:97 #, c-format msgid "Auto-loading %s script: %s%s%s\n" msgstr "" -#: src/plugins/plugins.c:212 +#: src/plugins/plugins.c:223 #, c-format msgid "%s unable to add handler for \"%s\" message (not enough memory)\n" msgstr "" @@ -2012,60 +2022,60 @@ msgstr "" msgid "%s lag is high, disconnecting from server...\n" msgstr "" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "bytes" msgstr "" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "Kb" msgstr "" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "Mb" msgstr "" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "Gb" msgstr "" -#: src/gui/curses/gui-display.c:1119 +#: src/gui/curses/gui-display.c:1131 msgid "(away)" msgstr "" -#: src/gui/curses/gui-display.c:1236 +#: src/gui/curses/gui-display.c:1248 msgid "[not connected]" msgstr "" -#: src/gui/curses/gui-display.c:1252 +#: src/gui/curses/gui-display.c:1264 msgid "Act: " msgstr "" -#: src/gui/curses/gui-display.c:1305 +#: src/gui/curses/gui-display.c:1317 #, c-format msgid "Lag: %.1f" msgstr "" -#: src/gui/curses/gui-display.c:1326 +#: src/gui/curses/gui-display.c:1338 msgid "-MORE-" msgstr "" -#: src/gui/curses/gui-display.c:1516 +#: src/gui/curses/gui-display.c:1528 msgid " [A] Accept" msgstr "" -#: src/gui/curses/gui-display.c:1517 src/gui/curses/gui-display.c:1521 +#: src/gui/curses/gui-display.c:1529 src/gui/curses/gui-display.c:1533 msgid " [C] Cancel" msgstr "" -#: src/gui/curses/gui-display.c:1526 +#: src/gui/curses/gui-display.c:1538 msgid " [R] Remove" msgstr "" -#: src/gui/curses/gui-display.c:1530 +#: src/gui/curses/gui-display.c:1542 msgid " [P] Purge old DCC" msgstr "" -#: src/gui/curses/gui-display.c:1531 +#: src/gui/curses/gui-display.c:1543 msgid " [Q] Close DCC view" msgstr "" @@ -2229,7 +2239,7 @@ msgstr "" msgid "grab a key" msgstr "" -#: src/gui/gui-keyboard.c:426 src/common/command.c:1473 +#: src/gui/gui-keyboard.c:426 src/common/command.c:1478 #, c-format msgid "%s unable to bind key \"%s\"\n" msgstr "" @@ -2358,7 +2368,7 @@ msgstr "" msgid "list/load/unload Perl scripts" msgstr "" -#: src/common/command.c:83 src/common/command.c:88 +#: src/common/command.c:83 src/common/command.c:88 src/common/command.c:93 msgid "[load filename] | [autoload] | [reload] | [unload]" msgstr "" @@ -2379,10 +2389,20 @@ msgid "" msgstr "" #: src/common/command.c:92 +msgid "list/load/unload Ruby scripts" +msgstr "" + +#: src/common/command.c:94 +msgid "" +"filename: Ruby script (file) to load\n" +"Without argument, /ruby command lists all loaded Ruby scripts." +msgstr "" + +#: src/common/command.c:97 msgid "list, add or remove servers" msgstr "" -#: src/common/command.c:93 +#: src/common/command.c:98 msgid "" "[servername] | [servername hostname port [-auto | -noauto] [-ipv6] [-ssl] [-" "pwd password] [-nicks nick1 [nick2 [nick3]]] [-username username] [-realname " @@ -2390,7 +2410,7 @@ msgid "" "servername]" msgstr "" -#: src/common/command.c:98 +#: src/common/command.c:103 msgid "" "servername: server name, for internal & display use\n" "hostname: name or IP address of server\n" @@ -2405,53 +2425,53 @@ msgid "" "realname: real name of user" msgstr "" -#: src/common/command.c:110 +#: src/common/command.c:115 msgid "save config to disk" msgstr "" -#: src/common/command.c:111 +#: src/common/command.c:116 msgid "[file]" msgstr "" -#: src/common/command.c:111 +#: src/common/command.c:116 msgid "file: filename for writing config" msgstr "" -#: src/common/command.c:113 +#: src/common/command.c:118 msgid "set config parameters" msgstr "" -#: src/common/command.c:114 +#: src/common/command.c:119 msgid "[option[=value]]" msgstr "" -#: src/common/command.c:114 +#: src/common/command.c:119 msgid "" "option: name of an option\n" "value: value for option" msgstr "" -#: src/common/command.c:116 +#: src/common/command.c:121 msgid "remove an alias" msgstr "" -#: src/common/command.c:117 +#: src/common/command.c:122 msgid "alias_name" msgstr "" -#: src/common/command.c:117 +#: src/common/command.c:122 msgid "alias_name: name of alias to remove" msgstr "" -#: src/common/command.c:119 +#: src/common/command.c:124 msgid "manage windows" msgstr "" -#: src/common/command.c:120 +#: src/common/command.c:125 msgid "[list | splith | splitv | [merge [down | up | left | right | all]]]" msgstr "" -#: src/common/command.c:121 +#: src/common/command.c:126 msgid "" "list: list opened windows (no parameter implies this list)\n" "splith: split current window horizontally\n" @@ -2459,395 +2479,408 @@ msgid "" "merge: merge window with another" msgstr "" -#: src/common/command.c:267 +#: src/common/command.c:272 #, c-format msgid "%s alias or command \"%s\" already exists!\n" msgstr "" -#: src/common/command.c:277 +#: src/common/command.c:282 #, c-format msgid "%s alias cannot run another alias!\n" msgstr "" -#: src/common/command.c:284 +#: src/common/command.c:289 #, c-format msgid "%s target command \"%s\" does not exist!\n" msgstr "" -#: src/common/command.c:492 +#: src/common/command.c:497 #, c-format msgid "%s wrong argument count for %s command \"%s\" (expected: %d arg%s)\n" msgstr "" -#: src/common/command.c:504 +#: src/common/command.c:509 #, c-format msgid "" "%s wrong argument count for %s command \"%s\" (expected: between %d and %d " "arg%s)\n" msgstr "" -#: src/common/command.c:526 src/common/command.c:596 +#: src/common/command.c:531 src/common/command.c:601 #, c-format msgid "%s command \"%s\" failed\n" msgstr "" -#: src/common/command.c:554 +#: src/common/command.c:559 #, c-format msgid "%s wrong argument count for IRC command \"%s\" (expected: %d arg%s)\n" msgstr "" -#: src/common/command.c:566 +#: src/common/command.c:571 #, c-format msgid "" "%s wrong argument count for IRC command \"%s\" (expected: between %d and %d " "arg%s)\n" msgstr "" -#: src/common/command.c:581 +#: src/common/command.c:586 #, c-format msgid "%s command \"%s\" needs a server connection!\n" msgstr "" -#: src/common/command.c:645 +#: src/common/command.c:650 #, c-format msgid "%s unknown command \"%s\" (type /help for help)\n" msgstr "" -#: src/common/command.c:748 +#: src/common/command.c:753 #, c-format msgid "%s unable to call handler for message (not enough memory)\n" msgstr "" -#: src/common/command.c:756 +#: src/common/command.c:761 msgid "This window is not a channel!\n" msgstr "" -#: src/common/command.c:784 src/common/command.c:808 src/common/command.c:913 +#: src/common/command.c:789 src/common/command.c:813 src/common/command.c:918 #, c-format msgid "%s missing arguments for \"%s\" command\n" msgstr "" -#: src/common/command.c:793 +#: src/common/command.c:798 #, c-format msgid "Alias \"%s\" => \"%s\" created\n" msgstr "" -#: src/common/command.c:799 +#: src/common/command.c:804 #, c-format msgid "Failed to create alias \"%s\" => \"%s\" (not enough memory)\n" msgstr "" -#: src/common/command.c:819 +#: src/common/command.c:824 msgid "List of aliases:\n" msgstr "" -#: src/common/command.c:831 +#: src/common/command.c:836 msgid "No alias defined.\n" msgstr "" -#: src/common/command.c:854 +#: src/common/command.c:859 msgid "Channel: " msgstr "" -#: src/common/command.c:857 src/common/command.c:867 +#: src/common/command.c:862 src/common/command.c:872 msgid " (server: " msgstr "" -#: src/common/command.c:864 +#: src/common/command.c:869 msgid "Private with: " msgstr "" -#: src/common/command.c:893 +#: src/common/command.c:898 msgid "Opened buffers:\n" msgstr "" -#: src/common/command.c:936 +#: src/common/command.c:941 #, c-format msgid "%s incorrect buffer number\n" msgstr "" -#: src/common/command.c:950 +#: src/common/command.c:955 #, c-format msgid "%s can not close the single buffer\n" msgstr "" -#: src/common/command.c:960 +#: src/common/command.c:965 #, c-format msgid "%s can not close server buffer while channels are opened\n" msgstr "" -#: src/common/command.c:1001 +#: src/common/command.c:1006 msgid "Notify levels: " msgstr "" -#: src/common/command.c:1029 src/common/command.c:1051 +#: src/common/command.c:1034 src/common/command.c:1056 #, c-format msgid "%s incorrect notify level (must be between %d and %d)\n" msgstr "" -#: src/common/command.c:1038 +#: src/common/command.c:1043 #, c-format msgid "%s incorrect buffer for notify (must be channel or private)\n" msgstr "" -#: src/common/command.c:1118 +#: src/common/command.c:1123 #, c-format msgid "unknown parameter \"%s\" for \"%s\" command\n" msgstr "" -#: src/common/command.c:1148 +#: src/common/command.c:1153 #, c-format msgid "%s already connected to server \"%s\"!\n" msgstr "" -#: src/common/command.c:1156 +#: src/common/command.c:1161 #, c-format msgid "%s currently connecting to server \"%s\"!\n" msgstr "" -#: src/common/command.c:1174 src/common/command.c:1249 +#: src/common/command.c:1179 src/common/command.c:1254 #, c-format msgid "%s server not found\n" msgstr "" -#: src/common/command.c:1204 src/common/command.c:1601 -#: src/common/command.c:1744 src/common/command.c:2441 -#: src/common/command.c:2457 +#: src/common/command.c:1209 src/common/command.c:1606 +#: src/common/command.c:1749 src/common/command.c:1892 +#: src/common/command.c:2589 src/common/command.c:2605 #, c-format msgid "%s unknown option for \"%s\" command\n" msgstr "" -#: src/common/command.c:1233 +#: src/common/command.c:1238 #, c-format msgid "%s not connected to server \"%s\"!\n" msgstr "" -#: src/common/command.c:1241 +#: src/common/command.c:1246 msgid "Auto-reconnection is cancelled\n" msgstr "" -#: src/common/command.c:1267 src/common/weechat.c:273 +#: src/common/command.c:1272 src/common/weechat.c:273 #, c-format msgid "%s internal commands:\n" msgstr "" -#: src/common/command.c:1276 src/common/weechat.c:293 +#: src/common/command.c:1281 src/common/weechat.c:293 #, c-format msgid "IRC commands:\n" msgstr "" -#: src/common/command.c:1343 +#: src/common/command.c:1348 #, c-format msgid "No help available, \"%s\" is an unknown command\n" msgstr "" -#: src/common/command.c:1361 +#: src/common/command.c:1366 msgid "New key binding:\n" msgstr "" -#: src/common/command.c:1394 +#: src/common/command.c:1399 msgid "Key bindings:\n" msgstr "" -#: src/common/command.c:1406 -#, c-format -msgid "Key \"%s\" unbinded\n" -msgstr "" - #: src/common/command.c:1411 #, c-format +msgid "Key \"%s\" unbinded\n" +msgstr "" + +#: src/common/command.c:1416 +#, c-format msgid "%s unable to unbind key \"%s\"\n" msgstr "" -#: src/common/command.c:1419 src/common/weechat.c:324 +#: src/common/command.c:1424 src/common/weechat.c:324 #, c-format msgid "Internal key functions:\n" msgstr "" -#: src/common/command.c:1438 +#: src/common/command.c:1443 msgid "Default key bindings restored\n" msgstr "" -#: src/common/command.c:1444 +#: src/common/command.c:1449 #, c-format msgid "%s \"-yes\" argument is required for keys reset (securuty reason)\n" msgstr "" -#: src/common/command.c:1500 src/common/command.c:1643 +#: src/common/command.c:1505 src/common/command.c:1648 +#: src/common/command.c:1791 #, c-format msgid "Registered %s scripts:\n" msgstr "" -#: src/common/command.c:1517 src/common/command.c:1540 -#: src/common/command.c:1563 src/common/command.c:1660 -#: src/common/command.c:1683 src/common/command.c:1706 +#: src/common/command.c:1522 src/common/command.c:1545 +#: src/common/command.c:1568 src/common/command.c:1665 +#: src/common/command.c:1688 src/common/command.c:1711 +#: src/common/command.c:1808 src/common/command.c:1831 +#: src/common/command.c:1854 msgid " (none)\n" msgstr "" -#: src/common/command.c:1522 src/common/command.c:1665 +#: src/common/command.c:1527 src/common/command.c:1670 +#: src/common/command.c:1813 #, c-format msgid "%s message handlers:\n" msgstr "" -#: src/common/command.c:1531 src/common/command.c:1674 +#: src/common/command.c:1536 src/common/command.c:1679 +#: src/common/command.c:1822 #, c-format msgid " IRC(%s) => %s(%s)\n" msgstr "" -#: src/common/command.c:1545 src/common/command.c:1688 +#: src/common/command.c:1550 src/common/command.c:1693 +#: src/common/command.c:1836 #, c-format msgid "%s command handlers:\n" msgstr "" -#: src/common/command.c:1554 src/common/command.c:1697 +#: src/common/command.c:1559 src/common/command.c:1702 +#: src/common/command.c:1845 #, c-format msgid " Command /%s => %s(%s)\n" msgstr "" -#: src/common/command.c:1614 +#: src/common/command.c:1619 msgid "" "WeeChat was build without Perl support.\n" "Please rebuild WeeChat with \"--enable-perl\" option for ./configure script\n" msgstr "" -#: src/common/command.c:1757 +#: src/common/command.c:1762 msgid "" "WeeChat was build without Python support.\n" "Please rebuild WeeChat with \"--enable-python\" option for ./configure " "script\n" msgstr "" -#: src/common/command.c:1805 +#: src/common/command.c:1905 +msgid "" +"WeeChat was build without Ruby support.\n" +"Please rebuild WeeChat with \"--enable-ruby\" option for ./configure script\n" +msgstr "" + +#: src/common/command.c:1953 msgid "No server.\n" msgstr "" -#: src/common/command.c:1816 +#: src/common/command.c:1964 #, c-format msgid "Server '%s' not found.\n" msgstr "" -#: src/common/command.c:1828 +#: src/common/command.c:1976 #, c-format msgid "%s missing servername for \"%s\" command\n" msgstr "" -#: src/common/command.c:1836 +#: src/common/command.c:1984 #, c-format msgid "%s too much arguments for \"%s\" command, ignoring arguments\n" msgstr "" -#: src/common/command.c:1855 +#: src/common/command.c:2003 #, c-format msgid "%s server \"%s\" not found for \"%s\" command\n" msgstr "" -#: src/common/command.c:1863 +#: src/common/command.c:2011 #, c-format msgid "" "%s you can not delete server \"%s\" because you are connected to. Try /" "disconnect %s before.\n" msgstr "" -#: src/common/command.c:1879 src/common/command.c:2025 +#: src/common/command.c:2027 src/common/command.c:2173 msgid "Server" msgstr "" -#: src/common/command.c:1882 +#: src/common/command.c:2030 msgid "has been deleted\n" msgstr "" -#: src/common/command.c:1897 +#: src/common/command.c:2045 #, c-format msgid "%s missing parameters for \"%s\" command\n" msgstr "" -#: src/common/command.c:1907 +#: src/common/command.c:2055 #, c-format msgid "%s server \"%s\" already exists, can't create it!\n" msgstr "" -#: src/common/command.c:1936 src/common/command.c:1964 -#: src/common/command.c:1977 src/common/command.c:2003 +#: src/common/command.c:2084 src/common/command.c:2112 +#: src/common/command.c:2125 src/common/command.c:2151 #, c-format msgid "%s missing password for \"%s\" parameter\n" msgstr "" -#: src/common/command.c:1949 +#: src/common/command.c:2097 #, c-format msgid "%s missing nick(s) for \"%s\" parameter\n" msgstr "" -#: src/common/command.c:1990 +#: src/common/command.c:2138 #, c-format msgid "%s missing command for \"%s\" parameter\n" msgstr "" -#: src/common/command.c:2028 +#: src/common/command.c:2176 msgid "created\n" msgstr "" -#: src/common/command.c:2034 +#: src/common/command.c:2182 #, c-format msgid "%s unable to create server\n" msgstr "" -#: src/common/command.c:2089 +#: src/common/command.c:2237 msgid "(unknown)" msgstr "" -#: src/common/command.c:2112 +#: src/common/command.c:2260 msgid "(password hidden) " msgstr "" -#: src/common/command.c:2176 +#: src/common/command.c:2324 #, c-format msgid "%s server \"%s\" not found\n" msgstr "" -#: src/common/command.c:2207 src/common/command.c:2253 +#: src/common/command.c:2355 src/common/command.c:2401 #, c-format msgid "%s config option \"%s\" not found\n" msgstr "" -#: src/common/command.c:2212 src/common/command.c:2245 +#: src/common/command.c:2360 src/common/command.c:2393 #, c-format msgid "%s incorrect value for option \"%s\"\n" msgstr "" -#: src/common/command.c:2228 +#: src/common/command.c:2376 #, c-format msgid "%s option \"%s\" can not be changed while WeeChat is running\n" msgstr "" -#: src/common/command.c:2327 +#: src/common/command.c:2475 #, c-format msgid "No config option found with \"%s\"\n" msgstr "" -#: src/common/command.c:2330 +#: src/common/command.c:2478 msgid "No config option found\n" msgstr "" -#: src/common/command.c:2336 +#: src/common/command.c:2484 #, c-format msgid "config option(s) found with \"%s\"\n" msgstr "" -#: src/common/command.c:2339 +#: src/common/command.c:2487 msgid "config option(s) found\n" msgstr "" -#: src/common/command.c:2359 +#: src/common/command.c:2507 #, c-format msgid "%s alias or command \"%s\" not found\n" msgstr "" -#: src/common/command.c:2369 +#: src/common/command.c:2517 #, c-format msgid "Alias \"%s\" removed\n" msgstr "" -#: src/common/command.c:2389 +#: src/common/command.c:2537 msgid "Opened windows:\n" msgstr "" diff --git a/src/common/command.c b/src/common/command.c index 28da3ce4f..0835cf192 100644 --- a/src/common/command.c +++ b/src/common/command.c @@ -89,6 +89,11 @@ t_weechat_command weechat_commands[] = N_("filename: Python script (file) to load\n" "Without argument, /python command lists all loaded Python scripts."), 0, 2, weechat_cmd_python, NULL }, + { "ruby", N_("list/load/unload Ruby scripts"), + N_("[load filename] | [autoload] | [reload] | [unload]"), + N_("filename: Ruby script (file) to load\n" + "Without argument, /ruby command lists all loaded Ruby scripts."), + 0, 2, weechat_cmd_ruby, NULL }, { "server", N_("list, add or remove servers"), N_("[servername] | " "[servername hostname port [-auto | -noauto] [-ipv6] [-ssl] [-pwd password] [-nicks nick1 " @@ -1486,7 +1491,7 @@ weechat_cmd_key (char *arguments) int weechat_cmd_perl (int argc, char **argv) { - #ifdef PLUGIN_PERL +#ifdef PLUGIN_PERL t_plugin_script *ptr_plugin_script; t_plugin_handler *ptr_plugin_handler; int handler_found, path_length; @@ -1608,7 +1613,7 @@ weechat_cmd_perl (int argc, char **argv) _("%s wrong argument count for \"%s\" command\n"), WEECHAT_ERROR, "perl"); } - #else +#else irc_display_prefix (NULL, PREFIX_ERROR); gui_printf (NULL, _("WeeChat was build without Perl support.\n" @@ -1617,7 +1622,7 @@ weechat_cmd_perl (int argc, char **argv) /* make gcc happy */ (void) argc; (void) argv; - #endif /* PLUGIN_PERL */ +#endif /* PLUGIN_PERL */ return 0; } @@ -1629,7 +1634,7 @@ weechat_cmd_perl (int argc, char **argv) int weechat_cmd_python (int argc, char **argv) { - #ifdef PLUGIN_PYTHON +#ifdef PLUGIN_PYTHON t_plugin_script *ptr_plugin_script; t_plugin_handler *ptr_plugin_handler; int handler_found, path_length; @@ -1751,7 +1756,7 @@ weechat_cmd_python (int argc, char **argv) _("%s wrong argument count for \"%s\" command\n"), WEECHAT_ERROR, "python"); } - #else +#else irc_display_prefix (NULL, PREFIX_ERROR); gui_printf (NULL, _("WeeChat was build without Python support.\n" @@ -1760,7 +1765,150 @@ weechat_cmd_python (int argc, char **argv) /* make gcc happy */ (void) argc; (void) argv; - #endif /* PLUGIN_PYTHON */ +#endif /* PLUGIN_PYTHON */ + + return 0; +} + +/* + * weechat_cmd_ruby: list/load/unload Ruby scripts + */ + +int +weechat_cmd_ruby (int argc, char **argv) +{ +#ifdef PLUGIN_RUBY + t_plugin_script *ptr_plugin_script; + t_plugin_handler *ptr_plugin_handler; + int handler_found, path_length; + char *path_script; + + switch (argc) + { + case 0: + /* list registered Ruby scripts */ + gui_printf (NULL, "\n"); + gui_printf (NULL, _("Registered %s scripts:\n"), "Ruby"); + if (ruby_scripts) + { + for (ptr_plugin_script = ruby_scripts; ptr_plugin_script; + ptr_plugin_script = ptr_plugin_script->next_script) + { + irc_display_prefix (NULL, PREFIX_PLUGIN); + gui_printf (NULL, " %s v%s%s%s\n", + ptr_plugin_script->name, + ptr_plugin_script->version, + (ptr_plugin_script->description[0]) ? " - " : "", + ptr_plugin_script->description); + } + } + else + { + irc_display_prefix (NULL, PREFIX_PLUGIN); + gui_printf (NULL, _(" (none)\n")); + } + + /* list Ruby message handlers */ + gui_printf (NULL, "\n"); + gui_printf (NULL, _("%s message handlers:\n"), "Ruby"); + handler_found = 0; + for (ptr_plugin_handler = plugin_msg_handlers; ptr_plugin_handler; + ptr_plugin_handler = ptr_plugin_handler->next_handler) + { + if (ptr_plugin_handler->plugin_type == PLUGIN_TYPE_RUBY) + { + handler_found = 1; + irc_display_prefix (NULL, PREFIX_PLUGIN); + gui_printf (NULL, _(" IRC(%s) => %s(%s)\n"), + ptr_plugin_handler->name, + "Ruby", + ptr_plugin_handler->function_name); + } + } + if (!handler_found) + { + irc_display_prefix (NULL, PREFIX_PLUGIN); + gui_printf (NULL, _(" (none)\n")); + } + + /* list Ruby command handlers */ + gui_printf (NULL, "\n"); + gui_printf (NULL, _("%s command handlers:\n"), "Ruby"); + handler_found = 0; + for (ptr_plugin_handler = plugin_cmd_handlers; ptr_plugin_handler; + ptr_plugin_handler = ptr_plugin_handler->next_handler) + { + if (ptr_plugin_handler->plugin_type == PLUGIN_TYPE_RUBY) + { + handler_found = 1; + irc_display_prefix (NULL, PREFIX_PLUGIN); + gui_printf (NULL, _(" Command /%s => %s(%s)\n"), + ptr_plugin_handler->name, + "Ruby", + ptr_plugin_handler->function_name); + } + } + if (!handler_found) + { + irc_display_prefix (NULL, PREFIX_PLUGIN); + gui_printf (NULL, _(" (none)\n")); + } + + break; + case 1: + if (strcasecmp (argv[0], "autoload") == 0) + plugin_auto_load (PLUGIN_TYPE_RUBY, "ruby/autoload"); + else if (strcasecmp (argv[0], "reload") == 0) + { + plugin_unload (PLUGIN_TYPE_RUBY, NULL); + plugin_auto_load (PLUGIN_TYPE_RUBY, "ruby/autoload"); + } + else if (strcasecmp (argv[0], "unload") == 0) + plugin_unload (PLUGIN_TYPE_RUBY, NULL); + break; + case 2: + if (strcasecmp (argv[0], "load") == 0) + { + /* load Ruby script */ + if (strstr(argv[1], DIR_SEPARATOR)) + path_script = NULL; + else + { + path_length = strlen (weechat_home) + strlen (argv[1]) + 9; + path_script = (char *) malloc (path_length * sizeof (char)); + snprintf (path_script, path_length, "%s%s%s%s%s", + weechat_home, DIR_SEPARATOR, "ruby", + DIR_SEPARATOR, argv[1]); + } + plugin_load (PLUGIN_TYPE_RUBY, + (path_script) ? path_script : argv[1]); + if (path_script) + free (path_script); + } + else + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s unknown option for \"%s\" command\n"), + WEECHAT_ERROR, "ruby"); + } + break; + default: + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s wrong argument count for \"%s\" command\n"), + WEECHAT_ERROR, "ruby"); + } +#else + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("WeeChat was build without Ruby support.\n" + "Please rebuild WeeChat with " + "\"--enable-ruby\" option for ./configure script\n")); + /* make gcc happy */ + (void) argc; + (void) argv; +#endif /* PLUGIN_RUBY */ return 0; } diff --git a/src/common/command.h b/src/common/command.h index f839f4ab2..35c19bc5e 100644 --- a/src/common/command.h +++ b/src/common/command.h @@ -72,6 +72,7 @@ extern int weechat_cmd_help (int, char **); extern int weechat_cmd_key (char *); extern int weechat_cmd_perl (int, char **); extern int weechat_cmd_python (int, char **); +extern int weechat_cmd_ruby (int, char **); extern int weechat_cmd_save (int, char **); extern int weechat_cmd_server (int, char **); extern int weechat_cmd_set (char *); diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am index b52375faf..002747671 100644 --- a/src/plugins/Makefile.am +++ b/src/plugins/Makefile.am @@ -25,12 +25,11 @@ if PLUGIN_PYTHON python_dir = python endif -# if PLUGIN_RUBY -# ruby_dir = ruby -# endif +if PLUGIN_RUBY +ruby_dir = ruby +endif -# SUBDIRS = $(perl_dir) $(python_dir) $(ruby_dir) -SUBDIRS = $(perl_dir) $(python_dir) +SUBDIRS = $(perl_dir) $(python_dir) $(ruby_dir) noinst_LIBRARIES = lib_weechat_plugins.a diff --git a/src/plugins/plugins.c b/src/plugins/plugins.c index 7a7f194d7..089b34191 100644 --- a/src/plugins/plugins.c +++ b/src/plugins/plugins.c @@ -43,6 +43,10 @@ #include "python/wee-python.h" #endif +#ifdef PLUGIN_RUBY +#include "ruby/wee-ruby.h" +#endif + char *plugin_name[3] = { "Perl", "Python", "Ruby" }; @@ -115,15 +119,20 @@ plugin_auto_load (int plugin_type, char *directory) void plugin_init () { - #ifdef PLUGIN_PERL +#ifdef PLUGIN_PERL wee_perl_init(); plugin_auto_load (PLUGIN_TYPE_PERL, "perl/autoload"); - #endif +#endif - #ifdef PLUGIN_PYTHON +#ifdef PLUGIN_PYTHON wee_python_init(); plugin_auto_load (PLUGIN_TYPE_PYTHON, "python/autoload"); - #endif +#endif + +#ifdef PLUGIN_RUBY + wee_ruby_init(); + plugin_auto_load (PLUGIN_TYPE_RUBY, "ruby/autoload"); +#endif } /* @@ -133,28 +142,30 @@ plugin_init () void plugin_load (int plugin_type, char *filename) { - #ifdef PLUGINS +#ifdef PLUGINS switch (plugin_type) { case PLUGIN_TYPE_PERL: - #ifdef PLUGIN_PERL +#ifdef PLUGIN_PERL wee_perl_load (filename); - #endif +#endif break; case PLUGIN_TYPE_PYTHON: - #ifdef PLUGIN_PYTHON +#ifdef PLUGIN_PYTHON wee_python_load (filename); - #endif +#endif break; case PLUGIN_TYPE_RUBY: - /* TODO: load Ruby script */ +#ifdef PLUGIN_RUBY + wee_ruby_load (filename); +#endif break; } - #else +#else /* make gcc happy */ (void) plugin_type; (void) filename; - #endif +#endif /* PLUGINS */ } /* @@ -292,7 +303,7 @@ plugin_handler_free_all_type (t_plugin_handler **plugin_handlers, void plugin_event_msg (char *irc_command, char *server, char *arguments) { - #ifdef PLUGINS +#ifdef PLUGINS t_plugin_handler *ptr_plugin_handler; for (ptr_plugin_handler = plugin_msg_handlers; ptr_plugin_handler; @@ -300,7 +311,7 @@ plugin_event_msg (char *irc_command, char *server, char *arguments) { if (strcasecmp (ptr_plugin_handler->name, irc_command) == 0) { - #ifdef PLUGIN_PERL +#ifdef PLUGIN_PERL if (ptr_plugin_handler->plugin_type == PLUGIN_TYPE_PERL) { if (ptr_plugin_handler->running == 0) @@ -310,8 +321,8 @@ plugin_event_msg (char *irc_command, char *server, char *arguments) ptr_plugin_handler->running = 0; } } - #endif - #ifdef PLUGIN_PYTHON +#endif +#ifdef PLUGIN_PYTHON if (ptr_plugin_handler->plugin_type == PLUGIN_TYPE_PYTHON) { if (ptr_plugin_handler->running == 0) @@ -321,15 +332,26 @@ plugin_event_msg (char *irc_command, char *server, char *arguments) ptr_plugin_handler->running = 0; } } - #endif +#endif +#ifdef PLUGIN_RUBY + if (ptr_plugin_handler->plugin_type == PLUGIN_TYPE_RUBY) + { + if (ptr_plugin_handler->running == 0) + { + ptr_plugin_handler->running = 1; + wee_ruby_exec (ptr_plugin_handler->function_name, server, arguments); + ptr_plugin_handler->running = 0; + } + } +#endif } } - #else +#else /* make gcc happy */ (void) irc_command; (void) arguments; (void) server; - #endif +#endif /* PLUGINS */ } /* @@ -339,7 +361,7 @@ plugin_event_msg (char *irc_command, char *server, char *arguments) int plugin_exec_command (char *user_command, char *server, char *arguments) { - #ifdef PLUGINS +#ifdef PLUGINS t_plugin_handler *ptr_plugin_handler; for (ptr_plugin_handler = plugin_cmd_handlers; ptr_plugin_handler; @@ -347,7 +369,7 @@ plugin_exec_command (char *user_command, char *server, char *arguments) { if (strcasecmp (ptr_plugin_handler->name, user_command) == 0) { - #ifdef PLUGIN_PERL +#ifdef PLUGIN_PERL if (ptr_plugin_handler->plugin_type == PLUGIN_TYPE_PERL) { if (ptr_plugin_handler->running == 0) @@ -357,8 +379,8 @@ plugin_exec_command (char *user_command, char *server, char *arguments) ptr_plugin_handler->running = 0; } } - #endif - #ifdef PLUGIN_PYTHON +#endif +#ifdef PLUGIN_PYTHON if (ptr_plugin_handler->plugin_type == PLUGIN_TYPE_PYTHON) { if (ptr_plugin_handler->running == 0) @@ -368,18 +390,29 @@ plugin_exec_command (char *user_command, char *server, char *arguments) ptr_plugin_handler->running = 0; } } - #endif +#endif +#ifdef PLUGIN_RUBY + if (ptr_plugin_handler->plugin_type == PLUGIN_TYPE_RUBY) + { + if (ptr_plugin_handler->running == 0) + { + ptr_plugin_handler->running = 1; + wee_ruby_exec (ptr_plugin_handler->function_name, server, arguments); + ptr_plugin_handler->running = 0; + } + } +#endif /* command executed */ return 1; } } - #else +#else /* make gcc happy */ (void) user_command; (void) arguments; (void) server; - #endif +#endif /* PLUGINS */ /* no command executed */ return 0; @@ -453,30 +486,33 @@ plugin_unload (int plugin_type, char *scriptname) /* make gcc happy */ (void) scriptname; - #ifdef PLUGINS +#ifdef PLUGINS switch (plugin_type) { case PLUGIN_TYPE_PERL: - #ifdef PLUGIN_PERL +#ifdef PLUGIN_PERL /* unload one Perl script is not allowed */ wee_perl_end (); wee_perl_init (); - #endif +#endif break; case PLUGIN_TYPE_PYTHON: - #ifdef PLUGIN_PYTHON +#ifdef PLUGIN_PYTHON wee_python_end (); wee_python_init (); - #endif +#endif break; case PLUGIN_TYPE_RUBY: - /* TODO: unload Ruby scripts */ +#ifdef PLUGIN_RUBY + wee_ruby_end (); + wee_ruby_init (); +#endif break; } - #else +#else /* make gcc happy */ (void) plugin_type; - #endif +#endif /* PLUGINS */ } /* @@ -489,11 +525,15 @@ plugin_end () plugin_handler_free_all (&plugin_msg_handlers, &last_plugin_msg_handler); plugin_handler_free_all (&plugin_cmd_handlers, &last_plugin_cmd_handler); - #ifdef PLUGIN_PERL +#ifdef PLUGIN_PERL wee_perl_end(); - #endif +#endif - #ifdef PLUGIN_PYTHON +#ifdef PLUGIN_PYTHON wee_python_end(); - #endif +#endif + +#ifdef PLUGIN_RUBY + wee_ruby_end(); +#endif } diff --git a/src/plugins/plugins.h b/src/plugins/plugins.h index 3a5bc64b5..c729d0480 100644 --- a/src/plugins/plugins.h +++ b/src/plugins/plugins.h @@ -67,6 +67,10 @@ extern t_plugin_script *perl_scripts; extern t_plugin_script *python_scripts; #endif +#ifdef PLUGIN_RUBY +extern t_plugin_script *ruby_scripts; +#endif + extern void plugin_auto_load (int, char *); extern void plugin_init (); extern void plugin_load (int, char *); diff --git a/src/plugins/python/wee-python.c b/src/plugins/python/wee-python.c index 8b3f9927a..d1fd2d901 100644 --- a/src/plugins/python/wee-python.c +++ b/src/plugins/python/wee-python.c @@ -330,6 +330,7 @@ wee_python_get_info (PyObject *self, PyObject *args) gui_printf (NULL, _("%s error: server not found for \"%s\" function\n"), "Python", "get_info"); + return NULL; } } diff --git a/src/plugins/ruby/Makefile.am b/src/plugins/ruby/Makefile.am new file mode 100644 index 000000000..6fe8f4560 --- /dev/null +++ b/src/plugins/ruby/Makefile.am @@ -0,0 +1,23 @@ +# Copyright (c) 2003-2005 FlashCode +# +# 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + +INCLUDES = -DLOCALEDIR=\"$(datadir)/locale\" $(RUBY_CFLAGS) + +noinst_LIBRARIES = lib_weechat_ruby.a + +lib_weechat_ruby_a_SOURCES = wee-ruby.h \ + wee-ruby.c diff --git a/src/plugins/ruby/wee-ruby.c b/src/plugins/ruby/wee-ruby.c new file mode 100644 index 000000000..449b9b003 --- /dev/null +++ b/src/plugins/ruby/wee-ruby.c @@ -0,0 +1,607 @@ +/* + * Copyright (c) 2003-2005 by FlashCode + * See README for License detail, AUTHORS for developers list. + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* wee-ruby.c: Ruby plugin support for WeeChat */ + + +#include + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#undef _ +#include "../../common/weechat.h" +#include "../plugins.h" +#include "wee-ruby.h" +#include "../../common/command.h" +#include "../../irc/irc.h" +#include "../../gui/gui.h" + + +t_plugin_script *ruby_scripts = NULL; +t_plugin_script *last_ruby_script = NULL; + + +/* + * register: startup function for all WeeChat Ruby scripts + */ + +static VALUE +wee_ruby_register (VALUE class, VALUE name, VALUE version, VALUE shutdown_func, VALUE description) +{ + char *c_name, *c_version, *c_shutdown_func, *c_description; + t_plugin_script *ptr_ruby_script, *ruby_script_found, *new_ruby_script; + + if (NIL_P (name) || NIL_P (version) || NIL_P (shutdown_func) || NIL_P (description)) + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: wrong parameters for \"%s\" function\n"), + "Ruby", "register"); + return Qnil; + } + + Check_Type (name, T_STRING); + Check_Type (version, T_STRING); + Check_Type (shutdown_func, T_STRING); + Check_Type (description, T_STRING); + + c_name = STR2CSTR (name); + c_version = STR2CSTR (version); + c_shutdown_func = STR2CSTR (shutdown_func); + c_description = STR2CSTR (description); + + ruby_script_found = NULL; + for (ptr_ruby_script = ruby_scripts; ptr_ruby_script; + ptr_ruby_script = ptr_ruby_script->next_script) + { + if (strcasecmp (ptr_ruby_script->name, c_name) == 0) + { + ruby_script_found = ptr_ruby_script; + break; + } + } + + if (ruby_script_found) + { + /* error: another script already exists with this name! */ + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: unable to register \"%s\" script (another script " + "already exists with this name)\n"), + "Ruby", name); + } + else + { + /* registering script */ + new_ruby_script = (t_plugin_script *)malloc (sizeof (t_plugin_script)); + if (new_ruby_script) + { + new_ruby_script->name = strdup (c_name); + new_ruby_script->version = strdup (c_version); + new_ruby_script->shutdown_func = strdup (c_shutdown_func); + new_ruby_script->description = strdup (c_description); + + /* add new script to list */ + new_ruby_script->prev_script = last_ruby_script; + new_ruby_script->next_script = NULL; + if (ruby_scripts) + last_ruby_script->next_script = new_ruby_script; + else + ruby_scripts = new_ruby_script; + last_ruby_script = new_ruby_script; + + wee_log_printf (_("Registered %s script: \"%s\", version %s (%s)\n"), + "Ruby", c_name, c_version, c_description); + } + else + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: unable to load script \"%s\" (not enough memory)\n"), + "Ruby", c_name); + } + } + + return Qnil; +} + +/* + * print: print message into a buffer (current or specified one) + */ + +static VALUE +wee_ruby_print (VALUE class, VALUE message, VALUE channel_name, VALUE server_name) +{ + char *c_message, *c_channel_name, *c_server_name; + t_gui_buffer *ptr_buffer; + + c_message = NULL; + c_channel_name = NULL; + c_server_name = NULL; + + if (NIL_P (message)) + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: wrong parameters for \"%s\" function\n"), + "Ruby", "print"); + return Qnil; + } + + Check_Type (message, T_STRING); + if (!NIL_P (channel_name)) + Check_Type (channel_name, T_STRING); + if (!NIL_P (server_name)) + Check_Type (server_name, T_STRING); + + c_message = STR2CSTR (message); + if (!NIL_P (channel_name)) + c_channel_name = STR2CSTR (channel_name); + if (!NIL_P (server_name)) + c_server_name = STR2CSTR (server_name); + + ptr_buffer = plugin_find_buffer (c_server_name, c_channel_name); + if (ptr_buffer) + { + irc_display_prefix (ptr_buffer, PREFIX_PLUGIN); + gui_printf (ptr_buffer, "%s\n", c_message); + return INT2FIX (1); + } + + /* buffer not found */ + return INT2FIX (0); +} + +/* + * print_infobar: print message to infobar + */ + +static VALUE +wee_ruby_print_infobar (VALUE class, VALUE delay, VALUE message) +{ + int c_delay; + char *c_message; + + c_delay = 1; + c_message = NULL; + + if (NIL_P (delay) || NIL_P (message)) + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: wrong parameters for \"%s\" function\n"), + "Ruby", "print_infobar"); + return Qfalse; + } + + Check_Type (delay, T_FIXNUM); + Check_Type (message, T_STRING); + + c_delay = FIX2INT (delay); + c_message = STR2CSTR (message); + + gui_infobar_printf (delay, COLOR_WIN_INFOBAR, c_message); + + return Qtrue; +} + +/* + * command: send command to server + */ + +static VALUE +wee_ruby_command (VALUE class, VALUE command, VALUE channel_name, VALUE server_name) +{ + char *c_command, *c_channel_name, *c_server_name; + t_gui_buffer *ptr_buffer; + + c_command = NULL; + c_channel_name = NULL; + c_server_name = NULL; + + if (NIL_P (command)) + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: wrong parameters for \"%s\" function\n"), + "Ruby", "command"); + return Qnil; + } + + Check_Type (command, T_STRING); + if (!NIL_P (channel_name)) + Check_Type (channel_name, T_STRING); + if (!NIL_P (server_name)) + Check_Type (server_name, T_STRING); + + c_command = STR2CSTR (command); + if (!NIL_P (channel_name)) + c_channel_name = STR2CSTR (channel_name); + if (!NIL_P (server_name)) + c_server_name = STR2CSTR (server_name); + + ptr_buffer = plugin_find_buffer (c_server_name, c_channel_name); + if (ptr_buffer) + { + user_command (SERVER(ptr_buffer), ptr_buffer, c_command); + return INT2FIX (1); + } + + /* buffer not found */ + return INT2FIX (0); +} + +/* + * add_message_handler: add handler for messages + */ + +static VALUE +wee_ruby_add_message_handler (VALUE class, VALUE message, VALUE function) +{ + char *c_message, *c_function; + + if (NIL_P (message) || NIL_P (function)) + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: wrong parameters for \"%s\" function\n"), + "Ruby", "add_message_handler"); + return Qnil; + } + + Check_Type (message, T_STRING); + Check_Type (function, T_STRING); + + c_message = STR2CSTR (message); + c_function = STR2CSTR (function); + + plugin_handler_add (&plugin_msg_handlers, &last_plugin_msg_handler, + PLUGIN_TYPE_RUBY, c_message, c_function); + + return Qtrue; +} + +/* + * add_command_handler: define/redefines commands + */ + +static VALUE +wee_ruby_add_command_handler (VALUE class, VALUE name, VALUE function) +{ + char *c_name, *c_function; + t_plugin_handler *ptr_plugin_handler; + + if (NIL_P (name) || NIL_P (function)) + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: wrong parameters for \"%s\" function\n"), + "Ruby", "add_command_handler"); + return Qnil; + } + + Check_Type (name, T_STRING); + Check_Type (function, T_STRING); + + c_name = STR2CSTR (name); + c_function = STR2CSTR (function); + + if (!weelist_search (index_commands, c_name)) + weelist_add (&index_commands, &last_index_command, c_name); + + ptr_plugin_handler = plugin_handler_search (plugin_cmd_handlers, c_name); + if (ptr_plugin_handler) + { + free (ptr_plugin_handler->function_name); + ptr_plugin_handler->function_name = strdup (c_function); + } + else + plugin_handler_add (&plugin_cmd_handlers, &last_plugin_cmd_handler, + PLUGIN_TYPE_PYTHON, c_name, c_function); + + return Qtrue; +} + +/* + * get_info: get various infos + */ + +static VALUE +wee_ruby_get_info (VALUE class, VALUE arg, VALUE server_name) +{ + char *c_arg, *info, *c_server_name; + t_irc_server *ptr_server; + + if (NIL_P (arg)) + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: wrong parameters for \"%s\" function\n"), + "Ruby", "get_info"); + return Qnil; + } + + Check_Type (arg, T_STRING); + if (!NIL_P (server_name)) + Check_Type (server_name, T_STRING); + + c_arg = STR2CSTR (arg); + if (!NIL_P (server_name)) + c_server_name = STR2CSTR (server_name); + + if (c_server_name == NULL) + { + ptr_server = SERVER(gui_current_window->buffer); + } + else + { + for (ptr_server = irc_servers; ptr_server; ptr_server = ptr_server->next_server) + { + if (strcasecmp (ptr_server->name, c_server_name) == 0) + break; + } + if (!ptr_server) + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: server not found for \"%s\" function\n"), + "Ruby", "get_info"); + return Qnil; + } + } + + if (ptr_server && c_arg) + { + if ( (strcasecmp (c_arg, "0") == 0) || (strcasecmp (c_arg, "version") == 0) ) + { + info = PACKAGE_STRING; + } + else if ( (strcasecmp (c_arg, "1") == 0) || (strcasecmp (c_arg, "nick") == 0) ) + { + if (ptr_server->nick) + info = ptr_server->nick; + } + else if ( (strcasecmp (c_arg, "2") == 0) || (strcasecmp (c_arg, "channel") == 0) ) + { + if (BUFFER_IS_CHANNEL (gui_current_window->buffer)) + info = CHANNEL (gui_current_window->buffer)->name; + } + else if ( (strcasecmp (c_arg, "3") == 0) || (strcasecmp (c_arg, "server") == 0) ) + { + if (ptr_server->name) + info = ptr_server->name; + } + else if ( (strcasecmp (c_arg, "4") == 0) || (strcasecmp (c_arg, "weechatdir") == 0) ) + { + info = weechat_home; + } + else if ( (strcasecmp (c_arg, "5") == 0) || (strcasecmp (c_arg, "away") == 0) ) + { + return INT2FIX (SERVER(gui_current_window->buffer)->is_away); + } + else if ( (strcasecmp (c_arg, "100") == 0) || (strcasecmp (c_arg, "dccs") == 0) ) + { + /* TODO: build dcc list */ + } + + if (info) + return rb_str_new2 (info); + else + return rb_str_new2 (""); + } + + return INT2FIX (1); +} + +/* + * Ruby subroutines + */ + +/* + * wee_ruby_init: initialize Ruby interface for WeeChat + */ + +void +wee_ruby_init () +{ + + /* TODO: init Ruby environment */ + /* ruby_init (); + if () + { + irc_display_prefix (NULL, PREFIX_PLUGIN); + gui_printf (NULL, _("%s error: error while launching interpreter\n"), + "Ruby"); + } + else + { + wee_log_printf (_("Loading %s module \"weechat\"\n"), "Ruby"); + }*/ +} + +/* + * wee_ruby_search: search a (loaded) Ruby script by name + */ + +t_plugin_script * +wee_ruby_search (char *name) +{ + t_plugin_script *ptr_ruby_script; + + for (ptr_ruby_script = ruby_scripts; ptr_ruby_script; + ptr_ruby_script = ptr_ruby_script->next_script) + { + if (strcmp (ptr_ruby_script->name, name) == 0) + return ptr_ruby_script; + } + + /* script not found */ + return NULL; +} + +/* + * wee_ruby_exec: execute a Ruby script + */ + +int +wee_ruby_exec (char *function, char *server, char *arguments) +{ + /* TODO: exec Ruby script */ +} + +/* + * wee_ruby_load: load a Ruby script + */ + +int +wee_ruby_load (char *filename) +{ + FILE *fp; + + /* TODO: load & exec Ruby script */ + gui_printf (NULL, "Ruby scripts not developed!\n"); + /* execute Ruby script */ + /*wee_log_printf (_("Loading %s script \"%s\"\n"), "Ruby", filename); + irc_display_prefix (NULL, PREFIX_PLUGIN); + gui_printf (NULL, _("Loading %s script \"%s\"\n"), "Ruby", filename); + + if ((fp = fopen (filename, "r")) == NULL) + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: error while opening file \"%s\"\n"), + "Ruby", filename); + return 1; + } + + if (xxxxxxx (fp, filename) != 0) + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: error while parsing file \"%s\"\n"), + "Ruby", filename); + return 1; + } + + fclose (fp); + return 0;*/ +} + +/* + * wee_ruby_script_free: free a Ruby script + */ + +void +wee_ruby_script_free (t_plugin_script *ptr_ruby_script) +{ + t_plugin_script *new_ruby_scripts; + + /* remove script from list */ + if (last_ruby_script == ptr_ruby_script) + last_ruby_script = ptr_ruby_script->prev_script; + if (ptr_ruby_script->prev_script) + { + (ptr_ruby_script->prev_script)->next_script = ptr_ruby_script->next_script; + new_ruby_scripts = ruby_scripts; + } + else + new_ruby_scripts = ptr_ruby_script->next_script; + + if (ptr_ruby_script->next_script) + (ptr_ruby_script->next_script)->prev_script = ptr_ruby_script->prev_script; + + /* free data */ + if (ptr_ruby_script->name) + free (ptr_ruby_script->name); + if (ptr_ruby_script->version) + free (ptr_ruby_script->version); + if (ptr_ruby_script->shutdown_func) + free (ptr_ruby_script->shutdown_func); + if (ptr_ruby_script->description) + free (ptr_ruby_script->description); + free (ptr_ruby_script); + ruby_scripts = new_ruby_scripts; +} + +/* + * wee_ruby_unload: unload a Ruby script + */ + +void +wee_ruby_unload (t_plugin_script *ptr_ruby_script) +{ + if (ptr_ruby_script) + { + wee_log_printf (_("Unloading %s script \"%s\"\n"), + "Ruby", ptr_ruby_script->name); + + /* call shutdown callback function */ + if (ptr_ruby_script->shutdown_func[0]) + wee_ruby_exec (ptr_ruby_script->shutdown_func, "", ""); + wee_ruby_script_free (ptr_ruby_script); + } +} + +/* + * wee_ruby_unload_all: unload all Ruby scripts + */ + +void +wee_ruby_unload_all () +{ + wee_log_printf (_("Unloading all %s scripts...\n"), "Ruby"); + while (ruby_scripts) + wee_ruby_unload (ruby_scripts); + + irc_display_prefix (NULL, PREFIX_PLUGIN); + gui_printf (NULL, _("%s scripts unloaded\n"), "Ruby"); +} + +/* + * wee_ruby_end: shutdown Ruby interface + */ + +void +wee_ruby_end () +{ + /* unload all scripts */ + wee_ruby_unload_all (); + + /* free all handlers */ + plugin_handler_free_all_type (&plugin_msg_handlers, + &last_plugin_msg_handler, + PLUGIN_TYPE_RUBY); + plugin_handler_free_all_type (&plugin_cmd_handlers, + &last_plugin_cmd_handler, + PLUGIN_TYPE_RUBY); + + /* TODO: free Ruby interpreter */ + /* free Ruby interpreter */ + /* xxxxx (); + if () + { + irc_display_prefix (NULL, PREFIX_PLUGIN); + gui_printf (NULL, _("%s error: error while freeing interpreter\n"), + "Ruby"); + }*/ +} diff --git a/src/plugins/ruby/wee-ruby.h b/src/plugins/ruby/wee-ruby.h new file mode 100644 index 000000000..3fdc9b932 --- /dev/null +++ b/src/plugins/ruby/wee-ruby.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2003-2005 by FlashCode + * See README for License detail, AUTHORS for developers list. + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + +#ifndef __WEECHAT_RUBY_H +#define __WEECHAT_RUBY_H 1 + +#include "../plugins.h" + +extern void wee_ruby_init (); +extern t_plugin_script *wee_ruby_search (char *); +extern int wee_ruby_exec (char *, char *, char *); +extern int wee_ruby_load (char *); +extern void wee_ruby_unload (t_plugin_script *); +extern void wee_ruby_unload_all (); +extern void wee_ruby_end (); + +#endif /* wee-ruby.h */ diff --git a/weechat/configure.in b/weechat/configure.in index 59695935f..38d5093a8 100644 --- a/weechat/configure.in +++ b/weechat/configure.in @@ -66,6 +66,7 @@ AC_CHECK_FUNCS([gethostbyname gethostname getsockname gettimeofday inet_ntoa mem AH_VERBATIM([PLUGINS], [#undef PLUGINS]) AH_VERBATIM([PLUGIN_PERL], [#undef PLUGIN_PERL]) AH_VERBATIM([PLUGIN_PYTHON], [#undef PLUGIN_PYTHON]) +AH_VERBATIM([PLUGIN_RUBY], [#undef PLUGIN_RUBY]) AH_VERBATIM([HAVE_GNUTLS], [#undef HAVE_GNUTLS]) AH_VERBATIM([DEBUG], [#undef DEBUG]) @@ -75,12 +76,11 @@ AC_ARG_ENABLE(gtk, [ --enable-gtk Turn on Gtk+ interface (defau AC_ARG_ENABLE(qt, [ --enable-qt Turn on Qt interface (default=no)],enable_qt=$enableval,enable_qt=no) AC_ARG_ENABLE(perl, [ --enable-perl Turn on Perl plugins (default=no)],enable_perl=$enableval,enable_perl=no) AC_ARG_ENABLE(python, [ --enable-python Turn on Python plugins (default=no)],enable_python=$enableval,enable_python=no) +AC_ARG_ENABLE(ruby, [ --enable-ruby Turn on Ruby plugins (default=no)],enable_ruby=$enableval,enable_ruby=no) AC_ARG_ENABLE(gnutls, [ --disable-gnutls Turn off gnutls support (default=auto)],enable_gnutls=$enableval,enable_gnutls=yes) AC_ARG_WITH(debug, [ --with-debug Debugging: 0=no debug, 1=debug compilation, 2=debug compilation + verbose msgs (default=0)],debug=$withval,debug=0) enable_plugins="no" -enable_ruby="no" -RUBY_CFLAGS= AM_CONDITIONAL(GUI_NCURSES, test "$enable_ncurses" = "yes") AM_CONDITIONAL(GUI_WXWIDGETS, test "$enable_wxwidgets" = "yes") @@ -88,7 +88,7 @@ AM_CONDITIONAL(GUI_GTK, test "$enable_gtk" = "yes") AM_CONDITIONAL(GUI_QT, test "$enable_qt" = "yes") AM_CONDITIONAL(PLUGIN_PERL, test "$enable_perl" = "yes") AM_CONDITIONAL(PLUGIN_PYTHON, test "$enable_python" = "yes") -# AM_CONDITIONAL(PLUGIN_RUBY, test "$enable_ruby" = "yes") +AM_CONDITIONAL(PLUGIN_RUBY, test "$enable_ruby" = "yes") AM_CONDITIONAL(HAVE_GNUTLS, test "$enable_gnutls" = "yes") if test "x$enable_ncurses" = "xyes" ; then @@ -225,6 +225,18 @@ if test "x$enable_python" = "xyes" ; then AC_DEFINE(PLUGIN_PYTHON) fi +if test "x$enable_ruby" = "xyes" ; then + enable_plugins="yes" + + # TODO: check that ruby lib and headers are installed + + RUBY_CFLAGS=-I`ruby -rrbconfig -e "puts Config::CONFIG[['archdir']]"` + RUBY_LFLAGS=-L`ruby -rrbconfig -e "puts Config::CONFIG[['archdir']]"` -lruby + PLUGINS_LIBS="$PLUGINS_LIBS ../../plugins/ruby/lib_weechat_ruby.a $RUBY_LFLAGS" + AC_SUBST(RUBY_CFLAGS) + AC_DEFINE(PLUGIN_RUBY) +fi + if test "x$enable_plugins" = "xyes" ; then AC_DEFINE(PLUGINS) fi @@ -272,6 +284,7 @@ AC_OUTPUT([Makefile src/plugins/Makefile src/plugins/perl/Makefile src/plugins/python/Makefile + src/plugins/ruby/Makefile src/gui/Makefile src/gui/curses/Makefile src/gui/wxwidgets/Makefile diff --git a/weechat/po/POTFILES.in b/weechat/po/POTFILES.in index 298b0b30d..74592dd0c 100644 --- a/weechat/po/POTFILES.in +++ b/weechat/po/POTFILES.in @@ -11,6 +11,8 @@ ./src/plugins/perl/wee-perl.h ./src/plugins/python/wee-python.c ./src/plugins/python/wee-python.h +./src/plugins/ruby/wee-ruby.c +./src/plugins/ruby/wee-ruby.h ./src/plugins/plugins.c ./src/plugins/plugins.h ./src/gui/curses/gui-input.c diff --git a/weechat/po/es.po b/weechat/po/es.po index a0829dcb9..8e996764d 100644 --- a/weechat/po/es.po +++ b/weechat/po/es.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.1.5-cvs\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2005-08-16 16:52+0200\n" -"PO-Revision-Date: 2005-08-16 16:54+0200\n" +"POT-Creation-Date: 2005-08-21 14:31+0200\n" +"PO-Revision-Date: 2005-08-21 14:32+0200\n" "Last-Translator: Roberto González Cardenete \n" "Language-Team: weechat-dev \n" "MIME-Version: 1.0\n" @@ -1317,7 +1317,7 @@ msgstr "no es posible cambiar el modo para el resto de usuarios" msgid "whois (secure connection)" msgstr "whois (conexión segura)" -#: src/irc/irc-display.c:163 src/common/command.c:848 +#: src/irc/irc-display.c:163 src/common/command.c:853 msgid "Server: " msgstr "Servidor: " @@ -1347,7 +1347,7 @@ msgstr " (servidor temporal, no ser msgid "(hidden)" msgstr "(oculto)" -#: src/irc/irc-send.c:59 src/irc/irc-recv.c:3992 +#: src/irc/irc-send.c:59 src/irc/irc-recv.c:4008 msgid "unknown" msgstr "desconocido" @@ -1356,7 +1356,7 @@ msgstr "desconocido" msgid "%s: using local hostname \"%s\"\n" msgstr "%s: utilización del nombre de máquina local \"%s\"\n" -#: src/irc/irc-send.c:126 src/common/command.c:726 +#: src/irc/irc-send.c:126 src/common/command.c:731 #, c-format msgid "%s cannot find nick for sending message\n" msgstr "%s no ha sido posible encontrar el usuario al que enviar el mensaje\n" @@ -1373,8 +1373,9 @@ msgstr "" #: src/irc/irc-send.c:415 src/irc/irc-send.c:427 src/irc/irc-send.c:445 #: src/irc/irc-send.c:1097 src/irc/irc-send.c:1190 src/irc/irc-send.c:1722 -#: src/common/command.c:1191 src/common/command.c:1458 -#: src/common/command.c:1608 src/common/command.c:1751 +#: src/common/command.c:1196 src/common/command.c:1463 +#: src/common/command.c:1613 src/common/command.c:1756 +#: src/common/command.c:1899 #, c-format msgid "%s wrong argument count for \"%s\" command\n" msgstr "%s número de argumentos incorrecto para el comando \"%s\"\n" @@ -1396,7 +1397,8 @@ msgstr "" msgid "%s nick \"%s\" not found for \"%s\" command\n" msgstr "%s usuario \"%s\" no encontrado para el comando \"%s\"\n" -#: src/irc/irc-send.c:1067 src/irc/irc-send.c:1375 src/irc/irc-recv.c:1819 +#: src/irc/irc-send.c:1067 src/irc/irc-send.c:1375 src/irc/irc-recv.c:1822 +#: src/irc/irc-recv.c:1900 #, c-format msgid "%s cannot create new private window \"%s\"\n" msgstr "%s no es posible crear una nueva ventana privada \"%s\"\n" @@ -1415,8 +1417,8 @@ msgid "by" msgstr "por" #: src/irc/irc-recv.c:282 src/irc/irc-recv.c:376 src/irc/irc-recv.c:875 -#: src/irc/irc-recv.c:1210 src/irc/irc-recv.c:1452 src/irc/irc-recv.c:3210 -#: src/irc/irc-recv.c:3277 +#: src/irc/irc-recv.c:1210 src/irc/irc-recv.c:1452 src/irc/irc-recv.c:3226 +#: src/irc/irc-recv.c:3293 #, c-format msgid "%s channel \"%s\" not found for \"%s\" command\n" msgstr "%s canal \"%s\" no encontrado para el comando \"%s\"\n" @@ -1560,7 +1562,7 @@ msgid "removes voice from" msgstr "quita la voz a" #: src/irc/irc-recv.c:830 src/irc/irc-recv.c:915 src/irc/irc-recv.c:1284 -#: src/irc/irc-recv.c:1950 +#: src/irc/irc-recv.c:1966 #, c-format msgid "%s \"%s\" command received without host\n" msgstr "%s comando \"%s\" recibido sin host \n" @@ -1609,7 +1611,7 @@ msgstr "%s comando \"%s\" recibido sin host o canal\n" msgid " has left " msgstr " ha salido " -#: src/irc/irc-recv.c:1333 src/irc/irc-recv.c:1845 +#: src/irc/irc-recv.c:1333 src/irc/irc-recv.c:1846 #, c-format msgid "On %s: * %s %s" msgstr "En %s: * %s %s" @@ -1620,11 +1622,11 @@ msgid "Received a CTCP SOUND \"%s\" from " msgstr "Recibido un sonido CTCP \\\"%s\\\" de " #: src/irc/irc-recv.c:1384 src/irc/irc-recv.c:1412 src/irc/irc-recv.c:1512 -#: src/irc/irc-recv.c:1548 src/irc/irc-recv.c:1880 +#: src/irc/irc-recv.c:1548 src/irc/irc-recv.c:1881 msgid "received from" msgstr "recibido de" -#: src/irc/irc-recv.c:1408 src/irc/irc-recv.c:1876 +#: src/irc/irc-recv.c:1408 src/irc/irc-recv.c:1877 msgid "Unknown CTCP " msgstr "" @@ -1637,10 +1639,10 @@ msgstr "En %s: %s> %s" #: src/irc/irc-recv.c:1612 src/irc/irc-recv.c:1637 src/irc/irc-recv.c:1654 #: src/irc/irc-recv.c:1670 src/irc/irc-recv.c:1694 src/irc/irc-recv.c:1711 #: src/irc/irc-recv.c:1727 src/irc/irc-recv.c:1751 src/irc/irc-recv.c:1768 -#: src/irc/irc-recv.c:1783 src/irc/irc-recv.c:1926 src/irc/irc-recv.c:3576 -#: src/irc/irc-recv.c:3634 src/irc/irc-recv.c:3786 src/irc/irc-recv.c:3801 -#: src/irc/irc-recv.c:3816 src/irc/irc-recv.c:3831 src/irc/irc-recv.c:3844 -#: src/irc/irc-recv.c:3894 src/irc/irc-recv.c:3908 +#: src/irc/irc-recv.c:1783 src/irc/irc-recv.c:1942 src/irc/irc-recv.c:3592 +#: src/irc/irc-recv.c:3650 src/irc/irc-recv.c:3802 src/irc/irc-recv.c:3817 +#: src/irc/irc-recv.c:3832 src/irc/irc-recv.c:3847 src/irc/irc-recv.c:3860 +#: src/irc/irc-recv.c:3910 src/irc/irc-recv.c:3924 #, c-format msgid "%s cannot parse \"%s\" command\n" msgstr "%s no es posible analizar el comando \"%s\"\n" @@ -1650,195 +1652,195 @@ msgstr "%s no es posible analizar el comando \"%s\"\n" msgid "%s unknown DCC CHAT type received from " msgstr "%s tipo DCC CHAT desconocido recibido de " -#: src/irc/irc-recv.c:1905 src/irc/irc-dcc.c:1039 +#: src/irc/irc-recv.c:1921 src/irc/irc-dcc.c:1039 #, c-format msgid "Private %s> %s" msgstr "Privado %s> %s" -#: src/irc/irc-recv.c:1982 +#: src/irc/irc-recv.c:1998 msgid "has quit" msgstr "ha salido" -#: src/irc/irc-recv.c:2103 +#: src/irc/irc-recv.c:2119 #, c-format msgid "%s \"%s\" command received without channel\n" msgstr "%s comando \"%s\" recibido sin canal\n" -#: src/irc/irc-recv.c:2131 +#: src/irc/irc-recv.c:2147 msgid " has changed topic for " msgstr "ha cambiado el tema por " -#: src/irc/irc-recv.c:2136 +#: src/irc/irc-recv.c:2152 #, c-format msgid " to: \"%s\"\n" msgstr " a: \"%s\"\n" -#: src/irc/irc-recv.c:2142 +#: src/irc/irc-recv.c:2158 msgid " has unset topic for " msgstr " ha quitado el tema por " -#: src/irc/irc-recv.c:2260 +#: src/irc/irc-recv.c:2276 #, c-format msgid " is away: %s\n" msgstr " está ausente: %s\n" -#: src/irc/irc-recv.c:2334 +#: src/irc/irc-recv.c:2350 msgid "Users online: " msgstr "Usuarios conectados: " -#: src/irc/irc-recv.c:2781 +#: src/irc/irc-recv.c:2797 msgid "idle: " msgstr "sin actividad: " -#: src/irc/irc-recv.c:2789 +#: src/irc/irc-recv.c:2805 msgid "days" msgstr "días" -#: src/irc/irc-recv.c:2789 +#: src/irc/irc-recv.c:2805 msgid "day" msgstr "día" -#: src/irc/irc-recv.c:2799 +#: src/irc/irc-recv.c:2815 msgid "hours" msgstr "horas" -#: src/irc/irc-recv.c:2799 +#: src/irc/irc-recv.c:2815 msgid "hour" msgstr "hora" -#: src/irc/irc-recv.c:2805 +#: src/irc/irc-recv.c:2821 msgid "minutes" msgstr "minutos" -#: src/irc/irc-recv.c:2805 +#: src/irc/irc-recv.c:2821 msgid "minute" msgstr "minuto" -#: src/irc/irc-recv.c:2811 +#: src/irc/irc-recv.c:2827 msgid "seconds" msgstr "segundos" -#: src/irc/irc-recv.c:2811 +#: src/irc/irc-recv.c:2827 msgid "second" msgstr "segundo" -#: src/irc/irc-recv.c:2816 +#: src/irc/irc-recv.c:2832 msgid "signon at: " msgstr "firmado el: " -#: src/irc/irc-recv.c:2904 +#: src/irc/irc-recv.c:2920 msgid "Channels: " msgstr "Canales: " -#: src/irc/irc-recv.c:3156 +#: src/irc/irc-recv.c:3172 msgid "No topic set for " msgstr "No hay tema definido para " -#: src/irc/irc-recv.c:3198 +#: src/irc/irc-recv.c:3214 msgid "Topic for " msgstr "El tema para " -#: src/irc/irc-recv.c:3202 +#: src/irc/irc-recv.c:3218 #, c-format msgid " is: \"%s\"\n" msgstr " es: \"%s\"\n" -#: src/irc/irc-recv.c:3220 src/irc/irc-recv.c:3304 src/irc/irc-recv.c:3357 +#: src/irc/irc-recv.c:3236 src/irc/irc-recv.c:3320 src/irc/irc-recv.c:3373 #, c-format msgid "%s cannot identify channel for \"%s\" command\n" msgstr "%s no es posible identificar el canal para el comando \"%s\"\n" -#: src/irc/irc-recv.c:3266 +#: src/irc/irc-recv.c:3282 msgid "Topic set by " msgstr "Tema definido por " -#: src/irc/irc-recv.c:3286 +#: src/irc/irc-recv.c:3302 #, c-format msgid "%s cannot identify date/time for \"%s\" command\n" msgstr "%s no es posible identificar la fecha/hora para el comando \"%s\"\n" -#: src/irc/irc-recv.c:3295 src/irc/irc-recv.c:3366 +#: src/irc/irc-recv.c:3311 src/irc/irc-recv.c:3382 #, c-format msgid "%s cannot identify nickname for \"%s\" command\n" msgstr "" "%s no es posible determinar el nombre de usuario para el comando \"%s\"\n" -#: src/irc/irc-recv.c:3345 +#: src/irc/irc-recv.c:3361 msgid "has invited" msgstr "ha invitado" -#: src/irc/irc-recv.c:3348 src/irc/irc-recv.c:3499 +#: src/irc/irc-recv.c:3364 src/irc/irc-recv.c:3515 msgid "on" msgstr "en" -#: src/irc/irc-recv.c:3622 +#: src/irc/irc-recv.c:3638 #, c-format msgid "%s cannot create nick \"%s\" for channel \"%s\"\n" msgstr "%s no es posible crear el usuario \"%s\" para el canal \"%s\"\n" -#: src/irc/irc-recv.c:3678 +#: src/irc/irc-recv.c:3694 msgid "Nicks " msgstr "Usuarios " -#: src/irc/irc-recv.c:3698 +#: src/irc/irc-recv.c:3714 msgid "Channel " msgstr "Canal " -#: src/irc/irc-recv.c:3709 +#: src/irc/irc-recv.c:3725 msgid "nicks" msgstr "usuarios" -#: src/irc/irc-recv.c:3709 +#: src/irc/irc-recv.c:3725 msgid "nick" msgstr "usuario" -#: src/irc/irc-recv.c:3717 +#: src/irc/irc-recv.c:3733 msgid "ops" msgstr "operadores" -#: src/irc/irc-recv.c:3717 +#: src/irc/irc-recv.c:3733 msgid "op" msgstr "operador" -#: src/irc/irc-recv.c:3726 +#: src/irc/irc-recv.c:3742 msgid "halfops" msgstr "semi-operadores" -#: src/irc/irc-recv.c:3726 +#: src/irc/irc-recv.c:3742 msgid "halfop" msgstr "semi-operador" -#: src/irc/irc-recv.c:3735 +#: src/irc/irc-recv.c:3751 msgid "voices" msgstr "voces" -#: src/irc/irc-recv.c:3735 +#: src/irc/irc-recv.c:3751 msgid "voice" msgstr "voz" -#: src/irc/irc-recv.c:3744 +#: src/irc/irc-recv.c:3760 msgid "normal" msgstr "normal" -#: src/irc/irc-recv.c:3857 +#: src/irc/irc-recv.c:3873 msgid "banned by" msgstr "baneado por" -#: src/irc/irc-recv.c:3946 +#: src/irc/irc-recv.c:3962 #, c-format msgid "%s: nickname \"%s\" is already in use, trying 2nd nickname \"%s\"\n" msgstr "" "%s: el nombre de usuario \"%s\" ya está en uso, probando con el 2º nombre de " "usuario \"%s\"\n" -#: src/irc/irc-recv.c:3958 +#: src/irc/irc-recv.c:3974 #, c-format msgid "%s: nickname \"%s\" is already in use, trying 3rd nickname \"%s\"\n" msgstr "" "%s: el nombre de usuario \"%s\" ya está en uso, probando con el 3º nombre de " "usuario \"%s\"\n" -#: src/irc/irc-recv.c:3970 +#: src/irc/irc-recv.c:3986 #, c-format msgid "" "%s: all declared nicknames are already in use, closing connection with " @@ -1847,7 +1849,7 @@ msgstr "" "%s: ¡todos los nombres de usuario declarados ya están en uso, cerrando la " "conexión con el servidor!\n" -#: src/irc/irc-recv.c:3980 +#: src/irc/irc-recv.c:3996 #, c-format msgid "%s: nickname \"%s\" is already in use, trying 1st nickname \"%s\"\n" msgstr "" @@ -2014,7 +2016,7 @@ msgid "Aborting active DCC: \"%s\" from %s\n" msgstr "Abandonar el DCC activo: \"%s\" de %s\n" #: src/plugins/perl/wee-perl.c:88 src/plugins/perl/wee-perl.c:463 -#: src/plugins/python/wee-python.c:81 +#: src/plugins/python/wee-python.c:81 src/plugins/ruby/wee-ruby.c:89 #, c-format msgid "" "%s error: unable to register \"%s\" script (another script already exists " @@ -2024,13 +2026,13 @@ msgstr "" "script con ese nombre)\n" #: src/plugins/perl/wee-perl.c:112 src/plugins/perl/wee-perl.c:487 -#: src/plugins/python/wee-python.c:105 +#: src/plugins/python/wee-python.c:105 src/plugins/ruby/wee-ruby.c:113 #, c-format msgid "Registered %s script: \"%s\", version %s (%s)\n" msgstr "%s script registrado: \"%s\", versión %s (%s)\n" #: src/plugins/perl/wee-perl.c:119 src/plugins/perl/wee-perl.c:494 -#: src/plugins/python/wee-python.c:112 +#: src/plugins/python/wee-python.c:112 src/plugins/ruby/wee-ruby.c:120 #, c-format msgid "%s error: unable to load script \"%s\" (not enough memory)\n" msgstr "" @@ -2044,17 +2046,22 @@ msgstr "" #: src/plugins/python/wee-python.c:142 src/plugins/python/wee-python.c:179 #: src/plugins/python/wee-python.c:211 src/plugins/python/wee-python.c:243 #: src/plugins/python/wee-python.c:272 src/plugins/python/wee-python.c:311 +#: src/plugins/ruby/wee-ruby.c:58 src/plugins/ruby/wee-ruby.c:146 +#: src/plugins/ruby/wee-ruby.c:192 src/plugins/ruby/wee-ruby.c:226 +#: src/plugins/ruby/wee-ruby.c:267 src/plugins/ruby/wee-ruby.c:298 +#: src/plugins/ruby/wee-ruby.c:339 #, c-format msgid "%s error: wrong parameters for \"%s\" function\n" msgstr "Error de %s: parámetros incorrectos para la función \"%s\"\n" #: src/plugins/perl/wee-perl.c:270 src/plugins/perl/wee-perl.c:374 #: src/plugins/perl/wee-perl.c:723 src/plugins/python/wee-python.c:331 +#: src/plugins/ruby/wee-ruby.c:367 #, c-format msgid "%s error: server not found for \"%s\" function\n" msgstr "Error de %s: servidor no encontrado para el comando \"%s\"\n" -#: src/plugins/perl/wee-perl.c:873 src/plugins/python/wee-python.c:456 +#: src/plugins/perl/wee-perl.c:873 src/plugins/python/wee-python.c:457 #, c-format msgid "Loading %s module \"weechat\"\n" msgstr "Cargando módulo %s \"weechat\"\n" @@ -2070,70 +2077,73 @@ msgid "%s error: too much values from \"%s\" (%d). Expected: 1.\n" msgstr "Error de %s: demasiados valores desde \"%s\" (%d). Esperado: 1.\n" #: src/plugins/perl/wee-perl.c:964 src/plugins/perl/wee-perl.c:966 -#: src/plugins/python/wee-python.c:614 src/plugins/python/wee-python.c:616 +#: src/plugins/python/wee-python.c:615 src/plugins/python/wee-python.c:617 #, c-format msgid "Loading %s script \"%s\"\n" msgstr "Cargando %s script \"%s\"\n" -#: src/plugins/perl/wee-perl.c:1015 src/plugins/python/wee-python.c:685 +#: src/plugins/perl/wee-perl.c:1015 src/plugins/python/wee-python.c:686 +#: src/plugins/ruby/wee-ruby.c:722 #, c-format msgid "Unloading %s script \"%s\"\n" msgstr "Descarga del %s script \"%s\"\n" -#: src/plugins/perl/wee-perl.c:1032 src/plugins/python/wee-python.c:702 +#: src/plugins/perl/wee-perl.c:1032 src/plugins/python/wee-python.c:703 +#: src/plugins/ruby/wee-ruby.c:739 #, c-format msgid "Unloading all %s scripts...\n" msgstr "Descargando todos los %s scripts...\n" -#: src/plugins/perl/wee-perl.c:1037 src/plugins/python/wee-python.c:707 +#: src/plugins/perl/wee-perl.c:1037 src/plugins/python/wee-python.c:708 +#: src/plugins/ruby/wee-ruby.c:744 #, c-format msgid "%s scripts unloaded\n" msgstr "%s scripts descargados\n" -#: src/plugins/python/wee-python.c:451 +#: src/plugins/python/wee-python.c:452 #, c-format msgid "%s error: error while launching interpreter\n" msgstr "%s error: error al lanzar el intérprete\n" -#: src/plugins/python/wee-python.c:480 +#: src/plugins/python/wee-python.c:481 #, c-format msgid "%s error: error while redirecting stdout and stderr\n" msgstr "%s error: error al redireccionar stdout y stderr\n" -#: src/plugins/python/wee-python.c:533 src/plugins/python/wee-python.c:561 -#: src/plugins/python/wee-python.c:593 +#: src/plugins/python/wee-python.c:534 src/plugins/python/wee-python.c:562 +#: src/plugins/python/wee-python.c:594 #, c-format msgid "%s error: unable to run function \"%s\" in script (not enough memory)\n" msgstr "" "Error de %s: no ha sido posible cargar el script \"%s\" (memoria " "insuficiente)\n" -#: src/plugins/python/wee-python.c:583 +#: src/plugins/python/wee-python.c:584 #, c-format msgid "%s error: error while running function \"%s\"\n" msgstr "%s error: error al ejecutar la función \"%s\"\n" -#: src/plugins/python/wee-python.c:622 +#: src/plugins/python/wee-python.c:623 #, c-format msgid "%s error: error while opening file \"%s\"\n" msgstr "%s error: error al abrir el fichero \"%s\"\n" -#: src/plugins/python/wee-python.c:631 +#: src/plugins/python/wee-python.c:632 #, c-format msgid "%s error: error while parsing file \"%s\"\n" msgstr "%s error: error al comparar el fichero \"%s\"\n" -#: src/plugins/python/wee-python.c:733 +#: src/plugins/python/wee-python.c:734 #, c-format msgid "%s error: error while freeing interpreter\n" msgstr "%s error: error al liberar el intérprete\n" -#: src/plugins/plugins.c:93 +#: src/plugins/plugins.c:97 #, c-format msgid "Auto-loading %s script: %s%s%s\n" msgstr "Carga automática del script %s : %s%s%s\n" -#: src/plugins/plugins.c:212 +#: src/plugins/plugins.c:223 #, c-format msgid "%s unable to add handler for \"%s\" message (not enough memory)\n" msgstr "" @@ -2145,60 +2155,60 @@ msgstr "" msgid "%s lag is high, disconnecting from server...\n" msgstr "%s el lag (retraso) es alto, desconectando del servidor...\n" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "bytes" msgstr "bytes" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "Kb" msgstr "KB" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "Mb" msgstr "MB" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "Gb" msgstr "GB" -#: src/gui/curses/gui-display.c:1119 +#: src/gui/curses/gui-display.c:1131 msgid "(away)" msgstr "(ausente)" -#: src/gui/curses/gui-display.c:1236 +#: src/gui/curses/gui-display.c:1248 msgid "[not connected]" msgstr "[no conectado]" -#: src/gui/curses/gui-display.c:1252 +#: src/gui/curses/gui-display.c:1264 msgid "Act: " msgstr "Act: " -#: src/gui/curses/gui-display.c:1305 +#: src/gui/curses/gui-display.c:1317 #, c-format msgid "Lag: %.1f" msgstr "Lag: %.1f" -#: src/gui/curses/gui-display.c:1326 +#: src/gui/curses/gui-display.c:1338 msgid "-MORE-" msgstr "-MÁS-" -#: src/gui/curses/gui-display.c:1516 +#: src/gui/curses/gui-display.c:1528 msgid " [A] Accept" msgstr " [A] Aceptar" -#: src/gui/curses/gui-display.c:1517 src/gui/curses/gui-display.c:1521 +#: src/gui/curses/gui-display.c:1529 src/gui/curses/gui-display.c:1533 msgid " [C] Cancel" msgstr " [C] Cancelar" -#: src/gui/curses/gui-display.c:1526 +#: src/gui/curses/gui-display.c:1538 msgid " [R] Remove" msgstr " [R] Eliminar" -#: src/gui/curses/gui-display.c:1530 +#: src/gui/curses/gui-display.c:1542 msgid " [P] Purge old DCC" msgstr " [P] Purgar los viejos DCC" -#: src/gui/curses/gui-display.c:1531 +#: src/gui/curses/gui-display.c:1543 msgid " [Q] Close DCC view" msgstr " [Q] Cerrar la vista DCC" @@ -2362,7 +2372,7 @@ msgstr "limpiar hotlist" msgid "grab a key" msgstr "" -#: src/gui/gui-keyboard.c:426 src/common/command.c:1473 +#: src/gui/gui-keyboard.c:426 src/common/command.c:1478 #, c-format msgid "%s unable to bind key \"%s\"\n" msgstr "%s No ha sido posible atar la clave \"%s\"\n" @@ -2514,7 +2524,7 @@ msgstr "" msgid "list/load/unload Perl scripts" msgstr "lista/carga/descarga de los Perl scripts" -#: src/common/command.c:83 src/common/command.c:88 +#: src/common/command.c:83 src/common/command.c:88 src/common/command.c:93 msgid "[load filename] | [autoload] | [reload] | [unload]" msgstr "[load fichero] | [autoload] | [reload] | [unload]" @@ -2539,10 +2549,22 @@ msgstr "" "Sin argumentos, el comando /python lista todos los Python scripts cargados." #: src/common/command.c:92 +msgid "list/load/unload Ruby scripts" +msgstr "lista/carga/descarga de los Ruby scripts" + +#: src/common/command.c:94 +msgid "" +"filename: Ruby script (file) to load\n" +"Without argument, /ruby command lists all loaded Ruby scripts." +msgstr "" +"fichero: Ruby script (archivo) a cargar\n" +"Sin argumentos, el comando /ruby lista todos los Ruby scripts cargados." + +#: src/common/command.c:97 msgid "list, add or remove servers" msgstr "lista, añade o elimina servidores" -#: src/common/command.c:93 +#: src/common/command.c:98 msgid "" "[servername] | [servername hostname port [-auto | -noauto] [-ipv6] [-ssl] [-" "pwd password] [-nicks nick1 [nick2 [nick3]]] [-username username] [-realname " @@ -2554,7 +2576,7 @@ msgstr "" "username nombre de usuario] [-realname nombre_real] [-command comando] [-" "autojoin canal[,canal]] ] | [del nombre_de_servidor]" -#: src/common/command.c:98 +#: src/common/command.c:103 msgid "" "servername: server name, for internal & display use\n" "hostname: name or IP address of server\n" @@ -2580,27 +2602,27 @@ msgstr "" "nombre_de_usuario: nombre de usuario\n" "nombre_real: nombre real del usuario" -#: src/common/command.c:110 +#: src/common/command.c:115 msgid "save config to disk" msgstr "guardar configuración a disco" -#: src/common/command.c:111 +#: src/common/command.c:116 msgid "[file]" msgstr "[archivo]" -#: src/common/command.c:111 +#: src/common/command.c:116 msgid "file: filename for writing config" msgstr "archivo: fichero en el que guardar la configuración" -#: src/common/command.c:113 +#: src/common/command.c:118 msgid "set config parameters" msgstr "modificar parámetros de configuración" -#: src/common/command.c:114 +#: src/common/command.c:119 msgid "[option[=value]]" msgstr "[opción[=valor]]" -#: src/common/command.c:114 +#: src/common/command.c:119 msgid "" "option: name of an option\n" "value: value for option" @@ -2608,27 +2630,27 @@ msgstr "" "opción: nombre de una opción\n" "valor: valor para la opción" -#: src/common/command.c:116 +#: src/common/command.c:121 msgid "remove an alias" msgstr "eliminar un alias" -#: src/common/command.c:117 +#: src/common/command.c:122 msgid "alias_name" msgstr "alias" -#: src/common/command.c:117 +#: src/common/command.c:122 msgid "alias_name: name of alias to remove" msgstr "alias: nombre del alias a suprimir" -#: src/common/command.c:119 +#: src/common/command.c:124 msgid "manage windows" msgstr "gestión de ventanas" -#: src/common/command.c:120 +#: src/common/command.c:125 msgid "[list | splith | splitv | [merge [down | up | left | right | all]]]" msgstr "[list | splith | splitv | [merge [down | up | left | right | all]]]" -#: src/common/command.c:121 +#: src/common/command.c:126 msgid "" "list: list opened windows (no parameter implies this list)\n" "splith: split current window horizontally\n" @@ -2641,29 +2663,29 @@ msgstr "" "splitv: dividir la ventana actual verticalmente\n" "merge: fusionar una ventana con otra" -#: src/common/command.c:267 +#: src/common/command.c:272 #, c-format msgid "%s alias or command \"%s\" already exists!\n" msgstr "%s ¡el alias o el comando \"%s\" ya existe!\n" -#: src/common/command.c:277 +#: src/common/command.c:282 #, c-format msgid "%s alias cannot run another alias!\n" msgstr "%s ¡el alias no puede ejecutar otro alias!\n" -#: src/common/command.c:284 +#: src/common/command.c:289 #, c-format msgid "%s target command \"%s\" does not exist!\n" msgstr "%s ¡el comando objetivo \"%s\" no existe!\n" -#: src/common/command.c:492 +#: src/common/command.c:497 #, c-format msgid "%s wrong argument count for %s command \"%s\" (expected: %d arg%s)\n" msgstr "" "%s número de argumentos incorrecto para el comando %s \"%s\" (esperado: %d " "parámetro%s)\n" -#: src/common/command.c:504 +#: src/common/command.c:509 #, c-format msgid "" "%s wrong argument count for %s command \"%s\" (expected: between %d and %d " @@ -2672,19 +2694,19 @@ msgstr "" "%s número de argumentos incorrecto para el comando %s \"%s\" (esperado: " "entre %d y %d parámetro%s)\n" -#: src/common/command.c:526 src/common/command.c:596 +#: src/common/command.c:531 src/common/command.c:601 #, c-format msgid "%s command \"%s\" failed\n" msgstr "%s el comando \"%s\" ha fallado\n" -#: src/common/command.c:554 +#: src/common/command.c:559 #, c-format msgid "%s wrong argument count for IRC command \"%s\" (expected: %d arg%s)\n" msgstr "" "%s número de argumentos incorrecto para el comando IRC \"%s\" (esperado: %d " "parámetro%s)\n" -#: src/common/command.c:566 +#: src/common/command.c:571 #, c-format msgid "" "%s wrong argument count for IRC command \"%s\" (expected: between %d and %d " @@ -2693,215 +2715,222 @@ msgstr "" "%s número de argumentos incorrecto para el comando IRC \"%s\" (esperado: " "entre %d y %d parámetro%s)\n" -#: src/common/command.c:581 +#: src/common/command.c:586 #, c-format msgid "%s command \"%s\" needs a server connection!\n" msgstr "%s ¡el comando \"%s\" requiere una conexión a servidor!\n" -#: src/common/command.c:645 +#: src/common/command.c:650 #, c-format msgid "%s unknown command \"%s\" (type /help for help)\n" msgstr "%s comando \"%s\" desconocido (escriba /help para la ayuda)\n" -#: src/common/command.c:748 +#: src/common/command.c:753 #, c-format msgid "%s unable to call handler for message (not enough memory)\n" msgstr "" "%s No ha sido posible llamar al manejador para el mensaje (no hay suficiente " "memoria)\n" -#: src/common/command.c:756 +#: src/common/command.c:761 msgid "This window is not a channel!\n" msgstr "¡Esta ventana no es un canal!\n" -#: src/common/command.c:784 src/common/command.c:808 src/common/command.c:913 +#: src/common/command.c:789 src/common/command.c:813 src/common/command.c:918 #, c-format msgid "%s missing arguments for \"%s\" command\n" msgstr "%s faltan argumentos para el comando \"%s\"\n" -#: src/common/command.c:793 +#: src/common/command.c:798 #, c-format msgid "Alias \"%s\" => \"%s\" created\n" msgstr "Alias \"%s\" => \"%s\" creado\n" -#: src/common/command.c:799 +#: src/common/command.c:804 #, c-format msgid "Failed to create alias \"%s\" => \"%s\" (not enough memory)\n" msgstr "" "No ha sido posible crear el alias \"%s\" => \"%s\" (no hay suficiente " "memoria)\n" -#: src/common/command.c:819 +#: src/common/command.c:824 msgid "List of aliases:\n" msgstr "Lista de alias:\n" -#: src/common/command.c:831 +#: src/common/command.c:836 msgid "No alias defined.\n" msgstr "Ningún alias definido.\n" -#: src/common/command.c:854 +#: src/common/command.c:859 msgid "Channel: " msgstr "Canal: " -#: src/common/command.c:857 src/common/command.c:867 +#: src/common/command.c:862 src/common/command.c:872 msgid " (server: " msgstr " (servidor: " -#: src/common/command.c:864 +#: src/common/command.c:869 msgid "Private with: " msgstr "Privado con: " -#: src/common/command.c:893 +#: src/common/command.c:898 msgid "Opened buffers:\n" msgstr "Búfers abiertos:\n" -#: src/common/command.c:936 +#: src/common/command.c:941 #, c-format msgid "%s incorrect buffer number\n" msgstr "%s número de búfer incorrecto\n" -#: src/common/command.c:950 +#: src/common/command.c:955 #, c-format msgid "%s can not close the single buffer\n" msgstr "%s no es posible cerrar el único búfer\n" -#: src/common/command.c:960 +#: src/common/command.c:965 #, c-format msgid "%s can not close server buffer while channels are opened\n" msgstr "" "%s no se puede cerrar el búfer de servidor mientras haya canales abiertos\n" -#: src/common/command.c:1001 +#: src/common/command.c:1006 msgid "Notify levels: " msgstr "Niveles de notificación: " -#: src/common/command.c:1029 src/common/command.c:1051 +#: src/common/command.c:1034 src/common/command.c:1056 #, c-format msgid "%s incorrect notify level (must be between %d and %d)\n" msgstr "%s nivel de notificación incorrecto (debe estar entre %d y %d)\n" -#: src/common/command.c:1038 +#: src/common/command.c:1043 #, c-format msgid "%s incorrect buffer for notify (must be channel or private)\n" msgstr "%s búfer incorrecto para notificar (debe ser canal o privado)\n" -#: src/common/command.c:1118 +#: src/common/command.c:1123 #, c-format msgid "unknown parameter \"%s\" for \"%s\" command\n" msgstr "parámetro desconocido \"%s\" para el comando \"%s\"\n" -#: src/common/command.c:1148 +#: src/common/command.c:1153 #, c-format msgid "%s already connected to server \"%s\"!\n" msgstr "%s ya conectado al servidor \"%s\"!\n" -#: src/common/command.c:1156 +#: src/common/command.c:1161 #, c-format msgid "%s currently connecting to server \"%s\"!\n" msgstr "%s actualmente conectando al servidor \"%s\"!\n" -#: src/common/command.c:1174 src/common/command.c:1249 +#: src/common/command.c:1179 src/common/command.c:1254 #, c-format msgid "%s server not found\n" msgstr "%s servidor no encontrado\n" -#: src/common/command.c:1204 src/common/command.c:1601 -#: src/common/command.c:1744 src/common/command.c:2441 -#: src/common/command.c:2457 +#: src/common/command.c:1209 src/common/command.c:1606 +#: src/common/command.c:1749 src/common/command.c:1892 +#: src/common/command.c:2589 src/common/command.c:2605 #, c-format msgid "%s unknown option for \"%s\" command\n" msgstr "%s opción desconocida para el comando \"%s\"\n" -#: src/common/command.c:1233 +#: src/common/command.c:1238 #, c-format msgid "%s not connected to server \"%s\"!\n" msgstr "%s ¡no conectado al servidor \"%s\"!\n" -#: src/common/command.c:1241 +#: src/common/command.c:1246 msgid "Auto-reconnection is cancelled\n" msgstr "La reconexión automática está anulada\n" -#: src/common/command.c:1267 src/common/weechat.c:273 +#: src/common/command.c:1272 src/common/weechat.c:273 #, c-format msgid "%s internal commands:\n" msgstr "Comandos internos %s :\n" -#: src/common/command.c:1276 src/common/weechat.c:293 +#: src/common/command.c:1281 src/common/weechat.c:293 #, c-format msgid "IRC commands:\n" msgstr "Comandos IRC :\n" -#: src/common/command.c:1343 +#: src/common/command.c:1348 #, c-format msgid "No help available, \"%s\" is an unknown command\n" msgstr "No hay ayuda disponible, el comando \"%s\" es desconocido\n" -#: src/common/command.c:1361 +#: src/common/command.c:1366 msgid "New key binding:\n" msgstr "Nuevo anclaje de clave:\n" -#: src/common/command.c:1394 +#: src/common/command.c:1399 msgid "Key bindings:\n" msgstr "Anclajes de clave:\n" -#: src/common/command.c:1406 +#: src/common/command.c:1411 #, c-format msgid "Key \"%s\" unbinded\n" msgstr "Clave \"%s\" desatada\n" -#: src/common/command.c:1411 +#: src/common/command.c:1416 #, c-format msgid "%s unable to unbind key \"%s\"\n" msgstr "%s No ha sido posible desatar la clave \"%s\"\n" -#: src/common/command.c:1419 src/common/weechat.c:324 +#: src/common/command.c:1424 src/common/weechat.c:324 #, c-format msgid "Internal key functions:\n" msgstr "Funciones de clave internas:\n" -#: src/common/command.c:1438 +#: src/common/command.c:1443 msgid "Default key bindings restored\n" msgstr "Anclajes de clave por defecto restaurados\n" -#: src/common/command.c:1444 +#: src/common/command.c:1449 #, c-format msgid "%s \"-yes\" argument is required for keys reset (securuty reason)\n" msgstr "" "%s \"-yes\" se requiere argumento para resetear las claves (por razones de " "seguridad)\n" -#: src/common/command.c:1500 src/common/command.c:1643 +#: src/common/command.c:1505 src/common/command.c:1648 +#: src/common/command.c:1791 #, c-format msgid "Registered %s scripts:\n" msgstr "%s scripts registrados:\n" -#: src/common/command.c:1517 src/common/command.c:1540 -#: src/common/command.c:1563 src/common/command.c:1660 -#: src/common/command.c:1683 src/common/command.c:1706 +#: src/common/command.c:1522 src/common/command.c:1545 +#: src/common/command.c:1568 src/common/command.c:1665 +#: src/common/command.c:1688 src/common/command.c:1711 +#: src/common/command.c:1808 src/common/command.c:1831 +#: src/common/command.c:1854 msgid " (none)\n" msgstr " (ninguno)\n" -#: src/common/command.c:1522 src/common/command.c:1665 +#: src/common/command.c:1527 src/common/command.c:1670 +#: src/common/command.c:1813 #, c-format msgid "%s message handlers:\n" msgstr "Funciones %s para mensajes:\n" -#: src/common/command.c:1531 src/common/command.c:1674 +#: src/common/command.c:1536 src/common/command.c:1679 +#: src/common/command.c:1822 #, c-format msgid " IRC(%s) => %s(%s)\n" msgstr " IRC(%s) => %s(%s)\n" -#: src/common/command.c:1545 src/common/command.c:1688 +#: src/common/command.c:1550 src/common/command.c:1693 +#: src/common/command.c:1836 #, c-format msgid "%s command handlers:\n" msgstr "Comandos %s :\n" -#: src/common/command.c:1554 src/common/command.c:1697 +#: src/common/command.c:1559 src/common/command.c:1702 +#: src/common/command.c:1845 #, c-format msgid " Command /%s => %s(%s)\n" msgstr " Comando /%s => %s(%s)\n" -#: src/common/command.c:1614 +#: src/common/command.c:1619 msgid "" "WeeChat was build without Perl support.\n" "Please rebuild WeeChat with \"--enable-perl\" option for ./configure script\n" @@ -2910,7 +2939,7 @@ msgstr "" "Por favor, recompile WeeChat con la opción \"--enable-perl\" para el " "script ./configure\n" -#: src/common/command.c:1757 +#: src/common/command.c:1762 msgid "" "WeeChat was build without Python support.\n" "Please rebuild WeeChat with \"--enable-python\" option for ./configure " @@ -2920,32 +2949,40 @@ msgstr "" "Por favor, recompile WeeChat con la opción \"--enable-python\" para el " "script ./configure\n" -#: src/common/command.c:1805 +#: src/common/command.c:1905 +msgid "" +"WeeChat was build without Ruby support.\n" +"Please rebuild WeeChat with \"--enable-ruby\" option for ./configure script\n" +msgstr "" +"WeeChat ha sido compilado sin soporte para Ruby.\n" +"Por favor, recompile WeeChat con la opción \"--enable-ruby\" para el script ./configure\n" + +#: src/common/command.c:1953 msgid "No server.\n" msgstr "Ningún servidor.\n" -#: src/common/command.c:1816 +#: src/common/command.c:1964 #, c-format msgid "Server '%s' not found.\n" msgstr "Servidor '%s' no encontrado.\n" -#: src/common/command.c:1828 +#: src/common/command.c:1976 #, c-format msgid "%s missing servername for \"%s\" command\n" msgstr "%s falta el nombre de servidor para el comando \"%s\"\n" -#: src/common/command.c:1836 +#: src/common/command.c:1984 #, c-format msgid "%s too much arguments for \"%s\" command, ignoring arguments\n" msgstr "" "%s demasiados argumentos para el comando \"%s\", ignorando parámetros\n" -#: src/common/command.c:1855 +#: src/common/command.c:2003 #, c-format msgid "%s server \"%s\" not found for \"%s\" command\n" msgstr "%s servidor \"%s\" no encontrado para el comando \"%s\"\n" -#: src/common/command.c:1863 +#: src/common/command.c:2011 #, c-format msgid "" "%s you can not delete server \"%s\" because you are connected to. Try /" @@ -2954,108 +2991,108 @@ msgstr "" "%s usted no puede eliminar el servidor \"%s\" ya que está usted conectado a " "él. Pruebe /disconnect %s antes.\n" -#: src/common/command.c:1879 src/common/command.c:2025 +#: src/common/command.c:2027 src/common/command.c:2173 msgid "Server" msgstr "Servidor" -#: src/common/command.c:1882 +#: src/common/command.c:2030 msgid "has been deleted\n" msgstr "ha sido eliminado\n" -#: src/common/command.c:1897 +#: src/common/command.c:2045 #, c-format msgid "%s missing parameters for \"%s\" command\n" msgstr "%s faltan parámetros para el comando \"%s\"\n" -#: src/common/command.c:1907 +#: src/common/command.c:2055 #, c-format msgid "%s server \"%s\" already exists, can't create it!\n" msgstr "%s el servidor \"%s\" ya existe, ¡no se puede crear!\n" -#: src/common/command.c:1936 src/common/command.c:1964 -#: src/common/command.c:1977 src/common/command.c:2003 +#: src/common/command.c:2084 src/common/command.c:2112 +#: src/common/command.c:2125 src/common/command.c:2151 #, c-format msgid "%s missing password for \"%s\" parameter\n" msgstr "%s falta contraseña para el comando \"%s\"\n" -#: src/common/command.c:1949 +#: src/common/command.c:2097 #, c-format msgid "%s missing nick(s) for \"%s\" parameter\n" msgstr "%s falta(n) usuario(s) para el parámetro \"%s\"\n" -#: src/common/command.c:1990 +#: src/common/command.c:2138 #, c-format msgid "%s missing command for \"%s\" parameter\n" msgstr "%s falta comando para el parámetro \"%s\"\n" -#: src/common/command.c:2028 +#: src/common/command.c:2176 msgid "created\n" msgstr "creado\n" -#: src/common/command.c:2034 +#: src/common/command.c:2182 #, c-format msgid "%s unable to create server\n" msgstr "%s no es posible crear el servidor\n" -#: src/common/command.c:2089 +#: src/common/command.c:2237 msgid "(unknown)" msgstr "(desconocido)" -#: src/common/command.c:2112 +#: src/common/command.c:2260 msgid "(password hidden) " msgstr "(contraseña oculta) " -#: src/common/command.c:2176 +#: src/common/command.c:2324 #, c-format msgid "%s server \"%s\" not found\n" msgstr "%s servidor \"%s\" no encontrado\n" -#: src/common/command.c:2207 src/common/command.c:2253 +#: src/common/command.c:2355 src/common/command.c:2401 #, c-format msgid "%s config option \"%s\" not found\n" msgstr "%s opción de configuración \"%s\" no encontrada\n" -#: src/common/command.c:2212 src/common/command.c:2245 +#: src/common/command.c:2360 src/common/command.c:2393 #, c-format msgid "%s incorrect value for option \"%s\"\n" msgstr "%s valor incorrecto para la opción \"%s\"\n" -#: src/common/command.c:2228 +#: src/common/command.c:2376 #, c-format msgid "%s option \"%s\" can not be changed while WeeChat is running\n" msgstr "" "%s la opción \"%s\" no puede ser modificada mientras WeeChat esté en " "ejecución\n" -#: src/common/command.c:2327 +#: src/common/command.c:2475 #, c-format msgid "No config option found with \"%s\"\n" msgstr "Ninguna opción de configuración encontrada con \"%s\"\n" -#: src/common/command.c:2330 +#: src/common/command.c:2478 msgid "No config option found\n" msgstr "Ninguna opción de configuración encontrada\n" -#: src/common/command.c:2336 +#: src/common/command.c:2484 #, c-format msgid "config option(s) found with \"%s\"\n" msgstr "opción/opciones de configuración encontrada(s) con \"%s\"\n" -#: src/common/command.c:2339 +#: src/common/command.c:2487 msgid "config option(s) found\n" msgstr "opción/opciones de configuración encontrada(s)\n" -#: src/common/command.c:2359 +#: src/common/command.c:2507 #, c-format msgid "%s alias or command \"%s\" not found\n" msgstr "%s alias o comando \"%s\" no encontrado\n" -#: src/common/command.c:2369 +#: src/common/command.c:2517 #, c-format msgid "Alias \"%s\" removed\n" msgstr "Alias \"%s\" eliminado\n" -#: src/common/command.c:2389 +#: src/common/command.c:2537 msgid "Opened windows:\n" msgstr "Ventanas abiertas:\n" diff --git a/weechat/po/fr.po b/weechat/po/fr.po index 235862e89..677ab91cd 100644 --- a/weechat/po/fr.po +++ b/weechat/po/fr.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.1.5-cvs\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2005-08-16 16:52+0200\n" -"PO-Revision-Date: 2005-08-16 16:53+0200\n" +"POT-Creation-Date: 2005-08-21 14:31+0200\n" +"PO-Revision-Date: 2005-08-21 14:31+0200\n" "Last-Translator: FlashCode \n" "Language-Team: weechat-dev \n" "MIME-Version: 1.0\n" @@ -1318,7 +1318,7 @@ msgstr "impossible de changer le mode pour les autres utilisateurs" msgid "whois (secure connection)" msgstr "qui est (connexion sécurisée)" -#: src/irc/irc-display.c:163 src/common/command.c:848 +#: src/irc/irc-display.c:163 src/common/command.c:853 msgid "Server: " msgstr "Serveur: " @@ -1348,7 +1348,7 @@ msgstr " (serveur temporaire, ne sera pas sauv msgid "(hidden)" msgstr "(caché)" -#: src/irc/irc-send.c:59 src/irc/irc-recv.c:3992 +#: src/irc/irc-send.c:59 src/irc/irc-recv.c:4008 msgid "unknown" msgstr "inconnu" @@ -1357,7 +1357,7 @@ msgstr "inconnu" msgid "%s: using local hostname \"%s\"\n" msgstr "%s: utilisation du nom de machine local \"%s\"\n" -#: src/irc/irc-send.c:126 src/common/command.c:726 +#: src/irc/irc-send.c:126 src/common/command.c:731 #, c-format msgid "%s cannot find nick for sending message\n" msgstr "%s impossible de trouver le pseudo pour envoyer le message\n" @@ -1375,8 +1375,9 @@ msgstr "" #: src/irc/irc-send.c:415 src/irc/irc-send.c:427 src/irc/irc-send.c:445 #: src/irc/irc-send.c:1097 src/irc/irc-send.c:1190 src/irc/irc-send.c:1722 -#: src/common/command.c:1191 src/common/command.c:1458 -#: src/common/command.c:1608 src/common/command.c:1751 +#: src/common/command.c:1196 src/common/command.c:1463 +#: src/common/command.c:1613 src/common/command.c:1756 +#: src/common/command.c:1899 #, c-format msgid "%s wrong argument count for \"%s\" command\n" msgstr "%s nombre de paramètres erroné pour la commande \"%s\"\n" @@ -1398,7 +1399,8 @@ msgstr "" msgid "%s nick \"%s\" not found for \"%s\" command\n" msgstr "%s pseudo \"%s\" non trouvé pour la commande \"%s\"\n" -#: src/irc/irc-send.c:1067 src/irc/irc-send.c:1375 src/irc/irc-recv.c:1819 +#: src/irc/irc-send.c:1067 src/irc/irc-send.c:1375 src/irc/irc-recv.c:1822 +#: src/irc/irc-recv.c:1900 #, c-format msgid "%s cannot create new private window \"%s\"\n" msgstr "%s impossible de créer la fenêtre privée \"%s\"\n" @@ -1417,8 +1419,8 @@ msgid "by" msgstr "par" #: src/irc/irc-recv.c:282 src/irc/irc-recv.c:376 src/irc/irc-recv.c:875 -#: src/irc/irc-recv.c:1210 src/irc/irc-recv.c:1452 src/irc/irc-recv.c:3210 -#: src/irc/irc-recv.c:3277 +#: src/irc/irc-recv.c:1210 src/irc/irc-recv.c:1452 src/irc/irc-recv.c:3226 +#: src/irc/irc-recv.c:3293 #, c-format msgid "%s channel \"%s\" not found for \"%s\" command\n" msgstr "%s canal \"%s\" non trouvé pour la commande \"%s\"\n" @@ -1562,7 +1564,7 @@ msgid "removes voice from" msgstr "supprime la voix de" #: src/irc/irc-recv.c:830 src/irc/irc-recv.c:915 src/irc/irc-recv.c:1284 -#: src/irc/irc-recv.c:1950 +#: src/irc/irc-recv.c:1966 #, c-format msgid "%s \"%s\" command received without host\n" msgstr "%s commande \"%s\" reçue sans host\n" @@ -1611,7 +1613,7 @@ msgstr "%s commande \"%s\" re msgid " has left " msgstr " a quitté " -#: src/irc/irc-recv.c:1333 src/irc/irc-recv.c:1845 +#: src/irc/irc-recv.c:1333 src/irc/irc-recv.c:1846 #, c-format msgid "On %s: * %s %s" msgstr "Sur %s: * %s %s" @@ -1622,11 +1624,11 @@ msgid "Received a CTCP SOUND \"%s\" from " msgstr "CTCP SOUND \"%s\" reçu de " #: src/irc/irc-recv.c:1384 src/irc/irc-recv.c:1412 src/irc/irc-recv.c:1512 -#: src/irc/irc-recv.c:1548 src/irc/irc-recv.c:1880 +#: src/irc/irc-recv.c:1548 src/irc/irc-recv.c:1881 msgid "received from" msgstr "reçu de" -#: src/irc/irc-recv.c:1408 src/irc/irc-recv.c:1876 +#: src/irc/irc-recv.c:1408 src/irc/irc-recv.c:1877 msgid "Unknown CTCP " msgstr "CTCP inconnu " @@ -1639,10 +1641,10 @@ msgstr "Sur %s: %s> %s" #: src/irc/irc-recv.c:1612 src/irc/irc-recv.c:1637 src/irc/irc-recv.c:1654 #: src/irc/irc-recv.c:1670 src/irc/irc-recv.c:1694 src/irc/irc-recv.c:1711 #: src/irc/irc-recv.c:1727 src/irc/irc-recv.c:1751 src/irc/irc-recv.c:1768 -#: src/irc/irc-recv.c:1783 src/irc/irc-recv.c:1926 src/irc/irc-recv.c:3576 -#: src/irc/irc-recv.c:3634 src/irc/irc-recv.c:3786 src/irc/irc-recv.c:3801 -#: src/irc/irc-recv.c:3816 src/irc/irc-recv.c:3831 src/irc/irc-recv.c:3844 -#: src/irc/irc-recv.c:3894 src/irc/irc-recv.c:3908 +#: src/irc/irc-recv.c:1783 src/irc/irc-recv.c:1942 src/irc/irc-recv.c:3592 +#: src/irc/irc-recv.c:3650 src/irc/irc-recv.c:3802 src/irc/irc-recv.c:3817 +#: src/irc/irc-recv.c:3832 src/irc/irc-recv.c:3847 src/irc/irc-recv.c:3860 +#: src/irc/irc-recv.c:3910 src/irc/irc-recv.c:3924 #, c-format msgid "%s cannot parse \"%s\" command\n" msgstr "%s impossible d'analyser la commande \"%s\"\n" @@ -1652,195 +1654,195 @@ msgstr "%s impossible d'analyser la commande \"%s\"\n" msgid "%s unknown DCC CHAT type received from " msgstr "%s type de DCC CHAT inconnu reçu de " -#: src/irc/irc-recv.c:1905 src/irc/irc-dcc.c:1039 +#: src/irc/irc-recv.c:1921 src/irc/irc-dcc.c:1039 #, c-format msgid "Private %s> %s" msgstr "Prive %s> %s" -#: src/irc/irc-recv.c:1982 +#: src/irc/irc-recv.c:1998 msgid "has quit" msgstr "a quitté" -#: src/irc/irc-recv.c:2103 +#: src/irc/irc-recv.c:2119 #, c-format msgid "%s \"%s\" command received without channel\n" msgstr "%s commande \"%s\" reçue sans canal\n" -#: src/irc/irc-recv.c:2131 +#: src/irc/irc-recv.c:2147 msgid " has changed topic for " msgstr " a changé le titre pour " -#: src/irc/irc-recv.c:2136 +#: src/irc/irc-recv.c:2152 #, c-format msgid " to: \"%s\"\n" msgstr " en: \"%s\"\n" -#: src/irc/irc-recv.c:2142 +#: src/irc/irc-recv.c:2158 msgid " has unset topic for " msgstr " a retiré le titre pour " -#: src/irc/irc-recv.c:2260 +#: src/irc/irc-recv.c:2276 #, c-format msgid " is away: %s\n" msgstr " est absent: %s\n" -#: src/irc/irc-recv.c:2334 +#: src/irc/irc-recv.c:2350 msgid "Users online: " msgstr "Utilisateurs en ligne: " -#: src/irc/irc-recv.c:2781 +#: src/irc/irc-recv.c:2797 msgid "idle: " msgstr "inactivité: " -#: src/irc/irc-recv.c:2789 +#: src/irc/irc-recv.c:2805 msgid "days" msgstr "jours" -#: src/irc/irc-recv.c:2789 +#: src/irc/irc-recv.c:2805 msgid "day" msgstr "jour" -#: src/irc/irc-recv.c:2799 +#: src/irc/irc-recv.c:2815 msgid "hours" msgstr "heures" -#: src/irc/irc-recv.c:2799 +#: src/irc/irc-recv.c:2815 msgid "hour" msgstr "heure" -#: src/irc/irc-recv.c:2805 +#: src/irc/irc-recv.c:2821 msgid "minutes" msgstr "minutes" -#: src/irc/irc-recv.c:2805 +#: src/irc/irc-recv.c:2821 msgid "minute" msgstr "minute" -#: src/irc/irc-recv.c:2811 +#: src/irc/irc-recv.c:2827 msgid "seconds" msgstr "secondes" -#: src/irc/irc-recv.c:2811 +#: src/irc/irc-recv.c:2827 msgid "second" msgstr "seconde" -#: src/irc/irc-recv.c:2816 +#: src/irc/irc-recv.c:2832 msgid "signon at: " msgstr "signé le: " -#: src/irc/irc-recv.c:2904 +#: src/irc/irc-recv.c:2920 msgid "Channels: " msgstr "Canaux: " -#: src/irc/irc-recv.c:3156 +#: src/irc/irc-recv.c:3172 msgid "No topic set for " msgstr "Pas de titre défini pour " -#: src/irc/irc-recv.c:3198 +#: src/irc/irc-recv.c:3214 msgid "Topic for " msgstr "Le titre pour " -#: src/irc/irc-recv.c:3202 +#: src/irc/irc-recv.c:3218 #, c-format msgid " is: \"%s\"\n" msgstr " est: \"%s\"\n" -#: src/irc/irc-recv.c:3220 src/irc/irc-recv.c:3304 src/irc/irc-recv.c:3357 +#: src/irc/irc-recv.c:3236 src/irc/irc-recv.c:3320 src/irc/irc-recv.c:3373 #, c-format msgid "%s cannot identify channel for \"%s\" command\n" msgstr "%s impossible de déterminer le canal pour la commande \"%s\"\n" -#: src/irc/irc-recv.c:3266 +#: src/irc/irc-recv.c:3282 msgid "Topic set by " msgstr "Titre défini par " -#: src/irc/irc-recv.c:3286 +#: src/irc/irc-recv.c:3302 #, c-format msgid "%s cannot identify date/time for \"%s\" command\n" msgstr "%s impossible d'identifier la date/heure pour la commande \"%s\"\n" -#: src/irc/irc-recv.c:3295 src/irc/irc-recv.c:3366 +#: src/irc/irc-recv.c:3311 src/irc/irc-recv.c:3382 #, c-format msgid "%s cannot identify nickname for \"%s\" command\n" msgstr "" "%s impossible de déterminer le nom d'utilisateur pour la commande \"%s\"\n" -#: src/irc/irc-recv.c:3345 +#: src/irc/irc-recv.c:3361 msgid "has invited" msgstr "a invité" -#: src/irc/irc-recv.c:3348 src/irc/irc-recv.c:3499 +#: src/irc/irc-recv.c:3364 src/irc/irc-recv.c:3515 msgid "on" msgstr "sur" -#: src/irc/irc-recv.c:3622 +#: src/irc/irc-recv.c:3638 #, c-format msgid "%s cannot create nick \"%s\" for channel \"%s\"\n" msgstr "%s impossible de créer l'utilisateur \"%s\" pour le canal \"%s\"\n" -#: src/irc/irc-recv.c:3678 +#: src/irc/irc-recv.c:3694 msgid "Nicks " msgstr "Utilisateurs " -#: src/irc/irc-recv.c:3698 +#: src/irc/irc-recv.c:3714 msgid "Channel " msgstr "Canal " -#: src/irc/irc-recv.c:3709 +#: src/irc/irc-recv.c:3725 msgid "nicks" msgstr "utilisateurs" -#: src/irc/irc-recv.c:3709 +#: src/irc/irc-recv.c:3725 msgid "nick" msgstr "utilisateur" -#: src/irc/irc-recv.c:3717 +#: src/irc/irc-recv.c:3733 msgid "ops" msgstr "ops" -#: src/irc/irc-recv.c:3717 +#: src/irc/irc-recv.c:3733 msgid "op" msgstr "op" -#: src/irc/irc-recv.c:3726 +#: src/irc/irc-recv.c:3742 msgid "halfops" msgstr "halfops" -#: src/irc/irc-recv.c:3726 +#: src/irc/irc-recv.c:3742 msgid "halfop" msgstr "halfop" -#: src/irc/irc-recv.c:3735 +#: src/irc/irc-recv.c:3751 msgid "voices" msgstr "voices" -#: src/irc/irc-recv.c:3735 +#: src/irc/irc-recv.c:3751 msgid "voice" msgstr "voice" -#: src/irc/irc-recv.c:3744 +#: src/irc/irc-recv.c:3760 msgid "normal" msgstr "normal" -#: src/irc/irc-recv.c:3857 +#: src/irc/irc-recv.c:3873 msgid "banned by" msgstr "banni par" -#: src/irc/irc-recv.c:3946 +#: src/irc/irc-recv.c:3962 #, c-format msgid "%s: nickname \"%s\" is already in use, trying 2nd nickname \"%s\"\n" msgstr "" "%s: l'utilisateur \"%s\" est déjà en cours d'utilisation, essai avec le 2nd " "nom d'utilisateur \"%s\"\n" -#: src/irc/irc-recv.c:3958 +#: src/irc/irc-recv.c:3974 #, c-format msgid "%s: nickname \"%s\" is already in use, trying 3rd nickname \"%s\"\n" msgstr "" "%s: l'utilisateur \"%s\" est déjà en cours d'utilisation, essai avec le 3ème " "nom d'utilisateur \"%s\"\n" -#: src/irc/irc-recv.c:3970 +#: src/irc/irc-recv.c:3986 #, c-format msgid "" "%s: all declared nicknames are already in use, closing connection with " @@ -1849,7 +1851,7 @@ msgstr "" "%s: tous les noms d'utilisateurs déclarés sont déjà en cours d'utilisation, " "fermeture de la connexion avec le serveur !\n" -#: src/irc/irc-recv.c:3980 +#: src/irc/irc-recv.c:3996 #, c-format msgid "%s: nickname \"%s\" is already in use, trying 1st nickname \"%s\"\n" msgstr "" @@ -2018,7 +2020,7 @@ msgid "Aborting active DCC: \"%s\" from %s\n" msgstr "Abandon du DCC actif: \"%s\" de %s\n" #: src/plugins/perl/wee-perl.c:88 src/plugins/perl/wee-perl.c:463 -#: src/plugins/python/wee-python.c:81 +#: src/plugins/python/wee-python.c:81 src/plugins/ruby/wee-ruby.c:89 #, c-format msgid "" "%s error: unable to register \"%s\" script (another script already exists " @@ -2028,13 +2030,13 @@ msgstr "" "déjà avec ce nom)\n" #: src/plugins/perl/wee-perl.c:112 src/plugins/perl/wee-perl.c:487 -#: src/plugins/python/wee-python.c:105 +#: src/plugins/python/wee-python.c:105 src/plugins/ruby/wee-ruby.c:113 #, c-format msgid "Registered %s script: \"%s\", version %s (%s)\n" msgstr "Script %s enregistré: \"%s\", version %s (%s)\n" #: src/plugins/perl/wee-perl.c:119 src/plugins/perl/wee-perl.c:494 -#: src/plugins/python/wee-python.c:112 +#: src/plugins/python/wee-python.c:112 src/plugins/ruby/wee-ruby.c:120 #, c-format msgid "%s error: unable to load script \"%s\" (not enough memory)\n" msgstr "" @@ -2047,17 +2049,22 @@ msgstr "" #: src/plugins/python/wee-python.c:142 src/plugins/python/wee-python.c:179 #: src/plugins/python/wee-python.c:211 src/plugins/python/wee-python.c:243 #: src/plugins/python/wee-python.c:272 src/plugins/python/wee-python.c:311 +#: src/plugins/ruby/wee-ruby.c:58 src/plugins/ruby/wee-ruby.c:146 +#: src/plugins/ruby/wee-ruby.c:192 src/plugins/ruby/wee-ruby.c:226 +#: src/plugins/ruby/wee-ruby.c:267 src/plugins/ruby/wee-ruby.c:298 +#: src/plugins/ruby/wee-ruby.c:339 #, c-format msgid "%s error: wrong parameters for \"%s\" function\n" msgstr "Erreur %s: mauvais paramètres pour la fonction \"%s\"\n" #: src/plugins/perl/wee-perl.c:270 src/plugins/perl/wee-perl.c:374 #: src/plugins/perl/wee-perl.c:723 src/plugins/python/wee-python.c:331 +#: src/plugins/ruby/wee-ruby.c:367 #, c-format msgid "%s error: server not found for \"%s\" function\n" msgstr "Erreur %s: serveur non trouvé pour la fonction \"%s\"\n" -#: src/plugins/perl/wee-perl.c:873 src/plugins/python/wee-python.c:456 +#: src/plugins/perl/wee-perl.c:873 src/plugins/python/wee-python.c:457 #, c-format msgid "Loading %s module \"weechat\"\n" msgstr "Chargement du module %s \"weechat\"\n" @@ -2073,70 +2080,73 @@ msgid "%s error: too much values from \"%s\" (%d). Expected: 1.\n" msgstr "Erreur %s: trop de valeurs de \"%s\" (%d). Attendue: 1.\n" #: src/plugins/perl/wee-perl.c:964 src/plugins/perl/wee-perl.c:966 -#: src/plugins/python/wee-python.c:614 src/plugins/python/wee-python.c:616 +#: src/plugins/python/wee-python.c:615 src/plugins/python/wee-python.c:617 #, c-format msgid "Loading %s script \"%s\"\n" msgstr "Chargement du script %s \"%s\"\n" -#: src/plugins/perl/wee-perl.c:1015 src/plugins/python/wee-python.c:685 +#: src/plugins/perl/wee-perl.c:1015 src/plugins/python/wee-python.c:686 +#: src/plugins/ruby/wee-ruby.c:722 #, c-format msgid "Unloading %s script \"%s\"\n" msgstr "Déchargement du script %s \"%s\"\n" -#: src/plugins/perl/wee-perl.c:1032 src/plugins/python/wee-python.c:702 +#: src/plugins/perl/wee-perl.c:1032 src/plugins/python/wee-python.c:703 +#: src/plugins/ruby/wee-ruby.c:739 #, c-format msgid "Unloading all %s scripts...\n" msgstr "Déchargement de tous les scripts %s...\n" -#: src/plugins/perl/wee-perl.c:1037 src/plugins/python/wee-python.c:707 +#: src/plugins/perl/wee-perl.c:1037 src/plugins/python/wee-python.c:708 +#: src/plugins/ruby/wee-ruby.c:744 #, c-format msgid "%s scripts unloaded\n" msgstr "Scripts %s déchargés\n" -#: src/plugins/python/wee-python.c:451 +#: src/plugins/python/wee-python.c:452 #, c-format msgid "%s error: error while launching interpreter\n" msgstr "Erreur %s: erreur pendant le chargement de l'interpréteur\n" -#: src/plugins/python/wee-python.c:480 +#: src/plugins/python/wee-python.c:481 #, c-format msgid "%s error: error while redirecting stdout and stderr\n" msgstr "Erreur %s: erreur en redirection de stdout et stderr\n" -#: src/plugins/python/wee-python.c:533 src/plugins/python/wee-python.c:561 -#: src/plugins/python/wee-python.c:593 +#: src/plugins/python/wee-python.c:534 src/plugins/python/wee-python.c:562 +#: src/plugins/python/wee-python.c:594 #, c-format msgid "%s error: unable to run function \"%s\" in script (not enough memory)\n" msgstr "" "Erreur %s: impossible d'exécuter la fonction \"%s\" dans le script (mémoire " "insuffisante)\n" -#: src/plugins/python/wee-python.c:583 +#: src/plugins/python/wee-python.c:584 #, c-format msgid "%s error: error while running function \"%s\"\n" msgstr "Erreur %s: erreur dans la fonction \"%s\"\n" -#: src/plugins/python/wee-python.c:622 +#: src/plugins/python/wee-python.c:623 #, c-format msgid "%s error: error while opening file \"%s\"\n" msgstr "Erreur %s: erreur à l'ouverture du fichier \"%s\"\n" -#: src/plugins/python/wee-python.c:631 +#: src/plugins/python/wee-python.c:632 #, c-format msgid "%s error: error while parsing file \"%s\"\n" msgstr "Erreur %s: erreur en analysant le fichier \"%s\"\n" -#: src/plugins/python/wee-python.c:733 +#: src/plugins/python/wee-python.c:734 #, c-format msgid "%s error: error while freeing interpreter\n" msgstr "Erreur %s: impossible de libérer l'interpréteur\n" -#: src/plugins/plugins.c:93 +#: src/plugins/plugins.c:97 #, c-format msgid "Auto-loading %s script: %s%s%s\n" msgstr "Chargement automatique du script %s : %s%s%s\n" -#: src/plugins/plugins.c:212 +#: src/plugins/plugins.c:223 #, c-format msgid "%s unable to add handler for \"%s\" message (not enough memory)\n" msgstr "" @@ -2148,60 +2158,60 @@ msgstr "" msgid "%s lag is high, disconnecting from server...\n" msgstr "%s le lag est élevé, déconnexion du serveur...\n" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "bytes" msgstr "octets" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "Kb" msgstr "Ko" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "Mb" msgstr "Mo" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "Gb" msgstr "Go" -#: src/gui/curses/gui-display.c:1119 +#: src/gui/curses/gui-display.c:1131 msgid "(away)" msgstr "(absent)" -#: src/gui/curses/gui-display.c:1236 +#: src/gui/curses/gui-display.c:1248 msgid "[not connected]" msgstr "[non connecté]" -#: src/gui/curses/gui-display.c:1252 +#: src/gui/curses/gui-display.c:1264 msgid "Act: " msgstr "Act: " -#: src/gui/curses/gui-display.c:1305 +#: src/gui/curses/gui-display.c:1317 #, c-format msgid "Lag: %.1f" msgstr "Lag: %.1f" -#: src/gui/curses/gui-display.c:1326 +#: src/gui/curses/gui-display.c:1338 msgid "-MORE-" msgstr "-PLUS-" -#: src/gui/curses/gui-display.c:1516 +#: src/gui/curses/gui-display.c:1528 msgid " [A] Accept" msgstr " [A] Accepter" -#: src/gui/curses/gui-display.c:1517 src/gui/curses/gui-display.c:1521 +#: src/gui/curses/gui-display.c:1529 src/gui/curses/gui-display.c:1533 msgid " [C] Cancel" msgstr " [C] Annuler" -#: src/gui/curses/gui-display.c:1526 +#: src/gui/curses/gui-display.c:1538 msgid " [R] Remove" msgstr " [R] Retirer" -#: src/gui/curses/gui-display.c:1530 +#: src/gui/curses/gui-display.c:1542 msgid " [P] Purge old DCC" msgstr " [P] Purger anciens DCC" -#: src/gui/curses/gui-display.c:1531 +#: src/gui/curses/gui-display.c:1543 msgid " [Q] Close DCC view" msgstr " [Q] Fermer la vue DCC" @@ -2365,7 +2375,7 @@ msgstr "effacer la liste d'activit msgid "grab a key" msgstr "capturer une touche" -#: src/gui/gui-keyboard.c:426 src/common/command.c:1473 +#: src/gui/gui-keyboard.c:426 src/common/command.c:1478 #, c-format msgid "%s unable to bind key \"%s\"\n" msgstr "%s impossible de créer la touche \"%s\"\n" @@ -2517,7 +2527,7 @@ msgstr "" msgid "list/load/unload Perl scripts" msgstr "liste/charge/décharge des scripts Perl" -#: src/common/command.c:83 src/common/command.c:88 +#: src/common/command.c:83 src/common/command.c:88 src/common/command.c:93 msgid "[load filename] | [autoload] | [reload] | [unload]" msgstr "[load fichier] | [autoload] | [reload] | [unload]" @@ -2542,10 +2552,22 @@ msgstr "" "Sans paramètre, la commande /python liste tous les scripts Python chargés." #: src/common/command.c:92 +msgid "list/load/unload Ruby scripts" +msgstr "liste/charge/décharge des scripts Ruby" + +#: src/common/command.c:94 +msgid "" +"filename: Ruby script (file) to load\n" +"Without argument, /ruby command lists all loaded Ruby scripts." +msgstr "" +"fichier: script Ruby (fichier) à charger\n" +"Sans paramètre, la commande /ruby liste tous les scripts Ruby chargés." + +#: src/common/command.c:97 msgid "list, add or remove servers" msgstr "liste, ajoute ou retire des serveurs" -#: src/common/command.c:93 +#: src/common/command.c:98 msgid "" "[servername] | [servername hostname port [-auto | -noauto] [-ipv6] [-ssl] [-" "pwd password] [-nicks nick1 [nick2 [nick3]]] [-username username] [-realname " @@ -2557,7 +2579,7 @@ msgstr "" "nom_utilisateur] [-realname nom_réel] [-command commande] [-autojoin canal[," "canal]] ] | [del nom_serveur]" -#: src/common/command.c:98 +#: src/common/command.c:103 msgid "" "servername: server name, for internal & display use\n" "hostname: name or IP address of server\n" @@ -2583,27 +2605,27 @@ msgstr "" "nom_utilisateur: nom d'utilisateur\n" "nom_réel: nom réel de l'utilisateur" -#: src/common/command.c:110 +#: src/common/command.c:115 msgid "save config to disk" msgstr "sauvegarder la configuration sur disque" -#: src/common/command.c:111 +#: src/common/command.c:116 msgid "[file]" msgstr "[fichier]" -#: src/common/command.c:111 +#: src/common/command.c:116 msgid "file: filename for writing config" msgstr "fichier: fichier pour sauvegarder la configuration" -#: src/common/command.c:113 +#: src/common/command.c:118 msgid "set config parameters" msgstr "modifier des paramètres de configuration" -#: src/common/command.c:114 +#: src/common/command.c:119 msgid "[option[=value]]" msgstr "[option[=valeur]]" -#: src/common/command.c:114 +#: src/common/command.c:119 msgid "" "option: name of an option\n" "value: value for option" @@ -2611,27 +2633,27 @@ msgstr "" "option: nom d'une option\n" "valeur: valeur pour l'option" -#: src/common/command.c:116 +#: src/common/command.c:121 msgid "remove an alias" msgstr "supprimer un alias" -#: src/common/command.c:117 +#: src/common/command.c:122 msgid "alias_name" msgstr "nom_alias" -#: src/common/command.c:117 +#: src/common/command.c:122 msgid "alias_name: name of alias to remove" msgstr "nom_alias: nom de l'alias à supprimer" -#: src/common/command.c:119 +#: src/common/command.c:124 msgid "manage windows" msgstr "gestion des fenêtres" -#: src/common/command.c:120 +#: src/common/command.c:125 msgid "[list | splith | splitv | [merge [down | up | left | right | all]]]" msgstr "[list | splith | splitv | [merge [down | up | left | right | all]]]" -#: src/common/command.c:121 +#: src/common/command.c:126 msgid "" "list: list opened windows (no parameter implies this list)\n" "splith: split current window horizontally\n" @@ -2643,29 +2665,29 @@ msgstr "" "splitv: éclate la fenêtre en deux verticalement\n" "merge: fusionne la fenêtre avec une autre" -#: src/common/command.c:267 +#: src/common/command.c:272 #, c-format msgid "%s alias or command \"%s\" already exists!\n" msgstr "%s l'alias ou la commande \"%s\" existe déjà !\n" -#: src/common/command.c:277 +#: src/common/command.c:282 #, c-format msgid "%s alias cannot run another alias!\n" msgstr "%s l'alias ne peux pas lancer un autre alias !\n" -#: src/common/command.c:284 +#: src/common/command.c:289 #, c-format msgid "%s target command \"%s\" does not exist!\n" msgstr "%s la commande cible \"%s\" n'existe pas !\n" -#: src/common/command.c:492 +#: src/common/command.c:497 #, c-format msgid "%s wrong argument count for %s command \"%s\" (expected: %d arg%s)\n" msgstr "" "%s nombre de paramètres incorrect pour la commande %s \"%s\" (attendu: %d " "paramètre%s)\n" -#: src/common/command.c:504 +#: src/common/command.c:509 #, c-format msgid "" "%s wrong argument count for %s command \"%s\" (expected: between %d and %d " @@ -2674,19 +2696,19 @@ msgstr "" "%s nombre de paramètres incorrect pour la commande %s \"%s\" (attendu: entre " "%d et %d paramètre%s)\n" -#: src/common/command.c:526 src/common/command.c:596 +#: src/common/command.c:531 src/common/command.c:601 #, c-format msgid "%s command \"%s\" failed\n" msgstr "%s la commande \"%s\" a échoué\n" -#: src/common/command.c:554 +#: src/common/command.c:559 #, c-format msgid "%s wrong argument count for IRC command \"%s\" (expected: %d arg%s)\n" msgstr "" "%s nombre de paramètres incorrect pour la commande IRC \"%s\" (attendu: %d " "paramètre%s)\n" -#: src/common/command.c:566 +#: src/common/command.c:571 #, c-format msgid "" "%s wrong argument count for IRC command \"%s\" (expected: between %d and %d " @@ -2695,214 +2717,221 @@ msgstr "" "%s nombre de paramètres incorrect pour la commande IRC \"%s\" (attendu: " "entre %d et %d paramètre%s)\n" -#: src/common/command.c:581 +#: src/common/command.c:586 #, c-format msgid "%s command \"%s\" needs a server connection!\n" msgstr "%s la commande \"%s\" nécessite une connexion au serveur !\n" -#: src/common/command.c:645 +#: src/common/command.c:650 #, c-format msgid "%s unknown command \"%s\" (type /help for help)\n" msgstr "%s commande \"%s\" inconnue (tapez /help pour l'aide)\n" -#: src/common/command.c:748 +#: src/common/command.c:753 #, c-format msgid "%s unable to call handler for message (not enough memory)\n" msgstr "" "%s impossible d'appeler la fonction pour le message (mémoire insuffisante)\n" -#: src/common/command.c:756 +#: src/common/command.c:761 msgid "This window is not a channel!\n" msgstr "Cette fenêtre n'est pas un canal !\n" -#: src/common/command.c:784 src/common/command.c:808 src/common/command.c:913 +#: src/common/command.c:789 src/common/command.c:813 src/common/command.c:918 #, c-format msgid "%s missing arguments for \"%s\" command\n" msgstr "%s paramètres manquants pour la commande \"%s\"\n" -#: src/common/command.c:793 +#: src/common/command.c:798 #, c-format msgid "Alias \"%s\" => \"%s\" created\n" msgstr "Alias \"%s\" => \"%s\" créé\n" -#: src/common/command.c:799 +#: src/common/command.c:804 #, c-format msgid "Failed to create alias \"%s\" => \"%s\" (not enough memory)\n" msgstr "Impossible de créer l'alias \"%s\" => \"%s\" (pas assez de mémoire)\n" -#: src/common/command.c:819 +#: src/common/command.c:824 msgid "List of aliases:\n" msgstr "Liste des alias:\n" -#: src/common/command.c:831 +#: src/common/command.c:836 msgid "No alias defined.\n" msgstr "Aucun alias défini.\n" -#: src/common/command.c:854 +#: src/common/command.c:859 msgid "Channel: " msgstr "Canal: " -#: src/common/command.c:857 src/common/command.c:867 +#: src/common/command.c:862 src/common/command.c:872 msgid " (server: " msgstr " (serveur: " -#: src/common/command.c:864 +#: src/common/command.c:869 msgid "Private with: " msgstr "Privé avec: " -#: src/common/command.c:893 +#: src/common/command.c:898 msgid "Opened buffers:\n" msgstr "Tampons ouverts:\n" -#: src/common/command.c:936 +#: src/common/command.c:941 #, c-format msgid "%s incorrect buffer number\n" msgstr "%s numéro de buffer incorrect\n" -#: src/common/command.c:950 +#: src/common/command.c:955 #, c-format msgid "%s can not close the single buffer\n" msgstr "%s impossible de fermer le tampon unique\n" -#: src/common/command.c:960 +#: src/common/command.c:965 #, c-format msgid "%s can not close server buffer while channels are opened\n" msgstr "" "%s impossible de fermer le tampon du serveur tant que des canaux sont " "ouverts\n" -#: src/common/command.c:1001 +#: src/common/command.c:1006 msgid "Notify levels: " msgstr "Niveaux de notification: " -#: src/common/command.c:1029 src/common/command.c:1051 +#: src/common/command.c:1034 src/common/command.c:1056 #, c-format msgid "%s incorrect notify level (must be between %d and %d)\n" msgstr "%s niveau de notification incorrect (doit être entre %d et %d)\n" -#: src/common/command.c:1038 +#: src/common/command.c:1043 #, c-format msgid "%s incorrect buffer for notify (must be channel or private)\n" msgstr "" "%s tampon incorrect pour la notification (doit être un canal ou un privé)\n" -#: src/common/command.c:1118 +#: src/common/command.c:1123 #, c-format msgid "unknown parameter \"%s\" for \"%s\" command\n" msgstr "paramètre inconnu \"%s\" pour la commande \"%s\"\n" -#: src/common/command.c:1148 +#: src/common/command.c:1153 #, c-format msgid "%s already connected to server \"%s\"!\n" msgstr "%s déjà connecté au serveur \"%s\" !\n" -#: src/common/command.c:1156 +#: src/common/command.c:1161 #, c-format msgid "%s currently connecting to server \"%s\"!\n" msgstr "%s une connexion vers le serveur \"%s\" est en cours !\n" -#: src/common/command.c:1174 src/common/command.c:1249 +#: src/common/command.c:1179 src/common/command.c:1254 #, c-format msgid "%s server not found\n" msgstr "%s serveur non trouvé\n" -#: src/common/command.c:1204 src/common/command.c:1601 -#: src/common/command.c:1744 src/common/command.c:2441 -#: src/common/command.c:2457 +#: src/common/command.c:1209 src/common/command.c:1606 +#: src/common/command.c:1749 src/common/command.c:1892 +#: src/common/command.c:2589 src/common/command.c:2605 #, c-format msgid "%s unknown option for \"%s\" command\n" msgstr "%s option inconnue pour la commande \"%s\"\n" -#: src/common/command.c:1233 +#: src/common/command.c:1238 #, c-format msgid "%s not connected to server \"%s\"!\n" msgstr "%s non connecté au serveur \"%s\" !\n" -#: src/common/command.c:1241 +#: src/common/command.c:1246 msgid "Auto-reconnection is cancelled\n" msgstr "La reconnexion automatique est annulée\n" -#: src/common/command.c:1267 src/common/weechat.c:273 +#: src/common/command.c:1272 src/common/weechat.c:273 #, c-format msgid "%s internal commands:\n" msgstr "Commandes internes %s :\n" -#: src/common/command.c:1276 src/common/weechat.c:293 +#: src/common/command.c:1281 src/common/weechat.c:293 #, c-format msgid "IRC commands:\n" msgstr "Commandes IRC :\n" -#: src/common/command.c:1343 +#: src/common/command.c:1348 #, c-format msgid "No help available, \"%s\" is an unknown command\n" msgstr "Pas d'aide disponible, la commande \"%s\" est inconnue\n" -#: src/common/command.c:1361 +#: src/common/command.c:1366 msgid "New key binding:\n" msgstr "Nouvelle touche:\n" -#: src/common/command.c:1394 +#: src/common/command.c:1399 msgid "Key bindings:\n" msgstr "Associations de touches:\n" -#: src/common/command.c:1406 +#: src/common/command.c:1411 #, c-format msgid "Key \"%s\" unbinded\n" msgstr "Touche \"%s\" supprimée\n" -#: src/common/command.c:1411 +#: src/common/command.c:1416 #, c-format msgid "%s unable to unbind key \"%s\"\n" msgstr "%s impossible de supprimer la touche \"%s\"\n" -#: src/common/command.c:1419 src/common/weechat.c:324 +#: src/common/command.c:1424 src/common/weechat.c:324 #, c-format msgid "Internal key functions:\n" msgstr "Fonctions internes pour les touches:\n" -#: src/common/command.c:1438 +#: src/common/command.c:1443 msgid "Default key bindings restored\n" msgstr "Touches par défaut restaurées\n" -#: src/common/command.c:1444 +#: src/common/command.c:1449 #, c-format msgid "%s \"-yes\" argument is required for keys reset (securuty reason)\n" msgstr "" "%s le paramètre \"-yes\" est requis pour la réinitialisation des touches " "(raison de sécurité)\n" -#: src/common/command.c:1500 src/common/command.c:1643 +#: src/common/command.c:1505 src/common/command.c:1648 +#: src/common/command.c:1791 #, c-format msgid "Registered %s scripts:\n" msgstr "Scripts %s enregistrés :\n" -#: src/common/command.c:1517 src/common/command.c:1540 -#: src/common/command.c:1563 src/common/command.c:1660 -#: src/common/command.c:1683 src/common/command.c:1706 +#: src/common/command.c:1522 src/common/command.c:1545 +#: src/common/command.c:1568 src/common/command.c:1665 +#: src/common/command.c:1688 src/common/command.c:1711 +#: src/common/command.c:1808 src/common/command.c:1831 +#: src/common/command.c:1854 msgid " (none)\n" msgstr " (aucun)\n" -#: src/common/command.c:1522 src/common/command.c:1665 +#: src/common/command.c:1527 src/common/command.c:1670 +#: src/common/command.c:1813 #, c-format msgid "%s message handlers:\n" msgstr "Fonctions %s pour messages :\n" -#: src/common/command.c:1531 src/common/command.c:1674 +#: src/common/command.c:1536 src/common/command.c:1679 +#: src/common/command.c:1822 #, c-format msgid " IRC(%s) => %s(%s)\n" msgstr " IRC(%s) => %s(%s)\n" -#: src/common/command.c:1545 src/common/command.c:1688 +#: src/common/command.c:1550 src/common/command.c:1693 +#: src/common/command.c:1836 #, c-format msgid "%s command handlers:\n" msgstr "Commandes %s :\n" -#: src/common/command.c:1554 src/common/command.c:1697 +#: src/common/command.c:1559 src/common/command.c:1702 +#: src/common/command.c:1845 #, c-format msgid " Command /%s => %s(%s)\n" msgstr " Commande /%s => %s(%s)\n" -#: src/common/command.c:1614 +#: src/common/command.c:1619 msgid "" "WeeChat was build without Perl support.\n" "Please rebuild WeeChat with \"--enable-perl\" option for ./configure script\n" @@ -2911,7 +2940,7 @@ msgstr "" "Merci de reconstruire WeeChat avec l'option \"--enable-perl\" pour le " "script ./configure\n" -#: src/common/command.c:1757 +#: src/common/command.c:1762 msgid "" "WeeChat was build without Python support.\n" "Please rebuild WeeChat with \"--enable-python\" option for ./configure " @@ -2921,31 +2950,39 @@ msgstr "" "Merci de reconstruire WeeChat avec l'option \"--enable-python\" pour le " "script ./configure\n" -#: src/common/command.c:1805 +#: src/common/command.c:1905 +msgid "" +"WeeChat was build without Ruby support.\n" +"Please rebuild WeeChat with \"--enable-ruby\" option for ./configure script\n" +msgstr "" +"WeeChat a été construit sans le support Ruby.\n" +"Merci de reconstruire WeeChat avec l'option \"--enable-ruby\" pour le script ./configure\n" + +#: src/common/command.c:1953 msgid "No server.\n" msgstr "Pas de serveur.\n" -#: src/common/command.c:1816 +#: src/common/command.c:1964 #, c-format msgid "Server '%s' not found.\n" msgstr "Serveur '%s' non trouvé.\n" -#: src/common/command.c:1828 +#: src/common/command.c:1976 #, c-format msgid "%s missing servername for \"%s\" command\n" msgstr "%s il manque le nom du serveur pour la commande \"%s\"\n" -#: src/common/command.c:1836 +#: src/common/command.c:1984 #, c-format msgid "%s too much arguments for \"%s\" command, ignoring arguments\n" msgstr "%s trop de paramètres pour la commande \"%s\", paramètres ignorés\n" -#: src/common/command.c:1855 +#: src/common/command.c:2003 #, c-format msgid "%s server \"%s\" not found for \"%s\" command\n" msgstr "%s le serveur \"%s\" n'existe pas pour la commande \"%s\"\n" -#: src/common/command.c:1863 +#: src/common/command.c:2011 #, c-format msgid "" "%s you can not delete server \"%s\" because you are connected to. Try /" @@ -2954,106 +2991,106 @@ msgstr "" "%s vous ne pouvez pas supprimer le server \"%s\" car vous êtes connecté " "dessus. Essayez /disconnect %s avant.\n" -#: src/common/command.c:1879 src/common/command.c:2025 +#: src/common/command.c:2027 src/common/command.c:2173 msgid "Server" msgstr "Serveur" -#: src/common/command.c:1882 +#: src/common/command.c:2030 msgid "has been deleted\n" msgstr "a été supprimé\n" -#: src/common/command.c:1897 +#: src/common/command.c:2045 #, c-format msgid "%s missing parameters for \"%s\" command\n" msgstr "%s paramètres manquants pour la commande \"%s\"\n" -#: src/common/command.c:1907 +#: src/common/command.c:2055 #, c-format msgid "%s server \"%s\" already exists, can't create it!\n" msgstr "%s le serveur \"%s\" existe déjà, impossible de le créer !\n" -#: src/common/command.c:1936 src/common/command.c:1964 -#: src/common/command.c:1977 src/common/command.c:2003 +#: src/common/command.c:2084 src/common/command.c:2112 +#: src/common/command.c:2125 src/common/command.c:2151 #, c-format msgid "%s missing password for \"%s\" parameter\n" msgstr "%s mot de passe manquant pour le paramètre \"%s\"\n" -#: src/common/command.c:1949 +#: src/common/command.c:2097 #, c-format msgid "%s missing nick(s) for \"%s\" parameter\n" msgstr "%s pseudo(s) manquant(s) pour le paramètre \"%s\"\n" -#: src/common/command.c:1990 +#: src/common/command.c:2138 #, c-format msgid "%s missing command for \"%s\" parameter\n" msgstr "%s commande manquante pour le paramètre \"%s\"\n" -#: src/common/command.c:2028 +#: src/common/command.c:2176 msgid "created\n" msgstr "créé\n" -#: src/common/command.c:2034 +#: src/common/command.c:2182 #, c-format msgid "%s unable to create server\n" msgstr "%s impossible de créer le serveur\n" -#: src/common/command.c:2089 +#: src/common/command.c:2237 msgid "(unknown)" msgstr "(inconnu)" -#: src/common/command.c:2112 +#: src/common/command.c:2260 msgid "(password hidden) " msgstr "(mot de passe caché) " -#: src/common/command.c:2176 +#: src/common/command.c:2324 #, c-format msgid "%s server \"%s\" not found\n" msgstr "%s serveur \"%s\" non trouvé\n" -#: src/common/command.c:2207 src/common/command.c:2253 +#: src/common/command.c:2355 src/common/command.c:2401 #, c-format msgid "%s config option \"%s\" not found\n" msgstr "%s option de configuration \"%s\" non trouvée\n" -#: src/common/command.c:2212 src/common/command.c:2245 +#: src/common/command.c:2360 src/common/command.c:2393 #, c-format msgid "%s incorrect value for option \"%s\"\n" msgstr "%s valeur incorrecte pour l'option \"%s\"\n" -#: src/common/command.c:2228 +#: src/common/command.c:2376 #, c-format msgid "%s option \"%s\" can not be changed while WeeChat is running\n" msgstr "%s l'option \"%s\" ne peut pas être changée lorsque WeeChat tourne\n" -#: src/common/command.c:2327 +#: src/common/command.c:2475 #, c-format msgid "No config option found with \"%s\"\n" msgstr "Aucune option de configuration trouvée avec \"%s\"\n" -#: src/common/command.c:2330 +#: src/common/command.c:2478 msgid "No config option found\n" msgstr "Aucune option de configuration trouvée\n" -#: src/common/command.c:2336 +#: src/common/command.c:2484 #, c-format msgid "config option(s) found with \"%s\"\n" msgstr "option(s) de configuration trouvée(s) avec \"%s\"\n" -#: src/common/command.c:2339 +#: src/common/command.c:2487 msgid "config option(s) found\n" msgstr "option(s) de configuration trouvée(s)\n" -#: src/common/command.c:2359 +#: src/common/command.c:2507 #, c-format msgid "%s alias or command \"%s\" not found\n" msgstr "%s alias ou commande \"%s\" non trouvé\n" -#: src/common/command.c:2369 +#: src/common/command.c:2517 #, c-format msgid "Alias \"%s\" removed\n" msgstr "Alias \"%s\" supprimé\n" -#: src/common/command.c:2389 +#: src/common/command.c:2537 msgid "Opened windows:\n" msgstr "Fenêtres ouvertes:\n" diff --git a/weechat/po/weechat.pot b/weechat/po/weechat.pot index a17370ebe..6c0ba3253 100644 --- a/weechat/po/weechat.pot +++ b/weechat/po/weechat.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2005-08-16 16:52+0200\n" +"POT-Creation-Date: 2005-08-21 14:31+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -1207,7 +1207,7 @@ msgstr "" msgid "whois (secure connection)" msgstr "" -#: src/irc/irc-display.c:163 src/common/command.c:848 +#: src/irc/irc-display.c:163 src/common/command.c:853 msgid "Server: " msgstr "" @@ -1237,7 +1237,7 @@ msgstr "" msgid "(hidden)" msgstr "" -#: src/irc/irc-send.c:59 src/irc/irc-recv.c:3992 +#: src/irc/irc-send.c:59 src/irc/irc-recv.c:4008 msgid "unknown" msgstr "" @@ -1246,7 +1246,7 @@ msgstr "" msgid "%s: using local hostname \"%s\"\n" msgstr "" -#: src/irc/irc-send.c:126 src/common/command.c:726 +#: src/irc/irc-send.c:126 src/common/command.c:731 #, c-format msgid "%s cannot find nick for sending message\n" msgstr "" @@ -1262,8 +1262,9 @@ msgstr "" #: src/irc/irc-send.c:415 src/irc/irc-send.c:427 src/irc/irc-send.c:445 #: src/irc/irc-send.c:1097 src/irc/irc-send.c:1190 src/irc/irc-send.c:1722 -#: src/common/command.c:1191 src/common/command.c:1458 -#: src/common/command.c:1608 src/common/command.c:1751 +#: src/common/command.c:1196 src/common/command.c:1463 +#: src/common/command.c:1613 src/common/command.c:1756 +#: src/common/command.c:1899 #, c-format msgid "%s wrong argument count for \"%s\" command\n" msgstr "" @@ -1284,7 +1285,8 @@ msgstr "" msgid "%s nick \"%s\" not found for \"%s\" command\n" msgstr "" -#: src/irc/irc-send.c:1067 src/irc/irc-send.c:1375 src/irc/irc-recv.c:1819 +#: src/irc/irc-send.c:1067 src/irc/irc-send.c:1375 src/irc/irc-recv.c:1822 +#: src/irc/irc-recv.c:1900 #, c-format msgid "%s cannot create new private window \"%s\"\n" msgstr "" @@ -1303,8 +1305,8 @@ msgid "by" msgstr "" #: src/irc/irc-recv.c:282 src/irc/irc-recv.c:376 src/irc/irc-recv.c:875 -#: src/irc/irc-recv.c:1210 src/irc/irc-recv.c:1452 src/irc/irc-recv.c:3210 -#: src/irc/irc-recv.c:3277 +#: src/irc/irc-recv.c:1210 src/irc/irc-recv.c:1452 src/irc/irc-recv.c:3226 +#: src/irc/irc-recv.c:3293 #, c-format msgid "%s channel \"%s\" not found for \"%s\" command\n" msgstr "" @@ -1448,7 +1450,7 @@ msgid "removes voice from" msgstr "" #: src/irc/irc-recv.c:830 src/irc/irc-recv.c:915 src/irc/irc-recv.c:1284 -#: src/irc/irc-recv.c:1950 +#: src/irc/irc-recv.c:1966 #, c-format msgid "%s \"%s\" command received without host\n" msgstr "" @@ -1497,7 +1499,7 @@ msgstr "" msgid " has left " msgstr "" -#: src/irc/irc-recv.c:1333 src/irc/irc-recv.c:1845 +#: src/irc/irc-recv.c:1333 src/irc/irc-recv.c:1846 #, c-format msgid "On %s: * %s %s" msgstr "" @@ -1508,11 +1510,11 @@ msgid "Received a CTCP SOUND \"%s\" from " msgstr "" #: src/irc/irc-recv.c:1384 src/irc/irc-recv.c:1412 src/irc/irc-recv.c:1512 -#: src/irc/irc-recv.c:1548 src/irc/irc-recv.c:1880 +#: src/irc/irc-recv.c:1548 src/irc/irc-recv.c:1881 msgid "received from" msgstr "" -#: src/irc/irc-recv.c:1408 src/irc/irc-recv.c:1876 +#: src/irc/irc-recv.c:1408 src/irc/irc-recv.c:1877 msgid "Unknown CTCP " msgstr "" @@ -1525,10 +1527,10 @@ msgstr "" #: src/irc/irc-recv.c:1612 src/irc/irc-recv.c:1637 src/irc/irc-recv.c:1654 #: src/irc/irc-recv.c:1670 src/irc/irc-recv.c:1694 src/irc/irc-recv.c:1711 #: src/irc/irc-recv.c:1727 src/irc/irc-recv.c:1751 src/irc/irc-recv.c:1768 -#: src/irc/irc-recv.c:1783 src/irc/irc-recv.c:1926 src/irc/irc-recv.c:3576 -#: src/irc/irc-recv.c:3634 src/irc/irc-recv.c:3786 src/irc/irc-recv.c:3801 -#: src/irc/irc-recv.c:3816 src/irc/irc-recv.c:3831 src/irc/irc-recv.c:3844 -#: src/irc/irc-recv.c:3894 src/irc/irc-recv.c:3908 +#: src/irc/irc-recv.c:1783 src/irc/irc-recv.c:1942 src/irc/irc-recv.c:3592 +#: src/irc/irc-recv.c:3650 src/irc/irc-recv.c:3802 src/irc/irc-recv.c:3817 +#: src/irc/irc-recv.c:3832 src/irc/irc-recv.c:3847 src/irc/irc-recv.c:3860 +#: src/irc/irc-recv.c:3910 src/irc/irc-recv.c:3924 #, c-format msgid "%s cannot parse \"%s\" command\n" msgstr "" @@ -1538,197 +1540,197 @@ msgstr "" msgid "%s unknown DCC CHAT type received from " msgstr "" -#: src/irc/irc-recv.c:1905 src/irc/irc-dcc.c:1039 +#: src/irc/irc-recv.c:1921 src/irc/irc-dcc.c:1039 #, c-format msgid "Private %s> %s" msgstr "" -#: src/irc/irc-recv.c:1982 +#: src/irc/irc-recv.c:1998 msgid "has quit" msgstr "" -#: src/irc/irc-recv.c:2103 +#: src/irc/irc-recv.c:2119 #, c-format msgid "%s \"%s\" command received without channel\n" msgstr "" -#: src/irc/irc-recv.c:2131 +#: src/irc/irc-recv.c:2147 msgid " has changed topic for " msgstr "" -#: src/irc/irc-recv.c:2136 +#: src/irc/irc-recv.c:2152 #, c-format msgid " to: \"%s\"\n" msgstr "" -#: src/irc/irc-recv.c:2142 +#: src/irc/irc-recv.c:2158 msgid " has unset topic for " msgstr "" -#: src/irc/irc-recv.c:2260 +#: src/irc/irc-recv.c:2276 #, c-format msgid " is away: %s\n" msgstr "" -#: src/irc/irc-recv.c:2334 +#: src/irc/irc-recv.c:2350 msgid "Users online: " msgstr "" -#: src/irc/irc-recv.c:2781 +#: src/irc/irc-recv.c:2797 msgid "idle: " msgstr "" -#: src/irc/irc-recv.c:2789 +#: src/irc/irc-recv.c:2805 msgid "days" msgstr "" -#: src/irc/irc-recv.c:2789 +#: src/irc/irc-recv.c:2805 msgid "day" msgstr "" -#: src/irc/irc-recv.c:2799 +#: src/irc/irc-recv.c:2815 msgid "hours" msgstr "" -#: src/irc/irc-recv.c:2799 +#: src/irc/irc-recv.c:2815 msgid "hour" msgstr "" -#: src/irc/irc-recv.c:2805 +#: src/irc/irc-recv.c:2821 msgid "minutes" msgstr "" -#: src/irc/irc-recv.c:2805 +#: src/irc/irc-recv.c:2821 msgid "minute" msgstr "" -#: src/irc/irc-recv.c:2811 +#: src/irc/irc-recv.c:2827 msgid "seconds" msgstr "" -#: src/irc/irc-recv.c:2811 +#: src/irc/irc-recv.c:2827 msgid "second" msgstr "" -#: src/irc/irc-recv.c:2816 +#: src/irc/irc-recv.c:2832 msgid "signon at: " msgstr "" -#: src/irc/irc-recv.c:2904 +#: src/irc/irc-recv.c:2920 msgid "Channels: " msgstr "" -#: src/irc/irc-recv.c:3156 +#: src/irc/irc-recv.c:3172 msgid "No topic set for " msgstr "" -#: src/irc/irc-recv.c:3198 +#: src/irc/irc-recv.c:3214 msgid "Topic for " msgstr "" -#: src/irc/irc-recv.c:3202 +#: src/irc/irc-recv.c:3218 #, c-format msgid " is: \"%s\"\n" msgstr "" -#: src/irc/irc-recv.c:3220 src/irc/irc-recv.c:3304 src/irc/irc-recv.c:3357 +#: src/irc/irc-recv.c:3236 src/irc/irc-recv.c:3320 src/irc/irc-recv.c:3373 #, c-format msgid "%s cannot identify channel for \"%s\" command\n" msgstr "" -#: src/irc/irc-recv.c:3266 +#: src/irc/irc-recv.c:3282 msgid "Topic set by " msgstr "" -#: src/irc/irc-recv.c:3286 +#: src/irc/irc-recv.c:3302 #, c-format msgid "%s cannot identify date/time for \"%s\" command\n" msgstr "" -#: src/irc/irc-recv.c:3295 src/irc/irc-recv.c:3366 +#: src/irc/irc-recv.c:3311 src/irc/irc-recv.c:3382 #, c-format msgid "%s cannot identify nickname for \"%s\" command\n" msgstr "" -#: src/irc/irc-recv.c:3345 +#: src/irc/irc-recv.c:3361 msgid "has invited" msgstr "" -#: src/irc/irc-recv.c:3348 src/irc/irc-recv.c:3499 +#: src/irc/irc-recv.c:3364 src/irc/irc-recv.c:3515 msgid "on" msgstr "" -#: src/irc/irc-recv.c:3622 +#: src/irc/irc-recv.c:3638 #, c-format msgid "%s cannot create nick \"%s\" for channel \"%s\"\n" msgstr "" -#: src/irc/irc-recv.c:3678 +#: src/irc/irc-recv.c:3694 msgid "Nicks " msgstr "" -#: src/irc/irc-recv.c:3698 +#: src/irc/irc-recv.c:3714 msgid "Channel " msgstr "" -#: src/irc/irc-recv.c:3709 +#: src/irc/irc-recv.c:3725 msgid "nicks" msgstr "" -#: src/irc/irc-recv.c:3709 +#: src/irc/irc-recv.c:3725 msgid "nick" msgstr "" -#: src/irc/irc-recv.c:3717 +#: src/irc/irc-recv.c:3733 msgid "ops" msgstr "" -#: src/irc/irc-recv.c:3717 +#: src/irc/irc-recv.c:3733 msgid "op" msgstr "" -#: src/irc/irc-recv.c:3726 +#: src/irc/irc-recv.c:3742 msgid "halfops" msgstr "" -#: src/irc/irc-recv.c:3726 +#: src/irc/irc-recv.c:3742 msgid "halfop" msgstr "" -#: src/irc/irc-recv.c:3735 +#: src/irc/irc-recv.c:3751 msgid "voices" msgstr "" -#: src/irc/irc-recv.c:3735 +#: src/irc/irc-recv.c:3751 msgid "voice" msgstr "" -#: src/irc/irc-recv.c:3744 +#: src/irc/irc-recv.c:3760 msgid "normal" msgstr "" -#: src/irc/irc-recv.c:3857 +#: src/irc/irc-recv.c:3873 msgid "banned by" msgstr "" -#: src/irc/irc-recv.c:3946 +#: src/irc/irc-recv.c:3962 #, c-format msgid "%s: nickname \"%s\" is already in use, trying 2nd nickname \"%s\"\n" msgstr "" -#: src/irc/irc-recv.c:3958 +#: src/irc/irc-recv.c:3974 #, c-format msgid "%s: nickname \"%s\" is already in use, trying 3rd nickname \"%s\"\n" msgstr "" -#: src/irc/irc-recv.c:3970 +#: src/irc/irc-recv.c:3986 #, c-format msgid "" "%s: all declared nicknames are already in use, closing connection with " "server!\n" msgstr "" -#: src/irc/irc-recv.c:3980 +#: src/irc/irc-recv.c:3996 #, c-format msgid "%s: nickname \"%s\" is already in use, trying 1st nickname \"%s\"\n" msgstr "" @@ -1889,7 +1891,7 @@ msgid "Aborting active DCC: \"%s\" from %s\n" msgstr "" #: src/plugins/perl/wee-perl.c:88 src/plugins/perl/wee-perl.c:463 -#: src/plugins/python/wee-python.c:81 +#: src/plugins/python/wee-python.c:81 src/plugins/ruby/wee-ruby.c:89 #, c-format msgid "" "%s error: unable to register \"%s\" script (another script already exists " @@ -1897,13 +1899,13 @@ msgid "" msgstr "" #: src/plugins/perl/wee-perl.c:112 src/plugins/perl/wee-perl.c:487 -#: src/plugins/python/wee-python.c:105 +#: src/plugins/python/wee-python.c:105 src/plugins/ruby/wee-ruby.c:113 #, c-format msgid "Registered %s script: \"%s\", version %s (%s)\n" msgstr "" #: src/plugins/perl/wee-perl.c:119 src/plugins/perl/wee-perl.c:494 -#: src/plugins/python/wee-python.c:112 +#: src/plugins/python/wee-python.c:112 src/plugins/ruby/wee-ruby.c:120 #, c-format msgid "%s error: unable to load script \"%s\" (not enough memory)\n" msgstr "" @@ -1915,17 +1917,22 @@ msgstr "" #: src/plugins/python/wee-python.c:142 src/plugins/python/wee-python.c:179 #: src/plugins/python/wee-python.c:211 src/plugins/python/wee-python.c:243 #: src/plugins/python/wee-python.c:272 src/plugins/python/wee-python.c:311 +#: src/plugins/ruby/wee-ruby.c:58 src/plugins/ruby/wee-ruby.c:146 +#: src/plugins/ruby/wee-ruby.c:192 src/plugins/ruby/wee-ruby.c:226 +#: src/plugins/ruby/wee-ruby.c:267 src/plugins/ruby/wee-ruby.c:298 +#: src/plugins/ruby/wee-ruby.c:339 #, c-format msgid "%s error: wrong parameters for \"%s\" function\n" msgstr "" #: src/plugins/perl/wee-perl.c:270 src/plugins/perl/wee-perl.c:374 #: src/plugins/perl/wee-perl.c:723 src/plugins/python/wee-python.c:331 +#: src/plugins/ruby/wee-ruby.c:367 #, c-format msgid "%s error: server not found for \"%s\" function\n" msgstr "" -#: src/plugins/perl/wee-perl.c:873 src/plugins/python/wee-python.c:456 +#: src/plugins/perl/wee-perl.c:873 src/plugins/python/wee-python.c:457 #, c-format msgid "Loading %s module \"weechat\"\n" msgstr "" @@ -1941,68 +1948,71 @@ msgid "%s error: too much values from \"%s\" (%d). Expected: 1.\n" msgstr "" #: src/plugins/perl/wee-perl.c:964 src/plugins/perl/wee-perl.c:966 -#: src/plugins/python/wee-python.c:614 src/plugins/python/wee-python.c:616 +#: src/plugins/python/wee-python.c:615 src/plugins/python/wee-python.c:617 #, c-format msgid "Loading %s script \"%s\"\n" msgstr "" -#: src/plugins/perl/wee-perl.c:1015 src/plugins/python/wee-python.c:685 +#: src/plugins/perl/wee-perl.c:1015 src/plugins/python/wee-python.c:686 +#: src/plugins/ruby/wee-ruby.c:722 #, c-format msgid "Unloading %s script \"%s\"\n" msgstr "" -#: src/plugins/perl/wee-perl.c:1032 src/plugins/python/wee-python.c:702 +#: src/plugins/perl/wee-perl.c:1032 src/plugins/python/wee-python.c:703 +#: src/plugins/ruby/wee-ruby.c:739 #, c-format msgid "Unloading all %s scripts...\n" msgstr "" -#: src/plugins/perl/wee-perl.c:1037 src/plugins/python/wee-python.c:707 +#: src/plugins/perl/wee-perl.c:1037 src/plugins/python/wee-python.c:708 +#: src/plugins/ruby/wee-ruby.c:744 #, c-format msgid "%s scripts unloaded\n" msgstr "" -#: src/plugins/python/wee-python.c:451 +#: src/plugins/python/wee-python.c:452 #, c-format msgid "%s error: error while launching interpreter\n" msgstr "" -#: src/plugins/python/wee-python.c:480 +#: src/plugins/python/wee-python.c:481 #, c-format msgid "%s error: error while redirecting stdout and stderr\n" msgstr "" -#: src/plugins/python/wee-python.c:533 src/plugins/python/wee-python.c:561 -#: src/plugins/python/wee-python.c:593 +#: src/plugins/python/wee-python.c:534 src/plugins/python/wee-python.c:562 +#: src/plugins/python/wee-python.c:594 #, c-format msgid "%s error: unable to run function \"%s\" in script (not enough memory)\n" msgstr "" -#: src/plugins/python/wee-python.c:583 +#: src/plugins/python/wee-python.c:584 #, c-format msgid "%s error: error while running function \"%s\"\n" msgstr "" -#: src/plugins/python/wee-python.c:622 +#: src/plugins/python/wee-python.c:623 #, c-format msgid "%s error: error while opening file \"%s\"\n" msgstr "" -#: src/plugins/python/wee-python.c:631 +#: src/plugins/python/wee-python.c:632 #, c-format msgid "%s error: error while parsing file \"%s\"\n" msgstr "" -#: src/plugins/python/wee-python.c:733 +#: src/plugins/python/wee-python.c:734 #, c-format msgid "%s error: error while freeing interpreter\n" msgstr "" -#: src/plugins/plugins.c:93 +#: src/plugins/plugins.c:97 #, c-format msgid "Auto-loading %s script: %s%s%s\n" msgstr "" -#: src/plugins/plugins.c:212 +#: src/plugins/plugins.c:223 #, c-format msgid "%s unable to add handler for \"%s\" message (not enough memory)\n" msgstr "" @@ -2012,60 +2022,60 @@ msgstr "" msgid "%s lag is high, disconnecting from server...\n" msgstr "" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "bytes" msgstr "" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "Kb" msgstr "" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "Mb" msgstr "" -#: src/gui/curses/gui-display.c:684 +#: src/gui/curses/gui-display.c:690 msgid "Gb" msgstr "" -#: src/gui/curses/gui-display.c:1119 +#: src/gui/curses/gui-display.c:1131 msgid "(away)" msgstr "" -#: src/gui/curses/gui-display.c:1236 +#: src/gui/curses/gui-display.c:1248 msgid "[not connected]" msgstr "" -#: src/gui/curses/gui-display.c:1252 +#: src/gui/curses/gui-display.c:1264 msgid "Act: " msgstr "" -#: src/gui/curses/gui-display.c:1305 +#: src/gui/curses/gui-display.c:1317 #, c-format msgid "Lag: %.1f" msgstr "" -#: src/gui/curses/gui-display.c:1326 +#: src/gui/curses/gui-display.c:1338 msgid "-MORE-" msgstr "" -#: src/gui/curses/gui-display.c:1516 +#: src/gui/curses/gui-display.c:1528 msgid " [A] Accept" msgstr "" -#: src/gui/curses/gui-display.c:1517 src/gui/curses/gui-display.c:1521 +#: src/gui/curses/gui-display.c:1529 src/gui/curses/gui-display.c:1533 msgid " [C] Cancel" msgstr "" -#: src/gui/curses/gui-display.c:1526 +#: src/gui/curses/gui-display.c:1538 msgid " [R] Remove" msgstr "" -#: src/gui/curses/gui-display.c:1530 +#: src/gui/curses/gui-display.c:1542 msgid " [P] Purge old DCC" msgstr "" -#: src/gui/curses/gui-display.c:1531 +#: src/gui/curses/gui-display.c:1543 msgid " [Q] Close DCC view" msgstr "" @@ -2229,7 +2239,7 @@ msgstr "" msgid "grab a key" msgstr "" -#: src/gui/gui-keyboard.c:426 src/common/command.c:1473 +#: src/gui/gui-keyboard.c:426 src/common/command.c:1478 #, c-format msgid "%s unable to bind key \"%s\"\n" msgstr "" @@ -2358,7 +2368,7 @@ msgstr "" msgid "list/load/unload Perl scripts" msgstr "" -#: src/common/command.c:83 src/common/command.c:88 +#: src/common/command.c:83 src/common/command.c:88 src/common/command.c:93 msgid "[load filename] | [autoload] | [reload] | [unload]" msgstr "" @@ -2379,10 +2389,20 @@ msgid "" msgstr "" #: src/common/command.c:92 +msgid "list/load/unload Ruby scripts" +msgstr "" + +#: src/common/command.c:94 +msgid "" +"filename: Ruby script (file) to load\n" +"Without argument, /ruby command lists all loaded Ruby scripts." +msgstr "" + +#: src/common/command.c:97 msgid "list, add or remove servers" msgstr "" -#: src/common/command.c:93 +#: src/common/command.c:98 msgid "" "[servername] | [servername hostname port [-auto | -noauto] [-ipv6] [-ssl] [-" "pwd password] [-nicks nick1 [nick2 [nick3]]] [-username username] [-realname " @@ -2390,7 +2410,7 @@ msgid "" "servername]" msgstr "" -#: src/common/command.c:98 +#: src/common/command.c:103 msgid "" "servername: server name, for internal & display use\n" "hostname: name or IP address of server\n" @@ -2405,53 +2425,53 @@ msgid "" "realname: real name of user" msgstr "" -#: src/common/command.c:110 +#: src/common/command.c:115 msgid "save config to disk" msgstr "" -#: src/common/command.c:111 +#: src/common/command.c:116 msgid "[file]" msgstr "" -#: src/common/command.c:111 +#: src/common/command.c:116 msgid "file: filename for writing config" msgstr "" -#: src/common/command.c:113 +#: src/common/command.c:118 msgid "set config parameters" msgstr "" -#: src/common/command.c:114 +#: src/common/command.c:119 msgid "[option[=value]]" msgstr "" -#: src/common/command.c:114 +#: src/common/command.c:119 msgid "" "option: name of an option\n" "value: value for option" msgstr "" -#: src/common/command.c:116 +#: src/common/command.c:121 msgid "remove an alias" msgstr "" -#: src/common/command.c:117 +#: src/common/command.c:122 msgid "alias_name" msgstr "" -#: src/common/command.c:117 +#: src/common/command.c:122 msgid "alias_name: name of alias to remove" msgstr "" -#: src/common/command.c:119 +#: src/common/command.c:124 msgid "manage windows" msgstr "" -#: src/common/command.c:120 +#: src/common/command.c:125 msgid "[list | splith | splitv | [merge [down | up | left | right | all]]]" msgstr "" -#: src/common/command.c:121 +#: src/common/command.c:126 msgid "" "list: list opened windows (no parameter implies this list)\n" "splith: split current window horizontally\n" @@ -2459,395 +2479,408 @@ msgid "" "merge: merge window with another" msgstr "" -#: src/common/command.c:267 +#: src/common/command.c:272 #, c-format msgid "%s alias or command \"%s\" already exists!\n" msgstr "" -#: src/common/command.c:277 +#: src/common/command.c:282 #, c-format msgid "%s alias cannot run another alias!\n" msgstr "" -#: src/common/command.c:284 +#: src/common/command.c:289 #, c-format msgid "%s target command \"%s\" does not exist!\n" msgstr "" -#: src/common/command.c:492 +#: src/common/command.c:497 #, c-format msgid "%s wrong argument count for %s command \"%s\" (expected: %d arg%s)\n" msgstr "" -#: src/common/command.c:504 +#: src/common/command.c:509 #, c-format msgid "" "%s wrong argument count for %s command \"%s\" (expected: between %d and %d " "arg%s)\n" msgstr "" -#: src/common/command.c:526 src/common/command.c:596 +#: src/common/command.c:531 src/common/command.c:601 #, c-format msgid "%s command \"%s\" failed\n" msgstr "" -#: src/common/command.c:554 +#: src/common/command.c:559 #, c-format msgid "%s wrong argument count for IRC command \"%s\" (expected: %d arg%s)\n" msgstr "" -#: src/common/command.c:566 +#: src/common/command.c:571 #, c-format msgid "" "%s wrong argument count for IRC command \"%s\" (expected: between %d and %d " "arg%s)\n" msgstr "" -#: src/common/command.c:581 +#: src/common/command.c:586 #, c-format msgid "%s command \"%s\" needs a server connection!\n" msgstr "" -#: src/common/command.c:645 +#: src/common/command.c:650 #, c-format msgid "%s unknown command \"%s\" (type /help for help)\n" msgstr "" -#: src/common/command.c:748 +#: src/common/command.c:753 #, c-format msgid "%s unable to call handler for message (not enough memory)\n" msgstr "" -#: src/common/command.c:756 +#: src/common/command.c:761 msgid "This window is not a channel!\n" msgstr "" -#: src/common/command.c:784 src/common/command.c:808 src/common/command.c:913 +#: src/common/command.c:789 src/common/command.c:813 src/common/command.c:918 #, c-format msgid "%s missing arguments for \"%s\" command\n" msgstr "" -#: src/common/command.c:793 +#: src/common/command.c:798 #, c-format msgid "Alias \"%s\" => \"%s\" created\n" msgstr "" -#: src/common/command.c:799 +#: src/common/command.c:804 #, c-format msgid "Failed to create alias \"%s\" => \"%s\" (not enough memory)\n" msgstr "" -#: src/common/command.c:819 +#: src/common/command.c:824 msgid "List of aliases:\n" msgstr "" -#: src/common/command.c:831 +#: src/common/command.c:836 msgid "No alias defined.\n" msgstr "" -#: src/common/command.c:854 +#: src/common/command.c:859 msgid "Channel: " msgstr "" -#: src/common/command.c:857 src/common/command.c:867 +#: src/common/command.c:862 src/common/command.c:872 msgid " (server: " msgstr "" -#: src/common/command.c:864 +#: src/common/command.c:869 msgid "Private with: " msgstr "" -#: src/common/command.c:893 +#: src/common/command.c:898 msgid "Opened buffers:\n" msgstr "" -#: src/common/command.c:936 +#: src/common/command.c:941 #, c-format msgid "%s incorrect buffer number\n" msgstr "" -#: src/common/command.c:950 +#: src/common/command.c:955 #, c-format msgid "%s can not close the single buffer\n" msgstr "" -#: src/common/command.c:960 +#: src/common/command.c:965 #, c-format msgid "%s can not close server buffer while channels are opened\n" msgstr "" -#: src/common/command.c:1001 +#: src/common/command.c:1006 msgid "Notify levels: " msgstr "" -#: src/common/command.c:1029 src/common/command.c:1051 +#: src/common/command.c:1034 src/common/command.c:1056 #, c-format msgid "%s incorrect notify level (must be between %d and %d)\n" msgstr "" -#: src/common/command.c:1038 +#: src/common/command.c:1043 #, c-format msgid "%s incorrect buffer for notify (must be channel or private)\n" msgstr "" -#: src/common/command.c:1118 +#: src/common/command.c:1123 #, c-format msgid "unknown parameter \"%s\" for \"%s\" command\n" msgstr "" -#: src/common/command.c:1148 +#: src/common/command.c:1153 #, c-format msgid "%s already connected to server \"%s\"!\n" msgstr "" -#: src/common/command.c:1156 +#: src/common/command.c:1161 #, c-format msgid "%s currently connecting to server \"%s\"!\n" msgstr "" -#: src/common/command.c:1174 src/common/command.c:1249 +#: src/common/command.c:1179 src/common/command.c:1254 #, c-format msgid "%s server not found\n" msgstr "" -#: src/common/command.c:1204 src/common/command.c:1601 -#: src/common/command.c:1744 src/common/command.c:2441 -#: src/common/command.c:2457 +#: src/common/command.c:1209 src/common/command.c:1606 +#: src/common/command.c:1749 src/common/command.c:1892 +#: src/common/command.c:2589 src/common/command.c:2605 #, c-format msgid "%s unknown option for \"%s\" command\n" msgstr "" -#: src/common/command.c:1233 +#: src/common/command.c:1238 #, c-format msgid "%s not connected to server \"%s\"!\n" msgstr "" -#: src/common/command.c:1241 +#: src/common/command.c:1246 msgid "Auto-reconnection is cancelled\n" msgstr "" -#: src/common/command.c:1267 src/common/weechat.c:273 +#: src/common/command.c:1272 src/common/weechat.c:273 #, c-format msgid "%s internal commands:\n" msgstr "" -#: src/common/command.c:1276 src/common/weechat.c:293 +#: src/common/command.c:1281 src/common/weechat.c:293 #, c-format msgid "IRC commands:\n" msgstr "" -#: src/common/command.c:1343 +#: src/common/command.c:1348 #, c-format msgid "No help available, \"%s\" is an unknown command\n" msgstr "" -#: src/common/command.c:1361 +#: src/common/command.c:1366 msgid "New key binding:\n" msgstr "" -#: src/common/command.c:1394 +#: src/common/command.c:1399 msgid "Key bindings:\n" msgstr "" -#: src/common/command.c:1406 -#, c-format -msgid "Key \"%s\" unbinded\n" -msgstr "" - #: src/common/command.c:1411 #, c-format +msgid "Key \"%s\" unbinded\n" +msgstr "" + +#: src/common/command.c:1416 +#, c-format msgid "%s unable to unbind key \"%s\"\n" msgstr "" -#: src/common/command.c:1419 src/common/weechat.c:324 +#: src/common/command.c:1424 src/common/weechat.c:324 #, c-format msgid "Internal key functions:\n" msgstr "" -#: src/common/command.c:1438 +#: src/common/command.c:1443 msgid "Default key bindings restored\n" msgstr "" -#: src/common/command.c:1444 +#: src/common/command.c:1449 #, c-format msgid "%s \"-yes\" argument is required for keys reset (securuty reason)\n" msgstr "" -#: src/common/command.c:1500 src/common/command.c:1643 +#: src/common/command.c:1505 src/common/command.c:1648 +#: src/common/command.c:1791 #, c-format msgid "Registered %s scripts:\n" msgstr "" -#: src/common/command.c:1517 src/common/command.c:1540 -#: src/common/command.c:1563 src/common/command.c:1660 -#: src/common/command.c:1683 src/common/command.c:1706 +#: src/common/command.c:1522 src/common/command.c:1545 +#: src/common/command.c:1568 src/common/command.c:1665 +#: src/common/command.c:1688 src/common/command.c:1711 +#: src/common/command.c:1808 src/common/command.c:1831 +#: src/common/command.c:1854 msgid " (none)\n" msgstr "" -#: src/common/command.c:1522 src/common/command.c:1665 +#: src/common/command.c:1527 src/common/command.c:1670 +#: src/common/command.c:1813 #, c-format msgid "%s message handlers:\n" msgstr "" -#: src/common/command.c:1531 src/common/command.c:1674 +#: src/common/command.c:1536 src/common/command.c:1679 +#: src/common/command.c:1822 #, c-format msgid " IRC(%s) => %s(%s)\n" msgstr "" -#: src/common/command.c:1545 src/common/command.c:1688 +#: src/common/command.c:1550 src/common/command.c:1693 +#: src/common/command.c:1836 #, c-format msgid "%s command handlers:\n" msgstr "" -#: src/common/command.c:1554 src/common/command.c:1697 +#: src/common/command.c:1559 src/common/command.c:1702 +#: src/common/command.c:1845 #, c-format msgid " Command /%s => %s(%s)\n" msgstr "" -#: src/common/command.c:1614 +#: src/common/command.c:1619 msgid "" "WeeChat was build without Perl support.\n" "Please rebuild WeeChat with \"--enable-perl\" option for ./configure script\n" msgstr "" -#: src/common/command.c:1757 +#: src/common/command.c:1762 msgid "" "WeeChat was build without Python support.\n" "Please rebuild WeeChat with \"--enable-python\" option for ./configure " "script\n" msgstr "" -#: src/common/command.c:1805 +#: src/common/command.c:1905 +msgid "" +"WeeChat was build without Ruby support.\n" +"Please rebuild WeeChat with \"--enable-ruby\" option for ./configure script\n" +msgstr "" + +#: src/common/command.c:1953 msgid "No server.\n" msgstr "" -#: src/common/command.c:1816 +#: src/common/command.c:1964 #, c-format msgid "Server '%s' not found.\n" msgstr "" -#: src/common/command.c:1828 +#: src/common/command.c:1976 #, c-format msgid "%s missing servername for \"%s\" command\n" msgstr "" -#: src/common/command.c:1836 +#: src/common/command.c:1984 #, c-format msgid "%s too much arguments for \"%s\" command, ignoring arguments\n" msgstr "" -#: src/common/command.c:1855 +#: src/common/command.c:2003 #, c-format msgid "%s server \"%s\" not found for \"%s\" command\n" msgstr "" -#: src/common/command.c:1863 +#: src/common/command.c:2011 #, c-format msgid "" "%s you can not delete server \"%s\" because you are connected to. Try /" "disconnect %s before.\n" msgstr "" -#: src/common/command.c:1879 src/common/command.c:2025 +#: src/common/command.c:2027 src/common/command.c:2173 msgid "Server" msgstr "" -#: src/common/command.c:1882 +#: src/common/command.c:2030 msgid "has been deleted\n" msgstr "" -#: src/common/command.c:1897 +#: src/common/command.c:2045 #, c-format msgid "%s missing parameters for \"%s\" command\n" msgstr "" -#: src/common/command.c:1907 +#: src/common/command.c:2055 #, c-format msgid "%s server \"%s\" already exists, can't create it!\n" msgstr "" -#: src/common/command.c:1936 src/common/command.c:1964 -#: src/common/command.c:1977 src/common/command.c:2003 +#: src/common/command.c:2084 src/common/command.c:2112 +#: src/common/command.c:2125 src/common/command.c:2151 #, c-format msgid "%s missing password for \"%s\" parameter\n" msgstr "" -#: src/common/command.c:1949 +#: src/common/command.c:2097 #, c-format msgid "%s missing nick(s) for \"%s\" parameter\n" msgstr "" -#: src/common/command.c:1990 +#: src/common/command.c:2138 #, c-format msgid "%s missing command for \"%s\" parameter\n" msgstr "" -#: src/common/command.c:2028 +#: src/common/command.c:2176 msgid "created\n" msgstr "" -#: src/common/command.c:2034 +#: src/common/command.c:2182 #, c-format msgid "%s unable to create server\n" msgstr "" -#: src/common/command.c:2089 +#: src/common/command.c:2237 msgid "(unknown)" msgstr "" -#: src/common/command.c:2112 +#: src/common/command.c:2260 msgid "(password hidden) " msgstr "" -#: src/common/command.c:2176 +#: src/common/command.c:2324 #, c-format msgid "%s server \"%s\" not found\n" msgstr "" -#: src/common/command.c:2207 src/common/command.c:2253 +#: src/common/command.c:2355 src/common/command.c:2401 #, c-format msgid "%s config option \"%s\" not found\n" msgstr "" -#: src/common/command.c:2212 src/common/command.c:2245 +#: src/common/command.c:2360 src/common/command.c:2393 #, c-format msgid "%s incorrect value for option \"%s\"\n" msgstr "" -#: src/common/command.c:2228 +#: src/common/command.c:2376 #, c-format msgid "%s option \"%s\" can not be changed while WeeChat is running\n" msgstr "" -#: src/common/command.c:2327 +#: src/common/command.c:2475 #, c-format msgid "No config option found with \"%s\"\n" msgstr "" -#: src/common/command.c:2330 +#: src/common/command.c:2478 msgid "No config option found\n" msgstr "" -#: src/common/command.c:2336 +#: src/common/command.c:2484 #, c-format msgid "config option(s) found with \"%s\"\n" msgstr "" -#: src/common/command.c:2339 +#: src/common/command.c:2487 msgid "config option(s) found\n" msgstr "" -#: src/common/command.c:2359 +#: src/common/command.c:2507 #, c-format msgid "%s alias or command \"%s\" not found\n" msgstr "" -#: src/common/command.c:2369 +#: src/common/command.c:2517 #, c-format msgid "Alias \"%s\" removed\n" msgstr "" -#: src/common/command.c:2389 +#: src/common/command.c:2537 msgid "Opened windows:\n" msgstr "" diff --git a/weechat/src/common/command.c b/weechat/src/common/command.c index 28da3ce4f..0835cf192 100644 --- a/weechat/src/common/command.c +++ b/weechat/src/common/command.c @@ -89,6 +89,11 @@ t_weechat_command weechat_commands[] = N_("filename: Python script (file) to load\n" "Without argument, /python command lists all loaded Python scripts."), 0, 2, weechat_cmd_python, NULL }, + { "ruby", N_("list/load/unload Ruby scripts"), + N_("[load filename] | [autoload] | [reload] | [unload]"), + N_("filename: Ruby script (file) to load\n" + "Without argument, /ruby command lists all loaded Ruby scripts."), + 0, 2, weechat_cmd_ruby, NULL }, { "server", N_("list, add or remove servers"), N_("[servername] | " "[servername hostname port [-auto | -noauto] [-ipv6] [-ssl] [-pwd password] [-nicks nick1 " @@ -1486,7 +1491,7 @@ weechat_cmd_key (char *arguments) int weechat_cmd_perl (int argc, char **argv) { - #ifdef PLUGIN_PERL +#ifdef PLUGIN_PERL t_plugin_script *ptr_plugin_script; t_plugin_handler *ptr_plugin_handler; int handler_found, path_length; @@ -1608,7 +1613,7 @@ weechat_cmd_perl (int argc, char **argv) _("%s wrong argument count for \"%s\" command\n"), WEECHAT_ERROR, "perl"); } - #else +#else irc_display_prefix (NULL, PREFIX_ERROR); gui_printf (NULL, _("WeeChat was build without Perl support.\n" @@ -1617,7 +1622,7 @@ weechat_cmd_perl (int argc, char **argv) /* make gcc happy */ (void) argc; (void) argv; - #endif /* PLUGIN_PERL */ +#endif /* PLUGIN_PERL */ return 0; } @@ -1629,7 +1634,7 @@ weechat_cmd_perl (int argc, char **argv) int weechat_cmd_python (int argc, char **argv) { - #ifdef PLUGIN_PYTHON +#ifdef PLUGIN_PYTHON t_plugin_script *ptr_plugin_script; t_plugin_handler *ptr_plugin_handler; int handler_found, path_length; @@ -1751,7 +1756,7 @@ weechat_cmd_python (int argc, char **argv) _("%s wrong argument count for \"%s\" command\n"), WEECHAT_ERROR, "python"); } - #else +#else irc_display_prefix (NULL, PREFIX_ERROR); gui_printf (NULL, _("WeeChat was build without Python support.\n" @@ -1760,7 +1765,150 @@ weechat_cmd_python (int argc, char **argv) /* make gcc happy */ (void) argc; (void) argv; - #endif /* PLUGIN_PYTHON */ +#endif /* PLUGIN_PYTHON */ + + return 0; +} + +/* + * weechat_cmd_ruby: list/load/unload Ruby scripts + */ + +int +weechat_cmd_ruby (int argc, char **argv) +{ +#ifdef PLUGIN_RUBY + t_plugin_script *ptr_plugin_script; + t_plugin_handler *ptr_plugin_handler; + int handler_found, path_length; + char *path_script; + + switch (argc) + { + case 0: + /* list registered Ruby scripts */ + gui_printf (NULL, "\n"); + gui_printf (NULL, _("Registered %s scripts:\n"), "Ruby"); + if (ruby_scripts) + { + for (ptr_plugin_script = ruby_scripts; ptr_plugin_script; + ptr_plugin_script = ptr_plugin_script->next_script) + { + irc_display_prefix (NULL, PREFIX_PLUGIN); + gui_printf (NULL, " %s v%s%s%s\n", + ptr_plugin_script->name, + ptr_plugin_script->version, + (ptr_plugin_script->description[0]) ? " - " : "", + ptr_plugin_script->description); + } + } + else + { + irc_display_prefix (NULL, PREFIX_PLUGIN); + gui_printf (NULL, _(" (none)\n")); + } + + /* list Ruby message handlers */ + gui_printf (NULL, "\n"); + gui_printf (NULL, _("%s message handlers:\n"), "Ruby"); + handler_found = 0; + for (ptr_plugin_handler = plugin_msg_handlers; ptr_plugin_handler; + ptr_plugin_handler = ptr_plugin_handler->next_handler) + { + if (ptr_plugin_handler->plugin_type == PLUGIN_TYPE_RUBY) + { + handler_found = 1; + irc_display_prefix (NULL, PREFIX_PLUGIN); + gui_printf (NULL, _(" IRC(%s) => %s(%s)\n"), + ptr_plugin_handler->name, + "Ruby", + ptr_plugin_handler->function_name); + } + } + if (!handler_found) + { + irc_display_prefix (NULL, PREFIX_PLUGIN); + gui_printf (NULL, _(" (none)\n")); + } + + /* list Ruby command handlers */ + gui_printf (NULL, "\n"); + gui_printf (NULL, _("%s command handlers:\n"), "Ruby"); + handler_found = 0; + for (ptr_plugin_handler = plugin_cmd_handlers; ptr_plugin_handler; + ptr_plugin_handler = ptr_plugin_handler->next_handler) + { + if (ptr_plugin_handler->plugin_type == PLUGIN_TYPE_RUBY) + { + handler_found = 1; + irc_display_prefix (NULL, PREFIX_PLUGIN); + gui_printf (NULL, _(" Command /%s => %s(%s)\n"), + ptr_plugin_handler->name, + "Ruby", + ptr_plugin_handler->function_name); + } + } + if (!handler_found) + { + irc_display_prefix (NULL, PREFIX_PLUGIN); + gui_printf (NULL, _(" (none)\n")); + } + + break; + case 1: + if (strcasecmp (argv[0], "autoload") == 0) + plugin_auto_load (PLUGIN_TYPE_RUBY, "ruby/autoload"); + else if (strcasecmp (argv[0], "reload") == 0) + { + plugin_unload (PLUGIN_TYPE_RUBY, NULL); + plugin_auto_load (PLUGIN_TYPE_RUBY, "ruby/autoload"); + } + else if (strcasecmp (argv[0], "unload") == 0) + plugin_unload (PLUGIN_TYPE_RUBY, NULL); + break; + case 2: + if (strcasecmp (argv[0], "load") == 0) + { + /* load Ruby script */ + if (strstr(argv[1], DIR_SEPARATOR)) + path_script = NULL; + else + { + path_length = strlen (weechat_home) + strlen (argv[1]) + 9; + path_script = (char *) malloc (path_length * sizeof (char)); + snprintf (path_script, path_length, "%s%s%s%s%s", + weechat_home, DIR_SEPARATOR, "ruby", + DIR_SEPARATOR, argv[1]); + } + plugin_load (PLUGIN_TYPE_RUBY, + (path_script) ? path_script : argv[1]); + if (path_script) + free (path_script); + } + else + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s unknown option for \"%s\" command\n"), + WEECHAT_ERROR, "ruby"); + } + break; + default: + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s wrong argument count for \"%s\" command\n"), + WEECHAT_ERROR, "ruby"); + } +#else + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("WeeChat was build without Ruby support.\n" + "Please rebuild WeeChat with " + "\"--enable-ruby\" option for ./configure script\n")); + /* make gcc happy */ + (void) argc; + (void) argv; +#endif /* PLUGIN_RUBY */ return 0; } diff --git a/weechat/src/common/command.h b/weechat/src/common/command.h index f839f4ab2..35c19bc5e 100644 --- a/weechat/src/common/command.h +++ b/weechat/src/common/command.h @@ -72,6 +72,7 @@ extern int weechat_cmd_help (int, char **); extern int weechat_cmd_key (char *); extern int weechat_cmd_perl (int, char **); extern int weechat_cmd_python (int, char **); +extern int weechat_cmd_ruby (int, char **); extern int weechat_cmd_save (int, char **); extern int weechat_cmd_server (int, char **); extern int weechat_cmd_set (char *); diff --git a/weechat/src/plugins/Makefile.am b/weechat/src/plugins/Makefile.am index b52375faf..002747671 100644 --- a/weechat/src/plugins/Makefile.am +++ b/weechat/src/plugins/Makefile.am @@ -25,12 +25,11 @@ if PLUGIN_PYTHON python_dir = python endif -# if PLUGIN_RUBY -# ruby_dir = ruby -# endif +if PLUGIN_RUBY +ruby_dir = ruby +endif -# SUBDIRS = $(perl_dir) $(python_dir) $(ruby_dir) -SUBDIRS = $(perl_dir) $(python_dir) +SUBDIRS = $(perl_dir) $(python_dir) $(ruby_dir) noinst_LIBRARIES = lib_weechat_plugins.a diff --git a/weechat/src/plugins/plugins.c b/weechat/src/plugins/plugins.c index 7a7f194d7..089b34191 100644 --- a/weechat/src/plugins/plugins.c +++ b/weechat/src/plugins/plugins.c @@ -43,6 +43,10 @@ #include "python/wee-python.h" #endif +#ifdef PLUGIN_RUBY +#include "ruby/wee-ruby.h" +#endif + char *plugin_name[3] = { "Perl", "Python", "Ruby" }; @@ -115,15 +119,20 @@ plugin_auto_load (int plugin_type, char *directory) void plugin_init () { - #ifdef PLUGIN_PERL +#ifdef PLUGIN_PERL wee_perl_init(); plugin_auto_load (PLUGIN_TYPE_PERL, "perl/autoload"); - #endif +#endif - #ifdef PLUGIN_PYTHON +#ifdef PLUGIN_PYTHON wee_python_init(); plugin_auto_load (PLUGIN_TYPE_PYTHON, "python/autoload"); - #endif +#endif + +#ifdef PLUGIN_RUBY + wee_ruby_init(); + plugin_auto_load (PLUGIN_TYPE_RUBY, "ruby/autoload"); +#endif } /* @@ -133,28 +142,30 @@ plugin_init () void plugin_load (int plugin_type, char *filename) { - #ifdef PLUGINS +#ifdef PLUGINS switch (plugin_type) { case PLUGIN_TYPE_PERL: - #ifdef PLUGIN_PERL +#ifdef PLUGIN_PERL wee_perl_load (filename); - #endif +#endif break; case PLUGIN_TYPE_PYTHON: - #ifdef PLUGIN_PYTHON +#ifdef PLUGIN_PYTHON wee_python_load (filename); - #endif +#endif break; case PLUGIN_TYPE_RUBY: - /* TODO: load Ruby script */ +#ifdef PLUGIN_RUBY + wee_ruby_load (filename); +#endif break; } - #else +#else /* make gcc happy */ (void) plugin_type; (void) filename; - #endif +#endif /* PLUGINS */ } /* @@ -292,7 +303,7 @@ plugin_handler_free_all_type (t_plugin_handler **plugin_handlers, void plugin_event_msg (char *irc_command, char *server, char *arguments) { - #ifdef PLUGINS +#ifdef PLUGINS t_plugin_handler *ptr_plugin_handler; for (ptr_plugin_handler = plugin_msg_handlers; ptr_plugin_handler; @@ -300,7 +311,7 @@ plugin_event_msg (char *irc_command, char *server, char *arguments) { if (strcasecmp (ptr_plugin_handler->name, irc_command) == 0) { - #ifdef PLUGIN_PERL +#ifdef PLUGIN_PERL if (ptr_plugin_handler->plugin_type == PLUGIN_TYPE_PERL) { if (ptr_plugin_handler->running == 0) @@ -310,8 +321,8 @@ plugin_event_msg (char *irc_command, char *server, char *arguments) ptr_plugin_handler->running = 0; } } - #endif - #ifdef PLUGIN_PYTHON +#endif +#ifdef PLUGIN_PYTHON if (ptr_plugin_handler->plugin_type == PLUGIN_TYPE_PYTHON) { if (ptr_plugin_handler->running == 0) @@ -321,15 +332,26 @@ plugin_event_msg (char *irc_command, char *server, char *arguments) ptr_plugin_handler->running = 0; } } - #endif +#endif +#ifdef PLUGIN_RUBY + if (ptr_plugin_handler->plugin_type == PLUGIN_TYPE_RUBY) + { + if (ptr_plugin_handler->running == 0) + { + ptr_plugin_handler->running = 1; + wee_ruby_exec (ptr_plugin_handler->function_name, server, arguments); + ptr_plugin_handler->running = 0; + } + } +#endif } } - #else +#else /* make gcc happy */ (void) irc_command; (void) arguments; (void) server; - #endif +#endif /* PLUGINS */ } /* @@ -339,7 +361,7 @@ plugin_event_msg (char *irc_command, char *server, char *arguments) int plugin_exec_command (char *user_command, char *server, char *arguments) { - #ifdef PLUGINS +#ifdef PLUGINS t_plugin_handler *ptr_plugin_handler; for (ptr_plugin_handler = plugin_cmd_handlers; ptr_plugin_handler; @@ -347,7 +369,7 @@ plugin_exec_command (char *user_command, char *server, char *arguments) { if (strcasecmp (ptr_plugin_handler->name, user_command) == 0) { - #ifdef PLUGIN_PERL +#ifdef PLUGIN_PERL if (ptr_plugin_handler->plugin_type == PLUGIN_TYPE_PERL) { if (ptr_plugin_handler->running == 0) @@ -357,8 +379,8 @@ plugin_exec_command (char *user_command, char *server, char *arguments) ptr_plugin_handler->running = 0; } } - #endif - #ifdef PLUGIN_PYTHON +#endif +#ifdef PLUGIN_PYTHON if (ptr_plugin_handler->plugin_type == PLUGIN_TYPE_PYTHON) { if (ptr_plugin_handler->running == 0) @@ -368,18 +390,29 @@ plugin_exec_command (char *user_command, char *server, char *arguments) ptr_plugin_handler->running = 0; } } - #endif +#endif +#ifdef PLUGIN_RUBY + if (ptr_plugin_handler->plugin_type == PLUGIN_TYPE_RUBY) + { + if (ptr_plugin_handler->running == 0) + { + ptr_plugin_handler->running = 1; + wee_ruby_exec (ptr_plugin_handler->function_name, server, arguments); + ptr_plugin_handler->running = 0; + } + } +#endif /* command executed */ return 1; } } - #else +#else /* make gcc happy */ (void) user_command; (void) arguments; (void) server; - #endif +#endif /* PLUGINS */ /* no command executed */ return 0; @@ -453,30 +486,33 @@ plugin_unload (int plugin_type, char *scriptname) /* make gcc happy */ (void) scriptname; - #ifdef PLUGINS +#ifdef PLUGINS switch (plugin_type) { case PLUGIN_TYPE_PERL: - #ifdef PLUGIN_PERL +#ifdef PLUGIN_PERL /* unload one Perl script is not allowed */ wee_perl_end (); wee_perl_init (); - #endif +#endif break; case PLUGIN_TYPE_PYTHON: - #ifdef PLUGIN_PYTHON +#ifdef PLUGIN_PYTHON wee_python_end (); wee_python_init (); - #endif +#endif break; case PLUGIN_TYPE_RUBY: - /* TODO: unload Ruby scripts */ +#ifdef PLUGIN_RUBY + wee_ruby_end (); + wee_ruby_init (); +#endif break; } - #else +#else /* make gcc happy */ (void) plugin_type; - #endif +#endif /* PLUGINS */ } /* @@ -489,11 +525,15 @@ plugin_end () plugin_handler_free_all (&plugin_msg_handlers, &last_plugin_msg_handler); plugin_handler_free_all (&plugin_cmd_handlers, &last_plugin_cmd_handler); - #ifdef PLUGIN_PERL +#ifdef PLUGIN_PERL wee_perl_end(); - #endif +#endif - #ifdef PLUGIN_PYTHON +#ifdef PLUGIN_PYTHON wee_python_end(); - #endif +#endif + +#ifdef PLUGIN_RUBY + wee_ruby_end(); +#endif } diff --git a/weechat/src/plugins/plugins.h b/weechat/src/plugins/plugins.h index 3a5bc64b5..c729d0480 100644 --- a/weechat/src/plugins/plugins.h +++ b/weechat/src/plugins/plugins.h @@ -67,6 +67,10 @@ extern t_plugin_script *perl_scripts; extern t_plugin_script *python_scripts; #endif +#ifdef PLUGIN_RUBY +extern t_plugin_script *ruby_scripts; +#endif + extern void plugin_auto_load (int, char *); extern void plugin_init (); extern void plugin_load (int, char *); diff --git a/weechat/src/plugins/python/wee-python.c b/weechat/src/plugins/python/wee-python.c index 8b3f9927a..d1fd2d901 100644 --- a/weechat/src/plugins/python/wee-python.c +++ b/weechat/src/plugins/python/wee-python.c @@ -330,6 +330,7 @@ wee_python_get_info (PyObject *self, PyObject *args) gui_printf (NULL, _("%s error: server not found for \"%s\" function\n"), "Python", "get_info"); + return NULL; } } diff --git a/weechat/src/plugins/ruby/Makefile.am b/weechat/src/plugins/ruby/Makefile.am new file mode 100644 index 000000000..6fe8f4560 --- /dev/null +++ b/weechat/src/plugins/ruby/Makefile.am @@ -0,0 +1,23 @@ +# Copyright (c) 2003-2005 FlashCode +# +# 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + +INCLUDES = -DLOCALEDIR=\"$(datadir)/locale\" $(RUBY_CFLAGS) + +noinst_LIBRARIES = lib_weechat_ruby.a + +lib_weechat_ruby_a_SOURCES = wee-ruby.h \ + wee-ruby.c diff --git a/weechat/src/plugins/ruby/wee-ruby.c b/weechat/src/plugins/ruby/wee-ruby.c new file mode 100644 index 000000000..449b9b003 --- /dev/null +++ b/weechat/src/plugins/ruby/wee-ruby.c @@ -0,0 +1,607 @@ +/* + * Copyright (c) 2003-2005 by FlashCode + * See README for License detail, AUTHORS for developers list. + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* wee-ruby.c: Ruby plugin support for WeeChat */ + + +#include + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#undef _ +#include "../../common/weechat.h" +#include "../plugins.h" +#include "wee-ruby.h" +#include "../../common/command.h" +#include "../../irc/irc.h" +#include "../../gui/gui.h" + + +t_plugin_script *ruby_scripts = NULL; +t_plugin_script *last_ruby_script = NULL; + + +/* + * register: startup function for all WeeChat Ruby scripts + */ + +static VALUE +wee_ruby_register (VALUE class, VALUE name, VALUE version, VALUE shutdown_func, VALUE description) +{ + char *c_name, *c_version, *c_shutdown_func, *c_description; + t_plugin_script *ptr_ruby_script, *ruby_script_found, *new_ruby_script; + + if (NIL_P (name) || NIL_P (version) || NIL_P (shutdown_func) || NIL_P (description)) + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: wrong parameters for \"%s\" function\n"), + "Ruby", "register"); + return Qnil; + } + + Check_Type (name, T_STRING); + Check_Type (version, T_STRING); + Check_Type (shutdown_func, T_STRING); + Check_Type (description, T_STRING); + + c_name = STR2CSTR (name); + c_version = STR2CSTR (version); + c_shutdown_func = STR2CSTR (shutdown_func); + c_description = STR2CSTR (description); + + ruby_script_found = NULL; + for (ptr_ruby_script = ruby_scripts; ptr_ruby_script; + ptr_ruby_script = ptr_ruby_script->next_script) + { + if (strcasecmp (ptr_ruby_script->name, c_name) == 0) + { + ruby_script_found = ptr_ruby_script; + break; + } + } + + if (ruby_script_found) + { + /* error: another script already exists with this name! */ + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: unable to register \"%s\" script (another script " + "already exists with this name)\n"), + "Ruby", name); + } + else + { + /* registering script */ + new_ruby_script = (t_plugin_script *)malloc (sizeof (t_plugin_script)); + if (new_ruby_script) + { + new_ruby_script->name = strdup (c_name); + new_ruby_script->version = strdup (c_version); + new_ruby_script->shutdown_func = strdup (c_shutdown_func); + new_ruby_script->description = strdup (c_description); + + /* add new script to list */ + new_ruby_script->prev_script = last_ruby_script; + new_ruby_script->next_script = NULL; + if (ruby_scripts) + last_ruby_script->next_script = new_ruby_script; + else + ruby_scripts = new_ruby_script; + last_ruby_script = new_ruby_script; + + wee_log_printf (_("Registered %s script: \"%s\", version %s (%s)\n"), + "Ruby", c_name, c_version, c_description); + } + else + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: unable to load script \"%s\" (not enough memory)\n"), + "Ruby", c_name); + } + } + + return Qnil; +} + +/* + * print: print message into a buffer (current or specified one) + */ + +static VALUE +wee_ruby_print (VALUE class, VALUE message, VALUE channel_name, VALUE server_name) +{ + char *c_message, *c_channel_name, *c_server_name; + t_gui_buffer *ptr_buffer; + + c_message = NULL; + c_channel_name = NULL; + c_server_name = NULL; + + if (NIL_P (message)) + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: wrong parameters for \"%s\" function\n"), + "Ruby", "print"); + return Qnil; + } + + Check_Type (message, T_STRING); + if (!NIL_P (channel_name)) + Check_Type (channel_name, T_STRING); + if (!NIL_P (server_name)) + Check_Type (server_name, T_STRING); + + c_message = STR2CSTR (message); + if (!NIL_P (channel_name)) + c_channel_name = STR2CSTR (channel_name); + if (!NIL_P (server_name)) + c_server_name = STR2CSTR (server_name); + + ptr_buffer = plugin_find_buffer (c_server_name, c_channel_name); + if (ptr_buffer) + { + irc_display_prefix (ptr_buffer, PREFIX_PLUGIN); + gui_printf (ptr_buffer, "%s\n", c_message); + return INT2FIX (1); + } + + /* buffer not found */ + return INT2FIX (0); +} + +/* + * print_infobar: print message to infobar + */ + +static VALUE +wee_ruby_print_infobar (VALUE class, VALUE delay, VALUE message) +{ + int c_delay; + char *c_message; + + c_delay = 1; + c_message = NULL; + + if (NIL_P (delay) || NIL_P (message)) + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: wrong parameters for \"%s\" function\n"), + "Ruby", "print_infobar"); + return Qfalse; + } + + Check_Type (delay, T_FIXNUM); + Check_Type (message, T_STRING); + + c_delay = FIX2INT (delay); + c_message = STR2CSTR (message); + + gui_infobar_printf (delay, COLOR_WIN_INFOBAR, c_message); + + return Qtrue; +} + +/* + * command: send command to server + */ + +static VALUE +wee_ruby_command (VALUE class, VALUE command, VALUE channel_name, VALUE server_name) +{ + char *c_command, *c_channel_name, *c_server_name; + t_gui_buffer *ptr_buffer; + + c_command = NULL; + c_channel_name = NULL; + c_server_name = NULL; + + if (NIL_P (command)) + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: wrong parameters for \"%s\" function\n"), + "Ruby", "command"); + return Qnil; + } + + Check_Type (command, T_STRING); + if (!NIL_P (channel_name)) + Check_Type (channel_name, T_STRING); + if (!NIL_P (server_name)) + Check_Type (server_name, T_STRING); + + c_command = STR2CSTR (command); + if (!NIL_P (channel_name)) + c_channel_name = STR2CSTR (channel_name); + if (!NIL_P (server_name)) + c_server_name = STR2CSTR (server_name); + + ptr_buffer = plugin_find_buffer (c_server_name, c_channel_name); + if (ptr_buffer) + { + user_command (SERVER(ptr_buffer), ptr_buffer, c_command); + return INT2FIX (1); + } + + /* buffer not found */ + return INT2FIX (0); +} + +/* + * add_message_handler: add handler for messages + */ + +static VALUE +wee_ruby_add_message_handler (VALUE class, VALUE message, VALUE function) +{ + char *c_message, *c_function; + + if (NIL_P (message) || NIL_P (function)) + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: wrong parameters for \"%s\" function\n"), + "Ruby", "add_message_handler"); + return Qnil; + } + + Check_Type (message, T_STRING); + Check_Type (function, T_STRING); + + c_message = STR2CSTR (message); + c_function = STR2CSTR (function); + + plugin_handler_add (&plugin_msg_handlers, &last_plugin_msg_handler, + PLUGIN_TYPE_RUBY, c_message, c_function); + + return Qtrue; +} + +/* + * add_command_handler: define/redefines commands + */ + +static VALUE +wee_ruby_add_command_handler (VALUE class, VALUE name, VALUE function) +{ + char *c_name, *c_function; + t_plugin_handler *ptr_plugin_handler; + + if (NIL_P (name) || NIL_P (function)) + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: wrong parameters for \"%s\" function\n"), + "Ruby", "add_command_handler"); + return Qnil; + } + + Check_Type (name, T_STRING); + Check_Type (function, T_STRING); + + c_name = STR2CSTR (name); + c_function = STR2CSTR (function); + + if (!weelist_search (index_commands, c_name)) + weelist_add (&index_commands, &last_index_command, c_name); + + ptr_plugin_handler = plugin_handler_search (plugin_cmd_handlers, c_name); + if (ptr_plugin_handler) + { + free (ptr_plugin_handler->function_name); + ptr_plugin_handler->function_name = strdup (c_function); + } + else + plugin_handler_add (&plugin_cmd_handlers, &last_plugin_cmd_handler, + PLUGIN_TYPE_PYTHON, c_name, c_function); + + return Qtrue; +} + +/* + * get_info: get various infos + */ + +static VALUE +wee_ruby_get_info (VALUE class, VALUE arg, VALUE server_name) +{ + char *c_arg, *info, *c_server_name; + t_irc_server *ptr_server; + + if (NIL_P (arg)) + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: wrong parameters for \"%s\" function\n"), + "Ruby", "get_info"); + return Qnil; + } + + Check_Type (arg, T_STRING); + if (!NIL_P (server_name)) + Check_Type (server_name, T_STRING); + + c_arg = STR2CSTR (arg); + if (!NIL_P (server_name)) + c_server_name = STR2CSTR (server_name); + + if (c_server_name == NULL) + { + ptr_server = SERVER(gui_current_window->buffer); + } + else + { + for (ptr_server = irc_servers; ptr_server; ptr_server = ptr_server->next_server) + { + if (strcasecmp (ptr_server->name, c_server_name) == 0) + break; + } + if (!ptr_server) + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: server not found for \"%s\" function\n"), + "Ruby", "get_info"); + return Qnil; + } + } + + if (ptr_server && c_arg) + { + if ( (strcasecmp (c_arg, "0") == 0) || (strcasecmp (c_arg, "version") == 0) ) + { + info = PACKAGE_STRING; + } + else if ( (strcasecmp (c_arg, "1") == 0) || (strcasecmp (c_arg, "nick") == 0) ) + { + if (ptr_server->nick) + info = ptr_server->nick; + } + else if ( (strcasecmp (c_arg, "2") == 0) || (strcasecmp (c_arg, "channel") == 0) ) + { + if (BUFFER_IS_CHANNEL (gui_current_window->buffer)) + info = CHANNEL (gui_current_window->buffer)->name; + } + else if ( (strcasecmp (c_arg, "3") == 0) || (strcasecmp (c_arg, "server") == 0) ) + { + if (ptr_server->name) + info = ptr_server->name; + } + else if ( (strcasecmp (c_arg, "4") == 0) || (strcasecmp (c_arg, "weechatdir") == 0) ) + { + info = weechat_home; + } + else if ( (strcasecmp (c_arg, "5") == 0) || (strcasecmp (c_arg, "away") == 0) ) + { + return INT2FIX (SERVER(gui_current_window->buffer)->is_away); + } + else if ( (strcasecmp (c_arg, "100") == 0) || (strcasecmp (c_arg, "dccs") == 0) ) + { + /* TODO: build dcc list */ + } + + if (info) + return rb_str_new2 (info); + else + return rb_str_new2 (""); + } + + return INT2FIX (1); +} + +/* + * Ruby subroutines + */ + +/* + * wee_ruby_init: initialize Ruby interface for WeeChat + */ + +void +wee_ruby_init () +{ + + /* TODO: init Ruby environment */ + /* ruby_init (); + if () + { + irc_display_prefix (NULL, PREFIX_PLUGIN); + gui_printf (NULL, _("%s error: error while launching interpreter\n"), + "Ruby"); + } + else + { + wee_log_printf (_("Loading %s module \"weechat\"\n"), "Ruby"); + }*/ +} + +/* + * wee_ruby_search: search a (loaded) Ruby script by name + */ + +t_plugin_script * +wee_ruby_search (char *name) +{ + t_plugin_script *ptr_ruby_script; + + for (ptr_ruby_script = ruby_scripts; ptr_ruby_script; + ptr_ruby_script = ptr_ruby_script->next_script) + { + if (strcmp (ptr_ruby_script->name, name) == 0) + return ptr_ruby_script; + } + + /* script not found */ + return NULL; +} + +/* + * wee_ruby_exec: execute a Ruby script + */ + +int +wee_ruby_exec (char *function, char *server, char *arguments) +{ + /* TODO: exec Ruby script */ +} + +/* + * wee_ruby_load: load a Ruby script + */ + +int +wee_ruby_load (char *filename) +{ + FILE *fp; + + /* TODO: load & exec Ruby script */ + gui_printf (NULL, "Ruby scripts not developed!\n"); + /* execute Ruby script */ + /*wee_log_printf (_("Loading %s script \"%s\"\n"), "Ruby", filename); + irc_display_prefix (NULL, PREFIX_PLUGIN); + gui_printf (NULL, _("Loading %s script \"%s\"\n"), "Ruby", filename); + + if ((fp = fopen (filename, "r")) == NULL) + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: error while opening file \"%s\"\n"), + "Ruby", filename); + return 1; + } + + if (xxxxxxx (fp, filename) != 0) + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, + _("%s error: error while parsing file \"%s\"\n"), + "Ruby", filename); + return 1; + } + + fclose (fp); + return 0;*/ +} + +/* + * wee_ruby_script_free: free a Ruby script + */ + +void +wee_ruby_script_free (t_plugin_script *ptr_ruby_script) +{ + t_plugin_script *new_ruby_scripts; + + /* remove script from list */ + if (last_ruby_script == ptr_ruby_script) + last_ruby_script = ptr_ruby_script->prev_script; + if (ptr_ruby_script->prev_script) + { + (ptr_ruby_script->prev_script)->next_script = ptr_ruby_script->next_script; + new_ruby_scripts = ruby_scripts; + } + else + new_ruby_scripts = ptr_ruby_script->next_script; + + if (ptr_ruby_script->next_script) + (ptr_ruby_script->next_script)->prev_script = ptr_ruby_script->prev_script; + + /* free data */ + if (ptr_ruby_script->name) + free (ptr_ruby_script->name); + if (ptr_ruby_script->version) + free (ptr_ruby_script->version); + if (ptr_ruby_script->shutdown_func) + free (ptr_ruby_script->shutdown_func); + if (ptr_ruby_script->description) + free (ptr_ruby_script->description); + free (ptr_ruby_script); + ruby_scripts = new_ruby_scripts; +} + +/* + * wee_ruby_unload: unload a Ruby script + */ + +void +wee_ruby_unload (t_plugin_script *ptr_ruby_script) +{ + if (ptr_ruby_script) + { + wee_log_printf (_("Unloading %s script \"%s\"\n"), + "Ruby", ptr_ruby_script->name); + + /* call shutdown callback function */ + if (ptr_ruby_script->shutdown_func[0]) + wee_ruby_exec (ptr_ruby_script->shutdown_func, "", ""); + wee_ruby_script_free (ptr_ruby_script); + } +} + +/* + * wee_ruby_unload_all: unload all Ruby scripts + */ + +void +wee_ruby_unload_all () +{ + wee_log_printf (_("Unloading all %s scripts...\n"), "Ruby"); + while (ruby_scripts) + wee_ruby_unload (ruby_scripts); + + irc_display_prefix (NULL, PREFIX_PLUGIN); + gui_printf (NULL, _("%s scripts unloaded\n"), "Ruby"); +} + +/* + * wee_ruby_end: shutdown Ruby interface + */ + +void +wee_ruby_end () +{ + /* unload all scripts */ + wee_ruby_unload_all (); + + /* free all handlers */ + plugin_handler_free_all_type (&plugin_msg_handlers, + &last_plugin_msg_handler, + PLUGIN_TYPE_RUBY); + plugin_handler_free_all_type (&plugin_cmd_handlers, + &last_plugin_cmd_handler, + PLUGIN_TYPE_RUBY); + + /* TODO: free Ruby interpreter */ + /* free Ruby interpreter */ + /* xxxxx (); + if () + { + irc_display_prefix (NULL, PREFIX_PLUGIN); + gui_printf (NULL, _("%s error: error while freeing interpreter\n"), + "Ruby"); + }*/ +} diff --git a/weechat/src/plugins/ruby/wee-ruby.h b/weechat/src/plugins/ruby/wee-ruby.h new file mode 100644 index 000000000..3fdc9b932 --- /dev/null +++ b/weechat/src/plugins/ruby/wee-ruby.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2003-2005 by FlashCode + * See README for License detail, AUTHORS for developers list. + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + +#ifndef __WEECHAT_RUBY_H +#define __WEECHAT_RUBY_H 1 + +#include "../plugins.h" + +extern void wee_ruby_init (); +extern t_plugin_script *wee_ruby_search (char *); +extern int wee_ruby_exec (char *, char *, char *); +extern int wee_ruby_load (char *); +extern void wee_ruby_unload (t_plugin_script *); +extern void wee_ruby_unload_all (); +extern void wee_ruby_end (); + +#endif /* wee-ruby.h */