mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 08:13:14 +02:00
core: add variable ${property} in evaluation of options weechat.buffer.* (issue #352)
This commit is contained in:
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-08-26 15:27+0200\n"
|
||||
"POT-Creation-Date: 2023-08-26 20:02+0200\n"
|
||||
"PO-Revision-Date: 2023-06-26 21:34+0200\n"
|
||||
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -3219,7 +3219,8 @@ msgstr "%sUpozornění: %s, řádek %d: neznámý identifikátor sekce (\"%s\")"
|
||||
#, c-format
|
||||
msgid ""
|
||||
"set property \"%s\" on any buffer matching mask \"%s\"; content is "
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being opened"
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being "
|
||||
"opened, ${property} is the name of the property being set"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
|
||||
@@ -26,7 +26,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-08-26 15:27+0200\n"
|
||||
"POT-Creation-Date: 2023-08-26 20:02+0200\n"
|
||||
"PO-Revision-Date: 2023-08-24 13:36+0200\n"
|
||||
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
|
||||
"Language-Team: German <kde-i18n-de@kde.org>\n"
|
||||
@@ -4177,10 +4177,15 @@ msgid "%sWarning: unknown option for section \"%s\": %s (value: \"%s\")"
|
||||
msgstr ""
|
||||
"%sWarnung: unbekannte Einstellung für Sektion \"%s\": %s (Wert: \"%s\")"
|
||||
|
||||
#, c-format
|
||||
#, fuzzy, c-format
|
||||
#| msgid ""
|
||||
#| "set property \"%s\" on any buffer matching mask \"%s\"; content is "
|
||||
#| "evaluated, see /help eval; ${buffer} is a pointer to the buffer being "
|
||||
#| "opened"
|
||||
msgid ""
|
||||
"set property \"%s\" on any buffer matching mask \"%s\"; content is "
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being opened"
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being "
|
||||
"opened, ${property} is the name of the property being set"
|
||||
msgstr ""
|
||||
"Eigenschaft „%s“ bei jedem Buffer setzen, der mit der Maske „%s“ "
|
||||
"übereinstimmt; Inhalt istevaluiert, siehe /help eval; ${buffer} ist ein "
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-08-26 15:27+0200\n"
|
||||
"POT-Creation-Date: 2023-08-26 20:02+0200\n"
|
||||
"PO-Revision-Date: 2023-06-26 21:34+0200\n"
|
||||
"Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -3772,7 +3772,8 @@ msgstr ""
|
||||
#, c-format
|
||||
msgid ""
|
||||
"set property \"%s\" on any buffer matching mask \"%s\"; content is "
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being opened"
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being "
|
||||
"opened, ${property} is the name of the property being set"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
|
||||
@@ -21,8 +21,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-08-26 15:27+0200\n"
|
||||
"PO-Revision-Date: 2023-08-26 15:27+0200\n"
|
||||
"POT-Creation-Date: 2023-08-26 20:02+0200\n"
|
||||
"PO-Revision-Date: 2023-08-26 20:04+0200\n"
|
||||
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
"Language: fr\n"
|
||||
@@ -4015,11 +4015,13 @@ msgstr ""
|
||||
#, c-format
|
||||
msgid ""
|
||||
"set property \"%s\" on any buffer matching mask \"%s\"; content is "
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being opened"
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being "
|
||||
"opened, ${property} is the name of the property being set"
|
||||
msgstr ""
|
||||
"définir la propriété \"%s\" sur tout tampon correspondant au masque \"%s\" ; "
|
||||
"le contenu est évalue, voir /help eval ; ${buffer} est un pointeur vers le "
|
||||
"tampon en cours d'ouverture"
|
||||
"tampon en cours d'ouverture, ${property} est le nom de la propriété qui est "
|
||||
"définie"
|
||||
|
||||
#, c-format
|
||||
msgid "Option \"weechat.buffer.%s\" has been set to \"%s\""
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-08-26 15:27+0200\n"
|
||||
"POT-Creation-Date: 2023-08-26 20:02+0200\n"
|
||||
"PO-Revision-Date: 2023-06-17 11:47+0200\n"
|
||||
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -2861,7 +2861,8 @@ msgstr "%s %s, %d. sor: ismeretlen csoportazonosító (\"%s\")\n"
|
||||
#, c-format
|
||||
msgid ""
|
||||
"set property \"%s\" on any buffer matching mask \"%s\"; content is "
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being opened"
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being "
|
||||
"opened, ${property} is the name of the property being set"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-08-26 15:27+0200\n"
|
||||
"POT-Creation-Date: 2023-08-26 20:02+0200\n"
|
||||
"PO-Revision-Date: 2023-06-26 21:34+0200\n"
|
||||
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -3383,7 +3383,8 @@ msgstr ""
|
||||
#, c-format
|
||||
msgid ""
|
||||
"set property \"%s\" on any buffer matching mask \"%s\"; content is "
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being opened"
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being "
|
||||
"opened, ${property} is the name of the property being set"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-08-26 15:27+0200\n"
|
||||
"POT-Creation-Date: 2023-08-26 20:02+0200\n"
|
||||
"PO-Revision-Date: 2023-08-08 07:13+0200\n"
|
||||
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
|
||||
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
|
||||
@@ -3990,7 +3990,8 @@ msgstr "%s警告: セクション \"%s\" の不明なオプション: %s (値: \
|
||||
#, c-format
|
||||
msgid ""
|
||||
"set property \"%s\" on any buffer matching mask \"%s\"; content is "
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being opened"
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being "
|
||||
"opened, ${property} is the name of the property being set"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-08-26 15:27+0200\n"
|
||||
"POT-Creation-Date: 2023-08-26 20:02+0200\n"
|
||||
"PO-Revision-Date: 2023-08-08 07:13+0200\n"
|
||||
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
|
||||
"Language-Team: Polish <kde-i18n-doc@kde.org>\n"
|
||||
@@ -4497,7 +4497,8 @@ msgstr "%sOstrzeżenie: nieznana opcja dla sekcji \"%s\": %s (wartość: \"%s\")
|
||||
#, c-format
|
||||
msgid ""
|
||||
"set property \"%s\" on any buffer matching mask \"%s\"; content is "
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being opened"
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being "
|
||||
"opened, ${property} is the name of the property being set"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-08-26 15:27+0200\n"
|
||||
"POT-Creation-Date: 2023-08-26 20:02+0200\n"
|
||||
"PO-Revision-Date: 2023-06-26 21:34+0200\n"
|
||||
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
|
||||
"Language-Team: Portuguese <>\n"
|
||||
@@ -3937,7 +3937,8 @@ msgstr "%sAviso: opção desconhecida na secção \"%s\": %s (valor: \"%s\")"
|
||||
#, c-format
|
||||
msgid ""
|
||||
"set property \"%s\" on any buffer matching mask \"%s\"; content is "
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being opened"
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being "
|
||||
"opened, ${property} is the name of the property being set"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
|
||||
+3
-2
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-08-26 15:27+0200\n"
|
||||
"POT-Creation-Date: 2023-08-26 20:02+0200\n"
|
||||
"PO-Revision-Date: 2023-06-26 21:34+0200\n"
|
||||
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -3469,7 +3469,8 @@ msgstr "%sAviso: opção desconhecida para seção \"%s\": %s (valor: \"%s\")"
|
||||
#, c-format
|
||||
msgid ""
|
||||
"set property \"%s\" on any buffer matching mask \"%s\"; content is "
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being opened"
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being "
|
||||
"opened, ${property} is the name of the property being set"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
|
||||
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-08-26 15:27+0200\n"
|
||||
"POT-Creation-Date: 2023-08-26 20:02+0200\n"
|
||||
"PO-Revision-Date: 2023-06-17 11:47+0200\n"
|
||||
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -2885,7 +2885,8 @@ msgstr "%s %s, строка %d: неизвестный идентификато
|
||||
#, c-format
|
||||
msgid ""
|
||||
"set property \"%s\" on any buffer matching mask \"%s\"; content is "
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being opened"
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being "
|
||||
"opened, ${property} is the name of the property being set"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-08-26 15:27+0200\n"
|
||||
"POT-Creation-Date: 2023-08-26 20:02+0200\n"
|
||||
"PO-Revision-Date: 2023-08-08 07:14+0200\n"
|
||||
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -4105,7 +4105,8 @@ msgstr "%sУпозорење: непозната опција за одељак
|
||||
#, c-format
|
||||
msgid ""
|
||||
"set property \"%s\" on any buffer matching mask \"%s\"; content is "
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being opened"
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being "
|
||||
"opened, ${property} is the name of the property being set"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-08-26 15:27+0200\n"
|
||||
"POT-Creation-Date: 2023-08-26 20:02+0200\n"
|
||||
"PO-Revision-Date: 2023-08-08 07:14+0200\n"
|
||||
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -4092,7 +4092,8 @@ msgstr "%sUyarı: \"%s\" bölümü için geçersiz seçenek: %s (değer: \"%s\""
|
||||
#, c-format
|
||||
msgid ""
|
||||
"set property \"%s\" on any buffer matching mask \"%s\"; content is "
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being opened"
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being "
|
||||
"opened, ${property} is the name of the property being set"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
|
||||
+3
-2
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-08-26 15:27+0200\n"
|
||||
"POT-Creation-Date: 2023-08-26 20:02+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"
|
||||
@@ -2630,7 +2630,8 @@ msgstr ""
|
||||
#, c-format
|
||||
msgid ""
|
||||
"set property \"%s\" on any buffer matching mask \"%s\"; content is "
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being opened"
|
||||
"evaluated, see /help eval; ${buffer} is a pointer to the buffer being "
|
||||
"opened, ${property} is the name of the property being set"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
|
||||
@@ -2563,7 +2563,8 @@ config_weechat_buffer_create_option_cb (const void *pointer, void *data,
|
||||
"mask \"%s\"; "
|
||||
"content is evaluated, see /help eval; "
|
||||
"${buffer} is a pointer to the buffer being "
|
||||
"opened"),
|
||||
"opened, ${property} is the name of the property "
|
||||
"being set"),
|
||||
pos + 1,
|
||||
buffer_mask);
|
||||
ptr_option = config_file_new_option (
|
||||
|
||||
+11
-3
@@ -658,7 +658,7 @@ gui_buffer_apply_config_option_property (struct t_gui_buffer *buffer,
|
||||
{
|
||||
const char *pos;
|
||||
char *buffer_mask, *value;
|
||||
struct t_hashtable *pointers;
|
||||
struct t_hashtable *pointers, *extra_vars;
|
||||
|
||||
pos = strrchr (option->name, '.');
|
||||
if (!pos)
|
||||
@@ -675,16 +675,24 @@ gui_buffer_apply_config_option_property (struct t_gui_buffer *buffer,
|
||||
WEECHAT_HASHTABLE_STRING,
|
||||
WEECHAT_HASHTABLE_POINTER,
|
||||
NULL, NULL);
|
||||
if (pointers)
|
||||
extra_vars = hashtable_new (
|
||||
32,
|
||||
WEECHAT_HASHTABLE_STRING,
|
||||
WEECHAT_HASHTABLE_STRING,
|
||||
NULL, NULL);
|
||||
if (pointers && extra_vars)
|
||||
{
|
||||
hashtable_set (pointers, "buffer", buffer);
|
||||
value = eval_expression (CONFIG_STRING(option), pointers, NULL, NULL);
|
||||
hashtable_set (extra_vars, "property", pos + 1);
|
||||
value = eval_expression (CONFIG_STRING(option),
|
||||
pointers, extra_vars, NULL);
|
||||
if (value)
|
||||
{
|
||||
gui_buffer_set (buffer, pos + 1, value);
|
||||
free (value);
|
||||
}
|
||||
hashtable_free (pointers);
|
||||
hashtable_free (extra_vars);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user