1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

Rename options add/del by alias/unalias in command /color

This commit is contained in:
Sebastien Helleu
2011-02-02 23:01:55 +01:00
parent 372d9fe82e
commit 79ca61784c
20 changed files with 161 additions and 158 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ Version 0.3.5 (under dev!)
* core: add some chars after cursor when scrolling input line: new option
weechat.look.input_cursor_scroll (bug #21391)
* core: dynamically allocate color pairs (extended colors can be used without
being added with command "/color add")
being added with command "/color")
* core: allow background for nick colors (using "/")
* irc: add many missing commands for target buffer (options irc.msgbuffer.xxx)
(bug #32216)
+12 -12
View File
@@ -99,24 +99,24 @@
/buffer +1
........................................
• *`/color`* `[add color alias] | [del color] | reset`::
• *`/color`* `[alias color name] | [unalias color] | reset`::
........................................
definiert Farbalias und stellt die Palette der möglichen Farben dar.
add: fügt ein Farbpaar hinzu
del: entfernt ein Farbpaar
color: Farbnummer (>= 1, maximale Anzahl ist abhängig vom Terminal, üblicherweise 63 oder 255)
alias: Aliasname für eine Farbe (zum Beispiel: "orange")
reset: setzt alle Farbpaarungen zurück (nützlich falls keine Farbpaarung mehr verfügbar sein sollte)
alias: add an alias for a color
unalias: delete an alias
color: color number (>= 1, max depends on terminal, commonly 63 or 255)
name: alias name for color (for example: "orange")
reset: reset all color pairs (useful when no more pairs are available)
Ohne Angabe von Argumenten öffnet der Befehl, in einem neuen Buffer, die nutzbare Farbpalette.
Without argument, this command displays colors in a new buffer.
Beispiele:
der Farbe 214 wird das Alias "orange" zugeordnet:
/color add 214 orange
löscht die Farbe 214:
/color del 214
Examples:
add alias "orange" for color 214:
/color alias 214 orange
delete color 214:
/color unalias 214
........................................
• *`/command`* `Erweiterungs-Befehl`::
+3 -2
View File
@@ -968,12 +968,13 @@ Alias für Farben definieren
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Man kann einer Farbe einen Alias zuordnen um diesen Alias anstelle einer Zahl in
die Optionen einzutragen. Um einen Alias zu definieren nutzt man den Befehl `/color add`.
die Optionen einzutragen. Um einen Alias zu definieren nutzt man den Befehl
`/color alias`.
Beispiel:
----------------------------------------
/color add 214 orange
/color alias 214 orange
/set weechat.color.chat_delimiters orange
----------------------------------------
+8 -8
View File
@@ -99,24 +99,24 @@
/buffer +1
........................................
• *`/color`* `[add color alias] | [del color] | reset`::
• *`/color`* `[alias color name] | [unalias color] | reset`::
........................................
define color aliases and display palette of colors
add: add an alias for a color
del: delete an alias
color: color number (>= 1, max depends on terminal, commonly 63 or 255)
alias: alias name for color (for example: "orange")
reset: reset all color pairs (useful when no more pairs are available)
alias: add an alias for a color
unalias: delete an alias
color: color number (>= 1, max depends on terminal, commonly 63 or 255)
name: alias name for color (for example: "orange")
reset: reset all color pairs (useful when no more pairs are available)
Without argument, this command displays colors in a new buffer.
Examples:
add alias "orange" for color 214:
/color add 214 orange
/color alias 214 orange
delete color 214:
/color del 214
/color unalias 214
........................................
• *`/command`* `plugin command`::
+2 -2
View File
@@ -963,13 +963,13 @@ Or if you want a very dark green background for status bar:
Alises for colors
^^^^^^^^^^^^^^^^^
You can add color aliases with command `/color add` and then use this alias
You can add color aliases with command `/color alias` and then use this alias
in any color option.
For example:
----------------------------------------
/color add 214 orange
/color alias 214 orange
/set weechat.color.chat_delimiters orange
----------------------------------------
+6 -6
View File
@@ -99,24 +99,24 @@
/buffer +1
........................................
• *`/color`* `[add couleur alias] | [del paire] | switch`::
• *`/color`* `[alias couleur nom] | [unalias couleur] | switch`::
........................................
définir des alias de couleurs et afficher la palette des couleurs
add: ajouter une paire de couleur
del: supprimer une paire de couleur
alias: ajouter un alias pour une couleur
unalias: supprimer un alias pour une couleur
couleur: numéro de couleur (>= 1, le max dépend du terminal, généralement 63 ou 255)
alias: nom d'alias pour la couleur (par exemple: "orange")
nom: nom d'alias pour la couleur (par exemple: "orange")
reset: réinitialiser toutes les paires de couleurs (pratique quand il n'y a plus de paires disponibles)
Sans paramètre, cette commande affiche les couleurs dans un nouveau tampon.
Exemples:
ajouter l'alias "orange" pour la couleur 214:
/color add 214 orange
/color alias 214 orange
supprimer la couleur 214:
/color del 214
/color unalias 214
........................................
• *`/command`* `extension commande`::
+2 -2
View File
@@ -988,13 +988,13 @@ Ou si vous voulez un fond vert très foncé pour la barre de statut :
Alias pour les couleurs
^^^^^^^^^^^^^^^^^^^^^^^
Vous pouvez ajouter des alias de couleur avec la commande `/color add` puis
Vous pouvez ajouter des alias de couleur avec la commande `/color alias` puis
utiliser cet alias dans n'importe quelle option de couleur.
Par exemple :
----------------------------------------
/color add 214 orange
/color alias 214 orange
/set weechat.color.chat_delimiters orange
----------------------------------------
+8 -8
View File
@@ -99,24 +99,24 @@
/buffer +1
........................................
• *`/color`* `[add color alias] | [del color] | reset`::
• *`/color`* `[alias color name] | [unalias color] | reset`::
........................................
define color aliases and display palette of colors
add: add an alias for a color
del: delete an alias
color: color number (>= 1, max depends on terminal, commonly 63 or 255)
alias: alias name for color (for example: "orange")
reset: reset all color pairs (useful when no more pairs are available)
alias: add an alias for a color
unalias: delete an alias
color: color number (>= 1, max depends on terminal, commonly 63 or 255)
name: alias name for color (for example: "orange")
reset: reset all color pairs (useful when no more pairs are available)
Without argument, this command displays colors in a new buffer.
Examples:
add alias "orange" for color 214:
/color add 214 orange
/color alias 214 orange
delete color 214:
/color del 214
/color unalias 214
........................................
• *`/command`* `plugin comando`::
+2 -2
View File
@@ -982,13 +982,13 @@ Or if you want a very dark green background for status bar:
Alises for colors
^^^^^^^^^^^^^^^^^
You can add color aliases with command `/color add` and then use this alias
You can add color aliases with command `/color alias` and then use this alias
in any color option.
For example:
----------------------------------------
/color add 214 orange
/color alias 214 orange
/set weechat.color.chat_delimiters orange
----------------------------------------
+9 -9
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-02-01 18:55+0100\n"
"POT-Creation-Date: 2011-02-02 22:55+0100\n"
"PO-Revision-Date: 2011-01-31 14:50+0100\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1006,23 +1006,23 @@ msgstr ""
msgid "define color aliases and display palette of colors"
msgstr ""
msgid "[add color alias] | [del color] | reset"
msgid "[alias color name] | [unalias color] | reset"
msgstr ""
msgid ""
" add: add an alias for a color\n"
" del: delete an alias\n"
" color: color number (>= 1, max depends on terminal, commonly 63 or 255)\n"
" alias: alias name for color (for example: \"orange\")\n"
" reset: reset all color pairs (useful when no more pairs are available)\n"
" alias: add an alias for a color\n"
"unalias: delete an alias\n"
" color: color number (>= 1, max depends on terminal, commonly 63 or 255)\n"
" name: alias name for color (for example: \"orange\")\n"
" reset: reset all color pairs (useful when no more pairs are available)\n"
"\n"
"Without argument, this command displays colors in a new buffer.\n"
"\n"
"Examples:\n"
" add alias \"orange\" for color 214:\n"
" /color add 214 orange\n"
" /color alias 214 orange\n"
" delete color 214:\n"
" /color del 214"
" /color unalias 214"
msgstr ""
msgid "launch explicit WeeChat or plugin command"
+11 -9
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-02-01 18:55+0100\n"
"POT-Creation-Date: 2011-02-02 22:55+0100\n"
"PO-Revision-Date: 2011-01-31 20:13+0100\n"
"Last-Translator: Nils G.\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1025,23 +1025,25 @@ msgstr ""
msgid "define color aliases and display palette of colors"
msgstr "definiert Farbalias und stellt die Palette der möglichen Farben dar."
msgid "[add color alias] | [del color] | reset"
#, fuzzy
msgid "[alias color name] | [unalias color] | reset"
msgstr "[add color alias] | [del color] | reset"
#, fuzzy
msgid ""
" add: add an alias for a color\n"
" del: delete an alias\n"
" color: color number (>= 1, max depends on terminal, commonly 63 or 255)\n"
" alias: alias name for color (for example: \"orange\")\n"
" reset: reset all color pairs (useful when no more pairs are available)\n"
" alias: add an alias for a color\n"
"unalias: delete an alias\n"
" color: color number (>= 1, max depends on terminal, commonly 63 or 255)\n"
" name: alias name for color (for example: \"orange\")\n"
" reset: reset all color pairs (useful when no more pairs are available)\n"
"\n"
"Without argument, this command displays colors in a new buffer.\n"
"\n"
"Examples:\n"
" add alias \"orange\" for color 214:\n"
" /color add 214 orange\n"
" /color alias 214 orange\n"
" delete color 214:\n"
" /color del 214"
" /color unalias 214"
msgstr ""
" add: fügt ein Farbpaar hinzu\n"
" del: entfernt ein Farbpaar\n"
+9 -9
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-02-01 18:55+0100\n"
"POT-Creation-Date: 2011-02-02 22:55+0100\n"
"PO-Revision-Date: 2011-01-31 18:57+0100\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1010,24 +1010,24 @@ msgid "define color aliases and display palette of colors"
msgstr "define colores personalizados y muestra la paleta de colores"
#, fuzzy
msgid "[add color alias] | [del color] | reset"
msgid "[alias color name] | [unalias color] | reset"
msgstr "[add par [sinónimo] [fg,bg]] | [del par] | switch"
#, fuzzy
msgid ""
" add: add an alias for a color\n"
" del: delete an alias\n"
" color: color number (>= 1, max depends on terminal, commonly 63 or 255)\n"
" alias: alias name for color (for example: \"orange\")\n"
" reset: reset all color pairs (useful when no more pairs are available)\n"
" alias: add an alias for a color\n"
"unalias: delete an alias\n"
" color: color number (>= 1, max depends on terminal, commonly 63 or 255)\n"
" name: alias name for color (for example: \"orange\")\n"
" reset: reset all color pairs (useful when no more pairs are available)\n"
"\n"
"Without argument, this command displays colors in a new buffer.\n"
"\n"
"Examples:\n"
" add alias \"orange\" for color 214:\n"
" /color add 214 orange\n"
" /color alias 214 orange\n"
" delete color 214:\n"
" /color del 214"
" /color unalias 214"
msgstr ""
" add: agrega un color\n"
" del: borra un color\n"
+16 -16
View File
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-02-01 18:55+0100\n"
"PO-Revision-Date: 2011-01-31 21:01+0100\n"
"POT-Creation-Date: 2011-02-02 22:55+0100\n"
"PO-Revision-Date: 2011-02-02 22:56+0100\n"
"Last-Translator: Sebastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: French\n"
@@ -1012,29 +1012,29 @@ msgstr ""
msgid "define color aliases and display palette of colors"
msgstr "définir des alias de couleurs et afficher la palette des couleurs"
msgid "[add color alias] | [del color] | reset"
msgstr "[add couleur alias] | [del paire] | switch"
msgid "[alias color name] | [unalias color] | reset"
msgstr "[alias couleur nom] | [unalias couleur] | switch"
msgid ""
" add: add an alias for a color\n"
" del: delete an alias\n"
" color: color number (>= 1, max depends on terminal, commonly 63 or 255)\n"
" alias: alias name for color (for example: \"orange\")\n"
" reset: reset all color pairs (useful when no more pairs are available)\n"
" alias: add an alias for a color\n"
"unalias: delete an alias\n"
" color: color number (>= 1, max depends on terminal, commonly 63 or 255)\n"
" name: alias name for color (for example: \"orange\")\n"
" reset: reset all color pairs (useful when no more pairs are available)\n"
"\n"
"Without argument, this command displays colors in a new buffer.\n"
"\n"
"Examples:\n"
" add alias \"orange\" for color 214:\n"
" /color add 214 orange\n"
" /color alias 214 orange\n"
" delete color 214:\n"
" /color del 214"
" /color unalias 214"
msgstr ""
" add: ajouter une paire de couleur\n"
" del: supprimer une paire de couleur\n"
" alias: ajouter un alias pour une couleur\n"
"unalias: supprimer un alias pour une couleur\n"
"couleur: numéro de couleur (>= 1, le max dépend du terminal, généralement 63 "
"ou 255)\n"
" alias: nom d'alias pour la couleur (par exemple: \"orange\")\n"
" nom: nom d'alias pour la couleur (par exemple: \"orange\")\n"
" reset: réinitialiser toutes les paires de couleurs (pratique quand il n'y "
"a plus de paires disponibles)\n"
"\n"
@@ -1042,9 +1042,9 @@ msgstr ""
"\n"
"Exemples:\n"
" ajouter l'alias \"orange\" pour la couleur 214:\n"
" /color add 214 orange\n"
" /color alias 214 orange\n"
" supprimer la couleur 214:\n"
" /color del 214"
" /color unalias 214"
msgid "launch explicit WeeChat or plugin command"
msgstr "lancer explicitement une commande WeeChat ou d'une extension"
+9 -9
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-02-01 18:55+0100\n"
"POT-Creation-Date: 2011-02-02 22:55+0100\n"
"PO-Revision-Date: 2011-01-31 14:50+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -985,23 +985,23 @@ msgstr ""
msgid "define color aliases and display palette of colors"
msgstr ""
msgid "[add color alias] | [del color] | reset"
msgid "[alias color name] | [unalias color] | reset"
msgstr ""
msgid ""
" add: add an alias for a color\n"
" del: delete an alias\n"
" color: color number (>= 1, max depends on terminal, commonly 63 or 255)\n"
" alias: alias name for color (for example: \"orange\")\n"
" reset: reset all color pairs (useful when no more pairs are available)\n"
" alias: add an alias for a color\n"
"unalias: delete an alias\n"
" color: color number (>= 1, max depends on terminal, commonly 63 or 255)\n"
" name: alias name for color (for example: \"orange\")\n"
" reset: reset all color pairs (useful when no more pairs are available)\n"
"\n"
"Without argument, this command displays colors in a new buffer.\n"
"\n"
"Examples:\n"
" add alias \"orange\" for color 214:\n"
" /color add 214 orange\n"
" /color alias 214 orange\n"
" delete color 214:\n"
" /color del 214"
" /color unalias 214"
msgstr ""
msgid "launch explicit WeeChat or plugin command"
+9 -9
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-02-01 18:55+0100\n"
"POT-Creation-Date: 2011-02-02 22:55+0100\n"
"PO-Revision-Date: 2011-01-31 18:57+0100\n"
"Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1005,24 +1005,24 @@ msgid "define color aliases and display palette of colors"
msgstr "definisce i colori predefiniti e visualizza la tavolozza dei colori"
#, fuzzy
msgid "[add color alias] | [del color] | reset"
msgid "[alias color name] | [unalias color] | reset"
msgstr "[add pair [alias] [fg,bg]] | [del pair] | switch"
#, fuzzy
msgid ""
" add: add an alias for a color\n"
" del: delete an alias\n"
" color: color number (>= 1, max depends on terminal, commonly 63 or 255)\n"
" alias: alias name for color (for example: \"orange\")\n"
" reset: reset all color pairs (useful when no more pairs are available)\n"
" alias: add an alias for a color\n"
"unalias: delete an alias\n"
" color: color number (>= 1, max depends on terminal, commonly 63 or 255)\n"
" name: alias name for color (for example: \"orange\")\n"
" reset: reset all color pairs (useful when no more pairs are available)\n"
"\n"
"Without argument, this command displays colors in a new buffer.\n"
"\n"
"Examples:\n"
" add alias \"orange\" for color 214:\n"
" /color add 214 orange\n"
" /color alias 214 orange\n"
" delete color 214:\n"
" /color del 214"
" /color unalias 214"
msgstr ""
" add: aggiunge una coppia di colore\n"
" del: elimina una coppia di colore\n"
+9 -9
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-02-01 18:55+0100\n"
"POT-Creation-Date: 2011-02-02 22:55+0100\n"
"PO-Revision-Date: 2011-01-31 18:57+0100\n"
"Last-Translator: Krzysztof Koroscik <soltys@szluug.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1018,24 +1018,24 @@ msgid "define color aliases and display palette of colors"
msgstr "definiuje własne kolory i wyświetla paletę kolorów"
#, fuzzy
msgid "[add color alias] | [del color] | reset"
msgid "[alias color name] | [unalias color] | reset"
msgstr "[add para [alias] [fg,bg]] | [del para] | switch"
#, fuzzy
msgid ""
" add: add an alias for a color\n"
" del: delete an alias\n"
" color: color number (>= 1, max depends on terminal, commonly 63 or 255)\n"
" alias: alias name for color (for example: \"orange\")\n"
" reset: reset all color pairs (useful when no more pairs are available)\n"
" alias: add an alias for a color\n"
"unalias: delete an alias\n"
" color: color number (>= 1, max depends on terminal, commonly 63 or 255)\n"
" name: alias name for color (for example: \"orange\")\n"
" reset: reset all color pairs (useful when no more pairs are available)\n"
"\n"
"Without argument, this command displays colors in a new buffer.\n"
"\n"
"Examples:\n"
" add alias \"orange\" for color 214:\n"
" /color add 214 orange\n"
" /color alias 214 orange\n"
" delete color 214:\n"
" /color del 214"
" /color unalias 214"
msgstr ""
" add: dodaje parę kolorów\n"
" del: kasuje parę kolorów\n"
+9 -9
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-02-01 18:55+0100\n"
"POT-Creation-Date: 2011-02-02 22:55+0100\n"
"PO-Revision-Date: 2011-01-31 14:51+0100\n"
"Last-Translator: Ivan Sichmann Freitas <ivansichfreitas@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1018,23 +1018,23 @@ msgstr ""
msgid "define color aliases and display palette of colors"
msgstr ""
msgid "[add color alias] | [del color] | reset"
msgid "[alias color name] | [unalias color] | reset"
msgstr ""
msgid ""
" add: add an alias for a color\n"
" del: delete an alias\n"
" color: color number (>= 1, max depends on terminal, commonly 63 or 255)\n"
" alias: alias name for color (for example: \"orange\")\n"
" reset: reset all color pairs (useful when no more pairs are available)\n"
" alias: add an alias for a color\n"
"unalias: delete an alias\n"
" color: color number (>= 1, max depends on terminal, commonly 63 or 255)\n"
" name: alias name for color (for example: \"orange\")\n"
" reset: reset all color pairs (useful when no more pairs are available)\n"
"\n"
"Without argument, this command displays colors in a new buffer.\n"
"\n"
"Examples:\n"
" add alias \"orange\" for color 214:\n"
" /color add 214 orange\n"
" /color alias 214 orange\n"
" delete color 214:\n"
" /color del 214"
" /color unalias 214"
msgstr ""
msgid "launch explicit WeeChat or plugin command"
+9 -9
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-02-01 18:55+0100\n"
"POT-Creation-Date: 2011-02-02 22:55+0100\n"
"PO-Revision-Date: 2011-01-31 14:51+0100\n"
"Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -992,23 +992,23 @@ msgstr ""
msgid "define color aliases and display palette of colors"
msgstr ""
msgid "[add color alias] | [del color] | reset"
msgid "[alias color name] | [unalias color] | reset"
msgstr ""
msgid ""
" add: add an alias for a color\n"
" del: delete an alias\n"
" color: color number (>= 1, max depends on terminal, commonly 63 or 255)\n"
" alias: alias name for color (for example: \"orange\")\n"
" reset: reset all color pairs (useful when no more pairs are available)\n"
" alias: add an alias for a color\n"
"unalias: delete an alias\n"
" color: color number (>= 1, max depends on terminal, commonly 63 or 255)\n"
" name: alias name for color (for example: \"orange\")\n"
" reset: reset all color pairs (useful when no more pairs are available)\n"
"\n"
"Without argument, this command displays colors in a new buffer.\n"
"\n"
"Examples:\n"
" add alias \"orange\" for color 214:\n"
" /color add 214 orange\n"
" /color alias 214 orange\n"
" delete color 214:\n"
" /color del 214"
" /color unalias 214"
msgstr ""
msgid "launch explicit WeeChat or plugin command"
+9 -9
View File
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-02-01 18:55+0100\n"
"POT-Creation-Date: 2011-02-02 22:55+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -852,23 +852,23 @@ msgstr ""
msgid "define color aliases and display palette of colors"
msgstr ""
msgid "[add color alias] | [del color] | reset"
msgid "[alias color name] | [unalias color] | reset"
msgstr ""
msgid ""
" add: add an alias for a color\n"
" del: delete an alias\n"
" color: color number (>= 1, max depends on terminal, commonly 63 or 255)\n"
" alias: alias name for color (for example: \"orange\")\n"
" reset: reset all color pairs (useful when no more pairs are available)\n"
" alias: add an alias for a color\n"
"unalias: delete an alias\n"
" color: color number (>= 1, max depends on terminal, commonly 63 or 255)\n"
" name: alias name for color (for example: \"orange\")\n"
" reset: reset all color pairs (useful when no more pairs are available)\n"
"\n"
"Without argument, this command displays colors in a new buffer.\n"
"\n"
"Examples:\n"
" add alias \"orange\" for color 214:\n"
" /color add 214 orange\n"
" /color alias 214 orange\n"
" delete color 214:\n"
" /color del 214"
" /color unalias 214"
msgstr ""
msgid "launch explicit WeeChat or plugin command"
+18 -18
View File
@@ -905,10 +905,10 @@ COMMAND_CALLBACK(color)
return WEECHAT_RC_OK;
}
/* add a color */
if (string_strcasecmp (argv[1], "add") == 0)
/* add a color alias */
if (string_strcasecmp (argv[1], "alias") == 0)
{
COMMAND_MIN_ARGS(4, "color add");
COMMAND_MIN_ARGS(4, "color alias");
/* check color number */
error = NULL;
@@ -955,7 +955,7 @@ COMMAND_CALLBACK(color)
strcat (str_color, str_rgb);
}
/* add color */
/* add color alias */
snprintf (str_command, sizeof (str_command),
"/set weechat.palette.%d \"%s\"",
(int)number,
@@ -964,10 +964,10 @@ COMMAND_CALLBACK(color)
return WEECHAT_RC_OK;
}
/* delete a color */
if (string_strcasecmp (argv[1], "del") == 0)
/* delete a color alias */
if (string_strcasecmp (argv[1], "unalias") == 0)
{
COMMAND_MIN_ARGS(3, "color del");
COMMAND_MIN_ARGS(3, "color unalias");
/* check color number */
error = NULL;
@@ -1002,7 +1002,7 @@ COMMAND_CALLBACK(color)
return WEECHAT_RC_ERROR;
}
/* delete color */
/* delete color alias */
snprintf (str_command, sizeof (str_command),
"/unset weechat.palette.%d",
(int)number);
@@ -4524,23 +4524,23 @@ command_init ()
&command_buffer, NULL);
hook_command (NULL, "color",
N_("define color aliases and display palette of colors"),
N_("[add color alias] | [del color] | reset"),
N_(" add: add an alias for a color\n"
" del: delete an alias\n"
" color: color number (>= 1, max depends on terminal, "
N_("[alias color name] | [unalias color] | reset"),
N_(" alias: add an alias for a color\n"
"unalias: delete an alias\n"
" color: color number (>= 1, max depends on terminal, "
"commonly 63 or 255)\n"
" alias: alias name for color (for example: \"orange\")\n"
" reset: reset all color pairs (useful when no more "
" name: alias name for color (for example: \"orange\")\n"
" reset: reset all color pairs (useful when no more "
"pairs are available)\n\n"
"Without argument, this command displays colors in a new "
"buffer.\n\n"
"Examples:\n"
" add alias \"orange\" for color 214:\n"
" /color add 214 orange\n"
" /color alias 214 orange\n"
" delete color 214:\n"
" /color del 214"),
"add %(palette_colors)"
" || del %(palette_colors)"
" /color unalias 214"),
"alias %(palette_colors)"
" || unalias %(palette_colors)"
" || reset",
&command_color, NULL);
hook_command (NULL, "command",