summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-01-06 13:58:26 +0100
committerSébastien Helleu <flashcode@flashtux.org>2018-01-06 14:07:57 +0100
commit9876a8d0a78a118f65a020c727c1fb079b9adcbd (patch)
treeb55504f846ebfcbcc70766dc00f9ad6164ae14d1 /src/plugins
parentbab307bf1b5ac07c45fd2ddb78930831bddb9c4b (diff)
downloadweechat-9876a8d0a78a118f65a020c727c1fb079b9adcbd.zip
core: update translations (issue #128)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/guile/weechat-guile.c4
-rw-r--r--src/plugins/javascript/weechat-js.cpp7
-rw-r--r--src/plugins/lua/weechat-lua.c10
-rw-r--r--src/plugins/perl/weechat-perl.c4
-rw-r--r--src/plugins/php/weechat-php.c7
-rw-r--r--src/plugins/plugin-script.c8
-rw-r--r--src/plugins/python/weechat-python.c7
-rw-r--r--src/plugins/ruby/weechat-ruby.c4
-rw-r--r--src/plugins/tcl/weechat-tcl.c7
9 files changed, 32 insertions, 26 deletions
diff --git a/src/plugins/guile/weechat-guile.c b/src/plugins/guile/weechat-guile.c
index 0f7251c90..6f307c196 100644
--- a/src/plugins/guile/weechat-guile.c
+++ b/src/plugins/guile/weechat-guile.c
@@ -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
diff --git a/src/plugins/javascript/weechat-js.cpp b/src/plugins/javascript/weechat-js.cpp
index 59da4cc23..eda9b052a 100644
--- a/src/plugins/javascript/weechat-js.cpp
+++ b/src/plugins/javascript/weechat-js.cpp
@@ -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;
diff --git a/src/plugins/lua/weechat-lua.c b/src/plugins/lua/weechat-lua.c
index f5bc30195..037c09209 100644
--- a/src/plugins/lua/weechat-lua.c
+++ b/src/plugins/lua/weechat-lua.c
@@ -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
diff --git a/src/plugins/perl/weechat-perl.c b/src/plugins/perl/weechat-perl.c
index 9ad5e0a16..8395ed68e 100644
--- a/src/plugins/perl/weechat-perl.c
+++ b/src/plugins/perl/weechat-perl.c
@@ -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
diff --git a/src/plugins/php/weechat-php.c b/src/plugins/php/weechat-php.c
index 24fe40cbb..04ae5afe0 100644
--- a/src/plugins/php/weechat-php.c
+++ b/src/plugins/php/weechat-php.c
@@ -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;
diff --git a/src/plugins/plugin-script.c b/src/plugins/plugin-script.c
index fb69f7202..c4534824d 100644
--- a/src/plugins/plugin-script.c
+++ b/src/plugins/plugin-script.c
@@ -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" */
diff --git a/src/plugins/python/weechat-python.c b/src/plugins/python/weechat-python.c
index 05bbf1009..ea10091dc 100644
--- a/src/plugins/python/weechat-python.c
+++ b/src/plugins/python/weechat-python.c
@@ -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
diff --git a/src/plugins/ruby/weechat-ruby.c b/src/plugins/ruby/weechat-ruby.c
index 039a33730..09c286453 100644
--- a/src/plugins/ruby/weechat-ruby.c
+++ b/src/plugins/ruby/weechat-ruby.c
@@ -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
diff --git a/src/plugins/tcl/weechat-tcl.c b/src/plugins/tcl/weechat-tcl.c
index 4d0c2179d..48301c7ab 100644
--- a/src/plugins/tcl/weechat-tcl.c
+++ b/src/plugins/tcl/weechat-tcl.c
@@ -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;