1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-02 07:46:38 +02:00

api: add translated string in evaluation of expressions with "translate:xxx" (issue #1622)

This commit is contained in:
Sébastien Helleu
2021-05-16 09:49:09 +02:00
parent 7e10038f4b
commit 5bce484c01
20 changed files with 154 additions and 86 deletions
+5 -3
View File
@@ -7571,9 +7571,10 @@ command_init ()
"\"if:condition?value_if_true:value_if_false\")\n"
" 17. result of an expression with parentheses and operators "
"+ - * / // % ** (format: \"calc:xxx\")\n"
" 18. an option (format: \"file.section.option\")\n"
" 19. a local variable in buffer\n"
" 20. a hdata name/variable (the value is automatically converted "
" 18. a translated string (format: \"translate:xxx\")\n"
" 19. an option (format: \"file.section.option\")\n"
" 20. a local variable in buffer\n"
" 21. a hdata name/variable (the value is automatically converted "
"to string), by default \"window\" and \"buffer\" point to current "
"window/buffer.\n"
"Format for hdata can be one of following:\n"
@@ -7617,6 +7618,7 @@ command_init ()
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
"\n"
"Examples (conditions):\n"
" /eval -n -c ${window.buffer.number} > 2 ==> 0\n"