From 9839d030a1e0f2d8fde0c6ff904e176696fccbc1 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 10 Jul 2009 23:44:21 +0200 Subject: [PATCH] Add info about script commands when trying to load a script with /plugin --- po/cs.po | 8 +++++++- po/de.po | 8 +++++++- po/es.po | 8 +++++++- po/fr.po | 12 ++++++++++-- po/hu.po | 8 +++++++- po/pl.po | 8 +++++++- po/ru.po | 8 +++++++- po/weechat.pot | 8 +++++++- src/plugins/plugin.c | 5 +++++ 9 files changed, 64 insertions(+), 9 deletions(-) diff --git a/po/cs.po b/po/cs.po index 1b25f156e..2d02e03b6 100644 --- a/po/cs.po +++ b/po/cs.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.0-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2009-07-09 21:43+0200\n" +"POT-Creation-Date: 2009-07-10 23:40+0200\n" "PO-Revision-Date: 2009-05-11 13:02+0200\n" "Last-Translator: Jiri Golembiovsky \n" "Language-Team: weechat-dev \n" @@ -4691,6 +4691,12 @@ msgstr "" msgid "%sError: unable to load plugin \"%s\": %s" msgstr "%s nemůžu načist plugin \"%s\": %s\n" +#, c-format +msgid "" +"%sIf you're trying to load a script and not a C plugin, try command to load " +"scripts (/perl, /python, ...)" +msgstr "" + #, fuzzy, c-format msgid "%sError: symbol \"%s\" not found in plugin \"%s\", failed to load" msgstr "" diff --git a/po/de.po b/po/de.po index baf75b61a..79af40f3b 100644 --- a/po/de.po +++ b/po/de.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.0-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2009-07-09 21:43+0200\n" +"POT-Creation-Date: 2009-07-10 23:40+0200\n" "PO-Revision-Date: 2009-05-11 13:02+0200\n" "Last-Translator: Thomas Schuetz \n" "Language-Team: weechat-dev \n" @@ -4665,6 +4665,12 @@ msgstr "Liste der /ignore-Regeln:\n" msgid "%sError: unable to load plugin \"%s\": %s" msgstr "%s kann Plugin \"%s\" nicht laden: %s\n" +#, c-format +msgid "" +"%sIf you're trying to load a script and not a C plugin, try command to load " +"scripts (/perl, /python, ...)" +msgstr "" + #, fuzzy, c-format msgid "%sError: symbol \"%s\" not found in plugin \"%s\", failed to load" msgstr "" diff --git a/po/es.po b/po/es.po index f88b2a0cb..41059f3e6 100644 --- a/po/es.po +++ b/po/es.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.0-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2009-07-09 21:43+0200\n" +"POT-Creation-Date: 2009-07-10 23:40+0200\n" "PO-Revision-Date: 2009-05-11 13:02+0200\n" "Last-Translator: Roberto González Cardenete \n" "Language-Team: weechat-dev \n" @@ -4658,6 +4658,12 @@ msgstr "Lista de ignores:\n" msgid "%sError: unable to load plugin \"%s\": %s" msgstr "%s no ha sido posible cargar el plugin \"%s\": %s\n" +#, c-format +msgid "" +"%sIf you're trying to load a script and not a C plugin, try command to load " +"scripts (/perl, /python, ...)" +msgstr "" + #, fuzzy, c-format msgid "%sError: symbol \"%s\" not found in plugin \"%s\", failed to load" msgstr "" diff --git a/po/fr.po b/po/fr.po index ac9530355..3b7c41cbd 100644 --- a/po/fr.po +++ b/po/fr.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.0-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2009-07-09 21:43+0200\n" -"PO-Revision-Date: 2009-07-09 21:44+0200\n" +"POT-Creation-Date: 2009-07-10 23:40+0200\n" +"PO-Revision-Date: 2009-07-10 23:41+0200\n" "Last-Translator: FlashCode \n" "Language-Team: weechat-dev \n" "MIME-Version: 1.0\n" @@ -4862,6 +4862,14 @@ msgstr "liste des fenêtres" msgid "%sError: unable to load plugin \"%s\": %s" msgstr "%sErreur: impossible de charger l'extension \"%s\": %s" +#, c-format +msgid "" +"%sIf you're trying to load a script and not a C plugin, try command to load " +"scripts (/perl, /python, ...)" +msgstr "" +"%sSi vous essayez de charger un script et non une extension C, essayez la " +"commande pour charger les scripts (/perl, /python, ...)" + #, c-format msgid "%sError: symbol \"%s\" not found in plugin \"%s\", failed to load" msgstr "" diff --git a/po/hu.po b/po/hu.po index e1971fdc9..a8bbf23b2 100644 --- a/po/hu.po +++ b/po/hu.po @@ -12,7 +12,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.0-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2009-07-09 21:43+0200\n" +"POT-Creation-Date: 2009-07-10 23:40+0200\n" "PO-Revision-Date: 2009-05-11 13:02+0200\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -4697,6 +4697,12 @@ msgstr "Mellőzések listája:\n" msgid "%sError: unable to load plugin \"%s\": %s" msgstr "%s nem sikerült a modult betölteni \"%s\": %s\n" +#, c-format +msgid "" +"%sIf you're trying to load a script and not a C plugin, try command to load " +"scripts (/perl, /python, ...)" +msgstr "" + #, fuzzy, c-format msgid "%sError: symbol \"%s\" not found in plugin \"%s\", failed to load" msgstr "" diff --git a/po/pl.po b/po/pl.po index 4d3413801..2cd04b884 100644 --- a/po/pl.po +++ b/po/pl.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.0-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2009-07-09 21:43+0200\n" +"POT-Creation-Date: 2009-07-10 23:40+0200\n" "PO-Revision-Date: 2009-05-11 13:02+0200\n" "Last-Translator: \n" "Language-Team: Polish\n" @@ -4092,6 +4092,12 @@ msgstr "" msgid "%sError: unable to load plugin \"%s\": %s" msgstr "" +#, c-format +msgid "" +"%sIf you're trying to load a script and not a C plugin, try command to load " +"scripts (/perl, /python, ...)" +msgstr "" + #, c-format msgid "%sError: symbol \"%s\" not found in plugin \"%s\", failed to load" msgstr "" diff --git a/po/ru.po b/po/ru.po index 349483587..1d57a1159 100644 --- a/po/ru.po +++ b/po/ru.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.0-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2009-07-09 21:43+0200\n" +"POT-Creation-Date: 2009-07-10 23:40+0200\n" "PO-Revision-Date: 2009-05-11 13:02+0200\n" "Last-Translator: Pavel Shevchuk \n" "Language-Team: weechat-dev \n" @@ -4682,6 +4682,12 @@ msgstr "Список игнорирования:\n" msgid "%sError: unable to load plugin \"%s\": %s" msgstr "%s не могу загрузить plugin \"%s\": %s\n" +#, c-format +msgid "" +"%sIf you're trying to load a script and not a C plugin, try command to load " +"scripts (/perl, /python, ...)" +msgstr "" + #, fuzzy, c-format msgid "%sError: symbol \"%s\" not found in plugin \"%s\", failed to load" msgstr "" diff --git a/po/weechat.pot b/po/weechat.pot index 24ca89675..2850239df 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: 2009-07-09 21:43+0200\n" +"POT-Creation-Date: 2009-07-10 23:40+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -4053,6 +4053,12 @@ msgstr "" msgid "%sError: unable to load plugin \"%s\": %s" msgstr "" +#, c-format +msgid "" +"%sIf you're trying to load a script and not a C plugin, try command to load " +"scripts (/perl, /python, ...)" +msgstr "" + #, c-format msgid "%sError: symbol \"%s\" not found in plugin \"%s\", failed to load" msgstr "" diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c index 6f4ea07b6..4fc0a2ed4 100644 --- a/src/plugins/plugin.c +++ b/src/plugins/plugin.c @@ -187,6 +187,11 @@ plugin_load (const char *filename) _("%sError: unable to load plugin \"%s\": %s"), gui_chat_prefix[GUI_CHAT_PREFIX_ERROR], full_name, dlerror()); + gui_chat_printf (NULL, + _("%sIf you're trying to load a script and not a C " + "plugin, try command to load scripts (/perl, " + "/python, ...)"), + gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]); free (full_name); return NULL; }