summaryrefslogtreecommitdiff
path: root/po/sr.po
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-04-18 13:46:16 +0200
committerSébastien Helleu <flashcode@flashtux.org>2022-04-18 13:46:16 +0200
commit51ed9ec93e7f9562ffdca693f24d3a90c904d019 (patch)
tree2abb14ee2c891e1df54b356c848b81dcbf1bc132 /po/sr.po
parent46033a7ee9c1a8f59967fe79b1d22de9a25c4eb3 (diff)
downloadweechat-51ed9ec93e7f9562ffdca693f24d3a90c904d019.zip
core: add case conversion in evaluation of expressions (closes #1778)
Diffstat (limited to 'po/sr.po')
-rw-r--r--po/sr.po209
1 files changed, 181 insertions, 28 deletions
diff --git a/po/sr.po b/po/sr.po
index 4d52df117..79e44e899 100644
--- 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: 2022-03-11 19:30+0100\n"
+"POT-Creation-Date: 2022-04-18 12:38+0200\n"
"PO-Revision-Date: 2022-03-21 09:21+0400\n"
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1641,6 +1641,156 @@ msgid ""
"<expression2>"
msgstr "[-n|-s] [-d] <израз> || [-n] [-d [-d]] -c <израз1> <оператор> <израз2>"
+#, fuzzy
+#| msgid ""
+#| " -n: display result without sending it to buffer (debug mode)\n"
+#| " -s: split expression before evaluating it (many commands can be "
+#| "separated by semicolons)\n"
+#| " -d: display debug output after evaluation (with two -d: more "
+#| "verbose debug)\n"
+#| " -c: evaluate as condition: use operators and parentheses, return "
+#| "a boolean value (\"0\" or \"1\")\n"
+#| "expression: expression to evaluate, variables with format ${variable} are "
+#| "replaced (see below); many commands can be separated by semicolons\n"
+#| " operator: a logical or comparison operator:\n"
+#| " - logical operators:\n"
+#| " && boolean \"and\"\n"
+#| " || boolean \"or\"\n"
+#| " - comparison operators:\n"
+#| " == equal\n"
+#| " != not equal\n"
+#| " <= less or equal\n"
+#| " < less\n"
+#| " >= greater or equal\n"
+#| " > greater\n"
+#| " =~ is matching POSIX extended regex\n"
+#| " !~ is NOT matching POSIX extended regex\n"
+#| " ==* is matching mask, case sensitive (wildcard \"*\" is "
+#| "allowed)\n"
+#| " !!* is NOT matching mask, case sensitive (wildcard \"*\" "
+#| "is allowed)\n"
+#| " =* is matching mask, case insensitive (wildcard \"*\" "
+#| "is allowed)\n"
+#| " !* is NOT matching mask, case insensitive (wildcard "
+#| "\"*\" is allowed)\n"
+#| " ==- is included, case sensitive\n"
+#| " !!- is NOT included, case sensitive\n"
+#| " =- is included, case insensitive\n"
+#| " !- is NOT included, case insensitive\n"
+#| "\n"
+#| "An expression is considered as \"true\" if it is not NULL, not empty, and "
+#| "different from \"0\".\n"
+#| "The comparison is made using floating point numbers if the two "
+#| "expressions are valid numbers, with one of the following formats:\n"
+#| " - integer (examples: 5, -7)\n"
+#| " - floating point number (examples: 5.2, -7.5, 2.83e-2)\n"
+#| " - hexadecimal number (examples: 0xA3, -0xA3)\n"
+#| "To force a string comparison, you can add double quotes around each "
+#| "expression, for example:\n"
+#| " 50 > 100 ==> 0\n"
+#| " \"50\" > \"100\" ==> 1\n"
+#| "\n"
+#| "Some variables are replaced in expression, using the format ${variable}, "
+#| "variable can be, by order of priority:\n"
+#| " 1. the string itself without evaluation (format: \"raw:xxx\")\n"
+#| " 2. a user-defined variable (format: \"name\")\n"
+#| " 3. an evaluated sub-string (format: \"eval:xxx\")\n"
+#| " 4. an evaluated condition (format: \"eval_cond:xxx\")\n"
+#| " 5. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
+#| " 6. a string with chars to hide (format: \"hide:char,string\")\n"
+#| " 7. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
+#| "+max,suffix,string\")\n"
+#| " or max chars displayed on screen (format: \"cutscr:max,suffix,"
+#| "string\" or \"cutscr:+max,suffix,string\")\n"
+#| " 8. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
+#| " 9. a repeated string (format: \"repeat:count,string\")\n"
+#| " 10. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
+#| " 11. split of a string (format: \"split:number,separators,flags,xxx\")\n"
+#| " 12. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
+#| " 13. a color (format: \"color:xxx\", see \"Plugin API reference\", "
+#| "function \"color\")\n"
+#| " 14. a modifier (format: \"modifier:name,data,string\")\n"
+#| " 15. an info (format: \"info:name,arguments\", arguments are optional)\n"
+#| " 16. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,"
+#| "xxx\" or \"base_decode:base,xxx\")\n"
+#| " 17. current date/time (format: \"date\" or \"date:format\")\n"
+#| " 18. an environment variable (format: \"env:XXX\")\n"
+#| " 19. a ternary operator (format: \"if:condition?value_if_true:"
+#| "value_if_false\")\n"
+#| " 20. result of an expression with parentheses and operators + - * / // % "
+#| "** (format: \"calc:xxx\")\n"
+#| " 21. a random integer number (format: \"random:min,max\")\n"
+#| " 22. a translated string (format: \"translate:xxx\")\n"
+#| " 23. define a user variable (format: \"define:name,value\")\n"
+#| " 24. an option (format: \"file.section.option\")\n"
+#| " 25. a local variable in buffer\n"
+#| " 26. 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"
+#| " hdata.var1.var2...: start with a hdata (pointer must be known), and ask "
+#| "variables one after one (other hdata can be followed)\n"
+#| " hdata[list].var1.var2...: start with a hdata using a list/pointer/"
+#| "pointer name, for example:\n"
+#| " ${buffer[gui_buffers].full_name}: full name of first buffer in linked "
+#| "list of buffers\n"
+#| " ${plugin[weechat_plugins].name}: name of first plugin in linked list "
+#| "of plugins\n"
+#| " hdata[pointer].var1.var2...: start with a hdata using a pointer, for "
+#| "example:\n"
+#| " ${buffer[0x1234abcd].full_name}: full name of the buffer with this "
+#| "pointer (can be used in triggers)\n"
+#| " ${buffer[my_pointer].full_name}: full name of the buffer with this "
+#| "pointer name (can be used in triggers)\n"
+#| "For name of hdata and variables, please look at \"Plugin API reference\", "
+#| "function \"weechat_hdata_get\".\n"
+#| "\n"
+#| "Examples (simple strings):\n"
+#| " /eval -n ${raw:${info:version}} ==> ${info:version}\n"
+#| " /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
+#| " /eval -n ${info:version} ==> 0.4.3\n"
+#| " /eval -n ${env:HOME} ==> /home/user\n"
+#| " /eval -n ${weechat.look.scroll_amount} ==> 3\n"
+#| " /eval -n ${sec.data.password} ==> secret\n"
+#| " /eval -n ${window} ==> 0x2549aa0\n"
+#| " /eval -n ${window.buffer} ==> 0x2549320\n"
+#| " /eval -n ${window.buffer.full_name} ==> core.weechat\n"
+#| " /eval -n ${window.buffer.number} ==> 1\n"
+#| " /eval -n ${\\t} ==> <tab>\n"
+#| " /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
+#| " /eval -n ${cut:3,+,test} ==> tes+\n"
+#| " /eval -n ${cut:+3,+,test} ==> te+\n"
+#| " /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
+#| " /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
+#| " /eval -n ${rev:Hello} ==> olleH\n"
+#| " /eval -n ${repeat:5,-} ==> -----\n"
+#| " /eval -n ${length:test} ==> 4\n"
+#| " /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
+#| " /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
+#| " /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
+#| " /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
+#| " /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
+#| " /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
+#| " /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
+#| " /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
+#| " /eval -n ${calc:(5+2)*3} ==> 21\n"
+#| " /eval -n ${random:0,10} ==> 3\n"
+#| " /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
+#| " /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
+#| " /eval -n ${translate:Plugin} ==> Extension\n"
+#| " /eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8\n"
+#| "\n"
+#| "Examples (conditions):\n"
+#| " /eval -n -c ${window.buffer.number} > 2 ==> 0\n"
+#| " /eval -n -c ${window.win_width} > 100 ==> 1\n"
+#| " /eval -n -c (8 > 12) || (5 > 2) ==> 1\n"
+#| " /eval -n -c (8 > 12) && (5 > 2) ==> 0\n"
+#| " /eval -n -c abcd =~ ^ABC ==> 1\n"
+#| " /eval -n -c abcd =~ (?-i)^ABC ==> 0\n"
+#| " /eval -n -c abcd =~ (?-i)^abc ==> 1\n"
+#| " /eval -n -c abcd !~ abc ==> 0\n"
+#| " /eval -n -c abcd =* a*d ==> 1\n"
+#| " /eval -n -c abcd =- bc ==> 1"
msgid ""
" -n: display result without sending it to buffer (debug mode)\n"
" -s: split expression before evaluating it (many commands can be "
@@ -1696,34 +1846,36 @@ msgid ""
" 3. an evaluated sub-string (format: \"eval:xxx\")\n"
" 4. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 5. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
-" 6. a string with chars to hide (format: \"hide:char,string\")\n"
-" 7. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
+" 6. a string converted to lower case (format: \"lower:xxx\")\n"
+" 7. a string converted to upper case (format: \"upper:xxx\")\n"
+" 8. a string with chars to hide (format: \"hide:char,string\")\n"
+" 9. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
"+max,suffix,string\")\n"
" or max chars displayed on screen (format: \"cutscr:max,suffix,string\" "
"or \"cutscr:+max,suffix,string\")\n"
-" 8. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
-" 9. a repeated string (format: \"repeat:count,string\")\n"
-" 10. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
-" 11. split of a string (format: \"split:number,separators,flags,xxx\")\n"
-" 12. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
-" 13. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
+" 10. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
+" 11. a repeated string (format: \"repeat:count,string\")\n"
+" 12. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
+" 13. split of a string (format: \"split:number,separators,flags,xxx\")\n"
+" 14. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
+" 15. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
"\"color\")\n"
-" 14. a modifier (format: \"modifier:name,data,string\")\n"
-" 15. an info (format: \"info:name,arguments\", arguments are optional)\n"
-" 16. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,"
+" 16. a modifier (format: \"modifier:name,data,string\")\n"
+" 17. an info (format: \"info:name,arguments\", arguments are optional)\n"
+" 18. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,"
"xxx\" or \"base_decode:base,xxx\")\n"
-" 17. current date/time (format: \"date\" or \"date:format\")\n"
-" 18. an environment variable (format: \"env:XXX\")\n"
-" 19. a ternary operator (format: \"if:condition?value_if_true:"
+" 19. current date/time (format: \"date\" or \"date:format\")\n"
+" 20. an environment variable (format: \"env:XXX\")\n"
+" 21. a ternary operator (format: \"if:condition?value_if_true:"
"value_if_false\")\n"
-" 20. result of an expression with parentheses and operators + - * / // % ** "
+" 22. result of an expression with parentheses and operators + - * / // % ** "
"(format: \"calc:xxx\")\n"
-" 21. a random integer number (format: \"random:min,max\")\n"
-" 22. a translated string (format: \"translate:xxx\")\n"
-" 23. define a user variable (format: \"define:name,value\")\n"
-" 24. an option (format: \"file.section.option\")\n"
-" 25. a local variable in buffer\n"
-" 26. a hdata name/variable (the value is automatically converted to "
+" 23. a random integer number (format: \"random:min,max\")\n"
+" 24. a translated string (format: \"translate:xxx\")\n"
+" 25. define a user variable (format: \"define:name,value\")\n"
+" 26. an option (format: \"file.section.option\")\n"
+" 27. a local variable in buffer\n"
+" 28. 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"
@@ -1756,6 +1908,8 @@ msgid ""
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
+" /eval -n ${lower:TEST} ==> test\n"
+" /eval -n ${upper:test} ==> TEST\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
@@ -8195,8 +8349,8 @@ msgid ""
"add [<channel1> [<channel2>...]] || addraw <channel1>[,<channel2>...] "
"[<key1>[,<key2>...]] || del [<channel1> [<channel2>...]] || save || sort"
msgstr ""
-"add [<канал1> [<канал2>...]] || addraw <канал1>[,<канал2>...] "
-"[<кључ1>[,<кључ2>...]] || del [<кључ1> [<кључ2>...]] || save || sort"
+"add [<канал1> [<канал2>...]] || addraw <канал1>[,<канал2>...] [<кључ1>[,"
+"<кључ2>...]] || del [<кључ1> [<кључ2>...]] || save || sort"
msgid ""
" add: add current channel or a list of channels (with optional keys) to "
@@ -8224,8 +8378,8 @@ msgstr ""
" add: додаје текући канал или листу канала ( са необавезним кључевима) у "
"autojoin опцију; ако се налазите на каналу и не наведете кључ, он се чита са "
"канала\n"
-"addraw: користи се IRC сирови формат (исто као за /join команду): сви "
-"канали су раздвојени запетама, небавезни кључеви су раздвојени запетама\n"
+"addraw: користи се IRC сирови формат (исто као за /join команду): сви канали "
+"су раздвојени запетама, небавезни кључеви су раздвојени запетама\n"
" del: брише текући канал или листу канала из autojoin опције\n"
" канал: име канала\n"
" кључ: кључ за канал\n"
@@ -9541,8 +9695,7 @@ msgstr "канали на свим IRC серверима"
msgid ""
"channels automatically joined on the current server (option \"autojoin\")"
msgstr ""
-"канали на текућем серверу којима се аутоматски приступа (опција "
-"„autojoin”)"
+"канали на текућем серверу којима се аутоматски приступа (опција „autojoin”)"
msgid "privates on all IRC servers"
msgstr "приватни разговори на свим IRC серверима"