From 186053f90c07cfabfaa8b3823a6dc5196b3e1e7e Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 28 Aug 2012 16:37:29 +0200 Subject: [PATCH] script: remove spaces before/after tags displayed on detail of script --- po/cs.po | 49 +++++++++--------- po/de.po | 49 +++++++++--------- po/es.po | 49 +++++++++--------- po/fr.po | 49 +++++++++--------- po/hu.po | 49 +++++++++--------- po/it.po | 49 +++++++++--------- po/ja.po | 49 +++++++++--------- po/pl.po | 49 +++++++++--------- po/pt_BR.po | 49 +++++++++--------- po/ru.po | 49 +++++++++--------- po/weechat.pot | 49 +++++++++--------- src/plugins/script/script-buffer.c | 20 +------- src/plugins/script/script-repo.c | 82 ++++++++++++++++++++++++++++++ src/plugins/script/script-repo.h | 2 + 14 files changed, 361 insertions(+), 282 deletions(-) diff --git a/po/cs.po b/po/cs.po index 08eda22c8..a1b08016f 100644 --- a/po/cs.po +++ b/po/cs.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.9-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2012-08-28 16:10+0200\n" +"POT-Creation-Date: 2012-08-28 16:36+0200\n" "PO-Revision-Date: 2012-08-20 15:20+0200\n" "Last-Translator: Jiri Golembiovsky \n" "Language-Team: weechat-dev \n" @@ -8297,29 +8297,6 @@ msgstr "ukončit WeeChat" msgid "Max WeeChat" msgstr "ukončit WeeChat" -msgid "popular" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "installed" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "autoloaded" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "held" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "running" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "obsolete" -msgstr "" - msgid "alt+d=back to list" msgstr "" @@ -8587,6 +8564,30 @@ msgstr "" msgid "scripts from repository" msgstr "seznam skriptů" +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "popular" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "installed" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "autoloaded" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "held" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "running" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "obsolete" +msgstr "" + #, fuzzy, c-format msgid "%s%s: error reading list of scripts" msgstr "%s%s: chyba při zasílání dat na klienta: %s" diff --git a/po/de.po b/po/de.po index 7e1fb45a4..f37d75bfe 100644 --- a/po/de.po +++ b/po/de.po @@ -23,7 +23,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.7-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2012-08-28 16:10+0200\n" +"POT-Creation-Date: 2012-08-28 16:36+0200\n" "PO-Revision-Date: 2012-08-20 15:20+0200\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -8869,29 +8869,6 @@ msgstr "WeeChat beenden" msgid "Max WeeChat" msgstr "WeeChat beenden" -msgid "popular" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "installed" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "autoloaded" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "held" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "running" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "obsolete" -msgstr "" - msgid "alt+d=back to list" msgstr "" @@ -9159,6 +9136,30 @@ msgstr "" msgid "scripts from repository" msgstr "Liste der Skripten" +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "popular" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "installed" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "autoloaded" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "held" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "running" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "obsolete" +msgstr "" + #, fuzzy, c-format msgid "%s%s: error reading list of scripts" msgstr "%s%s: Fehler beim Senden von Daten an den Client: %s" diff --git a/po/es.po b/po/es.po index 5124190c6..f8e8c7ef0 100644 --- a/po/es.po +++ b/po/es.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.9-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2012-08-28 16:10+0200\n" +"POT-Creation-Date: 2012-08-28 16:36+0200\n" "PO-Revision-Date: 2012-08-20 15:20+0200\n" "Last-Translator: Elián Hanisch \n" "Language-Team: weechat-dev \n" @@ -8570,29 +8570,6 @@ msgstr "cerrar WeeChat" msgid "Max WeeChat" msgstr "cerrar WeeChat" -msgid "popular" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "installed" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "autoloaded" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "held" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "running" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "obsolete" -msgstr "" - msgid "alt+d=back to list" msgstr "" @@ -8860,6 +8837,30 @@ msgstr "" msgid "scripts from repository" msgstr "lista de scripts" +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "popular" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "installed" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "autoloaded" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "held" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "running" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "obsolete" +msgstr "" + #, fuzzy, c-format msgid "%s%s: error reading list of scripts" msgstr "%s%s: error al enviar datos al cliente: %s" diff --git a/po/fr.po b/po/fr.po index 21f9b1d10..db12600da 100644 --- a/po/fr.po +++ b/po/fr.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.9-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2012-08-28 16:10+0200\n" +"POT-Creation-Date: 2012-08-28 16:36+0200\n" "PO-Revision-Date: 2012-08-28 15:43+0200\n" "Last-Translator: Sebastien Helleu \n" "Language-Team: weechat-dev \n" @@ -8642,29 +8642,6 @@ msgstr "WeeChat mini" msgid "Max WeeChat" msgstr "WeeChat maxi" -msgid "popular" -msgstr "populaire" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "installed" -msgstr "installé" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "autoloaded" -msgstr "chargé_auto" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "held" -msgstr "figé" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "running" -msgstr "chargé" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "obsolete" -msgstr "obsolète" - msgid "alt+d=back to list" msgstr "alt+d=retour à la liste" @@ -9017,6 +8994,30 @@ msgstr "" msgid "scripts from repository" msgstr "scripts du repository" +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "popular" +msgstr "populaire" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "installed" +msgstr "installé" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "autoloaded" +msgstr "chargé_auto" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "held" +msgstr "figé" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "running" +msgstr "chargé" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "obsolete" +msgstr "obsolète" + #, c-format msgid "%s%s: error reading list of scripts" msgstr "%s%s: erreur de lecture de la liste des scripts" diff --git a/po/hu.po b/po/hu.po index f8e9c1c37..0d71c0678 100644 --- a/po/hu.po +++ b/po/hu.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.9-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2012-08-28 16:10+0200\n" +"POT-Creation-Date: 2012-08-28 16:36+0200\n" "PO-Revision-Date: 2012-08-20 15:20+0200\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -7776,29 +7776,6 @@ msgstr "WeeChat szlogen" msgid "Max WeeChat" msgstr "WeeChat szlogen" -msgid "popular" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "installed" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "autoloaded" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "held" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "running" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "obsolete" -msgstr "" - msgid "alt+d=back to list" msgstr "" @@ -8063,6 +8040,30 @@ msgstr "" msgid "scripts from repository" msgstr "Aliaszok listája:\n" +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "popular" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "installed" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "autoloaded" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "held" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "running" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "obsolete" +msgstr "" + #, fuzzy, c-format msgid "%s%s: error reading list of scripts" msgstr "%s adatküldési hiba az IRC szerveren\n" diff --git a/po/it.po b/po/it.po index 6e21d069f..99e861376 100644 --- a/po/it.po +++ b/po/it.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.9-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2012-08-28 16:10+0200\n" +"POT-Creation-Date: 2012-08-28 16:36+0200\n" "PO-Revision-Date: 2012-08-20 15:20+0200\n" "Last-Translator: Marco Paolone \n" "Language-Team: weechat-dev \n" @@ -8560,29 +8560,6 @@ msgstr "esce da WeeChat" msgid "Max WeeChat" msgstr "esce da WeeChat" -msgid "popular" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "installed" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "autoloaded" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "held" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "running" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "obsolete" -msgstr "" - msgid "alt+d=back to list" msgstr "" @@ -8850,6 +8827,30 @@ msgstr "" msgid "scripts from repository" msgstr "elenco degli script" +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "popular" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "installed" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "autoloaded" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "held" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "running" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "obsolete" +msgstr "" + #, fuzzy, c-format msgid "%s%s: error reading list of scripts" msgstr "%s%s: errore durante l'invio dei dati al client: %s" diff --git a/po/ja.po b/po/ja.po index b114379e0..17cdcc31b 100644 --- a/po/ja.po +++ b/po/ja.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.9-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2012-08-28 16:10+0200\n" +"POT-Creation-Date: 2012-08-28 16:36+0200\n" "PO-Revision-Date: 2012-08-20 15:20+0200\n" "Last-Translator: AYANOKOUZI, Ryuunosuke \n" "Language-Team: Japanese \n" @@ -8359,29 +8359,6 @@ msgstr "WeeChat の終了" msgid "Max WeeChat" msgstr "WeeChat の終了" -msgid "popular" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "installed" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "autoloaded" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "held" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "running" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "obsolete" -msgstr "" - msgid "alt+d=back to list" msgstr "" @@ -8647,6 +8624,30 @@ msgstr "" msgid "scripts from repository" msgstr "" +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "popular" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "installed" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "autoloaded" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "held" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "running" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "obsolete" +msgstr "" + #, fuzzy, c-format msgid "%s%s: error reading list of scripts" msgstr "%s%s: クライアントへのデータ送信中にエラー: %s" diff --git a/po/pl.po b/po/pl.po index 062a315a6..4a50b36f9 100644 --- a/po/pl.po +++ b/po/pl.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.9-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2012-08-28 16:10+0200\n" +"POT-Creation-Date: 2012-08-28 16:36+0200\n" "PO-Revision-Date: 2012-08-20 15:20+0200\n" "Last-Translator: Krzysztof Korościk \n" "Language-Team: weechat-dev \n" @@ -8493,29 +8493,6 @@ msgstr "zakończ WeeChat" msgid "Max WeeChat" msgstr "zakończ WeeChat" -msgid "popular" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "installed" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "autoloaded" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "held" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "running" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "obsolete" -msgstr "" - msgid "alt+d=back to list" msgstr "" @@ -8781,6 +8758,30 @@ msgstr "nazwa skryptu (może się zaczynać lub kończyć \"*\") (opcjonalne)" msgid "scripts from repository" msgstr "lista skryptów" +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "popular" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "installed" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "autoloaded" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "held" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "running" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "obsolete" +msgstr "" + #, fuzzy, c-format msgid "%s%s: error reading list of scripts" msgstr "%s%s: błąd podczas wysyłania danych do klienta: %s" diff --git a/po/pt_BR.po b/po/pt_BR.po index 628d5e029..c6639b508 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.9-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2012-08-28 16:10+0200\n" +"POT-Creation-Date: 2012-08-28 16:36+0200\n" "PO-Revision-Date: 2012-08-20 15:20+0200\n" "Last-Translator: Sergio Durigan Junior \n" "Language-Team: weechat-dev \n" @@ -7927,29 +7927,6 @@ msgstr "quit WeeChat" msgid "Max WeeChat" msgstr "quit WeeChat" -msgid "popular" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "installed" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "autoloaded" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "held" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "running" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "obsolete" -msgstr "" - msgid "alt+d=back to list" msgstr "" @@ -8217,6 +8194,30 @@ msgstr "" msgid "scripts from repository" msgstr "list de scripts" +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "popular" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "installed" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "autoloaded" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "held" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "running" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "obsolete" +msgstr "" + #, fuzzy, c-format msgid "%s%s: error reading list of scripts" msgstr "%s%s: erro ao criar transferência" diff --git a/po/ru.po b/po/ru.po index e4d35f45b..b2b7486e3 100644 --- a/po/ru.po +++ b/po/ru.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.9-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2012-08-28 16:10+0200\n" +"POT-Creation-Date: 2012-08-28 16:36+0200\n" "PO-Revision-Date: 2012-08-20 15:20+0200\n" "Last-Translator: Aleksey V Zapparov AKA ixti \n" "Language-Team: weechat-dev \n" @@ -7799,29 +7799,6 @@ msgstr "слоган WeeChat" msgid "Max WeeChat" msgstr "слоган WeeChat" -msgid "popular" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "installed" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "autoloaded" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "held" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "running" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "obsolete" -msgstr "" - msgid "alt+d=back to list" msgstr "" @@ -8086,6 +8063,30 @@ msgstr "" msgid "scripts from repository" msgstr "Список сокращений:\n" +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "popular" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "installed" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "autoloaded" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "held" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "running" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "obsolete" +msgstr "" + #, fuzzy, c-format msgid "%s%s: error reading list of scripts" msgstr "%s ошибка при отправке данных IRC серверу\n" diff --git a/po/weechat.pot b/po/weechat.pot index 0d11f9775..ec2e608d3 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: 2012-08-28 16:10+0200\n" +"POT-Creation-Date: 2012-08-28 16:36+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -6849,29 +6849,6 @@ msgstr "" msgid "Max WeeChat" msgstr "" -msgid "popular" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "installed" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "autoloaded" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "held" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "running" -msgstr "" - -#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) -msgid "obsolete" -msgstr "" - msgid "alt+d=back to list" msgstr "" @@ -7110,6 +7087,30 @@ msgstr "" msgid "scripts from repository" msgstr "" +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "popular" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "installed" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "autoloaded" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "held" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "running" +msgstr "" + +#. TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) +msgid "obsolete" +msgstr "" + #, c-format msgid "%s%s: error reading list of scripts" msgstr "" diff --git a/src/plugins/script/script-buffer.c b/src/plugins/script/script-buffer.c index 87e6c8b74..239c8a01c 100644 --- a/src/plugins/script/script-buffer.c +++ b/src/plugins/script/script-buffer.c @@ -428,27 +428,11 @@ script_buffer_display_detail_script (struct t_repo_script *script) else { weechat_printf_y (script_buffer, line + 1, - "%s: %s%s (%s%s%s%s%s%s%s%s%s%s%s%s )", + "%s: %s%s (%s)", script_buffer_detail_label (_(labels[line]), max_length), script_repo_get_status_for_display (script, "*iaHrN", 1), weechat_color ("chat"), - (script->popularity > 0) ? " " : "", - (script->popularity > 0) ? _("popular") : "", - (script->status & SCRIPT_STATUS_INSTALLED) ? " " : "", - /* TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) */ - (script->status & SCRIPT_STATUS_INSTALLED) ? _("installed") : "", - (script->status & SCRIPT_STATUS_AUTOLOADED) ? " " : "", - /* TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) */ - (script->status & SCRIPT_STATUS_AUTOLOADED) ? _("autoloaded") : "", - (script->status & SCRIPT_STATUS_HELD) ? " " : "", - /* TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) */ - (script->status & SCRIPT_STATUS_HELD) ? _("held") : "", - (script->status & SCRIPT_STATUS_RUNNING) ? " " : "", - /* TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) */ - (script->status & SCRIPT_STATUS_RUNNING) ? _("running") : "", - (script->status & SCRIPT_STATUS_NEW_VERSION) ? " " : "", - /* TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) */ - (script->status & SCRIPT_STATUS_NEW_VERSION) ? _("obsolete") : ""); + script_repo_get_status_desc_for_display (script, "*iaHrN")); } line++; tm = localtime (&script->date_added); diff --git a/src/plugins/script/script-repo.c b/src/plugins/script/script-repo.c index 2afa13611..4d5be3fe5 100644 --- a/src/plugins/script/script-repo.c +++ b/src/plugins/script/script-repo.c @@ -204,6 +204,88 @@ script_repo_get_status_for_display (struct t_repo_script *script, return str_status; } +/* + * script_repo_get_status_desc_for_display: get status description for display + * (exemple of string returned: + * "popular installed autoloaded loaded") + */ + +const char * +script_repo_get_status_desc_for_display (struct t_repo_script *script, + const char *list) +{ + static char str_status[256]; + const char *ptr_list; + + str_status[0] = '\0'; + + if (!script) + return str_status; + + for (ptr_list = list; ptr_list[0]; ptr_list++) + { + switch (ptr_list[0]) + { + case '*': + if (script->popularity > 0) + { + if (str_status[0]) + strcat (str_status, " "); + /* TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) */ + strcat (str_status, _("popular")); + } + break; + case 'i': + if (script->status & SCRIPT_STATUS_INSTALLED) + { + if (str_status[0]) + strcat (str_status, " "); + /* TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) */ + strcat (str_status, _("installed")); + } + break; + case 'a': + if (script->status & SCRIPT_STATUS_AUTOLOADED) + { + if (str_status[0]) + strcat (str_status, " "); + /* TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) */ + strcat (str_status, _("autoloaded")); + } + break; + case 'H': + if (script->status & SCRIPT_STATUS_HELD) + { + if (str_status[0]) + strcat (str_status, " "); + /* TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) */ + strcat (str_status, _("held")); + } + break; + case 'r': + if (script->status & SCRIPT_STATUS_RUNNING) + { + if (str_status[0]) + strcat (str_status, " "); + /* TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) */ + strcat (str_status, _("running")); + } + break; + case 'N': + if (script->status & SCRIPT_STATUS_NEW_VERSION) + { + if (str_status[0]) + strcat (str_status, " "); + /* TRANSLATORS: translation must be one short word without spaces (replace spaces by underscores if needed) */ + strcat (str_status, _("obsolete")); + } + break; + } + } + + return str_status; +} + /* * script_repo_alloc: allocate a script structure */ diff --git a/src/plugins/script/script-repo.h b/src/plugins/script/script-repo.h index 51e494f9f..5f8b97298 100644 --- a/src/plugins/script/script-repo.h +++ b/src/plugins/script/script-repo.h @@ -67,6 +67,8 @@ extern struct t_repo_script *script_repo_search_by_name_ext (const char *name_wi extern const char *script_repo_get_status_for_display (struct t_repo_script *script, const char *list, int collapse); +extern const char *script_repo_get_status_desc_for_display (struct t_repo_script *script, + const char *list); extern void script_repo_remove_all (); extern void script_repo_update_status (struct t_repo_script *script); extern void script_repo_update_status_all ();