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

core: update translations

This commit is contained in:
Sébastien Helleu
2017-03-25 15:12:47 +01:00
parent f54ed11f1d
commit fb66eeec79
34 changed files with 2391 additions and 529 deletions
+33
View File
@@ -0,0 +1,33 @@
//
// This file is auto-generated by script docgen.py.
// DO NOT EDIT BY HAND!
//
[[command_buflist_buflist]]
* `+buflist+`: bar item with list of buffers
----
/buflist refresh
refresh: force the refresh of the "buflist" bar item
The lines with buffers are displayed using string evaluation (see /help eval for the format), with two main options:
- buflist.format.buffer: format for a buffer which is not current buffer
- buflist.format.buffer_current: format for the current buffer
The following variables can be used in these options:
- buffer data (see hdata "buffer" in API doc for a complete list), for example:
- ${buffer.number}
- ${buffer.name}
- ${buffer.full_name}
- ${buffer.short_name}
- ${buffer.nicklist_nicks_count}
- extra variables added by buflist for convenience:
- ${format_buffer}: the evaluated value of option buflist.format.buffer; this can be used in option buflist.format.buffer_current to just change the background color for example
- ${number}: indented number, for example " 1" if there are between 10 and 99 buffers
- ${indent}: indentation for name (channel and private buffers are indented)
- ${name}: the short name (if set), with a fallback on the name
- ${color_hotlist}: the color depending on the highest hotlist level for the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the level)
- ${format_hotlist}: the formatted hotlist (evaluation of option buflist.format.hotlist)
- ${hotlist}: the raw hotlist
- ${format_lag}: the lag for an IRC server buffer, empty if there's no lag (evaluation of option buflist.format.lag)
----
+20 -8
View File
@@ -3,49 +3,61 @@
// DO NOT EDIT BY HAND!
//
* [[option_buflist.format.buffer]] *buflist.format.buffer*
** opis: pass:none[format of each line with a buffer]
** opis: pass:none[format of each line with a buffer (note: content is evaluated, see /help buflist)]
** typ: ciąg
** wartości: dowolny ciąg
** domyślna wartość: `+"${color:green}${number}.${indent}${color_hotlist}${name}"+`
* [[option_buflist.format.buffer_current]] *buflist.format.buffer_current*
** opis: pass:none[format for the line with current buffer]
** opis: pass:none[format for the line with current buffer (note: content is evaluated, see /help buflist)]
** typ: ciąg
** wartości: dowolny ciąg
** domyślna wartość: `+"${color:lightgreen,blue}${number}.${indent}${color_hotlist}${name}"+`
* [[option_buflist.format.hotlist]] *buflist.format.hotlist*
** opis: pass:none[format for hotlist (note: content is evaluated, see /help buflist)]
** typ: ciąg
** wartości: dowolny ciąg
** domyślna wartość: `+" ${color:green}(${hotlist}${color:green})"+`
* [[option_buflist.format.hotlist_highlight]] *buflist.format.hotlist_highlight*
** opis: pass:none[format for a buffer with hotlist level "highlight"]
** opis: pass:none[format for a buffer with hotlist level "highlight" (note: content is evaluated, see /help buflist)]
** typ: ciąg
** wartości: dowolny ciąg
** domyślna wartość: `+"${color:magenta}"+`
* [[option_buflist.format.hotlist_low]] *buflist.format.hotlist_low*
** opis: pass:none[format for a buffer with hotlist level "low"]
** opis: pass:none[format for a buffer with hotlist level "low" (note: content is evaluated, see /help buflist)]
** typ: ciąg
** wartości: dowolny ciąg
** domyślna wartość: `+"${color:white}"+`
* [[option_buflist.format.hotlist_message]] *buflist.format.hotlist_message*
** opis: pass:none[format for a buffer with hotlist level "message"]
** opis: pass:none[format for a buffer with hotlist level "message" (note: content is evaluated, see /help buflist)]
** typ: ciąg
** wartości: dowolny ciąg
** domyślna wartość: `+"${color:brown}"+`
* [[option_buflist.format.hotlist_none]] *buflist.format.hotlist_none*
** opis: pass:none[format for a buffer not in hotlist]
** opis: pass:none[format for a buffer not in hotlist (note: content is evaluated, see /help buflist)]
** typ: ciąg
** wartości: dowolny ciąg
** domyślna wartość: `+"${color:default}"+`
* [[option_buflist.format.hotlist_private]] *buflist.format.hotlist_private*
** opis: pass:none[format for a buffer with hotlist level "private"]
** opis: pass:none[format for a buffer with hotlist level "private" (note: content is evaluated, see /help buflist)]
** typ: ciąg
** wartości: dowolny ciąg
** domyślna wartość: `+"${color:green}"+`
* [[option_buflist.format.hotlist_separator]] *buflist.format.hotlist_separator*
** opis: pass:none[separator for counts in hotlist (note: content is evaluated, see /help buflist)]
** typ: ciąg
** wartości: dowolny ciąg
** domyślna wartość: `+"${color:default},"+`
* [[option_buflist.format.lag]] *buflist.format.lag*
** opis: pass:none[format for lag on an irc server buffer]
** opis: pass:none[format for lag on an IRC server buffer (note: content is evaluated, see /help buflist)]
** typ: ciąg
** wartości: dowolny ciąg
** domyślna wartość: `+" ${color:green}[${color:brown}${lag}${color:green}]"+`
+55 -51
View File
@@ -257,63 +257,67 @@ infolists: wyświetla informacje o infolistach
/eval [-n|-s] <wyrażenie>
[-n] -c <wyrażenie1> <operator> <wyrażenie2>
-n: wyświetla wynik bez wysyłania go do buforu (tryb debugowania)
-s: podziel wyażenie przed przetworzeniem go (wiele komend może być oddzielonych średnikami)
-c: przetwarza jako warunek: użyj operatorów i nawiasów, zwraca wartość logiczną ("0" lub "1")
wyrażenie: wyrażenie do przetworzenia, zmienne o formacie ${zmienna} są zastępowane (zobacz niżej); wiele komend można oddzielić średnikami
operator: operator logiczny lub porównania:
- operatory logiczne:
&& boolowskie "i"
|| boolowskie "lub"
- operatory porównania:
== równy
!= różny
<= mniejszy lub równy
< mniejszy
>= większy lub równy
> większy
=~ pasuje do rozszerzonego wyrażenia regularnego POSIX
!~ NIE pasuje do rozszerzonego wyrażenia regularnego POSIX
-n: display result without sending it to buffer (debug mode)
-s: split expression before evaluating it (many commands can be separated by semicolons)
-c: evaluate as condition: use operators and parentheses, return a boolean value ("0" or "1")
expression: expression to evaluate, variables with format ${variable} are replaced (see below); many commands can be separated by semicolons
operator: a logical or comparison operator:
- logical operators:
&& boolean "and"
|| boolean "or"
- comparison operators:
== equal
!= not equal
<= less or equal
< less
>= greater or equal
> greater
=~ is matching POSIX extended regex
!~ is NOT matching POSIX extended regex
Wyrażenie jest uznawane za "prawdziwe" jeśli nie jest NULL, nie jest puste, oraz różni się od "0".
Porównania dokonuje się z użyciem liczb całkowitych jeśli oba wyrażenia są liczbami całkowitymi.
W celu wymuszenia porównywania ciągów, należy umieścić każde wyrażenie w cudzysłowie, na przykład:
An expression is considered as "true" if it is not NULL, not empty, and different from "0".
The comparison is made using integers if the two expressions are valid integers.
To force a string comparison, add double quotes around each expression, for example:
50 > 100 ==> 0
"50" > "100" ==> 1
Niektóre zmienne w wyrażeniach są zamieniane, poprzez zastosowanie formatu ${zmienna}, według priorytetu zmienną może być:
1. przetworzony ciąg (format: "eval:xxx")
2. ciąg z wyescapowanymi znakami (format: "esc:xxx" lub "\xxx")
3. ciąg ze znakami do ukrycia (format: "hide:char,string")
4. kolor (format color:xxx)
5. informacja (format: "info:nazwa,argumenty", argumenty są opcjonalne)
6. obecna data/czas (format: "date" lub "date:format")
7. zmienna środowiskowa (format: "env:XXX")
8. opcja (format: plik.sekcja.opcja)
9. zmienna lokalna w buforze
10. nazwa hdatay/zmiennej (wartość jest automatycznie konwertowana na ciąg znaków), domyślnie "window" i "buffer" wskazują na aktualne okno/bufor.
Format dla hdata może być jednym z poniższych:
hdata.zmienna1.zmienna2...: inicjuje hdata (wskaźnik musi być znany), następnie wypytuje zmienne jedna po drugiej (inne hdata mogą być następne)
hdata[list].zmienna1.zmienna2...: inicjuje hdata z wykorzystaniem listy, na przykład:
${buffer[gui_buffers].full_name}: pełna nazwa buforu w połączonej liście buforów
${plugin[weechat_plugins].name}: nazwa pierwszej wtyczki w połączonej liście wtyczek
hdata[wskaźnik].zmienna1.zmienna2...: zacznij z hdata używając wskaźnika, na przykład:
${buffer[0x1234abcd].full_name}: pełna nazwa buforu z tym wskaźnikiem (może zostać użyte w triggerach)
Nazwy hdata i zmiennych, można znaleźć w "Opisie API wtyczek", fukcja "weechat_hdata_get".
Some variables are replaced in expression, using the format ${variable}, variable can be, by order of priority:
1. an evaluated sub-string (format: "eval:xxx")
2. a string with escaped chars (format: "esc:xxx" or "\xxx")
3. a string with chars to hide (format: "hide:char,string")
4. a string with max chars (format: "cut:max,suffix,string")
5. a color (format: "color:xxx")
6. an info (format: "info:name,arguments", arguments are optional)
7. current date/time (format: "date" or "date:format")
8. an environment variable (format: "env:XXX")
9. a ternary operator (format: "if:condition?value_if_true:value_if_false")
10. an option (format: "file.section.option")
11. a local variable in buffer
12. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer.
Format for hdata can be one of following:
hdata.var1.var2...: start with a hdata (pointer must be known), and ask variables one after one (other hdata can be followed)
hdata[list].var1.var2...: start with a hdata using a list, for example:
${buffer[gui_buffers].full_name}: full name of first buffer in linked list of buffers
${plugin[weechat_plugins].name}: name of first plugin in linked list of plugins
hdata[pointer].var1.var2...: start with a hdata using a pointer, for example:
${buffer[0x1234abcd].full_name}: full name of the buffer with this pointer (can be used in triggers)
For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get".
Przykłady (proste ciągi):
/eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3
/eval -n ${window} ==> 0x2549aa0
/eval -n ${window.buffer} ==> 0x2549320
/eval -n ${window.buffer.full_name} ==> core.weechat
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
/eval -n ${hide:-,${relay.network.password}} ==> --------
Examples (simple strings):
/eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3
/eval -n ${window} ==> 0x2549aa0
/eval -n ${window.buffer} ==> 0x2549320
/eval -n ${window.buffer.full_name} ==> core.weechat
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
/eval -n ${cut:2,+,test} ==> te+
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${if:${info:term_width}>80?big:small} ==> big
Przykłady (warunki):
Examples (conditions):
/eval -n -c ${window.buffer.number} > 2 ==> 0
/eval -n -c ${window.win_width} > 100 ==> 1
/eval -n -c (8 > 12) || (5 > 2) ==> 1