]> jfr.im git - irc/weechat/weechat.git/commitdiff
script: rename parameters up/down/go to -up/-down/-go in command `/script`
authorSébastien Helleu <redacted>
Fri, 15 Sep 2023 06:43:37 +0000 (08:43 +0200)
committerSébastien Helleu <redacted>
Fri, 15 Sep 2023 06:43:37 +0000 (08:43 +0200)
17 files changed:
ChangeLog.adoc
po/cs.po
po/de.po
po/es.po
po/fr.po
po/hu.po
po/it.po
po/ja.po
po/pl.po
po/pt.po
po/pt_BR.po
po/ru.po
po/sr.po
po/tr.po
po/weechat.pot
src/plugins/script/script-buffer.c
src/plugins/script/script-command.c

index 3153459cb69124089acd0bae0f86e8f5ca7efba0..59781f647f5d2116879acbe92ed8ffa9892d90b3 100644 (file)
@@ -47,7 +47,8 @@ New features::
   * irc: remove default CTCP replies FINGER and USERINFO (issue #1974)
   * irc, xfer: add support of passive DCC (issue #2004, issue #487)
   * python: make stub (weechat.pyi) compatible with Python 3.8 and 3.9 (issue #2006)
-  * script: allow jump to the last script with command `/script go end`
+  * script: rename parameters up/down/go to -up/-down/-go in command `/script`
+  * script: allow jump to the last script with command `/script -go end`
   * script: allow commands `/script autoload`, `/script noautoload`, `/script toggleautoload` with scripts not present in the repository (issue #1980)
   * trigger: add options `-o`, `-ol`, `-i` and `-il` in command `/trigger list` (issue #1953)
 
index 2ce1fbf79c85b8ae97247159eef40032ae78cf60..7217e40998e9879848935167cdfa7757ca4ccc93 100644 (file)
--- a/po/cs.po
+++ b/po/cs.po
@@ -21,7 +21,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-09-14 19:39+0200\n"
+"POT-Creation-Date: 2023-09-15 08:41+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -13000,7 +13000,7 @@ msgid ""
 "list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
 "<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
 "[<script>...] || install|remove|installremove|hold [-q] <script> "
-"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
+"[<script>...] || upgrade || update || -up|-down [<number>] || -go <line>|end"
 msgstr ""
 "seznam [-o|-i] || hledej <text> || ukaž <script> || načti|uvolni|znovu načís "
 "<script> [<script>...] || automaticky načti|nenačítejtej automaticky|přepni "
@@ -13035,9 +13035,9 @@ msgid ""
 "       upgrade: upgrade all installed scripts which are obsolete (new "
 "version available)\n"
 "        update: update local scripts cache\n"
-"            up: move the selected line up by \"number\" lines\n"
-"          down: move the selected line down by \"number\" lines\n"
-"            go: select a line by number, first line number is 0 (\"end\" to "
+"           -up: move the selected line up by \"number\" lines\n"
+"         -down: move the selected line down by \"number\" lines\n"
+"           -go: select a line by number, first line number is 0 (\"end\" to "
 "select the last line)\n"
 "\n"
 "Without argument, this command opens a buffer with list of scripts.\n"
index 18a0ed0bc9686e97b7d20b9fce72d5bc8850f9cd..5de895c27eb7e5d4af43afd7dc7b4651a7a0f36c 100644 (file)
--- a/po/de.po
+++ b/po/de.po
@@ -26,7 +26,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-09-14 19:39+0200\n"
+"POT-Creation-Date: 2023-09-15 08:41+0200\n"
 "PO-Revision-Date: 2023-09-14 08:44+0200\n"
 "Last-Translator: Nils Görs <weechatter@arcor.de>\n"
 "Language-Team: German <kde-i18n-de@kde.org>\n"
@@ -15624,17 +15624,113 @@ msgid "WeeChat script manager"
 msgstr "WeeChat Skriptmanager"
 
 #. TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated
+#, fuzzy
+#| msgid ""
+#| "list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|"
+#| "reload <script> [<script>...] || autoload|noautoload|toggleautoload "
+#| "<script> [<script>...] || install|remove|installremove|hold [-q] <script> "
+#| "[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
 msgid ""
 "list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
 "<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
 "[<script>...] || install|remove|installremove|hold [-q] <script> "
-"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
+"[<script>...] || upgrade || update || -up|-down [<number>] || -go <line>|end"
 msgstr ""
 "list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
 "<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
 "[<script>...] || install|remove|installremove|hold [-q] <script> "
 "[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
 
+#, fuzzy
+#| msgid ""
+#| "          list: list loaded scripts (all languages)\n"
+#| "            -o: send list of loaded scripts to buffer (string in "
+#| "English)\n"
+#| "           -ol: send list of loaded scripts to buffer (translated "
+#| "string)\n"
+#| "            -i: copy list of loaded scripts in command line (for sending "
+#| "to buffer) (string in English)\n"
+#| "           -il: copy list of loaded scripts in command line (for sending "
+#| "to buffer) (translated string)\n"
+#| "        search: search scripts by tags, language (python, perl, ...), "
+#| "filename extension (py, pl, ...) or text; result is displayed on scripts "
+#| "buffer\n"
+#| "          show: show detailed info about a script\n"
+#| "          load: load script(s)\n"
+#| "        unload: unload script(s)\n"
+#| "        reload: reload script(s)\n"
+#| "      autoload: autoload the script\n"
+#| "    noautoload: do not autoload the script\n"
+#| "toggleautoload: toggle autoload\n"
+#| "       install: install/upgrade script(s)\n"
+#| "        remove: remove script(s)\n"
+#| " installremove: install or remove script(s), depending on current state\n"
+#| "          hold: hold/unhold script(s) (a script held will not be upgraded "
+#| "any more and cannot be removed)\n"
+#| "            -q: quiet mode: do not display messages\n"
+#| "       upgrade: upgrade all installed scripts which are obsolete (new "
+#| "version available)\n"
+#| "        update: update local scripts cache\n"
+#| "            up: move the selected line up by \"number\" lines\n"
+#| "          down: move the selected line down by \"number\" lines\n"
+#| "            go: select a line by number, first line number is 0 (\"end\" "
+#| "to select the last line)\n"
+#| "\n"
+#| "Without argument, this command opens a buffer with list of scripts.\n"
+#| "\n"
+#| "On script buffer, the possible status for each script are:\n"
+#| "  * i a H r N\n"
+#| "  | | | | | |\n"
+#| "  | | | | | obsolete (new version available)\n"
+#| "  | | | | running (loaded)\n"
+#| "  | | | held\n"
+#| "  | | autoloaded\n"
+#| "  | installed\n"
+#| "  popular script\n"
+#| "\n"
+#| "In output of /script list, the possible status for each script are:\n"
+#| "  * ? i a H N\n"
+#| "  | | | | | |\n"
+#| "  | | | | | obsolete (new version available)\n"
+#| "  | | | | held\n"
+#| "  | | | autoloaded\n"
+#| "  | | installed\n"
+#| "  | unknown script (can not be downloaded/updated)\n"
+#| "  popular script\n"
+#| "\n"
+#| "Keys on script buffer:\n"
+#| "  alt+i  install script\n"
+#| "  alt+r  remove script\n"
+#| "  alt+l  load script\n"
+#| "  alt+L  reload script\n"
+#| "  alt+u  unload script\n"
+#| "  alt+A  autoload script\n"
+#| "  alt+h  (un)hold script\n"
+#| "  alt+v  view script\n"
+#| "\n"
+#| "Input allowed on script buffer:\n"
+#| "  i/r/l/L/u/A/h/v  action on script (same as keys above)\n"
+#| "  q                close buffer\n"
+#| "  $                refresh buffer\n"
+#| "  s:x,y            sort buffer using keys x and y (see /help script.look."
+#| "sort)\n"
+#| "  s:               reset sort (use default sort)\n"
+#| "  word(s)          filter scripts: search word(s) in scripts "
+#| "(description, tags, ...)\n"
+#| "  *                remove filter\n"
+#| "\n"
+#| "Mouse actions on script buffer:\n"
+#| "  wheel         scroll list\n"
+#| "  left button   select script\n"
+#| "  right button  install/remove script\n"
+#| "\n"
+#| "Examples:\n"
+#| "  /script search url\n"
+#| "  /script install go.py urlserver.py\n"
+#| "  /script remove go.py\n"
+#| "  /script hold urlserver.py\n"
+#| "  /script reload urlserver\n"
+#| "  /script upgrade"
 msgid ""
 "          list: list loaded scripts (all languages)\n"
 "            -o: send list of loaded scripts to buffer (string in English)\n"
@@ -15662,9 +15758,9 @@ msgid ""
 "       upgrade: upgrade all installed scripts which are obsolete (new "
 "version available)\n"
 "        update: update local scripts cache\n"
-"            up: move the selected line up by \"number\" lines\n"
-"          down: move the selected line down by \"number\" lines\n"
-"            go: select a line by number, first line number is 0 (\"end\" to "
+"           -up: move the selected line up by \"number\" lines\n"
+"         -down: move the selected line down by \"number\" lines\n"
+"           -go: select a line by number, first line number is 0 (\"end\" to "
 "select the last line)\n"
 "\n"
 "Without argument, this command opens a buffer with list of scripts.\n"
index cc1115cfbcd87ea34857fe8dca84c88456f57eb4..1f22bbfe4969a33a102681912717144887abebda 100644 (file)
--- a/po/es.po
+++ b/po/es.po
@@ -22,7 +22,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-09-14 19:39+0200\n"
+"POT-Creation-Date: 2023-09-15 08:41+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -13743,7 +13743,7 @@ msgid ""
 "list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
 "<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
 "[<script>...] || install|remove|installremove|hold [-q] <script> "
-"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
+"[<script>...] || upgrade || update || -up|-down [<number>] || -go <line>|end"
 msgstr ""
 
 msgid ""
@@ -13773,9 +13773,9 @@ msgid ""
 "       upgrade: upgrade all installed scripts which are obsolete (new "
 "version available)\n"
 "        update: update local scripts cache\n"
-"            up: move the selected line up by \"number\" lines\n"
-"          down: move the selected line down by \"number\" lines\n"
-"            go: select a line by number, first line number is 0 (\"end\" to "
+"           -up: move the selected line up by \"number\" lines\n"
+"         -down: move the selected line down by \"number\" lines\n"
+"           -go: select a line by number, first line number is 0 (\"end\" to "
 "select the last line)\n"
 "\n"
 "Without argument, this command opens a buffer with list of scripts.\n"
index aa9df68e324ec7e895549d19add71c97c469cd65..f064e36c7b347274a3a9f053db785bb51364ba1f 100644 (file)
--- a/po/fr.po
+++ b/po/fr.po
@@ -21,8 +21,8 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-09-14 19:39+0200\n"
-"PO-Revision-Date: 2023-09-14 20:10+0200\n"
+"POT-Creation-Date: 2023-09-15 08:41+0200\n"
+"PO-Revision-Date: 2023-09-15 08:41+0200\n"
 "Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
 "Language: fr\n"
@@ -15353,12 +15353,12 @@ msgid ""
 "list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
 "<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
 "[<script>...] || install|remove|installremove|hold [-q] <script> "
-"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
+"[<script>...] || upgrade || update || -up|-down [<number>] || -go <line>|end"
 msgstr ""
 "list [-o|-ol|-i|-il] || search <texte> || show <script> || load|unload|"
 "reload <script> [<script>...] || autoload|noautoload|toggleautoload <script> "
 "[<script>...] || install|remove|installremove|hold [-q] <script> "
-"[<script>...] || upgrade || update || up|down [<nombre>] || go <ligne>|end"
+"[<script>...] || upgrade || update || -up|-down [<nombre>] || -go <ligne>|end"
 
 msgid ""
 "          list: list loaded scripts (all languages)\n"
@@ -15387,9 +15387,9 @@ msgid ""
 "       upgrade: upgrade all installed scripts which are obsolete (new "
 "version available)\n"
 "        update: update local scripts cache\n"
-"            up: move the selected line up by \"number\" lines\n"
-"          down: move the selected line down by \"number\" lines\n"
-"            go: select a line by number, first line number is 0 (\"end\" to "
+"           -up: move the selected line up by \"number\" lines\n"
+"         -down: move the selected line down by \"number\" lines\n"
+"           -go: select a line by number, first line number is 0 (\"end\" to "
 "select the last line)\n"
 "\n"
 "Without argument, this command opens a buffer with list of scripts.\n"
@@ -15477,11 +15477,11 @@ msgstr ""
 "       upgrade : mettre à jour les scripts obsolètes (avec nouvelle version "
 "disponible)\n"
 "        update : mettre à jour le cache local des scripts\n"
-"            up : déplacer la ligne sélectionnée de \"nombre\" lignes vers le "
+"           -up : déplacer la ligne sélectionnée de \"nombre\" lignes vers le "
 "haut\n"
-"          down : déplacer la ligne sélectionnée de \"nombre\" lignes vers le "
+"         -down : déplacer la ligne sélectionnée de \"nombre\" lignes vers le "
 "bas\n"
-"            go : sélectionner une ligne par numéro, la première ligne est 0 "
+"           -go : sélectionner une ligne par numéro, la première ligne est 0 "
 "(\"end\" pour sélectionner la dernière ligne)\n"
 "\n"
 "Sans paramètre, cette commande ouvre un tampon avec la liste des scripts.\n"
index fb254165159995df189a492b95b90d11b5e36590..f232f0ea6f3b84c5fb35ee45463ae5e92d43e38f 100644 (file)
--- a/po/hu.po
+++ b/po/hu.po
@@ -20,7 +20,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-09-14 19:39+0200\n"
+"POT-Creation-Date: 2023-09-15 08:41+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -12325,7 +12325,7 @@ msgid ""
 "list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
 "<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
 "[<script>...] || install|remove|installremove|hold [-q] <script> "
-"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
+"[<script>...] || upgrade || update || -up|-down [<number>] || -go <line>|end"
 msgstr ""
 
 msgid ""
@@ -12355,9 +12355,9 @@ msgid ""
 "       upgrade: upgrade all installed scripts which are obsolete (new "
 "version available)\n"
 "        update: update local scripts cache\n"
-"            up: move the selected line up by \"number\" lines\n"
-"          down: move the selected line down by \"number\" lines\n"
-"            go: select a line by number, first line number is 0 (\"end\" to "
+"           -up: move the selected line up by \"number\" lines\n"
+"         -down: move the selected line down by \"number\" lines\n"
+"           -go: select a line by number, first line number is 0 (\"end\" to "
 "select the last line)\n"
 "\n"
 "Without argument, this command opens a buffer with list of scripts.\n"
index ed0bfa09cbe9b7b0fc8531de280b264415b451ed..2fc3774e15274e5bb02fc77e4c182500c155995c 100644 (file)
--- a/po/it.po
+++ b/po/it.po
@@ -20,7 +20,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-09-14 19:39+0200\n"
+"POT-Creation-Date: 2023-09-15 08:41+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -13498,7 +13498,7 @@ msgid ""
 "list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
 "<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
 "[<script>...] || install|remove|installremove|hold [-q] <script> "
-"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
+"[<script>...] || upgrade || update || -up|-down [<number>] || -go <line>|end"
 msgstr ""
 
 msgid ""
@@ -13528,9 +13528,9 @@ msgid ""
 "       upgrade: upgrade all installed scripts which are obsolete (new "
 "version available)\n"
 "        update: update local scripts cache\n"
-"            up: move the selected line up by \"number\" lines\n"
-"          down: move the selected line down by \"number\" lines\n"
-"            go: select a line by number, first line number is 0 (\"end\" to "
+"           -up: move the selected line up by \"number\" lines\n"
+"         -down: move the selected line down by \"number\" lines\n"
+"           -go: select a line by number, first line number is 0 (\"end\" to "
 "select the last line)\n"
 "\n"
 "Without argument, this command opens a buffer with list of scripts.\n"
index 409f80b8d6a686a43d2c34385a0a1bedd2fc44e8..c5efa9f37330a3d4f17d3b9f4b3e990e9d31b0d2 100644 (file)
--- a/po/ja.po
+++ b/po/ja.po
@@ -20,7 +20,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-09-14 19:39+0200\n"
+"POT-Creation-Date: 2023-09-15 08:41+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
 "Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -14838,7 +14838,7 @@ msgid ""
 "list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
 "<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
 "[<script>...] || install|remove|installremove|hold [-q] <script> "
-"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
+"[<script>...] || upgrade || update || -up|-down [<number>] || -go <line>|end"
 msgstr ""
 "list [-o|-i] || search <text> || show <script> || load|unload|reload "
 "<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
@@ -14873,9 +14873,9 @@ msgid ""
 "       upgrade: upgrade all installed scripts which are obsolete (new "
 "version available)\n"
 "        update: update local scripts cache\n"
-"            up: move the selected line up by \"number\" lines\n"
-"          down: move the selected line down by \"number\" lines\n"
-"            go: select a line by number, first line number is 0 (\"end\" to "
+"           -up: move the selected line up by \"number\" lines\n"
+"         -down: move the selected line down by \"number\" lines\n"
+"           -go: select a line by number, first line number is 0 (\"end\" to "
 "select the last line)\n"
 "\n"
 "Without argument, this command opens a buffer with list of scripts.\n"
index 43d91f37ad1f7e527a15af8b70c4499a6ec752e7..d003ab4b960248995267ea0d7e83980629fd04af 100644 (file)
--- a/po/pl.po
+++ b/po/pl.po
@@ -22,7 +22,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-09-14 19:39+0200\n"
+"POT-Creation-Date: 2023-09-15 08:41+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
 "Language-Team: Polish <kde-i18n-doc@kde.org>\n"
@@ -16188,7 +16188,7 @@ msgid ""
 "list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
 "<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
 "[<script>...] || install|remove|installremove|hold [-q] <script> "
-"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
+"[<script>...] || upgrade || update || -up|-down [<number>] || -go <line>|end"
 msgstr ""
 "list [-o|-ol|-i|-il] || search <tekst> || show <skrypt> || load|unload|"
 "reload <skrypt> [<skrypt>...] || autoload|noautoload|toggleautoload <skrypt> "
@@ -16308,9 +16308,9 @@ msgid ""
 "       upgrade: upgrade all installed scripts which are obsolete (new "
 "version available)\n"
 "        update: update local scripts cache\n"
-"            up: move the selected line up by \"number\" lines\n"
-"          down: move the selected line down by \"number\" lines\n"
-"            go: select a line by number, first line number is 0 (\"end\" to "
+"           -up: move the selected line up by \"number\" lines\n"
+"         -down: move the selected line down by \"number\" lines\n"
+"           -go: select a line by number, first line number is 0 (\"end\" to "
 "select the last line)\n"
 "\n"
 "Without argument, this command opens a buffer with list of scripts.\n"
index 498c412e4ceb02ce19fa5363ba12be453a56706a..1bec1084e186b3919817f7dd5b90094f72ab29ba 100644 (file)
--- a/po/pt.po
+++ b/po/pt.po
@@ -20,7 +20,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-09-14 19:39+0200\n"
+"POT-Creation-Date: 2023-09-15 08:41+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
 "Language-Team: Portuguese <>\n"
@@ -14512,7 +14512,7 @@ msgid ""
 "list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
 "<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
 "[<script>...] || install|remove|installremove|hold [-q] <script> "
-"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
+"[<script>...] || upgrade || update || -up|-down [<number>] || -go <line>|end"
 msgstr ""
 "list [-o|-i] || search <texto> || show <script> || load|unload|reload "
 "<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
@@ -14547,9 +14547,9 @@ msgid ""
 "       upgrade: upgrade all installed scripts which are obsolete (new "
 "version available)\n"
 "        update: update local scripts cache\n"
-"            up: move the selected line up by \"number\" lines\n"
-"          down: move the selected line down by \"number\" lines\n"
-"            go: select a line by number, first line number is 0 (\"end\" to "
+"           -up: move the selected line up by \"number\" lines\n"
+"         -down: move the selected line down by \"number\" lines\n"
+"           -go: select a line by number, first line number is 0 (\"end\" to "
 "select the last line)\n"
 "\n"
 "Without argument, this command opens a buffer with list of scripts.\n"
index 5ad4335e984709a9bdf874a18829fc95382dda9d..af5974cd9a063253c0a006dcdb193b0e0fc1288a 100644 (file)
@@ -21,7 +21,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-09-14 19:39+0200\n"
+"POT-Creation-Date: 2023-09-15 08:41+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -12956,7 +12956,7 @@ msgid ""
 "list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
 "<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
 "[<script>...] || install|remove|installremove|hold [-q] <script> "
-"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
+"[<script>...] || upgrade || update || -up|-down [<number>] || -go <line>|end"
 msgstr ""
 
 msgid ""
@@ -12986,9 +12986,9 @@ msgid ""
 "       upgrade: upgrade all installed scripts which are obsolete (new "
 "version available)\n"
 "        update: update local scripts cache\n"
-"            up: move the selected line up by \"number\" lines\n"
-"          down: move the selected line down by \"number\" lines\n"
-"            go: select a line by number, first line number is 0 (\"end\" to "
+"           -up: move the selected line up by \"number\" lines\n"
+"         -down: move the selected line down by \"number\" lines\n"
+"           -go: select a line by number, first line number is 0 (\"end\" to "
 "select the last line)\n"
 "\n"
 "Without argument, this command opens a buffer with list of scripts.\n"
index 06ea9e7d0b9869c9ff262fc51f14e21a6a4a8d63..af33a9df0038cd49ed4b613edb990b113813a8a3 100644 (file)
--- a/po/ru.po
+++ b/po/ru.po
@@ -21,7 +21,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-09-14 19:39+0200\n"
+"POT-Creation-Date: 2023-09-15 08:41+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -12367,7 +12367,7 @@ msgid ""
 "list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
 "<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
 "[<script>...] || install|remove|installremove|hold [-q] <script> "
-"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
+"[<script>...] || upgrade || update || -up|-down [<number>] || -go <line>|end"
 msgstr ""
 
 msgid ""
@@ -12397,9 +12397,9 @@ msgid ""
 "       upgrade: upgrade all installed scripts which are obsolete (new "
 "version available)\n"
 "        update: update local scripts cache\n"
-"            up: move the selected line up by \"number\" lines\n"
-"          down: move the selected line down by \"number\" lines\n"
-"            go: select a line by number, first line number is 0 (\"end\" to "
+"           -up: move the selected line up by \"number\" lines\n"
+"         -down: move the selected line down by \"number\" lines\n"
+"           -go: select a line by number, first line number is 0 (\"end\" to "
 "select the last line)\n"
 "\n"
 "Without argument, this command opens a buffer with list of scripts.\n"
index ae4979c31cd049220369f7b6485234ca4db3457e..b01bf244ac3666c88228972be5dd1de22a952b63 100644 (file)
--- a/po/sr.po
+++ b/po/sr.po
@@ -20,7 +20,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-09-14 19:39+0200\n"
+"POT-Creation-Date: 2023-09-15 08:41+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -15069,17 +15069,113 @@ msgid "WeeChat script manager"
 msgstr "Менаџер WeeChat скрипти"
 
 #. TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated
+#, fuzzy
+#| msgid ""
+#| "list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|"
+#| "reload <script> [<script>...] || autoload|noautoload|toggleautoload "
+#| "<script> [<script>...] || install|remove|installremove|hold [-q] <script> "
+#| "[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
 msgid ""
 "list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
 "<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
 "[<script>...] || install|remove|installremove|hold [-q] <script> "
-"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
+"[<script>...] || upgrade || update || -up|-down [<number>] || -go <line>|end"
 msgstr ""
 "list [-o|-ol|-i|-il] || search <текст> || show <скрипта> || load|unload|"
 "reload <скрипта> [<скрипта>...] || autoload|noautoload|toggleautoload "
 "<скрипта> [<скрипта>...] || install|remove|installremove|hold [-q] <скрипта> "
 "[<скрипта>...] || upgrade || update || up|down [<број>] || go <линија>|end"
 
+#, fuzzy
+#| msgid ""
+#| "          list: list loaded scripts (all languages)\n"
+#| "            -o: send list of loaded scripts to buffer (string in "
+#| "English)\n"
+#| "           -ol: send list of loaded scripts to buffer (translated "
+#| "string)\n"
+#| "            -i: copy list of loaded scripts in command line (for sending "
+#| "to buffer) (string in English)\n"
+#| "           -il: copy list of loaded scripts in command line (for sending "
+#| "to buffer) (translated string)\n"
+#| "        search: search scripts by tags, language (python, perl, ...), "
+#| "filename extension (py, pl, ...) or text; result is displayed on scripts "
+#| "buffer\n"
+#| "          show: show detailed info about a script\n"
+#| "          load: load script(s)\n"
+#| "        unload: unload script(s)\n"
+#| "        reload: reload script(s)\n"
+#| "      autoload: autoload the script\n"
+#| "    noautoload: do not autoload the script\n"
+#| "toggleautoload: toggle autoload\n"
+#| "       install: install/upgrade script(s)\n"
+#| "        remove: remove script(s)\n"
+#| " installremove: install or remove script(s), depending on current state\n"
+#| "          hold: hold/unhold script(s) (a script held will not be upgraded "
+#| "any more and cannot be removed)\n"
+#| "            -q: quiet mode: do not display messages\n"
+#| "       upgrade: upgrade all installed scripts which are obsolete (new "
+#| "version available)\n"
+#| "        update: update local scripts cache\n"
+#| "            up: move the selected line up by \"number\" lines\n"
+#| "          down: move the selected line down by \"number\" lines\n"
+#| "            go: select a line by number, first line number is 0 (\"end\" "
+#| "to select the last line)\n"
+#| "\n"
+#| "Without argument, this command opens a buffer with list of scripts.\n"
+#| "\n"
+#| "On script buffer, the possible status for each script are:\n"
+#| "  * i a H r N\n"
+#| "  | | | | | |\n"
+#| "  | | | | | obsolete (new version available)\n"
+#| "  | | | | running (loaded)\n"
+#| "  | | | held\n"
+#| "  | | autoloaded\n"
+#| "  | installed\n"
+#| "  popular script\n"
+#| "\n"
+#| "In output of /script list, the possible status for each script are:\n"
+#| "  * ? i a H N\n"
+#| "  | | | | | |\n"
+#| "  | | | | | obsolete (new version available)\n"
+#| "  | | | | held\n"
+#| "  | | | autoloaded\n"
+#| "  | | installed\n"
+#| "  | unknown script (can not be downloaded/updated)\n"
+#| "  popular script\n"
+#| "\n"
+#| "Keys on script buffer:\n"
+#| "  alt+i  install script\n"
+#| "  alt+r  remove script\n"
+#| "  alt+l  load script\n"
+#| "  alt+L  reload script\n"
+#| "  alt+u  unload script\n"
+#| "  alt+A  autoload script\n"
+#| "  alt+h  (un)hold script\n"
+#| "  alt+v  view script\n"
+#| "\n"
+#| "Input allowed on script buffer:\n"
+#| "  i/r/l/L/u/A/h/v  action on script (same as keys above)\n"
+#| "  q                close buffer\n"
+#| "  $                refresh buffer\n"
+#| "  s:x,y            sort buffer using keys x and y (see /help script.look."
+#| "sort)\n"
+#| "  s:               reset sort (use default sort)\n"
+#| "  word(s)          filter scripts: search word(s) in scripts "
+#| "(description, tags, ...)\n"
+#| "  *                remove filter\n"
+#| "\n"
+#| "Mouse actions on script buffer:\n"
+#| "  wheel         scroll list\n"
+#| "  left button   select script\n"
+#| "  right button  install/remove script\n"
+#| "\n"
+#| "Examples:\n"
+#| "  /script search url\n"
+#| "  /script install go.py urlserver.py\n"
+#| "  /script remove go.py\n"
+#| "  /script hold urlserver.py\n"
+#| "  /script reload urlserver\n"
+#| "  /script upgrade"
 msgid ""
 "          list: list loaded scripts (all languages)\n"
 "            -o: send list of loaded scripts to buffer (string in English)\n"
@@ -15107,9 +15203,9 @@ msgid ""
 "       upgrade: upgrade all installed scripts which are obsolete (new "
 "version available)\n"
 "        update: update local scripts cache\n"
-"            up: move the selected line up by \"number\" lines\n"
-"          down: move the selected line down by \"number\" lines\n"
-"            go: select a line by number, first line number is 0 (\"end\" to "
+"           -up: move the selected line up by \"number\" lines\n"
+"         -down: move the selected line down by \"number\" lines\n"
+"           -go: select a line by number, first line number is 0 (\"end\" to "
 "select the last line)\n"
 "\n"
 "Without argument, this command opens a buffer with list of scripts.\n"
index 2c312d2cc9f33adee48db50042fd487b3736c818..bb7eb09761486b7264f73dfd187503faf79d94df 100644 (file)
--- a/po/tr.po
+++ b/po/tr.po
@@ -20,7 +20,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-09-14 19:39+0200\n"
+"POT-Creation-Date: 2023-09-15 08:41+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -15626,7 +15626,7 @@ msgid ""
 "list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
 "<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
 "[<script>...] || install|remove|installremove|hold [-q] <script> "
-"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
+"[<script>...] || upgrade || update || -up|-down [<number>] || -go <line>|end"
 msgstr ""
 "list [-o|-ol|-i|-il] || search <metin> || show <betik> || load|unload|reload "
 "<betik> [<betik>...] || autoload|noautoload|toggleautoload <betik> "
@@ -15746,9 +15746,9 @@ msgid ""
 "       upgrade: upgrade all installed scripts which are obsolete (new "
 "version available)\n"
 "        update: update local scripts cache\n"
-"            up: move the selected line up by \"number\" lines\n"
-"          down: move the selected line down by \"number\" lines\n"
-"            go: select a line by number, first line number is 0 (\"end\" to "
+"           -up: move the selected line up by \"number\" lines\n"
+"         -down: move the selected line down by \"number\" lines\n"
+"           -go: select a line by number, first line number is 0 (\"end\" to "
 "select the last line)\n"
 "\n"
 "Without argument, this command opens a buffer with list of scripts.\n"
index a5c51dde01dd07d0bdeaf9910baadf8ba86b4041..947e57156afde97d667cd6b9d8f26dc0924d4bdc 100644 (file)
@@ -21,7 +21,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-09-14 19:39+0200\n"
+"POT-Creation-Date: 2023-09-15 08:41+0200\n"
 "PO-Revision-Date: 2014-08-16 10:27+0200\n"
 "Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -11189,7 +11189,7 @@ msgid ""
 "list [-o|-ol|-i|-il] || search <text> || show <script> || load|unload|reload "
 "<script> [<script>...] || autoload|noautoload|toggleautoload <script> "
 "[<script>...] || install|remove|installremove|hold [-q] <script> "
-"[<script>...] || upgrade || update || up|down [<number>] || go <line>|end"
+"[<script>...] || upgrade || update || -up|-down [<number>] || -go <line>|end"
 msgstr ""
 
 msgid ""
@@ -11219,9 +11219,9 @@ msgid ""
 "       upgrade: upgrade all installed scripts which are obsolete (new "
 "version available)\n"
 "        update: update local scripts cache\n"
-"            up: move the selected line up by \"number\" lines\n"
-"          down: move the selected line down by \"number\" lines\n"
-"            go: select a line by number, first line number is 0 (\"end\" to "
+"           -up: move the selected line up by \"number\" lines\n"
+"         -down: move the selected line down by \"number\" lines\n"
+"           -go: select a line by number, first line number is 0 (\"end\" to "
 "select the last line)\n"
 "\n"
 "Without argument, this command opens a buffer with list of scripts.\n"
index 801f17b6ceb3341e8270e17b37c016def2f9658a..daee80445eb16f519c649bd4b6e89278996b2a1b 100644 (file)
@@ -1094,8 +1094,8 @@ void
 script_buffer_set_keys (struct t_hashtable *hashtable)
 {
     char *keys[][2] = {
-        { "up",     "up"             },
-        { "down",   "down"           },
+        { "up",     "-up"            },
+        { "down",   "-down"          },
         { "meta-A", "toggleautoload" },
         { "meta-l", "load"           },
         { "meta-u", "unload"         },
@@ -1113,8 +1113,8 @@ script_buffer_set_keys (struct t_hashtable *hashtable)
     for (i = 0; keys[i][0]; i++)
     {
         if (weechat_config_boolean (script_config_look_use_keys)
-            || (strcmp (keys[i][1], "up") == 0)
-            || (strcmp (keys[i][1], "down") == 0))
+            || (strcmp (keys[i][1], "-up") == 0)
+            || (strcmp (keys[i][1], "-down") == 0))
         {
             snprintf (str_key, sizeof (str_key), "key_bind_%s", keys[i][0]);
             snprintf (str_command, sizeof (str_command), "/script %s", keys[i][1]);
index 80a81c293318c249a2f6a4dbff66b5e46b314c91..96ef216f140f799ead3684c1ed04ce022eb6b749 100644 (file)
@@ -202,7 +202,7 @@ script_command_script (const void *pointer, void *data,
         return WEECHAT_RC_OK;
     }
 
-    if (weechat_strcmp (argv[1], "go") == 0)
+    if (weechat_strcmp (argv[1], "-go") == 0)
     {
         if ((argc > 2) && script_buffer && !script_buffer_detail_script)
         {
@@ -227,7 +227,7 @@ script_command_script (const void *pointer, void *data,
         return WEECHAT_RC_OK;
     }
 
-    if (weechat_strcmp (argv[1], "up") == 0)
+    if (weechat_strcmp (argv[1], "-up") == 0)
     {
         if (script_buffer)
         {
@@ -261,7 +261,7 @@ script_command_script (const void *pointer, void *data,
         return WEECHAT_RC_OK;
     }
 
-    if (weechat_strcmp (argv[1], "down") == 0)
+    if (weechat_strcmp (argv[1], "-down") == 0)
     {
         if (script_buffer)
         {
@@ -317,8 +317,8 @@ script_command_init ()
            " || install|remove|installremove|hold [-q] <script> [<script>...]"
            " || upgrade"
            " || update"
-           " || up|down [<number>]"
-           " || go <line>|end"),
+           " || -up|-down [<number>]"
+           " || -go <line>|end"),
         N_("          list: list loaded scripts (all languages)\n"
            "            -o: send list of loaded scripts to buffer "
            "(string in English)\n"
@@ -348,9 +348,9 @@ script_command_init ()
            "       upgrade: upgrade all installed scripts which are obsolete "
            "(new version available)\n"
            "        update: update local scripts cache\n"
-           "            up: move the selected line up by \"number\" lines\n"
-           "          down: move the selected line down by \"number\" lines\n"
-           "            go: select a line by number, first line number is 0 "
+           "           -up: move the selected line up by \"number\" lines\n"
+           "         -down: move the selected line down by \"number\" lines\n"
+           "           -go: select a line by number, first line number is 0 "
            "(\"end\" to select the last line)\n"
            "\n"
            "Without argument, this command opens a buffer with list of scripts.\n"
@@ -427,8 +427,8 @@ script_command_init ()
         " || hold %(script_scripts)|%*"
         " || update"
         " || upgrade"
-        " || up 1|2|3|4|5"
-        " || down 1|2|3|4|5"
-        " || go 0|end",
+        " || -up 1|2|3|4|5"
+        " || -down 1|2|3|4|5"
+        " || -go 0|end",
         &script_command_script, NULL, NULL);
 }