From a0a28ac3d95044599896ecdfb63dbf441ab94105 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 5 May 2009 10:11:50 +0200 Subject: [PATCH] Add message for old/obsolete plugins --- po/cs.po | 6 +++++- po/de.po | 6 +++++- po/es.po | 6 +++++- po/fr.po | 10 ++++++++-- po/hu.po | 6 +++++- po/pl.po | 6 +++++- po/ru.po | 6 +++++- po/weechat.pot | 6 +++++- src/plugins/plugin.c | 10 ++++++++++ 9 files changed, 53 insertions(+), 9 deletions(-) diff --git a/po/cs.po b/po/cs.po index cde9f28ca..7fae6141b 100644 --- a/po/cs.po +++ b/po/cs.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.7-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2009-05-04 19:17+0200\n" +"POT-Creation-Date: 2009-05-05 09:58+0200\n" "PO-Revision-Date: 2009-01-03 00:42+0100\n" "Last-Translator: Jiri Golembiovsky \n" "Language-Team: weechat-dev \n" @@ -4884,6 +4884,10 @@ msgid "%sError: symbol \"%s\" not found in plugin \"%s\", failed to load" msgstr "" "%s symbol \"plugin_name\" nebyl v pluginu \"%s\" nalezen, načtení selhalo\n" +#, c-format +msgid "%sIf plugin \"%s\" is old/obsolete, you can delete this file." +msgstr "" + #, fuzzy, c-format msgid "" "%sError: API mismatch for plugin \"%s\" (current API: \"%s\", plugin API: \"%" diff --git a/po/de.po b/po/de.po index 98cb9a67f..82a0d900d 100644 --- a/po/de.po +++ b/po/de.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.7-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2009-05-04 19:17+0200\n" +"POT-Creation-Date: 2009-05-05 09:58+0200\n" "PO-Revision-Date: 2009-01-03 00:42+0100\n" "Last-Translator: Thomas Schuetz \n" "Language-Team: weechat-dev \n" @@ -4836,6 +4836,10 @@ msgstr "" "%s Symbol \"plugin_name\" in Plugin \"%s\" nicht gefunden, Laden " "gescheitert\n" +#, c-format +msgid "%sIf plugin \"%s\" is old/obsolete, you can delete this file." +msgstr "" + #, fuzzy, c-format msgid "" "%sError: API mismatch for plugin \"%s\" (current API: \"%s\", plugin API: \"%" diff --git a/po/es.po b/po/es.po index eb2760f5c..fd1eb6202 100644 --- a/po/es.po +++ b/po/es.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.7-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2009-05-04 19:17+0200\n" +"POT-Creation-Date: 2009-05-05 09:58+0200\n" "PO-Revision-Date: 2009-01-03 00:42+0100\n" "Last-Translator: Roberto González Cardenete \n" "Language-Team: weechat-dev \n" @@ -4824,6 +4824,10 @@ msgstr "" "%s símbolo \"plugin_name\" no encontrado en el plugin \"%s\", falló al " "cargar\n" +#, c-format +msgid "%sIf plugin \"%s\" is old/obsolete, you can delete this file." +msgstr "" + #, fuzzy, c-format msgid "" "%sError: API mismatch for plugin \"%s\" (current API: \"%s\", plugin API: \"%" diff --git a/po/fr.po b/po/fr.po index bd5681c60..d9d1c24c4 100644 --- a/po/fr.po +++ b/po/fr.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.7-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2009-05-04 19:17+0200\n" -"PO-Revision-Date: 2009-05-03 16:24+0200\n" +"POT-Creation-Date: 2009-05-05 09:58+0200\n" +"PO-Revision-Date: 2009-05-05 09:59+0200\n" "Last-Translator: FlashCode \n" "Language-Team: weechat-dev \n" "MIME-Version: 1.0\n" @@ -5006,6 +5006,12 @@ msgstr "" "%sErreur: le symbole \"%s\" n'existe pas dans l'extension \"%s\", échec de " "chargement" +#, c-format +msgid "%sIf plugin \"%s\" is old/obsolete, you can delete this file." +msgstr "" +"%sSi l'extension \"%s\" est vieille/obsolète, vous pouvez supprimer ce " +"fichier." + #, c-format msgid "" "%sError: API mismatch for plugin \"%s\" (current API: \"%s\", plugin API: \"%" diff --git a/po/hu.po b/po/hu.po index e7aa5bfed..ac1694177 100644 --- a/po/hu.po +++ b/po/hu.po @@ -12,7 +12,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.7-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2009-05-04 19:17+0200\n" +"POT-Creation-Date: 2009-05-05 09:58+0200\n" "PO-Revision-Date: 2009-01-03 00:42+0100\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -4894,6 +4894,10 @@ msgstr "" "%s a \"plugin_name\" szimbólum nem található a \"%s\" modulban, betöltés " "sikertelen\n" +#, c-format +msgid "%sIf plugin \"%s\" is old/obsolete, you can delete this file." +msgstr "" + #, fuzzy, c-format msgid "" "%sError: API mismatch for plugin \"%s\" (current API: \"%s\", plugin API: \"%" diff --git a/po/pl.po b/po/pl.po index 6bd256df9..bfd1fe12d 100644 --- a/po/pl.po +++ b/po/pl.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.7-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2009-05-04 19:17+0200\n" +"POT-Creation-Date: 2009-05-05 09:58+0200\n" "PO-Revision-Date: 2009-04-29 08:07+0200\n" "Last-Translator: \n" "Language-Team: Polish\n" @@ -4217,6 +4217,10 @@ msgstr "" msgid "%sError: symbol \"%s\" not found in plugin \"%s\", failed to load" msgstr "" +#, c-format +msgid "%sIf plugin \"%s\" is old/obsolete, you can delete this file." +msgstr "" + #, c-format msgid "" "%sError: API mismatch for plugin \"%s\" (current API: \"%s\", plugin API: \"%" diff --git a/po/ru.po b/po/ru.po index 6ce9241ec..23c5b97a4 100644 --- a/po/ru.po +++ b/po/ru.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.7-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2009-05-04 19:17+0200\n" +"POT-Creation-Date: 2009-05-05 09:58+0200\n" "PO-Revision-Date: 2009-01-03 00:42+0100\n" "Last-Translator: Pavel Shevchuk \n" "Language-Team: weechat-dev \n" @@ -4869,6 +4869,10 @@ msgid "%sError: symbol \"%s\" not found in plugin \"%s\", failed to load" msgstr "" "%s символ \"plugin_name\" не найден в plugin'е \"%s\", загрузка не удалась\n" +#, c-format +msgid "%sIf plugin \"%s\" is old/obsolete, you can delete this file." +msgstr "" + #, fuzzy, c-format msgid "" "%sError: API mismatch for plugin \"%s\" (current API: \"%s\", plugin API: \"%" diff --git a/po/weechat.pot b/po/weechat.pot index 419fa9ed9..27f4b95ef 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-05-04 19:17+0200\n" +"POT-Creation-Date: 2009-05-05 09:58+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -4180,6 +4180,10 @@ msgstr "" msgid "%sError: symbol \"%s\" not found in plugin \"%s\", failed to load" msgstr "" +#, c-format +msgid "%sIf plugin \"%s\" is old/obsolete, you can delete this file." +msgstr "" + #, c-format msgid "" "%sError: API mismatch for plugin \"%s\" (current API: \"%s\", plugin API: \"%" diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c index d5d751f94..06428efad 100644 --- a/src/plugins/plugin.c +++ b/src/plugins/plugin.c @@ -216,6 +216,11 @@ plugin_load (const char *filename) gui_chat_prefix[GUI_CHAT_PREFIX_ERROR], "weechat_plugin_api_version", full_name); + gui_chat_printf (NULL, + _("%sIf plugin \"%s\" is old/obsolete, you can " + "delete this file."), + gui_chat_prefix[GUI_CHAT_PREFIX_ERROR], + name); dlclose (handle); free (full_name); return NULL; @@ -229,6 +234,11 @@ plugin_load (const char *filename) full_name, WEECHAT_PLUGIN_API_VERSION, api_version); + gui_chat_printf (NULL, + _("%sIf plugin \"%s\" is old/obsolete, you can " + "delete this file."), + gui_chat_prefix[GUI_CHAT_PREFIX_ERROR], + name); dlclose (handle); free (full_name); return NULL;