diff options
-rw-r--r-- | po/cs.po | 7 | ||||
-rw-r--r-- | po/de.po | 7 | ||||
-rw-r--r-- | po/es.po | 7 | ||||
-rw-r--r-- | po/fr.po | 8 | ||||
-rw-r--r-- | po/hu.po | 6 | ||||
-rw-r--r-- | po/it.po | 7 | ||||
-rw-r--r-- | po/ja.po | 7 | ||||
-rw-r--r-- | po/pl.po | 7 | ||||
-rw-r--r-- | po/pt.po | 7 | ||||
-rw-r--r-- | po/pt_BR.po | 7 | ||||
-rw-r--r-- | po/ru.po | 6 | ||||
-rw-r--r-- | po/sr.po | 7 | ||||
-rw-r--r-- | po/tr.po | 7 | ||||
-rw-r--r-- | po/weechat.pot | 6 | ||||
-rw-r--r-- | src/core/wee-config.c | 36 |
15 files changed, 116 insertions, 16 deletions
@@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-04-15 11:04+0200\n" +"POT-Creation-Date: 2023-04-19 14:56+0200\n" "PO-Revision-Date: 2023-03-25 21:13+0100\n" "Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -3144,6 +3144,11 @@ msgstr "" msgid "Legacy key converted: \"%s\" => \"%s\"" msgstr "" +#, fuzzy, c-format +#| msgid "Command for key: \"%s\"" +msgid "Command converted for key \"%s\": \"%s\" => \"%s\"" +msgstr "příkaz pro klávesu: \"%s\"" + msgid "debug level for plugin (\"core\" for WeeChat core)" msgstr "úroveň ladění pro plugin (\"core\" pro jádro WeeChat)" @@ -26,7 +26,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-04-15 11:04+0200\n" +"POT-Creation-Date: 2023-04-19 14:56+0200\n" "PO-Revision-Date: 2023-04-13 20:09+0200\n" "Last-Translator: Nils Görs <weechatter@arcor.de>\n" "Language-Team: German - Germany <weechatter@arcor.de>\n" @@ -4016,6 +4016,11 @@ msgstr "Veraltete Taste wurde entfernt: \"%s\"" msgid "Legacy key converted: \"%s\" => \"%s\"" msgstr "Veraltete Taste konvertiert: \"%s\" => \"%s\"" +#, fuzzy, c-format +#| msgid "Alias converted to lower case: \"%s\" => \"%s\"" +msgid "Command converted for key \"%s\": \"%s\" => \"%s\"" +msgstr "Alias in Kleinbuchstaben umgewandelt: \"%s\" => \"%s\"" + msgid "debug level for plugin (\"core\" for WeeChat core)" msgstr "Debug-Level für Erweiterung (\"core\" für den WeeChat Core)" @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-04-15 11:04+0200\n" +"POT-Creation-Date: 2023-04-19 14:56+0200\n" "PO-Revision-Date: 2023-03-25 21:13+0100\n" "Last-Translator: Santiago Forero <santiago@forero.xyz>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -3689,6 +3689,11 @@ msgstr "" msgid "Legacy key converted: \"%s\" => \"%s\"" msgstr "" +#, fuzzy, c-format +#| msgid "Command for key: \"%s\"" +msgid "Command converted for key \"%s\": \"%s\" => \"%s\"" +msgstr "Comando para el atajo: \"%s\"" + msgid "debug level for plugin (\"core\" for WeeChat core)" msgstr "nivel de depurado para el plugin (\"core\" para el núcleo de WeeChat)" @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-04-15 11:04+0200\n" -"PO-Revision-Date: 2023-04-15 11:04+0200\n" +"POT-Creation-Date: 2023-04-19 14:56+0200\n" +"PO-Revision-Date: 2023-04-19 16:34+0200\n" "Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" "Language: fr\n" @@ -3923,6 +3923,10 @@ msgstr "Ancienne touche supprimée : \"%s\"" msgid "Legacy key converted: \"%s\" => \"%s\"" msgstr "Ancienne touche convertie : \"%s\" => \"%s\"" +#, c-format +msgid "Command converted for key \"%s\": \"%s\" => \"%s\"" +msgstr "Commande convertie pour la touche\"%s\" : \"%s\" => \"%s\"" + msgid "debug level for plugin (\"core\" for WeeChat core)" msgstr "niveau de debug pour l'extension (\"core\" pour le cœur de WeeChat)" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-04-15 11:04+0200\n" +"POT-Creation-Date: 2023-04-19 14:56+0200\n" "PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -2794,6 +2794,10 @@ msgstr "" msgid "Legacy key converted: \"%s\" => \"%s\"" msgstr "" +#, c-format +msgid "Command converted for key \"%s\": \"%s\" => \"%s\"" +msgstr "" + msgid "debug level for plugin (\"core\" for WeeChat core)" msgstr "" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-04-15 11:04+0200\n" +"POT-Creation-Date: 2023-04-19 14:56+0200\n" "PO-Revision-Date: 2023-03-25 21:13+0100\n" "Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -3302,6 +3302,11 @@ msgstr "" msgid "Legacy key converted: \"%s\" => \"%s\"" msgstr "" +#, fuzzy, c-format +#| msgid "Command for key: \"%s\"" +msgid "Command converted for key \"%s\": \"%s\" => \"%s\"" +msgstr "Comando per il tasto \"%s\"" + msgid "debug level for plugin (\"core\" for WeeChat core)" msgstr "livello di debug per il plugin (\"core\" per il core di WeeChat)" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-04-15 11:04+0200\n" +"POT-Creation-Date: 2023-04-19 14:56+0200\n" "PO-Revision-Date: 2023-03-25 21:13+0100\n" "Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n" "Language-Team: Japanese <https://github.com/l/weechat/tree/master/" @@ -3870,6 +3870,11 @@ msgstr "" msgid "Legacy key converted: \"%s\" => \"%s\"" msgstr "" +#, fuzzy, c-format +#| msgid "Command for key: \"%s\"" +msgid "Command converted for key \"%s\": \"%s\" => \"%s\"" +msgstr "キーに対するコマンド: \"%s\"" + msgid "debug level for plugin (\"core\" for WeeChat core)" msgstr "プラグイン (\"core\" は WeeChat コア) のデバッグレベル" @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-04-15 11:04+0200\n" +"POT-Creation-Date: 2023-04-19 14:56+0200\n" "PO-Revision-Date: 2023-04-13 20:09+0200\n" "Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n" "Language-Team: Polish <kde-i18n-doc@kde.org>\n" @@ -4248,6 +4248,11 @@ msgstr "" msgid "Legacy key converted: \"%s\" => \"%s\"" msgstr "" +#, fuzzy, c-format +#| msgid "Command for key: \"%s\"" +msgid "Command converted for key \"%s\": \"%s\" => \"%s\"" +msgstr "Komenda dla klawisza: \"%s\"" + msgid "debug level for plugin (\"core\" for WeeChat core)" msgstr "poziom debugowania dla wtyczki (\"core\" dla rdzenia WeeChat)" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-04-15 11:04+0200\n" +"POT-Creation-Date: 2023-04-19 14:56+0200\n" "PO-Revision-Date: 2023-03-25 21:13+0100\n" "Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n" "Language-Team: Portuguese <>\n" @@ -3857,6 +3857,11 @@ msgstr "" msgid "Legacy key converted: \"%s\" => \"%s\"" msgstr "" +#, fuzzy, c-format +#| msgid "Command for key: \"%s\"" +msgid "Command converted for key \"%s\": \"%s\" => \"%s\"" +msgstr "Comando para a tecla: \"%s\"" + msgid "debug level for plugin (\"core\" for WeeChat core)" msgstr "nível de depuração do plugin (\"core\" para o core WeeChat)" diff --git a/po/pt_BR.po b/po/pt_BR.po index 8282a5834..90df1baab 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-04-15 11:04+0200\n" +"POT-Creation-Date: 2023-04-19 14:56+0200\n" "PO-Revision-Date: 2023-03-25 21:13+0100\n" "Last-Translator: Érico Nogueira <ericonr@disroot.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -3387,6 +3387,11 @@ msgstr "" msgid "Legacy key converted: \"%s\" => \"%s\"" msgstr "" +#, fuzzy, c-format +#| msgid "Command for key: \"%s\"" +msgid "Command converted for key \"%s\": \"%s\" => \"%s\"" +msgstr "Comando para tecla: \"%s\"" + msgid "debug level for plugin (\"core\" for WeeChat core)" msgstr "" "nível de debug para o plugin (\"core\" para o componente principal do " @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-04-15 11:04+0200\n" +"POT-Creation-Date: 2023-04-19 14:56+0200\n" "PO-Revision-Date: 2023-03-25 21:13+0100\n" "Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -2816,6 +2816,10 @@ msgstr "" msgid "Legacy key converted: \"%s\" => \"%s\"" msgstr "" +#, c-format +msgid "Command converted for key \"%s\": \"%s\" => \"%s\"" +msgstr "" + msgid "debug level for plugin (\"core\" for WeeChat core)" msgstr "" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-04-15 11:04+0200\n" +"POT-Creation-Date: 2023-04-19 14:56+0200\n" "PO-Revision-Date: 2023-04-13 20:10+0200\n" "Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -4233,6 +4233,11 @@ msgstr "" msgid "Legacy key converted: \"%s\" => \"%s\"" msgstr "" +#, fuzzy, c-format +#| msgid "Command for key: \"%s\"" +msgid "Command converted for key \"%s\": \"%s\" => \"%s\"" +msgstr "Команда за тастер: „%s”" + msgid "debug level for plugin (\"core\" for WeeChat core)" msgstr "дибаг ниво за додатак („core” за WeeChat језгро)" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-04-15 11:04+0200\n" +"POT-Creation-Date: 2023-04-19 14:56+0200\n" "PO-Revision-Date: 2023-03-25 21:13+0100\n" "Last-Translator: Emir SARI <emir_sari@icloud.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -4287,6 +4287,11 @@ msgstr "" msgid "Legacy key converted: \"%s\" => \"%s\"" msgstr "" +#, fuzzy, c-format +#| msgid "Command for key: \"%s\"" +msgid "Command converted for key \"%s\": \"%s\" => \"%s\"" +msgstr "Düğme komutu: \"%s\"" + msgid "debug level for plugin (\"core\" for WeeChat core)" msgstr "eklenti hata ayıklama düzeyi (WeeChat çekirdeği için \"core\")" diff --git a/po/weechat.pot b/po/weechat.pot index 508169df3..1a7de2cfb 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-04-15 11:04+0200\n" +"POT-Creation-Date: 2023-04-19 14:56+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" @@ -2565,6 +2565,10 @@ msgstr "" msgid "Legacy key converted: \"%s\" => \"%s\"" msgstr "" +#, c-format +msgid "Command converted for key \"%s\": \"%s\" => \"%s\"" +msgstr "" + msgid "debug level for plugin (\"core\" for WeeChat core)" msgstr "" diff --git a/src/core/wee-config.c b/src/core/wee-config.c index fc512b520..87fdf749b 100644 --- a/src/core/wee-config.c +++ b/src/core/wee-config.c @@ -1524,8 +1524,27 @@ config_weechat_update_cb (const void *pointer, void *data, struct t_hashtable *data_read) { const char *ptr_section, *ptr_option, *ptr_value; + char *new_commands[][2] = { + /* old command, new command */ + { "/input jump_smart", "/buffer jump smart" }, + { "/input jump_last_buffer", "/buffer +" }, + { "/window ${_window_number};/input jump_last_buffer", "/window ${_window_number};/buffer +" }, + { "/input jump_last_buffer_displayed", "/buffer jump last_displayed" }, + { "/input jump_previously_visited_buffer", "/buffer jump prev_visited" }, + { "/input jump_next_visited_buffer", "/buffer jump next_visited" }, + { "/input hotlist_clear", "/hotlist clear" }, + { "/input hotlist_remove_buffer", "/hotlist remove" }, + { "/input hotlist_restore_buffer", "/hotlist restore" }, + { "/input hotlist_restore_all", "/hotlist restore -all" }, + { "/input set_unread_current_buffer", "/buffer set unread" }, + { "/input set_unread", "/allbuf /buffer set unread" }, + { "/input switch_active_buffer", "/buffer switch" }, + { "/input switch_active_buffer_previous", "/buffer switch -previous" }, + { "/input zoom_merged_buffer", "/buffer zoom" }, + { NULL, NULL }, + }; char *new_option; - int changes; + int changes, i; /* make C compiler happy */ (void) pointer; @@ -1594,6 +1613,21 @@ config_weechat_update_cb (const void *pointer, void *data, free (new_option); } } + for (i = 0; new_commands[i][0]; i++) + { + if (ptr_value && (strcmp (ptr_value, new_commands[i][0]) == 0)) + { + gui_chat_printf ( + NULL, + _("Command converted for key \"%s\": \"%s\" => \"%s\""), + hashtable_get (data_read, "option"), + new_commands[i][0], + new_commands[i][1]); + hashtable_set (data_read, "value", new_commands[i][1]); + changes++; + break; + } + } } } |