1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 01:03:14 +02:00

core: update translations (issue #128)

This commit is contained in:
Sébastien Helleu
2018-01-06 13:58:26 +01:00
parent bab307bf1b
commit 9876a8d0a7
76 changed files with 1120 additions and 522 deletions
+2 -2
View File
@@ -56,7 +56,7 @@ struct t_gui_buffer *guile_eval_buffer = NULL;
char *guile_eval_output = NULL;
#define GUILE_EVAL_SCRIPT \
"(weechat:register \"" WEECHAT_SCRIPT_EVAL_NAME "\" \"\" \"1.0\" " \
"\"" WEECHAT_LICENSE "\" \"Evaluation of script code\" " \
"\"" WEECHAT_LICENSE "\" \"Evaluation of source code\" " \
"\"\" \"\")\n" \
"\n" \
"(define (script_guile_eval code)\n" \
@@ -698,7 +698,7 @@ weechat_guile_reload_name (const char *name)
}
/*
* Evaluates guile code.
* Evaluates guile source code.
*
* Returns:
* 1: OK
+4 -3
View File
@@ -528,7 +528,7 @@ weechat_js_reload_name (const char *name)
}
/*
* Evaluates javascript code.
* Evaluates javascript source code.
*
* Returns:
* 1: OK
@@ -683,8 +683,9 @@ weechat_js_command_cb (const void *pointer, void *data,
WEECHAT_COMMAND_ERROR;
/* TODO: implement /javascript eval */
weechat_printf (NULL,
"%sCommand \"/javascript eval\" is not yet implemented",
weechat_prefix ("error"));
_("%sCommand \"/%s eval\" is not yet implemented"),
weechat_prefix ("error"),
weechat_js_plugin->name);
}
else
WEECHAT_COMMAND_ERROR;
+6 -4
View File
@@ -63,7 +63,7 @@ char *lua_eval_output = NULL;
"end\n" \
"\n" \
"weechat.register('" WEECHAT_SCRIPT_EVAL_NAME "', '', '1.0', " \
"'" WEECHAT_LICENSE "', 'Evaluation of script code', '', '')\n"
"'" WEECHAT_LICENSE "', 'Evaluation of source code', '', '')\n"
struct t_plugin_script *lua_scripts = NULL;
struct t_plugin_script *last_lua_script = NULL;
@@ -562,7 +562,8 @@ weechat_lua_load (const char *filename, const char *code)
if (luaL_loadstring (lua_current_interpreter, code) != 0)
{
weechat_printf (NULL,
weechat_gettext ("%s%s: unable to load code"),
weechat_gettext ("%s%s: unable to load source "
"code"),
weechat_prefix ("error"), LUA_PLUGIN_NAME);
weechat_printf (NULL,
weechat_gettext ("%s%s: error: %s"),
@@ -595,7 +596,8 @@ weechat_lua_load (const char *filename, const char *code)
if (code)
{
weechat_printf (NULL,
weechat_gettext ("%s%s: unable to execute code"),
weechat_gettext ("%s%s: unable to execute source "
"code"),
weechat_prefix ("error"), LUA_PLUGIN_NAME);
}
else
@@ -796,7 +798,7 @@ weechat_lua_unload_all ()
}
/*
* Evaluates lua code.
* Evaluates lua source code.
*
* Returns:
* 1: OK
+2 -2
View File
@@ -54,7 +54,7 @@ char *perl_eval_output = NULL;
" eval \"$_[0]\";\n" \
"}\n" \
"weechat::register('" WEECHAT_SCRIPT_EVAL_NAME "', '', '1.0', " \
"'" WEECHAT_LICENSE "', 'Evaluation of script code', '', '');\n"
"'" WEECHAT_LICENSE "', 'Evaluation of source code', '', '');\n"
struct t_plugin_script *perl_scripts = NULL;
struct t_plugin_script *last_perl_script = NULL;
@@ -790,7 +790,7 @@ weechat_perl_reload_name (const char *name)
}
/*
* Evaluates perl code.
* Evaluates perl source code.
*
* Returns:
* 1: OK
+4 -3
View File
@@ -823,7 +823,7 @@ weechat_php_reload_name (const char *name)
}
/*
* Evaluates PHP code.
* Evaluates PHP source code.
*
* Returns:
* 1: OK
@@ -978,8 +978,9 @@ weechat_php_command_cb (const void *pointer, void *data,
WEECHAT_COMMAND_ERROR;
/* TODO: implement /php eval */
weechat_printf (NULL,
"%sCommand \"/php eval\" is not yet implemented",
weechat_prefix ("error"));
_("%sCommand \"/%s eval\" is not yet implemented"),
weechat_prefix ("error"),
weechat_php_plugin->name);
}
else
WEECHAT_COMMAND_ERROR;
+4 -4
View File
@@ -265,13 +265,13 @@ plugin_script_init (struct t_weechat_plugin *weechat_plugin,
" -q: quiet mode: do not display messages\n"
" name: a script name (name used in call to \"register\" "
"function)\n"
" eval: evaluate script code and display result on current "
" eval: evaluate source code and display result on current "
"buffer\n"
" -o: send evaluation result to the buffer without executing "
"commands\n"
" -oc: send evaluation result to the buffer and execute "
"commands\n"
" code: the script code to evaluate\n"
" code: source code to evaluate\n"
" version: display the version of interpreter used\n"
"\n"
"Without argument, this command lists all loaded scripts."),
@@ -292,8 +292,8 @@ plugin_script_init (struct t_weechat_plugin *weechat_plugin,
"(optional)"),
init->callback_infolist, NULL, NULL);
snprintf (string, sizeof (string), "%s_eval", weechat_plugin->name);
weechat_hook_info (string, N_("evaluation of script code"),
N_("code to execute"),
weechat_hook_info (string, N_("evaluation of source code"),
N_("source code to execute"),
init->callback_info_eval, NULL, NULL);
/* add signal for "debug_dump" */
+4 -3
View File
@@ -59,7 +59,7 @@ char *python_eval_output = NULL;
" exec(code)\n" \
"\n" \
"weechat.register('" WEECHAT_SCRIPT_EVAL_NAME "', '', '1.0', " \
"'" WEECHAT_LICENSE "', 'Evaluation of script code', '', '')\n"
"'" WEECHAT_LICENSE "', 'Evaluation of source code', '', '')\n"
struct t_plugin_script *python_scripts = NULL;
struct t_plugin_script *last_python_script = NULL;
@@ -808,7 +808,8 @@ weechat_python_load (const char *filename, const char *code)
if (PyErr_Occurred ())
{
weechat_printf (NULL,
weechat_gettext ("%s%s: unable to execute code"),
weechat_gettext ("%s%s: unable to execute source "
"code"),
weechat_prefix ("error"), PYTHON_PLUGIN_NAME);
PyErr_Print ();
if (rc)
@@ -1042,7 +1043,7 @@ weechat_python_reload_name (const char *name)
}
/*
* Evaluates python code.
* Evaluates python source code.
*
* Returns:
* 1: OK
+2 -2
View File
@@ -77,7 +77,7 @@ char *ruby_eval_output = NULL;
#define RUBY_EVAL_SCRIPT \
"def weechat_init\n" \
" Weechat.register('" WEECHAT_SCRIPT_EVAL_NAME "', '', '1.0', " \
"'" WEECHAT_LICENSE "', 'Evaluation of script code', '', '')\n" \
"'" WEECHAT_LICENSE "', 'Evaluation of source code', '', '')\n" \
" return Weechat::WEECHAT_RC_OK\n" \
"end\n" \
"\n" \
@@ -842,7 +842,7 @@ weechat_ruby_unload_all ()
}
/*
* Evaluates ruby code.
* Evaluates ruby source code.
*
* Returns:
* 1: OK
+4 -3
View File
@@ -534,7 +534,7 @@ weechat_tcl_reload_name (const char *name)
}
/*
* Evaluates tcl code.
* Evaluates TCL source code.
*
* Returns:
* 1: OK
@@ -689,8 +689,9 @@ weechat_tcl_command_cb (const void *pointer, void *data,
WEECHAT_COMMAND_ERROR;
/* TODO: implement /tcl eval */
weechat_printf (NULL,
"%sCommand \"/tcl eval\" is not yet implemented",
weechat_prefix ("error"));
_("%sCommand \"/%s eval\" is not yet implemented"),
weechat_prefix ("error"),
weechat_tcl_plugin->name);
}
else
WEECHAT_COMMAND_ERROR;