From 08b0272a9b4a0a8f9e4e8c66d10132c5bf48c932 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 2 Apr 2006 22:03:47 +0000 Subject: [PATCH] Fixed typos in doc --- doc/buildxml.pl | 17 +++++++++++++---- doc/en/config.xml | 6 +++--- doc/fr/config.xml | 6 +++--- weechat/doc/buildxml.pl | 17 +++++++++++++---- weechat/doc/en/config.xml | 6 +++--- weechat/doc/fr/config.xml | 6 +++--- 6 files changed, 38 insertions(+), 20 deletions(-) diff --git a/doc/buildxml.pl b/doc/buildxml.pl index f56419774..2105b0673 100755 --- a/doc/buildxml.pl +++ b/doc/buildxml.pl @@ -54,6 +54,15 @@ foreach $lng (@all_lang) print "\n"; } +sub toxml +{ + $_ = $_[0]; + $_ =~ s/&/&/g; + $_ =~ s//>/g; + return $_; +} + sub create_commands { $lang = $_[0]; @@ -156,10 +165,10 @@ sub create_config $_ = $1; s/(.*)/\u$1/; $desc = $_; - print XML " ".$type."\n"; - print XML " ".$values."\n"; - print XML " ".$default."\n"; - print XML " ".$desc."\n"; + print XML " ".toxml($type)."\n"; + print XML " ".toxml($values)."\n"; + print XML " ".toxml($default)."\n"; + print XML " ".toxml($desc)."\n"; print XML "\n"; } } diff --git a/doc/en/config.xml b/doc/en/config.xml index e4940f1ea..463e70be7 100644 --- a/doc/en/config.xml +++ b/doc/en/config.xml @@ -129,7 +129,7 @@ integer between 0 and 100 0 - Max size for nicklist (width or height, depending on look_nicklist_position (0 = no max size; if min == max and > 0, then size is fixed)) + Max size for nicklist (width or height, depending on look_nicklist_position (0 = no max size; if min == max and > 0, then size is fixed)) @@ -156,14 +156,14 @@ string any string - '<' + '<' Text to display before nick in chat window string any string - '>' + '>' Text to display after nick in chat window diff --git a/doc/fr/config.xml b/doc/fr/config.xml index 314cc59b4..e9843242b 100644 --- a/doc/fr/config.xml +++ b/doc/fr/config.xml @@ -129,7 +129,7 @@ entier entre 0 et 100 0 - Taille maximum pour la fenêtre d'utilisateurs (largeur ou hauteur, selon look_nicklist_position (0 = pas de taille maximum; si min == max et > 0, alors la taille est fixe)) + Taille maximum pour la fenêtre d'utilisateurs (largeur ou hauteur, selon look_nicklist_position (0 = pas de taille maximum; si min == max et > 0, alors la taille est fixe)) @@ -156,14 +156,14 @@ chaîne toute chaîne - '<' + '<' Texte à afficher avant le pseudo dans la fenêtre de discussion chaîne toute chaîne - '>' + '>' Texte à afficher après le pseudo dans la fenêtre de discussion diff --git a/weechat/doc/buildxml.pl b/weechat/doc/buildxml.pl index f56419774..2105b0673 100755 --- a/weechat/doc/buildxml.pl +++ b/weechat/doc/buildxml.pl @@ -54,6 +54,15 @@ foreach $lng (@all_lang) print "\n"; } +sub toxml +{ + $_ = $_[0]; + $_ =~ s/&/&/g; + $_ =~ s//>/g; + return $_; +} + sub create_commands { $lang = $_[0]; @@ -156,10 +165,10 @@ sub create_config $_ = $1; s/(.*)/\u$1/; $desc = $_; - print XML " ".$type."\n"; - print XML " ".$values."\n"; - print XML " ".$default."\n"; - print XML " ".$desc."\n"; + print XML " ".toxml($type)."\n"; + print XML " ".toxml($values)."\n"; + print XML " ".toxml($default)."\n"; + print XML " ".toxml($desc)."\n"; print XML "\n"; } } diff --git a/weechat/doc/en/config.xml b/weechat/doc/en/config.xml index e4940f1ea..463e70be7 100644 --- a/weechat/doc/en/config.xml +++ b/weechat/doc/en/config.xml @@ -129,7 +129,7 @@ integer between 0 and 100 0 - Max size for nicklist (width or height, depending on look_nicklist_position (0 = no max size; if min == max and > 0, then size is fixed)) + Max size for nicklist (width or height, depending on look_nicklist_position (0 = no max size; if min == max and > 0, then size is fixed)) @@ -156,14 +156,14 @@ string any string - '<' + '<' Text to display before nick in chat window string any string - '>' + '>' Text to display after nick in chat window diff --git a/weechat/doc/fr/config.xml b/weechat/doc/fr/config.xml index 314cc59b4..e9843242b 100644 --- a/weechat/doc/fr/config.xml +++ b/weechat/doc/fr/config.xml @@ -129,7 +129,7 @@ entier entre 0 et 100 0 - Taille maximum pour la fenêtre d'utilisateurs (largeur ou hauteur, selon look_nicklist_position (0 = pas de taille maximum; si min == max et > 0, alors la taille est fixe)) + Taille maximum pour la fenêtre d'utilisateurs (largeur ou hauteur, selon look_nicklist_position (0 = pas de taille maximum; si min == max et > 0, alors la taille est fixe)) @@ -156,14 +156,14 @@ chaîne toute chaîne - '<' + '<' Texte à afficher avant le pseudo dans la fenêtre de discussion chaîne toute chaîne - '>' + '>' Texte à afficher après le pseudo dans la fenêtre de discussion