summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2006-08-26 18:32:09 +0000
committerSebastien Helleu <flashcode@flashtux.org>2006-08-26 18:32:09 +0000
commit56ebcb53ebbe9c1413c492de2af6c6c4391ece20 (patch)
tree8d00f29be0bf01bcd8940a9d0f87a80abde39035 /doc
parent85cd863819214ce6a3757e97c6cb9b418c30a898 (diff)
downloadweechat-56ebcb53ebbe9c1413c492de2af6c6c4391ece20.zip
Fixed typos in doc for scripts examples (get_buffer_info and get_buffer_data)
Diffstat (limited to 'doc')
-rw-r--r--doc/de/weechat.de.xml28
-rw-r--r--doc/en/weechat.en.xml28
-rw-r--r--doc/fr/weechat.fr.xml28
3 files changed, 48 insertions, 36 deletions
diff --git a/doc/de/weechat.de.xml b/doc/de/weechat.de.xml
index a5a349b6a..d7ca8ab70 100644
--- a/doc/de/weechat.de.xml
+++ b/doc/de/weechat.de.xml
@@ -6517,6 +6517,7 @@ if ($bf)
{
weechat::print(" > $key => $value");
}
+ weechat::print("----------------------");
}
}
else
@@ -6531,6 +6532,7 @@ if bf != None and bf != {}:
weechat.prnt ("**** info for buffer no %d ****" % b)
for c in bf[b]:
weechat.prnt (" > %s => %s" % (c, bf[b][c]))
+ weechat.prnt ("----------------------")
else:
weechat.prnt ("**** no buffer info ****")
@@ -6542,6 +6544,7 @@ if bf != nil and bf != {}
c.each do |key, value|
Weechat.print(" > #{key} => #{value}")
end
+ Weechat.print("----------------------")
end
else
Weechat.print("**** no buffer info ****")
@@ -6558,6 +6561,7 @@ if bf then
weechat.print(" > " .. key .. " => " .. value)
key, value = next (binfos, key)
end
+ weechat.print ("----------------------")
b, infos = next (bf, b)
end
else
@@ -6605,12 +6609,12 @@ end
Examples:
<screen>
# perl
-my $server = "freenode";
-my $channel = "#weechat";
+my $server = weechat::get_info("server");
+my $channel = weechat::get_info("channel");
my @bc = weechat::get_buffer_data($server, $channel);
if (@bc)
{
- weechat::print("**** buffer data for $channel@$server ****");
+ weechat::print("**** buffer data for '$channel'\@'$server' ****");
foreach my $l (@bc) {
while ( my ($key, $value) = each %$l) {
weechat::print(" > $key => $value");
@@ -6624,11 +6628,11 @@ else
}
# python
-server = "freenode"
-channel = "#weechat"
+server = weechat.get_info("server")
+channel = weechat.get_info("channel")
bc = weechat.get_buffer_data(server, channel)
if bc != None and bc != []:
- weechat.prnt ("**** buffer data for %s@%s ****" % (channel, server))
+ weechat.prnt ("**** buffer data for '%s'@'%s' ****" % (channel, server))
for l in bc:
for i in l:
weechat.prnt (" > %s => %s" % (i, l[i]))
@@ -6637,11 +6641,11 @@ else:
weechat.prnt ("**** no buffer data ****")
# ruby
-server = "freenode"
-channel = "#weechat"
+server = Weechat.get_info("server")
+channel = Weechat.get_info("channel")
bc = Weechat.get_buffer_data(server, channel)
if bc != nil and bc != []
- Weechat.print("**** buffer data for #{channel}@#{server} ****")
+ Weechat.print("**** buffer data for '#{channel}'@'#{server}' ****")
bc.each do |l|
l.each do |key, value|
Weechat.print(" > #{key} => #{value}")
@@ -6653,12 +6657,12 @@ else
end
-- lua
-server = "freenode"
-channel = "#weechat"
+server = weechat.get_info("server")
+channel = weechat.get_info("channel")
bc = weechat.get_buffer_data(server, channel)
if bc then
b, bdatas = next (bc, nil)
- weechat.print("**** buffer data for " .. channel .. "@" .. server .. " ****")
+ weechat.print("**** buffer data for '" .. channel .. "'@'" .. server .. "' ****")
while (b) do
key, value = next (chaninfos, nil)
while (key) do
diff --git a/doc/en/weechat.en.xml b/doc/en/weechat.en.xml
index a5bbaf019..2a796d544 100644
--- a/doc/en/weechat.en.xml
+++ b/doc/en/weechat.en.xml
@@ -6557,6 +6557,7 @@ if ($bf)
{
weechat::print(" > $key => $value");
}
+ weechat::print("----------------------");
}
}
else
@@ -6571,6 +6572,7 @@ if bf != None and bf != {}:
weechat.prnt ("**** info for buffer no %d ****" % b)
for c in bf[b]:
weechat.prnt (" > %s => %s" % (c, bf[b][c]))
+ weechat.prnt ("----------------------")
else:
weechat.prnt ("**** no buffer info ****")
@@ -6582,6 +6584,7 @@ if bf != nil and bf != {}
c.each do |key, value|
Weechat.print(" > #{key} => #{value}")
end
+ Weechat.print("----------------------")
end
else
Weechat.print("**** no buffer info ****")
@@ -6598,6 +6601,7 @@ if bf then
weechat.print(" > " .. key .. " => " .. value)
key, value = next (binfos, key)
end
+ weechat.print ("----------------------")
b, infos = next (bf, b)
end
else
@@ -6645,12 +6649,12 @@ end
Examples:
<screen>
# perl
-my $server = "freenode";
-my $channel = "#weechat";
+my $server = weechat::get_info("server");
+my $channel = weechat::get_info("channel");
my @bc = weechat::get_buffer_data($server, $channel);
if (@bc)
{
- weechat::print("**** buffer data for $channel@$server ****");
+ weechat::print("**** buffer data for '$channel'\@'$server' ****");
foreach my $l (@bc) {
while ( my ($key, $value) = each %$l) {
weechat::print(" > $key => $value");
@@ -6664,11 +6668,11 @@ else
}
# python
-server = "freenode"
-channel = "#weechat"
+server = weechat.get_info("server")
+channel = weechat.get_info("channel")
bc = weechat.get_buffer_data(server, channel)
if bc != None and bc != []:
- weechat.prnt ("**** buffer data for %s@%s ****" % (channel, server))
+ weechat.prnt ("**** buffer data for '%s'@'%s' ****" % (channel, server))
for l in bc:
for i in l:
weechat.prnt (" > %s => %s" % (i, l[i]))
@@ -6677,11 +6681,11 @@ else:
weechat.prnt ("**** no buffer data ****")
# ruby
-server = "freenode"
-channel = "#weechat"
+server = Weechat.get_info("server")
+channel = Weechat.get_info("channel")
bc = Weechat.get_buffer_data(server, channel)
if bc != nil and bc != []
- Weechat.print("**** buffer data for #{channel}@#{server} ****")
+ Weechat.print("**** buffer data for '#{channel}'@'#{server}' ****")
bc.each do |l|
l.each do |key, value|
Weechat.print(" > #{key} => #{value}")
@@ -6693,12 +6697,12 @@ else
end
-- lua
-server = "freenode"
-channel = "#weechat"
+server = weechat.get_info("server")
+channel = weechat.get_info("channel")
bc = weechat.get_buffer_data(server, channel)
if bc then
b, bdatas = next (bc, nil)
- weechat.print("**** buffer data for " .. channel .. "@" .. server .. " ****")
+ weechat.print("**** buffer data for '" .. channel .. "'@'" .. server .. "' ****")
while (b) do
key, value = next (chaninfos, nil)
while (key) do
diff --git a/doc/fr/weechat.fr.xml b/doc/fr/weechat.fr.xml
index 6f662567c..cea285b20 100644
--- a/doc/fr/weechat.fr.xml
+++ b/doc/fr/weechat.fr.xml
@@ -6678,6 +6678,7 @@ if ($bf)
{
weechat::print(" > $key => $value");
}
+ weechat::print("----------------------");
}
}
else
@@ -6692,6 +6693,7 @@ if bf != None and bf != {}:
weechat.prnt ("**** info pour tampon buffer no %d ****" % b)
for c in bf[b]:
weechat.prnt (" > %s => %s" % (c, bf[b][c]))
+ weechat.prnt ("----------------------")
else:
weechat.prnt ("**** pas d'info sur les tampons ****")
@@ -6703,6 +6705,7 @@ if bf != nil and bf != {}
c.each do |key, value|
Weechat.print(" > #{key} => #{value}")
end
+ Weechat.print("----------------------")
end
else
Weechat.print("**** pas d'info sur les tampons ****")
@@ -6719,6 +6722,7 @@ if bf then
weechat.print(" > " .. key .. " => " .. value)
key, value = next (binfos, key)
end
+ weechat.print ("----------------------")
b, infos = next (bf, b)
end
else
@@ -6766,12 +6770,12 @@ end
Examples:
<screen>
# perl
-my $server = "freenode";
-my $channel = "#weechat";
+my $server = weechat::get_info("server");
+my $channel = weechat::get_info("channel");
my @bc = weechat::get_buffer_data($server, $channel);
if (@bc)
{
- weechat::print("**** buffer data for $channel@$server ****");
+ weechat::print("**** buffer data for '$channel'\@'$server' ****");
foreach my $l (@bc) {
while ( my ($key, $value) = each %$l) {
weechat::print(" > $key => $value");
@@ -6785,11 +6789,11 @@ else
}
# python
-server = "freenode"
-channel = "#weechat"
+server = weechat.get_info("server")
+channel = weechat.get_info("channel")
bc = weechat.get_buffer_data(server, channel)
if bc != None and bc != []:
- weechat.prnt ("**** buffer data for %s@%s ****" % (channel, server))
+ weechat.prnt ("**** buffer data for '%s'@'%s' ****" % (channel, server))
for l in bc:
for i in l:
weechat.prnt (" > %s => %s" % (i, l[i]))
@@ -6798,11 +6802,11 @@ else:
weechat.prnt ("**** no buffer data ****")
# ruby
-server = "freenode"
-channel = "#weechat"
+server = Weechat.get_info("server")
+channel = Weechat.get_info("channel")
bc = Weechat.get_buffer_data(server, channel)
if bc != nil and bc != []
- Weechat.print("**** buffer data for #{channel}@#{server} ****")
+ Weechat.print("**** buffer data for '#{channel}'@'#{server}' ****")
bc.each do |l|
l.each do |key, value|
Weechat.print(" > #{key} => #{value}")
@@ -6814,12 +6818,12 @@ else
end
-- lua
-server = "freenode"
-channel = "#weechat"
+server = weechat.get_info("server")
+channel = weechat.get_info("channel")
bc = weechat.get_buffer_data(server, channel)
if bc then
b, bdatas = next (bc, nil)
- weechat.print("**** buffer data for " .. channel .. "@" .. server .. " ****")
+ weechat.print("**** buffer data for '" .. channel .. "'@'" .. server .. "' ****")
while (b) do
key, value = next (chaninfos, nil)
while (key) do