alias: add options "add", "addcompletion" and "del" in command /alias, remove command /unalias (closes #458)

This commit is contained in:
Sébastien Helleu 2015-07-20 07:54:59 +02:00
parent 31c3151fcc
commit b1bd5c721e
33 changed files with 1205 additions and 874 deletions

View File

@ -29,6 +29,8 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
* api: add support of evaluated sub-strings and current date/time in function
string_eval_expression() and command /eval
* api: add function string_eval_path_home()
* alias: add options "add", "addcompletion" and "del" in command /alias, remove
command /unalias (issue #458)
* irc: evaluate content of server option "nicks"
* logger: evaluate content of option logger.file.path (issue #388)
* relay: display value of HTTP header "X-Real-IP" for websocket connections

View File

@ -3,36 +3,39 @@
// DO NOT EDIT BY HAND!
//
[[command_alias_alias]]
[command]*`alias`* Einem Befehl wird ein Alias zugewiesen::
[command]*`alias`* list, add or remove command aliases::
----
/alias [-completion <completion>] <alias> [<command> [;<command>...]]
/alias list [<alias>]
add <alias> [<command>[;<command>...]]
addcompletion <completion> <alias> [<command>[;<command>...]]
del <alias> [<alias>...]
completion: optionale Vervollständigung für einen Alias-Befehl (Standardverhalten: Vervollständigung wird auf den Zielbefehl angewendet)
Hinweis: Mit der Variablen "%%command" kann eine Vervollständigung eines vorhandenen Befehls durchgeführt werden
alias: Name des Alias (Platzhalter "*" kann verwendet werden)
command: Name des zuzuordnenden Befehls (WeeChat- oder IRC-Befehl ohne führenden '/', mehrere Befehle müssen durch Semikolon getrennt werden)
list: list aliases (without argument, this list is displayed)
add: add an alias
addcompletion: add an alias with a custom completion
del: delete an alias
completion: completion for alias: by default completion is done with target command
note: you can use %%command to use completion of an existing command
alias: name of alias
command: command name with arguments (many commands can be separated by semicolons)
Ohne Angabe von Argumenten werden alle definierten Aliase angezeigt.
Note: in command, special variables are replaced:
$n: argument 'n' (between 1 and 9)
$-m: arguments from 1 to 'm'
$n-: arguments from 'n' to last
$n-m: arguments from 'n' to 'm'
$*: all arguments
$~: last argument
$var: where "var" is a local variable of buffer (see /buffer localvar)
examples: $nick, $channel, $server, $plugin, $name
Anmerkung: Im Befehl können Variablen genutzt werden, die dann durch den entsprechenden Wert ersetzt werden:
$n: Argument 'n' (zwischen 1 und 9)
$-m: Argumente von 1 bis 'm'
$n-: Argumente von 'n' bis zum letzten Argument
$n-m: Argumente von 'n' bis 'm'
$*: alle Argumente
$~: letztes Argument
$var: "var" ist eine lokale Variable für den jeweiligen Buffer (siehe /buffer localvar)
Beispiel: $nick, $channel, $server, $plugin, $name
Um ein Alias zu löschen wird der Befehl "/unalias" genutzt.
Beispiele:
Alias "/split" wird anlegt um damit ein Fenster horizontal zu teilen:
/alias split /window splith
Alias "/hallo" wird angelegt um in allen Channels, außer im #weechat Channel, den Text "Hallo" auszugeben:
/alias hallo /allchan -exclude=#weechat msg * Hallo
Alias "/forcejoin" wird angelegt um den IRC Befehl "forcejoin" mit einer Vervollständigung von /sajoin auszuführen:
/alias -completion %%sajoin forcejoin /quote forcejoin
Examples:
alias /split to split window horizontally:
/alias add split /window splith
alias /hello to say "hello" on all channels but not on #weechat:
/alias add hello /allchan -exclude=#weechat msg * hello
alias /forcejoin to send IRC command "forcejoin" with completion of /sajoin:
/alias addcompletion %%sajoin forcejoin /quote forcejoin
----

View File

@ -843,30 +843,30 @@ Beispiele:
----
/upgrade [-yes] [<path_to_binary>|-quit]
-yes: required if option weechat.look.confirm_upgrade is enabled
path_to_binary: path to WeeChat binary (default is current binary)
-dummy: do nothing (option used to prevent accidental completion with "-quit")
-quit: close *ALL* connections, save session and quit WeeChat, which makes possible a delayed restoration (see below)
-yes: wird benötigt, sobald Option weechat.look.confirm_upgrade aktiviert ist
path_to_binary: Pfad zu einer ausführbaren WeeChat Binärdatei (Standardeinstellung ist die aktuell ausführbare Datei)
-dummy: ohne Funktion (dient lediglich dazu, um nicht versehentlich die "-quit" Funktion auszuführen)
-quit: trennt *ALLE* Verbindungen, speichert die aktuelle Sitzung und beendet WeeChat, um den aktuellen Zustand später wiederherstellen (siehe unten)
This command upgrades and reloads a running WeeChat session. The new WeeChat binary must have been compiled or installed with a package manager before running this command.
Dieser Befehl führt ein Upgrade von WeeChat durch und startet die laufende Sitzung neu. Bevor dieser Befehl ausgeführt wird, sollte eine neue Version von WeeChat entweder vorab kompiliert, oder mit einem Paketmanager installiert worden sein.
Note: SSL connections are lost during upgrade, because reload of SSL sessions is currently not possible with GnuTLS. There is automatic reconnection after upgrade.
Hinweis: SSL Verbindungen werden während eines Upgrades unterbrochen, da diese Verbindungen zur Zeit nicht mit GnuTLS gehalten werden können. Nach einem erfolgten Upgrade findet eine automatische Verbindung zu diesen Servern statt.
Upgrade process has 4 steps:
1. save session into files for core and plugins (buffers, history, ..)
2. unload all plugins (configuration files (*.conf) are written on disk)
3. save WeeChat configuration (weechat.conf)
4. execute new WeeChat binary and reload session.
Der Upgrade Vorgang besteht aus vier Schritten:
1. Sicherung der Sitzung, in Dateien für Core und Erweiterungen (buffers, history, ..)
2. alle Erweiterungen werden ausgeschaltet (Konfigurationen *.conf werden gesichert)
3. Sicherung der WeeChat Konfiguration (weechat.conf)
4. ausführen der neuen Version von WeeChat und wiederherstellen der Sitzung.
With option "-quit", the process is slightly different:
1. close *ALL* connections (irc, xfer, relay, ...)
2. save session into files (*.upgrade)
3. unload all plugins
4. save WeeChat configuration
5. quit WeeChat
Then later you can restore session with command: weechat --upgrade
IMPORTANT: you must restore the session with exactly same configuration (files *.conf).
It is possible to restore WeeChat session on another machine if you copy the content of directory "~/.weechat".
Nutzt man die "-quit" Funktion ist die Abfolge geringfügig anders:
1. es werden *ALLE* Verbindungen getrennt (irc,xfer,relay, ...)
2. die Sitzung wird in Dateien gesichert (*.upgrade)
3. alle Erweiterungen werden ausgeschaltet
4. die WeeChat Konfiguration wird gesichert
5. WeeChat wird beendet
Die Sitzung kann zu einem späteren Zeitpunkt wiederhergestellt werden: weechat --upgrade
WICHTIG: Die Sitzung muss mit exakt den selben Konfigurationsdateien wiederhergestellt werden (*.conf)
Es ist möglich die WeeChat-Sitzung auf einem anderen Rechner wiederherzustellen, sofern man den Inhalt des "~/.weechat" Verzeichnisses dorthin kopiert.
----
[[command_weechat_uptime]]

View File

@ -543,7 +543,7 @@
** Werte: on, off (Standardwert: `off`)
* [[option_weechat.look.confirm_upgrade]] *weechat.look.confirm_upgrade*
** Beschreibung: `if set, /upgrade command must be confirmed with extra argument "-yes" (see /help upgrade)`
** Beschreibung: `ist diese Einstellung aktiviert, muss der "/upgrade" Befehl mit dem Argument "-yes" ausgeführt werden (siehe /help upgrade)`
** Typ: boolesch
** Werte: on, off (Standardwert: `off`)

View File

@ -3,17 +3,22 @@
// DO NOT EDIT BY HAND!
//
[[command_alias_alias]]
[command]*`alias`* create an alias for a command::
[command]*`alias`* list, add or remove command aliases::
----
/alias [-completion <completion>] <alias> [<command> [;<command>...]]
/alias list [<alias>]
add <alias> [<command>[;<command>...]]
addcompletion <completion> <alias> [<command>[;<command>...]]
del <alias> [<alias>...]
completion: completion for alias (optional, by default completion is done with target command)
note: you can use %%command to use completion of an existing command
alias: name of alias (wildcard "*" is allowed)
command: command name with arguments (many commands can be separated by semicolons)
Without argument, this command lists all defined alias.
list: list aliases (without argument, this list is displayed)
add: add an alias
addcompletion: add an alias with a custom completion
del: delete an alias
completion: completion for alias: by default completion is done with target command
note: you can use %%command to use completion of an existing command
alias: name of alias
command: command name with arguments (many commands can be separated by semicolons)
Note: in command, special variables are replaced:
$n: argument 'n' (between 1 and 9)
@ -25,14 +30,12 @@ Note: in command, special variables are replaced:
$var: where "var" is a local variable of buffer (see /buffer localvar)
examples: $nick, $channel, $server, $plugin, $name
To remove an alias, use command /unalias.
Examples:
alias /split to split window horizontally:
/alias split /window splith
/alias add split /window splith
alias /hello to say "hello" on all channels but not on #weechat:
/alias hello /allchan -exclude=#weechat msg * hello
/alias add hello /allchan -exclude=#weechat msg * hello
alias /forcejoin to send IRC command "forcejoin" with completion of /sajoin:
/alias -completion %%sajoin forcejoin /quote forcejoin
/alias addcompletion %%sajoin forcejoin /quote forcejoin
----

View File

@ -180,6 +180,8 @@ WeeChat "core" is located in following directories:
| weechat-plugin.h | Header designed to be distributed with WeeChat plugins, in order to compile them
| alias/ | Alias plugin
| alias.c | Main alias functions
| alias-command.c | Alias commands
| alias-completion.c | Alias completions
| alias-config.c | Alias config options (file alias.conf)
| alias-info.c | Alias info/infolists/hdata
| aspell/ | Aspell plugin

View File

@ -3,17 +3,22 @@
// DO NOT EDIT BY HAND!
//
[[command_alias_alias]]
[command]*`alias`* créer un alias pour une commande::
[command]*`alias`* lister, ajouter ou retirer des alias de commande::
----
/alias [-completion <complétion>] alias [<commande> [;<commande>...]]
/alias list [<alias>]
add <alias> [<commande>[;<commande>...]]
addcompletion <complétion> <alias> [<commande>[;<commande>...]]
del <alias> [<alias>...]
complétion : complétion pour l'alias (optionnel, par défaut la complétion se fait avec la commande cible)
note : vous pouvez utiliser %%commande pour utiliser la complétion d'une commande existante
alias : nom de l'alias (le caractère joker "*" est autorisé)
commande : nom de la commande avec les paramètres (plusieurs commandes peuvent être séparées par des points-virgules)
Sans paramètre, cette commande liste tous les alias définis.
list : afficher les alias (sans paramètre, cette liste est affichée)
add : ajouter un alias
addcompletion : ajouter un alias avec une complétion personnalisée
del : supprimer un alias
complétion : complétion pour l'alias : par défaut la complétion se fait avec la commande cible
note : vous pouvez utiliser %%commande pour utiliser la complétion d'une commande existante
alias : nom de l'alias
commande : nom de la commande avec les paramètres (plusieurs commandes peuvent être séparées par des points-virgules)
Note : dans la commande, les variables spéciales sont remplacées :
$n : paramètre 'n' (entre 1 et 9)
@ -25,14 +30,12 @@ Note : dans la commande, les variables spéciales sont remplacées :
$var : où "var" est une variable locale du tampon (voir /buffer localvar)
exemples : $nick, $channel, $server, $plugin, $name
Pour supprimer un alias, utilisez la commande /unalias.
Exemples :
alias /split pour diviser la fenêtre horizontalement :
/alias split /window splith
/alias add split /window splith
alias /hello pour dire "hello" sur tous les canaux mais pas sur #weechat :
/alias hello /allchan -exclude=#weechat msg * hello
/alias add hello /allchan -exclude=#weechat msg * hello
alias /forcejoin pour envoyer la commande IRC "forcejoin" avec la complétion de /sajoin :
/alias -completion %%sajoin forcejoin /quote forcejoin
/alias addcompletion %%sajoin forcejoin /quote forcejoin
----

View File

@ -181,6 +181,8 @@ Le cœur de WeeChat est situé dans les répertoires suivants :
| weechat-plugin.h | En-tête destiné à être distribué avec les extensions WeeChat, pour les compiler
| alias/ | Extension Alias
| alias.c | Fonctions principales pour les alias
| alias-command.c | Commandes Alias
| alias-completion.c | Complétions pour Alias
| alias-config.c | Options de configuration des alias (fichier alias.conf)
| alias-info.c | Info/infolists/hdata pour les alias
| aspell/ | Extension Aspell

View File

@ -3,17 +3,22 @@
// DO NOT EDIT BY HAND!
//
[[command_alias_alias]]
[command]*`alias`* crea un alias per un comando::
[command]*`alias`* list, add or remove command aliases::
----
/alias [-completion <completamento>] <alias> [<comando> [;<comando>...]]
/alias list [<alias>]
add <alias> [<command>[;<command>...]]
addcompletion <completion> <alias> [<command>[;<command>...]]
del <alias> [<alias>...]
completion: completion for alias (optional, by default completion is done with target command)
note: you can use %%command to use completion of an existing command
alias: name of alias (wildcard "*" is allowed)
command: command name with arguments (many commands can be separated by semicolons)
Without argument, this command lists all defined alias.
list: list aliases (without argument, this list is displayed)
add: add an alias
addcompletion: add an alias with a custom completion
del: delete an alias
completion: completion for alias: by default completion is done with target command
note: you can use %%command to use completion of an existing command
alias: name of alias
command: command name with arguments (many commands can be separated by semicolons)
Note: in command, special variables are replaced:
$n: argument 'n' (between 1 and 9)
@ -25,14 +30,12 @@ Note: in command, special variables are replaced:
$var: where "var" is a local variable of buffer (see /buffer localvar)
examples: $nick, $channel, $server, $plugin, $name
To remove an alias, use command /unalias.
Examples:
alias /split to split window horizontally:
/alias split /window splith
/alias add split /window splith
alias /hello to say "hello" on all channels but not on #weechat:
/alias hello /allchan -exclude=#weechat msg * hello
/alias add hello /allchan -exclude=#weechat msg * hello
alias /forcejoin to send IRC command "forcejoin" with completion of /sajoin:
/alias -completion %%sajoin forcejoin /quote forcejoin
/alias addcompletion %%sajoin forcejoin /quote forcejoin
----

View File

@ -3,36 +3,39 @@
// DO NOT EDIT BY HAND!
//
[[command_alias_alias]]
[command]*`alias`* コマンドの別名を作成::
[command]*`alias`* list, add or remove command aliases::
----
/alias [-completion <completion>] <alias> [<command> [;<command>...]]
/alias list [<alias>]
add <alias> [<command>[;<command>...]]
addcompletion <completion> <alias> [<command>[;<command>...]]
del <alias> [<alias>...]
completion: 別名の補完 (任意、デフォルトではターゲットコマンドを伴って補完されます)
注意: %%command で存在するコマンドの補完を利用可能です
alias: 別名の名前 (ワイルドカード "*" を使うことができます)
command: 引数を含めたコマンド名 (セミコロンで分割すれば複数のコマンドを指定できます)
list: list aliases (without argument, this list is displayed)
add: add an alias
addcompletion: add an alias with a custom completion
del: delete an alias
completion: completion for alias: by default completion is done with target command
note: you can use %%command to use completion of an existing command
alias: name of alias
command: command name with arguments (many commands can be separated by semicolons)
引数無しでは、定義済み別名をリストアップ。
Note: in command, special variables are replaced:
$n: argument 'n' (between 1 and 9)
$-m: arguments from 1 to 'm'
$n-: arguments from 'n' to last
$n-m: arguments from 'n' to 'm'
$*: all arguments
$~: last argument
$var: where "var" is a local variable of buffer (see /buffer localvar)
examples: $nick, $channel, $server, $plugin, $name
注意: command の中では、特殊変数の置換が行われる:
$n: 'n' 番目の引数 (1 から 9)
$-m: 1 から 'm' 番目の引数
$n-: 'n' 番目から最後の引数
$n-m: 'n' から 'm' 番目の引数
$*: 全ての引数
$~: 最後の引数
$var: ここで "var" とはバッファの局所変数 (/buffer localvar を参照)
例: $nick、$channel、$server、$plugin、$name
別名を削除するには /unalias コマンドを使ってください:
例:
/split をウィンドウを水平方向に分割する別名と定義:
/alias split /window splith
/hello を #weechat を除く全てのチャンネルで "hello" と発言する別名と定義:
/alias hello /allchan -exclude=#weechat msg * hello
/forcejoin を /sajoin の補完候補を使い IRC コマンド "forcejoin" を送信する別名と定義:
/alias -completion %%sajoin forcejoin /quote forcejoin
Examples:
alias /split to split window horizontally:
/alias add split /window splith
alias /hello to say "hello" on all channels but not on #weechat:
/alias add hello /allchan -exclude=#weechat msg * hello
alias /forcejoin to send IRC command "forcejoin" with completion of /sajoin:
/alias addcompletion %%sajoin forcejoin /quote forcejoin
----

View File

@ -185,6 +185,8 @@ WeeChat "core" は以下のディレクトリに配置されています:
| weechat-plugin.h | WeeChat プラグインと一緒に配布されるヘッダファイル、プラグインのコンパイルに必要
| alias/ | alias プラグイン
| alias.c | alias の主要関数
| alias-command.c | alias コマンド
| alias-completion.c | alias 補完
| alias-config.c | alias 設定オプション (alias.conf ファイル)
| alias-info.c | alias の情報/インフォリスト/hdata
| aspell/ | aspell プラグイン

View File

@ -3,36 +3,39 @@
// DO NOT EDIT BY HAND!
//
[[command_alias_alias]]
[command]*`alias`* tworzy alias do komendy::
[command]*`alias`* list, add or remove command aliases::
----
/alias [-completion <dopełnienie>] <alias> [<komenda> [;<komenda>...]]
/alias list [<alias>]
add <alias> [<command>[;<command>...]]
addcompletion <completion> <alias> [<command>[;<command>...]]
del <alias> [<alias>...]
completion: dopełnienie dla aliasu (opcjonalne, domyślnie dopełnienie wykonuje się z docelową komendą)
uwaga: można użyć %%komenda w celu użycia dopełnień dla istniejących komend
alias: nazwa aliasu (wildcard "*" jest dozwolony)
komenda: nazwa komendy (wiele komend można oddzielić za pomocą średnika)
list: list aliases (without argument, this list is displayed)
add: add an alias
addcompletion: add an alias with a custom completion
del: delete an alias
completion: completion for alias: by default completion is done with target command
note: you can use %%command to use completion of an existing command
alias: name of alias
command: command name with arguments (many commands can be separated by semicolons)
Bez podania argumentu komenda wyświetla listę wszystkich zdefiniowanych aliasów.
Note: in command, special variables are replaced:
$n: argument 'n' (between 1 and 9)
$-m: arguments from 1 to 'm'
$n-: arguments from 'n' to last
$n-m: arguments from 'n' to 'm'
$*: all arguments
$~: last argument
$var: where "var" is a local variable of buffer (see /buffer localvar)
examples: $nick, $channel, $server, $plugin, $name
Ważne: dla komend specjalne zmienne są zastępowane odpowiednimi wartościami:
$n: argument 'n' (pomiędzy 1 i 9)
$-m: argumenty od 1 do 'm'
$n-: argumenty od 'n' do ostatniego
$n-m: argumenty od 'n' od 'm'
$*: wszystkie argumenty
$~: ostatni argument
$var: gdzie "var" to zmienna lokalna buforu (zobacz /buffer localvar)
przykłady: $nick, $channel, $server, $plugin, $name
Do usunięcia aliasu służy komenda /unalias.
Przykłady:
alias /split do poziomego podziału:
/alias split /window splith
alias /hello pisze "hello" na wszystkich kanałach poza #weechat:
/alias hello /allchan -exclude=#weechat msg * hello
alias /forcejoin wysyłający komende IRC "forcejoin" z dopełnieniem dla /sajoin:
/alias -completion %%sajoin forcejoin /quote forcejoin
Examples:
alias /split to split window horizontally:
/alias add split /window splith
alias /hello to say "hello" on all channels but not on #weechat:
/alias add hello /allchan -exclude=#weechat msg * hello
alias /forcejoin to send IRC command "forcejoin" with completion of /sajoin:
/alias addcompletion %%sajoin forcejoin /quote forcejoin
----

View File

@ -96,6 +96,10 @@
./src/gui/gui-window.c
./src/gui/gui-window.h
./src/plugins/alias/alias.c
./src/plugins/alias/alias-command.c
./src/plugins/alias/alias-command.h
./src/plugins/alias/alias-completion.c
./src/plugins/alias/alias-completion.h
./src/plugins/alias/alias-config.c
./src/plugins/alias/alias-config.h
./src/plugins/alias/alias.h

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-07-14 07:44+0200\n"
"POT-Creation-Date: 2015-07-19 10:17+0200\n"
"PO-Revision-Date: 2015-07-11 21:42+0200\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4397,12 +4397,6 @@ msgstr "příkazy weechat"
msgid "%s%s: error, circular reference when calling alias \"%s\""
msgstr "%s%s: chyba, cyklický odkaz při volání aliasu \"%s\""
msgid "List of aliases:"
msgstr "Seznam aliasů:"
msgid "No alias defined"
msgstr "Žádné aliasy nejsou definovány"
#, c-format
msgid "%s%s: error creating alias \"%s\" => \"%s\""
msgstr "%s%s: chyba vytváření aliasu \"%s\" => \"%s\""
@ -4411,10 +4405,21 @@ msgstr "%s%s: chyba vytváření aliasu \"%s\" => \"%s\""
msgid "Alias \"%s\" => \"%s\" created"
msgstr "Alias \"%s\" => \"%s\" vytvořen"
#, fuzzy, c-format
msgid "Aliases with \"%s\":"
msgstr "Servery s \"%s\":"
#, fuzzy
msgid "All aliases:"
msgstr "Aliasy barev:"
#, c-format
msgid "No alias found matching \"%s\""
msgstr "Žádný alias odpovídající \"%s\" nenalezen"
msgid "No alias defined"
msgstr "Žádné aliasy nejsou definovány"
#, c-format
msgid "%sAlias \"%s\" not found"
msgstr "%sAlias \"%s\" nenalezen"
@ -4423,24 +4428,28 @@ msgstr "%sAlias \"%s\" nenalezen"
msgid "Alias \"%s\" removed"
msgstr "Alias \"%s\" odebrán"
msgid "create an alias for a command"
msgstr "vytvoří alias pro příkaz"
#, fuzzy
msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
msgstr "[-completion <doplňování>] <jméno_aliasu> [<příkaz> [<argumenty>]]"
msgid "list, add or remove command aliases"
msgstr "vypíše, přídá nebo odebere IRC servery"
msgid ""
"list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion "
"<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...]"
msgstr ""
#, fuzzy, c-format
msgid ""
"completion: completion for alias (optional, by default completion is done "
"with target command)\n"
" note: you can use %%command to use completion of an existing "
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
"addcompletion: add an alias with a custom completion\n"
" del: delete an alias\n"
" completion: completion for alias: by default completion is done with "
"target command\n"
" note: you can use %%command to use completion of an existing "
"command\n"
" alias: name of alias (wildcard \"*\" is allowed)\n"
" command: command name with arguments (many commands can be separated by "
"semicolons)\n"
"\n"
"Without argument, this command lists all defined alias.\n"
" alias: name of alias\n"
" command: command name with arguments (many commands can be separated "
"by semicolons)\n"
"\n"
"Note: in command, special variables are replaced:\n"
" $n: argument 'n' (between 1 and 9)\n"
@ -4453,16 +4462,14 @@ msgid ""
"localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
"Examples:\n"
" alias /split to split window horizontally:\n"
" /alias split /window splith\n"
" /alias add split /window splith\n"
" alias /hello to say \"hello\" on all channels but not on #weechat:\n"
" /alias hello /allchan -exclude=#weechat msg * hello\n"
" /alias add hello /allchan -exclude=#weechat msg * hello\n"
" alias /forcejoin to send IRC command \"forcejoin\" with completion of /"
"sajoin:\n"
" /alias -completion %%sajoin forcejoin /quote forcejoin"
" /alias addcompletion %%sajoin forcejoin /quote forcejoin"
msgstr ""
" doplňování: doplňování pro alias (nepovinné, jako výchozí doplňování je "
"použito doplňování příkazu)\n"
@ -4494,15 +4501,6 @@ msgstr ""
"sajoin:\n"
" /alias -completion %%sajoin forcejoin /quote forcejoin"
msgid "remove aliases"
msgstr "odebere aliasy"
msgid "<alias> [<alias>...]"
msgstr "<jméno_aliasu> [<jméno_aliasu>...]"
msgid "alias: name of alias to remove"
msgstr "jméno_aliasu: jméno aliasu pro odebrání"
msgid "list of aliases"
msgstr "seznam aliasů"
@ -11090,3 +11088,22 @@ msgstr "%s%s: vypršel časový limit \"%s\" pro %s"
#, fuzzy, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: nemohu se připojit k odesílateli"
#~ msgid "List of aliases:"
#~ msgstr "Seznam aliasů:"
#~ msgid "create an alias for a command"
#~ msgstr "vytvoří alias pro příkaz"
#, fuzzy
#~ msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
#~ msgstr "[-completion <doplňování>] <jméno_aliasu> [<příkaz> [<argumenty>]]"
#~ msgid "remove aliases"
#~ msgstr "odebere aliasy"
#~ msgid "<alias> [<alias>...]"
#~ msgstr "<jméno_aliasu> [<jméno_aliasu>...]"
#~ msgid "alias: name of alias to remove"
#~ msgstr "jméno_aliasu: jméno aliasu pro odebrání"

View File

@ -24,7 +24,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-07-14 07:44+0200\n"
"POT-Creation-Date: 2015-07-19 10:17+0200\n"
"PO-Revision-Date: 2015-07-14 14:19+0100\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <>\n"
@ -5189,12 +5189,6 @@ msgstr "Alias-Befehle"
msgid "%s%s: error, circular reference when calling alias \"%s\""
msgstr "%s%s: Fehler, Zirkelbezug beim Aufruf des Alias \"%s\""
msgid "List of aliases:"
msgstr "Liste der Alias:"
msgid "No alias defined"
msgstr "Keine Alias definiert"
#, c-format
msgid "%s%s: error creating alias \"%s\" => \"%s\""
msgstr "%s%s: Fehler beim Erstellen von Alias \"%s\" => \"%s\""
@ -5203,10 +5197,21 @@ msgstr "%s%s: Fehler beim Erstellen von Alias \"%s\" => \"%s\""
msgid "Alias \"%s\" => \"%s\" created"
msgstr "Alias \"%s\" => \"%s\" angelegt"
#, fuzzy, c-format
msgid "Aliases with \"%s\":"
msgstr "Server mit \"%s\":"
#, fuzzy
msgid "All aliases:"
msgstr "Farbalias:"
#, c-format
msgid "No alias found matching \"%s\""
msgstr "keinen passenden Alias zu \"%s\" gefunden"
msgid "No alias defined"
msgstr "Keine Alias definiert"
#, c-format
msgid "%sAlias \"%s\" not found"
msgstr "%sAlias \"%s\" nicht gefunden"
@ -5215,23 +5220,28 @@ msgstr "%sAlias \"%s\" nicht gefunden"
msgid "Alias \"%s\" removed"
msgstr "Alias \"%s\" entfernt"
msgid "create an alias for a command"
msgstr "Einem Befehl wird ein Alias zugewiesen"
#, fuzzy
msgid "list, add or remove command aliases"
msgstr "auflisten, hinzufügen oder entfernen von IRC-Servern"
msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
msgstr "[-completion <completion>] <alias> [<command> [;<command>...]]"
#, c-format
msgid ""
"completion: completion for alias (optional, by default completion is done "
"with target command)\n"
" note: you can use %%command to use completion of an existing "
"list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion "
"<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...]"
msgstr ""
#, fuzzy, c-format
msgid ""
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
"addcompletion: add an alias with a custom completion\n"
" del: delete an alias\n"
" completion: completion for alias: by default completion is done with "
"target command\n"
" note: you can use %%command to use completion of an existing "
"command\n"
" alias: name of alias (wildcard \"*\" is allowed)\n"
" command: command name with arguments (many commands can be separated by "
"semicolons)\n"
"\n"
"Without argument, this command lists all defined alias.\n"
" alias: name of alias\n"
" command: command name with arguments (many commands can be separated "
"by semicolons)\n"
"\n"
"Note: in command, special variables are replaced:\n"
" $n: argument 'n' (between 1 and 9)\n"
@ -5244,16 +5254,14 @@ msgid ""
"localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
"Examples:\n"
" alias /split to split window horizontally:\n"
" /alias split /window splith\n"
" /alias add split /window splith\n"
" alias /hello to say \"hello\" on all channels but not on #weechat:\n"
" /alias hello /allchan -exclude=#weechat msg * hello\n"
" /alias add hello /allchan -exclude=#weechat msg * hello\n"
" alias /forcejoin to send IRC command \"forcejoin\" with completion of /"
"sajoin:\n"
" /alias -completion %%sajoin forcejoin /quote forcejoin"
" /alias addcompletion %%sajoin forcejoin /quote forcejoin"
msgstr ""
"completion: optionale Vervollständigung für einen Alias-Befehl "
"(Standardverhalten: Vervollständigung wird auf den Zielbefehl angewendet)\n"
@ -5289,15 +5297,6 @@ msgstr ""
"einer Vervollständigung von /sajoin auszuführen:\n"
" /alias -completion %%sajoin forcejoin /quote forcejoin"
msgid "remove aliases"
msgstr "entferne Alias"
msgid "<alias> [<alias>...]"
msgstr "<alias> [<alias>...]"
msgid "alias: name of alias to remove"
msgstr "alias: Name des zu löschenden Alias"
msgid "list of aliases"
msgstr "Liste der Alias"
@ -12607,3 +12606,21 @@ msgstr "%s%s: Zeitüberschreitung für \"%s\" mit %s"
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr ""
"%s%s: Verbindung konnte nicht hergestellt werden: unerwarteter Fehler (%d)"
#~ msgid "List of aliases:"
#~ msgstr "Liste der Alias:"
#~ msgid "create an alias for a command"
#~ msgstr "Einem Befehl wird ein Alias zugewiesen"
#~ msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
#~ msgstr "[-completion <completion>] <alias> [<command> [;<command>...]]"
#~ msgid "remove aliases"
#~ msgstr "entferne Alias"
#~ msgid "<alias> [<alias>...]"
#~ msgstr "<alias> [<alias>...]"
#~ msgid "alias: name of alias to remove"
#~ msgstr "alias: Name des zu löschenden Alias"

View File

@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-07-14 07:44+0200\n"
"POT-Creation-Date: 2015-07-19 10:17+0200\n"
"PO-Revision-Date: 2015-07-11 21:42+0200\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4614,12 +4614,6 @@ msgstr "Alias de comandos"
msgid "%s%s: error, circular reference when calling alias \"%s\""
msgstr "%s%s: error, referencia circular al ejecutar el alias \"%s\""
msgid "List of aliases:"
msgstr "Lista de alias:"
msgid "No alias defined"
msgstr "Ningún alias definido"
#, c-format
msgid "%s%s: error creating alias \"%s\" => \"%s\""
msgstr "%s%s: error al crear el alias \"%s\" => \"%s\""
@ -4628,10 +4622,21 @@ msgstr "%s%s: error al crear el alias \"%s\" => \"%s\""
msgid "Alias \"%s\" => \"%s\" created"
msgstr "Alias \"%s\" => \"%s\" creado"
#, fuzzy, c-format
msgid "Aliases with \"%s\":"
msgstr "Servidores con \"%s\":"
#, fuzzy
msgid "All aliases:"
msgstr "Alias de colores:"
#, c-format
msgid "No alias found matching \"%s\""
msgstr "Ningún alias encontrado con \"%s\""
msgid "No alias defined"
msgstr "Ningún alias definido"
#, c-format
msgid "%sAlias \"%s\" not found"
msgstr "%sAlias \"%s\" no encontrado"
@ -4640,23 +4645,28 @@ msgstr "%sAlias \"%s\" no encontrado"
msgid "Alias \"%s\" removed"
msgstr "Alias \"%s\" eliminado"
msgid "create an alias for a command"
msgstr "crear un alias para un comando"
#, fuzzy
msgid "list, add or remove command aliases"
msgstr "lista, añade o elimina servidores IRC"
msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
msgstr "[-completion <completador>] <alias> [<comando> [;<comando>...]]"
msgid ""
"list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion "
"<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...]"
msgstr ""
#, fuzzy, c-format
msgid ""
"completion: completion for alias (optional, by default completion is done "
"with target command)\n"
" note: you can use %%command to use completion of an existing "
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
"addcompletion: add an alias with a custom completion\n"
" del: delete an alias\n"
" completion: completion for alias: by default completion is done with "
"target command\n"
" note: you can use %%command to use completion of an existing "
"command\n"
" alias: name of alias (wildcard \"*\" is allowed)\n"
" command: command name with arguments (many commands can be separated by "
"semicolons)\n"
"\n"
"Without argument, this command lists all defined alias.\n"
" alias: name of alias\n"
" command: command name with arguments (many commands can be separated "
"by semicolons)\n"
"\n"
"Note: in command, special variables are replaced:\n"
" $n: argument 'n' (between 1 and 9)\n"
@ -4669,16 +4679,14 @@ msgid ""
"localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
"Examples:\n"
" alias /split to split window horizontally:\n"
" /alias split /window splith\n"
" /alias add split /window splith\n"
" alias /hello to say \"hello\" on all channels but not on #weechat:\n"
" /alias hello /allchan -exclude=#weechat msg * hello\n"
" /alias add hello /allchan -exclude=#weechat msg * hello\n"
" alias /forcejoin to send IRC command \"forcejoin\" with completion of /"
"sajoin:\n"
" /alias -completion %%sajoin forcejoin /quote forcejoin"
" /alias addcompletion %%sajoin forcejoin /quote forcejoin"
msgstr ""
"completador: completador para el alias (opcional, por defecto se usa el "
"completador el mismo del comando)\n"
@ -4713,15 +4721,6 @@ msgstr ""
"completador de /sajoin:\n"
" /alias -completion %%sajoin forcejoin /quote forcejoin"
msgid "remove aliases"
msgstr "eliminar alias"
msgid "<alias> [<alias>...]"
msgstr "<alias> [<alias>...]"
msgid "alias: name of alias to remove"
msgstr "alias: nombre del alias a suprimir"
msgid "list of aliases"
msgstr "lista de alias"
@ -11383,3 +11382,21 @@ msgstr "%s%s: tiempo de espera máximo para \"%s\" con %s"
#, fuzzy, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: no es posible conectarse al transmisor"
#~ msgid "List of aliases:"
#~ msgstr "Lista de alias:"
#~ msgid "create an alias for a command"
#~ msgstr "crear un alias para un comando"
#~ msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
#~ msgstr "[-completion <completador>] <alias> [<comando> [;<comando>...]]"
#~ msgid "remove aliases"
#~ msgstr "eliminar alias"
#~ msgid "<alias> [<alias>...]"
#~ msgstr "<alias> [<alias>...]"
#~ msgid "alias: name of alias to remove"
#~ msgstr "alias: nombre del alias a suprimir"

110
po/fr.po
View File

@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-07-14 07:44+0200\n"
"PO-Revision-Date: 2015-07-14 07:46+0200\n"
"POT-Creation-Date: 2015-07-19 10:17+0200\n"
"PO-Revision-Date: 2015-07-19 10:18+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@ -5076,12 +5076,6 @@ msgstr "Commandes d'alias"
msgid "%s%s: error, circular reference when calling alias \"%s\""
msgstr "%s%s : erreur, référence circulaire lors de l'appel à l'alias \"%s\""
msgid "List of aliases:"
msgstr "Liste des alias :"
msgid "No alias defined"
msgstr "Aucun alias défini"
#, c-format
msgid "%s%s: error creating alias \"%s\" => \"%s\""
msgstr "%s%s : erreur en création de l'alias \"%s\" => \"%s\""
@ -5090,10 +5084,20 @@ msgstr "%s%s : erreur en création de l'alias \"%s\" => \"%s\""
msgid "Alias \"%s\" => \"%s\" created"
msgstr "Alias \"%s\" => \"%s\" créé"
#, c-format
msgid "Aliases with \"%s\":"
msgstr "Alias avec \"%s\" :"
msgid "All aliases:"
msgstr "Tous les alias :"
#, c-format
msgid "No alias found matching \"%s\""
msgstr "Pas d'alias trouvé correspondant à \"%s\""
msgid "No alias defined"
msgstr "Aucun alias défini"
#, c-format
msgid "%sAlias \"%s\" not found"
msgstr "%sAlias \"%s\" non trouvé"
@ -5102,23 +5106,29 @@ msgstr "%sAlias \"%s\" non trouvé"
msgid "Alias \"%s\" removed"
msgstr "Alias \"%s\" supprimé"
msgid "create an alias for a command"
msgstr "créer un alias pour une commande"
msgid "list, add or remove command aliases"
msgstr "lister, ajouter ou retirer des alias de commande"
msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
msgstr "[-completion <complétion>] alias [<commande> [;<commande>...]]"
msgid ""
"list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion "
"<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...]"
msgstr ""
"list [<alias>] || add <alias> [<commande>[;<commande>...]] || addcompletion "
"<complétion> <alias> [<commande>[;<commande>...]] || del <alias> [<alias>...]"
#, c-format
msgid ""
"completion: completion for alias (optional, by default completion is done "
"with target command)\n"
" note: you can use %%command to use completion of an existing "
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
"addcompletion: add an alias with a custom completion\n"
" del: delete an alias\n"
" completion: completion for alias: by default completion is done with "
"target command\n"
" note: you can use %%command to use completion of an existing "
"command\n"
" alias: name of alias (wildcard \"*\" is allowed)\n"
" command: command name with arguments (many commands can be separated by "
"semicolons)\n"
"\n"
"Without argument, this command lists all defined alias.\n"
" alias: name of alias\n"
" command: command name with arguments (many commands can be separated "
"by semicolons)\n"
"\n"
"Note: in command, special variables are replaced:\n"
" $n: argument 'n' (between 1 and 9)\n"
@ -5131,27 +5141,28 @@ msgid ""
"localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
"Examples:\n"
" alias /split to split window horizontally:\n"
" /alias split /window splith\n"
" /alias add split /window splith\n"
" alias /hello to say \"hello\" on all channels but not on #weechat:\n"
" /alias hello /allchan -exclude=#weechat msg * hello\n"
" /alias add hello /allchan -exclude=#weechat msg * hello\n"
" alias /forcejoin to send IRC command \"forcejoin\" with completion of /"
"sajoin:\n"
" /alias -completion %%sajoin forcejoin /quote forcejoin"
" /alias addcompletion %%sajoin forcejoin /quote forcejoin"
msgstr ""
"complétion : complétion pour l'alias (optionnel, par défaut la complétion se "
"fait avec la commande cible)\n"
" note : vous pouvez utiliser %%commande pour utiliser la "
" list : afficher les alias (sans paramètre, cette liste est "
"affichée)\n"
" add : ajouter un alias\n"
"addcompletion : ajouter un alias avec une complétion personnalisée\n"
" del : supprimer un alias\n"
" complétion : complétion pour l'alias : par défaut la complétion se fait "
"avec la commande cible\n"
" note : vous pouvez utiliser %%commande pour utiliser la "
"complétion d'une commande existante\n"
" alias : nom de l'alias (le caractère joker \"*\" est autorisé)\n"
" commande : nom de la commande avec les paramètres (plusieurs commandes "
" alias : nom de l'alias\n"
" commande : nom de la commande avec les paramètres (plusieurs commandes "
"peuvent être séparées par des points-virgules)\n"
"\n"
"Sans paramètre, cette commande liste tous les alias définis.\n"
"\n"
"Note : dans la commande, les variables spéciales sont remplacées :\n"
" $n : paramètre 'n' (entre 1 et 9)\n"
" $-m : paramètres de 1 à 'm'\n"
@ -5163,26 +5174,15 @@ msgstr ""
"localvar)\n"
" exemples : $nick, $channel, $server, $plugin, $name\n"
"\n"
"Pour supprimer un alias, utilisez la commande /unalias.\n"
"\n"
"Exemples :\n"
" alias /split pour diviser la fenêtre horizontalement :\n"
" /alias split /window splith\n"
" /alias add split /window splith\n"
" alias /hello pour dire \"hello\" sur tous les canaux mais pas sur "
"#weechat :\n"
" /alias hello /allchan -exclude=#weechat msg * hello\n"
" /alias add hello /allchan -exclude=#weechat msg * hello\n"
" alias /forcejoin pour envoyer la commande IRC \"forcejoin\" avec la "
"complétion de /sajoin :\n"
" /alias -completion %%sajoin forcejoin /quote forcejoin"
msgid "remove aliases"
msgstr "supprimer des alias"
msgid "<alias> [<alias>...]"
msgstr "<alias> [<alias>...]"
msgid "alias: name of alias to remove"
msgstr "alias : nom de l'alias à supprimer"
" /alias addcompletion %%sajoin forcejoin /quote forcejoin"
msgid "list of aliases"
msgstr "liste des alias"
@ -12345,3 +12345,21 @@ msgstr "%s%s : délai d'attente dépassé pour \"%s\" avec %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s : impossible de se connecter : erreur inattendue (%d)"
#~ msgid "List of aliases:"
#~ msgstr "Liste des alias :"
#~ msgid "create an alias for a command"
#~ msgstr "créer un alias pour une commande"
#~ msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
#~ msgstr "[-completion <complétion>] alias [<commande> [;<commande>...]]"
#~ msgid "remove aliases"
#~ msgstr "supprimer des alias"
#~ msgid "<alias> [<alias>...]"
#~ msgstr "<alias> [<alias>...]"
#~ msgid "alias: name of alias to remove"
#~ msgstr "alias : nom de l'alias à supprimer"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-07-14 07:44+0200\n"
"POT-Creation-Date: 2015-07-19 10:17+0200\n"
"PO-Revision-Date: 2015-07-11 21:42+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4009,14 +4009,6 @@ msgstr "%s belső parancsok:\n"
msgid "%s%s: error, circular reference when calling alias \"%s\""
msgstr "%s körreferencia a \"/%s\" aliasz hívásakor\n"
#, fuzzy
msgid "List of aliases:"
msgstr "Aliaszok listája:\n"
#, fuzzy
msgid "No alias defined"
msgstr "Nincs aliasz definiálva.\n"
#, fuzzy, c-format
msgid "%s%s: error creating alias \"%s\" => \"%s\""
msgstr "%s nincs elég memória az információs pult üzenethez\n"
@ -4025,10 +4017,22 @@ msgstr "%s nincs elég memória az információs pult üzenethez\n"
msgid "Alias \"%s\" => \"%s\" created"
msgstr "A \"%s\" => \"%s\" aliasz elkészült\n"
#, fuzzy, c-format
msgid "Aliases with \"%s\":"
msgstr "A(z) '%s' szerverek listája:\n"
#, fuzzy
msgid "All aliases:"
msgstr "Aliaszok listája:\n"
#, fuzzy, c-format
msgid "No alias found matching \"%s\""
msgstr "Nem található '%s' szerver.\n"
#, fuzzy
msgid "No alias defined"
msgstr "Nincs aliasz definiálva.\n"
#, fuzzy, c-format
msgid "%sAlias \"%s\" not found"
msgstr "%s cím \"%s\" nem található\n"
@ -4037,24 +4041,28 @@ msgstr "%s cím \"%s\" nem található\n"
msgid "Alias \"%s\" removed"
msgstr "A \"%s\" aliasz eltávolítva\n"
msgid "create an alias for a command"
msgstr "alias készítése egy parancshoz"
#, fuzzy
msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
msgstr "[alias_név [parancs [paraméterek]]]"
msgid "list, add or remove command aliases"
msgstr "szerverek listázása, hozzáadása vagy eltávolítása"
msgid ""
"list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion "
"<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...]"
msgstr ""
#, fuzzy, c-format
msgid ""
"completion: completion for alias (optional, by default completion is done "
"with target command)\n"
" note: you can use %%command to use completion of an existing "
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
"addcompletion: add an alias with a custom completion\n"
" del: delete an alias\n"
" completion: completion for alias: by default completion is done with "
"target command\n"
" note: you can use %%command to use completion of an existing "
"command\n"
" alias: name of alias (wildcard \"*\" is allowed)\n"
" command: command name with arguments (many commands can be separated by "
"semicolons)\n"
"\n"
"Without argument, this command lists all defined alias.\n"
" alias: name of alias\n"
" command: command name with arguments (many commands can be separated "
"by semicolons)\n"
"\n"
"Note: in command, special variables are replaced:\n"
" $n: argument 'n' (between 1 and 9)\n"
@ -4067,16 +4075,14 @@ msgid ""
"localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
"Examples:\n"
" alias /split to split window horizontally:\n"
" /alias split /window splith\n"
" /alias add split /window splith\n"
" alias /hello to say \"hello\" on all channels but not on #weechat:\n"
" /alias hello /allchan -exclude=#weechat msg * hello\n"
" /alias add hello /allchan -exclude=#weechat msg * hello\n"
" alias /forcejoin to send IRC command \"forcejoin\" with completion of /"
"sajoin:\n"
" /alias -completion %%sajoin forcejoin /quote forcejoin"
" /alias addcompletion %%sajoin forcejoin /quote forcejoin"
msgstr ""
" alias_név: az alias neve\n"
" parancs: parancs neve (WeeChat vagy IRC parancs, több parancs "
@ -4089,18 +4095,6 @@ msgstr ""
"A $nick, $channel és $server változók az aktuális névre/szobára/szerverre "
"lesznek kicserélve."
#, fuzzy
msgid "remove aliases"
msgstr "alias eltávolítása"
#, fuzzy
msgid "<alias> [<alias>...]"
msgstr "név [név...]"
#, fuzzy
msgid "alias: name of alias to remove"
msgstr "alias_név: az eltávolítandó alias neve"
#, fuzzy
msgid "list of aliases"
msgstr "Aliaszok listája:\n"
@ -10445,3 +10439,26 @@ msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n"
#, fuzzy, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s DCC: nem sikerült kapcsolódni a küldőhöz\n"
#, fuzzy
#~ msgid "List of aliases:"
#~ msgstr "Aliaszok listája:\n"
#~ msgid "create an alias for a command"
#~ msgstr "alias készítése egy parancshoz"
#, fuzzy
#~ msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
#~ msgstr "[alias_név [parancs [paraméterek]]]"
#, fuzzy
#~ msgid "remove aliases"
#~ msgstr "alias eltávolítása"
#, fuzzy
#~ msgid "<alias> [<alias>...]"
#~ msgstr "név [név...]"
#, fuzzy
#~ msgid "alias: name of alias to remove"
#~ msgstr "alias_név: az eltávolítandó alias neve"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-07-14 07:44+0200\n"
"POT-Creation-Date: 2015-07-19 10:17+0200\n"
"PO-Revision-Date: 2015-07-11 21:42+0200\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4747,12 +4747,6 @@ msgstr "Alias dei comandi"
msgid "%s%s: error, circular reference when calling alias \"%s\""
msgstr "%s%s: errore, riferimento circolare alla chiamata dell'alias \"%s\""
msgid "List of aliases:"
msgstr "Elenco degli alias:"
msgid "No alias defined"
msgstr "Nessun alias definito"
#, c-format
msgid "%s%s: error creating alias \"%s\" => \"%s\""
msgstr "%s%s: errore nella creazione dell'alias \"%s\" => \"%s\""
@ -4761,10 +4755,21 @@ msgstr "%s%s: errore nella creazione dell'alias \"%s\" => \"%s\""
msgid "Alias \"%s\" => \"%s\" created"
msgstr "Alias \"%s\" => \"%s\" creato"
#, fuzzy, c-format
msgid "Aliases with \"%s\":"
msgstr "Server con \"%s\":"
#, fuzzy
msgid "All aliases:"
msgstr "Alias colore:"
#, c-format
msgid "No alias found matching \"%s\""
msgstr "Nessun alias corrispondente a \"%s\" trovato"
msgid "No alias defined"
msgstr "Nessun alias definito"
#, c-format
msgid "%sAlias \"%s\" not found"
msgstr "%sAlias \"%s\" non trovato"
@ -4773,23 +4778,28 @@ msgstr "%sAlias \"%s\" non trovato"
msgid "Alias \"%s\" removed"
msgstr "Alias \"%s\" eliminato"
msgid "create an alias for a command"
msgstr "crea un alias per un comando"
#, fuzzy
msgid "list, add or remove command aliases"
msgstr "elenca, aggiunge o rimuove server IRC"
msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
msgstr "[-completion <completamento>] <alias> [<comando> [;<comando>...]]"
msgid ""
"list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion "
"<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...]"
msgstr ""
#, fuzzy, c-format
msgid ""
"completion: completion for alias (optional, by default completion is done "
"with target command)\n"
" note: you can use %%command to use completion of an existing "
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
"addcompletion: add an alias with a custom completion\n"
" del: delete an alias\n"
" completion: completion for alias: by default completion is done with "
"target command\n"
" note: you can use %%command to use completion of an existing "
"command\n"
" alias: name of alias (wildcard \"*\" is allowed)\n"
" command: command name with arguments (many commands can be separated by "
"semicolons)\n"
"\n"
"Without argument, this command lists all defined alias.\n"
" alias: name of alias\n"
" command: command name with arguments (many commands can be separated "
"by semicolons)\n"
"\n"
"Note: in command, special variables are replaced:\n"
" $n: argument 'n' (between 1 and 9)\n"
@ -4802,16 +4812,14 @@ msgid ""
"localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
"Examples:\n"
" alias /split to split window horizontally:\n"
" /alias split /window splith\n"
" /alias add split /window splith\n"
" alias /hello to say \"hello\" on all channels but not on #weechat:\n"
" /alias hello /allchan -exclude=#weechat msg * hello\n"
" /alias add hello /allchan -exclude=#weechat msg * hello\n"
" alias /forcejoin to send IRC command \"forcejoin\" with completion of /"
"sajoin:\n"
" /alias -completion %%sajoin forcejoin /quote forcejoin"
" /alias addcompletion %%sajoin forcejoin /quote forcejoin"
msgstr ""
"completamento: completamento per l'alias (opzionale, per default il "
"completamento viene eseguito con il comando di destinazione)\n"
@ -4846,15 +4854,6 @@ msgstr ""
"completamento di /sajoin:\n"
" /alias -completion %%sajoin forcejoin /quote forcejoin"
msgid "remove aliases"
msgstr "elimina alias"
msgid "<alias> [<alias>...]"
msgstr "<alias> [<alias>...]"
msgid "alias: name of alias to remove"
msgstr "alias: nome di un alias da eliminare"
msgid "list of aliases"
msgstr "elenco di alias"
@ -11566,3 +11565,21 @@ msgstr "%s%s: timeout per \"%s\" con %s"
#, fuzzy, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: impossibile connettersi al mittente"
#~ msgid "List of aliases:"
#~ msgstr "Elenco degli alias:"
#~ msgid "create an alias for a command"
#~ msgstr "crea un alias per un comando"
#~ msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
#~ msgstr "[-completion <completamento>] <alias> [<comando> [;<comando>...]]"
#~ msgid "remove aliases"
#~ msgstr "elimina alias"
#~ msgid "<alias> [<alias>...]"
#~ msgstr "<alias> [<alias>...]"
#~ msgid "alias: name of alias to remove"
#~ msgstr "alias: nome di un alias da eliminare"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-07-14 07:44+0200\n"
"POT-Creation-Date: 2015-07-19 10:17+0200\n"
"PO-Revision-Date: 2015-07-13 22:27+0900\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/translation_ja>\n"
@ -4853,12 +4853,6 @@ msgstr "エイリアスコマンド"
msgid "%s%s: error, circular reference when calling alias \"%s\""
msgstr "%s%s: エラー、別名 \"%s\" の呼び出し中に循環参照を検知"
msgid "List of aliases:"
msgstr "別名のリスト:"
msgid "No alias defined"
msgstr "別名が定義されていません"
#, c-format
msgid "%s%s: error creating alias \"%s\" => \"%s\""
msgstr "%s%s: 別名 \"%s\" => \"%s\" 作成中にエラー"
@ -4867,10 +4861,21 @@ msgstr "%s%s: 別名 \"%s\" => \"%s\" 作成中にエラー"
msgid "Alias \"%s\" => \"%s\" created"
msgstr "別名 \"%s\" => \"%s\" を作成しました"
#, fuzzy, c-format
msgid "Aliases with \"%s\":"
msgstr "\"%s\" にマッチするサーバ:"
#, fuzzy
msgid "All aliases:"
msgstr "色別名:"
#, c-format
msgid "No alias found matching \"%s\""
msgstr "\"%s\" にマッチする別名が見つかりません"
msgid "No alias defined"
msgstr "別名が定義されていません"
#, c-format
msgid "%sAlias \"%s\" not found"
msgstr "%s別名 \"%s\" が見つかりません"
@ -4879,23 +4884,28 @@ msgstr "%s別名 \"%s\" が見つかりません"
msgid "Alias \"%s\" removed"
msgstr "別名 \"%s\" が削除されました"
msgid "create an alias for a command"
msgstr "コマンドの別名を作成"
#, fuzzy
msgid "list, add or remove command aliases"
msgstr "IRC サーバのリストアップ、追加、削除"
msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
msgstr "[-completion <completion>] <alias> [<command> [;<command>...]]"
#, c-format
msgid ""
"completion: completion for alias (optional, by default completion is done "
"with target command)\n"
" note: you can use %%command to use completion of an existing "
"list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion "
"<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...]"
msgstr ""
#, fuzzy, c-format
msgid ""
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
"addcompletion: add an alias with a custom completion\n"
" del: delete an alias\n"
" completion: completion for alias: by default completion is done with "
"target command\n"
" note: you can use %%command to use completion of an existing "
"command\n"
" alias: name of alias (wildcard \"*\" is allowed)\n"
" command: command name with arguments (many commands can be separated by "
"semicolons)\n"
"\n"
"Without argument, this command lists all defined alias.\n"
" alias: name of alias\n"
" command: command name with arguments (many commands can be separated "
"by semicolons)\n"
"\n"
"Note: in command, special variables are replaced:\n"
" $n: argument 'n' (between 1 and 9)\n"
@ -4908,16 +4918,14 @@ msgid ""
"localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
"Examples:\n"
" alias /split to split window horizontally:\n"
" /alias split /window splith\n"
" /alias add split /window splith\n"
" alias /hello to say \"hello\" on all channels but not on #weechat:\n"
" /alias hello /allchan -exclude=#weechat msg * hello\n"
" /alias add hello /allchan -exclude=#weechat msg * hello\n"
" alias /forcejoin to send IRC command \"forcejoin\" with completion of /"
"sajoin:\n"
" /alias -completion %%sajoin forcejoin /quote forcejoin"
" /alias addcompletion %%sajoin forcejoin /quote forcejoin"
msgstr ""
"completion: 別名の補完 (任意、デフォルトではターゲットコマンドを伴って補完さ"
"れます)\n"
@ -4950,15 +4958,6 @@ msgstr ""
"る別名と定義:\n"
" /alias -completion %%sajoin forcejoin /quote forcejoin"
msgid "remove aliases"
msgstr "別名の削除"
msgid "<alias> [<alias>...]"
msgstr "<alias> [<alias>...]"
msgid "alias: name of alias to remove"
msgstr "alias: 削除する別名の名前"
msgid "list of aliases"
msgstr "別名のリスト"
@ -11867,3 +11866,21 @@ msgstr "%s%s: \"%s\" のタイムアウト %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: 接続できません: 未定義のエラー (%d)"
#~ msgid "List of aliases:"
#~ msgstr "別名のリスト:"
#~ msgid "create an alias for a command"
#~ msgstr "コマンドの別名を作成"
#~ msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
#~ msgstr "[-completion <completion>] <alias> [<command> [;<command>...]]"
#~ msgid "remove aliases"
#~ msgstr "別名の削除"
#~ msgid "<alias> [<alias>...]"
#~ msgstr "<alias> [<alias>...]"
#~ msgid "alias: name of alias to remove"
#~ msgstr "alias: 削除する別名の名前"

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-07-14 07:44+0200\n"
"POT-Creation-Date: 2015-07-19 10:17+0200\n"
"PO-Revision-Date: 2015-07-11 21:42+0200\n"
"Last-Translator: Krzysztof Korościk <soltys@szluug.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4964,12 +4964,6 @@ msgstr "Aliasy komend"
msgid "%s%s: error, circular reference when calling alias \"%s\""
msgstr "%s%s: błąd, cykliczna referencja przy wywoływaniu aliasu \"%s\""
msgid "List of aliases:"
msgstr "Lista aliasów:"
msgid "No alias defined"
msgstr "Nie zdefiniowano aliasu"
#, c-format
msgid "%s%s: error creating alias \"%s\" => \"%s\""
msgstr "%s%s: błąd podczas tworzenia aliasu \"%s\" => \"%s\""
@ -4978,10 +4972,21 @@ msgstr "%s%s: błąd podczas tworzenia aliasu \"%s\" => \"%s\""
msgid "Alias \"%s\" => \"%s\" created"
msgstr "Utworzono alias \"%s\" => \"%s\""
#, fuzzy, c-format
msgid "Aliases with \"%s\":"
msgstr "Serwery z \"%s\":"
#, fuzzy
msgid "All aliases:"
msgstr "Aliasy kolorów:"
#, c-format
msgid "No alias found matching \"%s\""
msgstr "Nie znaleziono aliasu pasującego do \"%s\""
msgid "No alias defined"
msgstr "Nie zdefiniowano aliasu"
#, c-format
msgid "%sAlias \"%s\" not found"
msgstr "%sAlias \"%s\" nie został znaleziony"
@ -4990,23 +4995,28 @@ msgstr "%sAlias \"%s\" nie został znaleziony"
msgid "Alias \"%s\" removed"
msgstr "Alias \"%s\" został usunięty"
msgid "create an alias for a command"
msgstr "tworzy alias do komendy"
#, fuzzy
msgid "list, add or remove command aliases"
msgstr "wyświetla, dodaje lub usuwa serwery IRC"
msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
msgstr "[-completion <dopełnienie>] <alias> [<komenda> [;<komenda>...]]"
#, c-format
msgid ""
"completion: completion for alias (optional, by default completion is done "
"with target command)\n"
" note: you can use %%command to use completion of an existing "
"list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion "
"<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...]"
msgstr ""
#, fuzzy, c-format
msgid ""
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
"addcompletion: add an alias with a custom completion\n"
" del: delete an alias\n"
" completion: completion for alias: by default completion is done with "
"target command\n"
" note: you can use %%command to use completion of an existing "
"command\n"
" alias: name of alias (wildcard \"*\" is allowed)\n"
" command: command name with arguments (many commands can be separated by "
"semicolons)\n"
"\n"
"Without argument, this command lists all defined alias.\n"
" alias: name of alias\n"
" command: command name with arguments (many commands can be separated "
"by semicolons)\n"
"\n"
"Note: in command, special variables are replaced:\n"
" $n: argument 'n' (between 1 and 9)\n"
@ -5019,16 +5029,14 @@ msgid ""
"localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
"Examples:\n"
" alias /split to split window horizontally:\n"
" /alias split /window splith\n"
" /alias add split /window splith\n"
" alias /hello to say \"hello\" on all channels but not on #weechat:\n"
" /alias hello /allchan -exclude=#weechat msg * hello\n"
" /alias add hello /allchan -exclude=#weechat msg * hello\n"
" alias /forcejoin to send IRC command \"forcejoin\" with completion of /"
"sajoin:\n"
" /alias -completion %%sajoin forcejoin /quote forcejoin"
" /alias addcompletion %%sajoin forcejoin /quote forcejoin"
msgstr ""
"completion: dopełnienie dla aliasu (opcjonalne, domyślnie dopełnienie "
"wykonuje się z docelową komendą)\n"
@ -5063,15 +5071,6 @@ msgstr ""
"sajoin:\n"
" /alias -completion %%sajoin forcejoin /quote forcejoin"
msgid "remove aliases"
msgstr "usuwa aliasy"
msgid "<alias> [<alias>...]"
msgstr "<alias> [<alias>...]"
msgid "alias: name of alias to remove"
msgstr "alias: nazwa aliasu do usunięcia"
msgid "list of aliases"
msgstr "lista aliasów"
@ -12086,3 +12085,21 @@ msgstr "%s%s: przekroczono czas na \"%s\" z %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: nie można połączyć: niespodziewany błąd (%d)"
#~ msgid "List of aliases:"
#~ msgstr "Lista aliasów:"
#~ msgid "create an alias for a command"
#~ msgstr "tworzy alias do komendy"
#~ msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
#~ msgstr "[-completion <dopełnienie>] <alias> [<komenda> [;<komenda>...]]"
#~ msgid "remove aliases"
#~ msgstr "usuwa aliasy"
#~ msgid "<alias> [<alias>...]"
#~ msgstr "<alias> [<alias>...]"
#~ msgid "alias: name of alias to remove"
#~ msgstr "alias: nazwa aliasu do usunięcia"

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-07-14 07:44+0200\n"
"POT-Creation-Date: 2015-07-19 10:17+0200\n"
"PO-Revision-Date: 2015-07-11 21:42+0200\n"
"Last-Translator: Eduardo Elias <camponez@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4601,12 +4601,6 @@ msgstr "comandos do weechat"
msgid "%s%s: error, circular reference when calling alias \"%s\""
msgstr "%s%s: erro, referência circular ao chamar atalho \"%s\""
msgid "List of aliases:"
msgstr "Lista de atalhos:"
msgid "No alias defined"
msgstr "Nenhum atalho definido"
#, c-format
msgid "%s%s: error creating alias \"%s\" => \"%s\""
msgstr "%s%s: erro ao criar atalho \"%s\" => \"%s\""
@ -4615,10 +4609,21 @@ msgstr "%s%s: erro ao criar atalho \"%s\" => \"%s\""
msgid "Alias \"%s\" => \"%s\" created"
msgstr "Atalho \"%s\" => \"%s\" criado"
#, c-format
msgid "Aliases with \"%s\":"
msgstr ""
#, fuzzy
msgid "All aliases:"
msgstr "Atalhos de Cor:"
#, c-format
msgid "No alias found matching \"%s\""
msgstr "Nenhum atalho semelhante a \"%s\" foi encontrado"
msgid "No alias defined"
msgstr "Nenhum atalho definido"
#, c-format
msgid "%sAlias \"%s\" not found"
msgstr "%sAtalho \"%s\" não encontrado"
@ -4627,23 +4632,27 @@ msgstr "%sAtalho \"%s\" não encontrado"
msgid "Alias \"%s\" removed"
msgstr "Atalho \"%s\" removido"
msgid "create an alias for a command"
msgstr "cria um atalho para um comando"
msgid "list, add or remove command aliases"
msgstr ""
msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
msgstr "[-completion <completion>] <atalho> [<comando> [;<comando>...]]"
msgid ""
"list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion "
"<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...]"
msgstr ""
#, c-format
msgid ""
"completion: completion for alias (optional, by default completion is done "
"with target command)\n"
" note: you can use %%command to use completion of an existing "
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
"addcompletion: add an alias with a custom completion\n"
" del: delete an alias\n"
" completion: completion for alias: by default completion is done with "
"target command\n"
" note: you can use %%command to use completion of an existing "
"command\n"
" alias: name of alias (wildcard \"*\" is allowed)\n"
" command: command name with arguments (many commands can be separated by "
"semicolons)\n"
"\n"
"Without argument, this command lists all defined alias.\n"
" alias: name of alias\n"
" command: command name with arguments (many commands can be separated "
"by semicolons)\n"
"\n"
"Note: in command, special variables are replaced:\n"
" $n: argument 'n' (between 1 and 9)\n"
@ -4656,27 +4665,16 @@ msgid ""
"localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
"Examples:\n"
" alias /split to split window horizontally:\n"
" /alias split /window splith\n"
" /alias add split /window splith\n"
" alias /hello to say \"hello\" on all channels but not on #weechat:\n"
" /alias hello /allchan -exclude=#weechat msg * hello\n"
" /alias add hello /allchan -exclude=#weechat msg * hello\n"
" alias /forcejoin to send IRC command \"forcejoin\" with completion of /"
"sajoin:\n"
" /alias -completion %%sajoin forcejoin /quote forcejoin"
" /alias addcompletion %%sajoin forcejoin /quote forcejoin"
msgstr ""
msgid "remove aliases"
msgstr "remover atalhos"
msgid "<alias> [<alias>...]"
msgstr "<atalho> [<atalho>...]"
msgid "alias: name of alias to remove"
msgstr "atalho: nome de um atalho para remover"
msgid "list of aliases"
msgstr "lista de atalhos"
@ -10870,3 +10868,21 @@ msgstr "%s%s: tempo esgotado para \"%s\" com %s"
#, fuzzy, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: não foi possível conectar ao remetente"
#~ msgid "List of aliases:"
#~ msgstr "Lista de atalhos:"
#~ msgid "create an alias for a command"
#~ msgstr "cria um atalho para um comando"
#~ msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
#~ msgstr "[-completion <completion>] <atalho> [<comando> [;<comando>...]]"
#~ msgid "remove aliases"
#~ msgstr "remover atalhos"
#~ msgid "<alias> [<alias>...]"
#~ msgstr "<atalho> [<atalho>...]"
#~ msgid "alias: name of alias to remove"
#~ msgstr "atalho: nome de um atalho para remover"

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-07-14 07:44+0200\n"
"POT-Creation-Date: 2015-07-19 10:17+0200\n"
"PO-Revision-Date: 2015-07-11 21:42+0200\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4047,14 +4047,6 @@ msgstr "Внутренние команды %s:\n"
msgid "%s%s: error, circular reference when calling alias \"%s\""
msgstr "%s рекурсия при вызове сокращения \"/%s\"\n"
#, fuzzy
msgid "List of aliases:"
msgstr "Список сокращений:\n"
#, fuzzy
msgid "No alias defined"
msgstr "Сокращения не заданы.\n"
#, fuzzy, c-format
msgid "%s%s: error creating alias \"%s\" => \"%s\""
msgstr "%s недостаточно памяти для сообщения в строке информации\n"
@ -4063,10 +4055,22 @@ msgstr "%s недостаточно памяти для сообщения в с
msgid "Alias \"%s\" => \"%s\" created"
msgstr "Сокращение \"%s\" => \"%s\" создано\n"
#, fuzzy, c-format
msgid "Aliases with \"%s\":"
msgstr "Серверы с '%s':\n"
#, fuzzy
msgid "All aliases:"
msgstr "Список сокращений:\n"
#, fuzzy, c-format
msgid "No alias found matching \"%s\""
msgstr "Серверы с '%s' не найдены.\n"
#, fuzzy
msgid "No alias defined"
msgstr "Сокращения не заданы.\n"
#, fuzzy, c-format
msgid "%sAlias \"%s\" not found"
msgstr "%s адрес \"%s\" не найден\n"
@ -4075,24 +4079,28 @@ msgstr "%s адрес \"%s\" не найден\n"
msgid "Alias \"%s\" removed"
msgstr "Сокращение \"%s\" удалено\n"
msgid "create an alias for a command"
msgstr "создать ярлык на команду"
#, fuzzy
msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
msgstr "[сокращение [команда [аргументы]]]"
msgid "list, add or remove command aliases"
msgstr "перечислить, добавить или удалить серверы"
msgid ""
"list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion "
"<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...]"
msgstr ""
#, fuzzy, c-format
msgid ""
"completion: completion for alias (optional, by default completion is done "
"with target command)\n"
" note: you can use %%command to use completion of an existing "
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
"addcompletion: add an alias with a custom completion\n"
" del: delete an alias\n"
" completion: completion for alias: by default completion is done with "
"target command\n"
" note: you can use %%command to use completion of an existing "
"command\n"
" alias: name of alias (wildcard \"*\" is allowed)\n"
" command: command name with arguments (many commands can be separated by "
"semicolons)\n"
"\n"
"Without argument, this command lists all defined alias.\n"
" alias: name of alias\n"
" command: command name with arguments (many commands can be separated "
"by semicolons)\n"
"\n"
"Note: in command, special variables are replaced:\n"
" $n: argument 'n' (between 1 and 9)\n"
@ -4105,16 +4113,14 @@ msgid ""
"localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
"Examples:\n"
" alias /split to split window horizontally:\n"
" /alias split /window splith\n"
" /alias add split /window splith\n"
" alias /hello to say \"hello\" on all channels but not on #weechat:\n"
" /alias hello /allchan -exclude=#weechat msg * hello\n"
" /alias add hello /allchan -exclude=#weechat msg * hello\n"
" alias /forcejoin to send IRC command \"forcejoin\" with completion of /"
"sajoin:\n"
" /alias -completion %%sajoin forcejoin /quote forcejoin"
" /alias addcompletion %%sajoin forcejoin /quote forcejoin"
msgstr ""
"сокращение: название сокращения\n"
" команда: название команды (команда WeeChat или IRC, несколько команд "
@ -4126,18 +4132,6 @@ msgstr ""
"Переменные $nick, $channel и $server заменяются на ник, канал и сервер "
"соответственно."
#, fuzzy
msgid "remove aliases"
msgstr "удалить ярлык"
#, fuzzy
msgid "<alias> [<alias>...]"
msgstr "ник [ник ...]"
#, fuzzy
msgid "alias: name of alias to remove"
msgstr "сокращение: удаляемое сокращение"
#, fuzzy
msgid "list of aliases"
msgstr "Список сокращений:\n"
@ -10471,3 +10465,26 @@ msgstr "%s нет аргумента для параметра \"%s\"\n"
#, fuzzy, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s DCC: не могу соединиться с отправителем\n"
#, fuzzy
#~ msgid "List of aliases:"
#~ msgstr "Список сокращений:\n"
#~ msgid "create an alias for a command"
#~ msgstr "создать ярлык на команду"
#, fuzzy
#~ msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
#~ msgstr "[сокращение [команда [аргументы]]]"
#, fuzzy
#~ msgid "remove aliases"
#~ msgstr "удалить ярлык"
#, fuzzy
#~ msgid "<alias> [<alias>...]"
#~ msgstr "ник [ник ...]"
#, fuzzy
#~ msgid "alias: name of alias to remove"
#~ msgstr "сокращение: удаляемое сокращение"

View File

@ -97,6 +97,10 @@ SET(WEECHAT_SOURCES
./src/gui/gui-window.c
./src/gui/gui-window.h
./src/plugins/alias/alias.c
./src/plugins/alias/alias-command.c
./src/plugins/alias/alias-command.h
./src/plugins/alias/alias-completion.c
./src/plugins/alias/alias-completion.h
./src/plugins/alias/alias-config.c
./src/plugins/alias/alias-config.h
./src/plugins/alias/alias.h

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-07-14 07:44+0200\n"
"POT-Creation-Date: 2015-07-19 10:17+0200\n"
"PO-Revision-Date: 2015-03-10 21:33+0100\n"
"Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -3629,12 +3629,6 @@ msgstr ""
msgid "%s%s: error, circular reference when calling alias \"%s\""
msgstr ""
msgid "List of aliases:"
msgstr ""
msgid "No alias defined"
msgstr ""
#, c-format
msgid "%s%s: error creating alias \"%s\" => \"%s\""
msgstr ""
@ -3643,10 +3637,21 @@ msgstr ""
msgid "Alias \"%s\" => \"%s\" created"
msgstr ""
#, c-format
msgid "Aliases with \"%s\":"
msgstr ""
#, fuzzy
msgid "All aliases:"
msgstr "Tüm sunucular:"
#, c-format
msgid "No alias found matching \"%s\""
msgstr ""
msgid "No alias defined"
msgstr ""
#, c-format
msgid "%sAlias \"%s\" not found"
msgstr ""
@ -3655,23 +3660,28 @@ msgstr ""
msgid "Alias \"%s\" removed"
msgstr ""
msgid "create an alias for a command"
msgstr ""
#, fuzzy
msgid "list, add or remove command aliases"
msgstr "İRC sunucularını listele, ekle veya kaldır"
msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
msgid ""
"list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion "
"<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...]"
msgstr ""
#, c-format
msgid ""
"completion: completion for alias (optional, by default completion is done "
"with target command)\n"
" note: you can use %%command to use completion of an existing "
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
"addcompletion: add an alias with a custom completion\n"
" del: delete an alias\n"
" completion: completion for alias: by default completion is done with "
"target command\n"
" note: you can use %%command to use completion of an existing "
"command\n"
" alias: name of alias (wildcard \"*\" is allowed)\n"
" command: command name with arguments (many commands can be separated by "
"semicolons)\n"
"\n"
"Without argument, this command lists all defined alias.\n"
" alias: name of alias\n"
" command: command name with arguments (many commands can be separated "
"by semicolons)\n"
"\n"
"Note: in command, special variables are replaced:\n"
" $n: argument 'n' (between 1 and 9)\n"
@ -3684,25 +3694,14 @@ msgid ""
"localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
"Examples:\n"
" alias /split to split window horizontally:\n"
" /alias split /window splith\n"
" /alias add split /window splith\n"
" alias /hello to say \"hello\" on all channels but not on #weechat:\n"
" /alias hello /allchan -exclude=#weechat msg * hello\n"
" /alias add hello /allchan -exclude=#weechat msg * hello\n"
" alias /forcejoin to send IRC command \"forcejoin\" with completion of /"
"sajoin:\n"
" /alias -completion %%sajoin forcejoin /quote forcejoin"
msgstr ""
msgid "remove aliases"
msgstr ""
msgid "<alias> [<alias>...]"
msgstr ""
msgid "alias: name of alias to remove"
" /alias addcompletion %%sajoin forcejoin /quote forcejoin"
msgstr ""
msgid "list of aliases"

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-07-14 07:44+0200\n"
"POT-Creation-Date: 2015-07-19 10:17+0200\n"
"PO-Revision-Date: 2014-08-16 10:27+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -3626,12 +3626,6 @@ msgstr ""
msgid "%s%s: error, circular reference when calling alias \"%s\""
msgstr ""
msgid "List of aliases:"
msgstr ""
msgid "No alias defined"
msgstr ""
#, c-format
msgid "%s%s: error creating alias \"%s\" => \"%s\""
msgstr ""
@ -3640,10 +3634,20 @@ msgstr ""
msgid "Alias \"%s\" => \"%s\" created"
msgstr ""
#, c-format
msgid "Aliases with \"%s\":"
msgstr ""
msgid "All aliases:"
msgstr ""
#, c-format
msgid "No alias found matching \"%s\""
msgstr ""
msgid "No alias defined"
msgstr ""
#, c-format
msgid "%sAlias \"%s\" not found"
msgstr ""
@ -3652,23 +3656,27 @@ msgstr ""
msgid "Alias \"%s\" removed"
msgstr ""
msgid "create an alias for a command"
msgid "list, add or remove command aliases"
msgstr ""
msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
msgid ""
"list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion "
"<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...]"
msgstr ""
#, c-format
msgid ""
"completion: completion for alias (optional, by default completion is done "
"with target command)\n"
" note: you can use %%command to use completion of an existing "
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
"addcompletion: add an alias with a custom completion\n"
" del: delete an alias\n"
" completion: completion for alias: by default completion is done with "
"target command\n"
" note: you can use %%command to use completion of an existing "
"command\n"
" alias: name of alias (wildcard \"*\" is allowed)\n"
" command: command name with arguments (many commands can be separated by "
"semicolons)\n"
"\n"
"Without argument, this command lists all defined alias.\n"
" alias: name of alias\n"
" command: command name with arguments (many commands can be separated "
"by semicolons)\n"
"\n"
"Note: in command, special variables are replaced:\n"
" $n: argument 'n' (between 1 and 9)\n"
@ -3681,25 +3689,14 @@ msgid ""
"localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
"Examples:\n"
" alias /split to split window horizontally:\n"
" /alias split /window splith\n"
" /alias add split /window splith\n"
" alias /hello to say \"hello\" on all channels but not on #weechat:\n"
" /alias hello /allchan -exclude=#weechat msg * hello\n"
" /alias add hello /allchan -exclude=#weechat msg * hello\n"
" alias /forcejoin to send IRC command \"forcejoin\" with completion of /"
"sajoin:\n"
" /alias -completion %%sajoin forcejoin /quote forcejoin"
msgstr ""
msgid "remove aliases"
msgstr ""
msgid "<alias> [<alias>...]"
msgstr ""
msgid "alias: name of alias to remove"
" /alias addcompletion %%sajoin forcejoin /quote forcejoin"
msgstr ""
msgid "list of aliases"

View File

@ -19,6 +19,8 @@
add_library(alias MODULE
alias.c alias.h
alias-command.c alias-command.h
alias-completion.c alias-completion.h
alias-config.c alias-config.h
alias-info.c alias-info.h)
set_target_properties(alias PROPERTIES PREFIX "")

View File

@ -25,6 +25,10 @@ lib_LTLIBRARIES = alias.la
alias_la_SOURCES = alias.c \
alias.h \
alias-command.c \
alias-command.h \
alias-completion.c \
alias-completion.h \
alias-config.c \
alias-config.h \
alias-info.c \

View File

@ -0,0 +1,266 @@
/*
* alias-command.c - alias commands
*
* Copyright (C) 2003-2015 Sébastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
* WeeChat is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* WeeChat is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "../weechat-plugin.h"
#include "alias.h"
#include "alias-config.h"
/*
* Adds a new alias.
*/
void
alias_command_add (const char *alias_name, const char *command,
const char *completion)
{
struct t_config_option *ptr_option;
/* define new alias */
if (!alias_new (alias_name, command, completion))
{
weechat_printf (NULL,
_("%s%s: error creating alias \"%s\" "
"=> \"%s\""),
weechat_prefix ("error"), ALIAS_PLUGIN_NAME,
alias_name, command);
return;
}
/* create configuration option for command */
ptr_option = weechat_config_search_option (alias_config_file,
alias_config_section_cmd,
alias_name);
if (ptr_option)
weechat_config_option_free (ptr_option);
alias_config_cmd_new_option (alias_name, command);
/* create configuration option for completion */
ptr_option = weechat_config_search_option (alias_config_file,
alias_config_section_completion,
alias_name);
if (ptr_option)
weechat_config_option_free (ptr_option);
if (completion)
alias_config_completion_new_option (alias_name, completion);
/* display message */
weechat_printf (NULL,
_("Alias \"%s\" => \"%s\" created"),
alias_name, command);
}
/*
* Callback for command "/alias": displays or creates alias.
*/
int
alias_command_cb (void *data, struct t_gui_buffer *buffer, int argc,
char **argv, char **argv_eol)
{
char *ptr_alias_name;
struct t_alias *ptr_alias;
struct t_config_option *ptr_option;
int alias_found, i;
/* make C compiler happy */
(void) data;
(void) buffer;
/* List all aliases */
if ((argc == 1) || (weechat_strcasecmp (argv[1], "list") == 0))
{
if (alias_list)
{
/* get pointer to alias name */
ptr_alias_name = NULL;
if (argc > 1)
{
ptr_alias_name = (weechat_string_is_command_char (argv[2])) ?
(char *)weechat_utf8_next_char (argv[2]) : argv[2];
}
/* display list of aliases */
alias_found = 0;
for (ptr_alias = alias_list; ptr_alias;
ptr_alias = ptr_alias->next_alias)
{
if (!ptr_alias_name
|| weechat_strcasestr (ptr_alias->name, ptr_alias_name))
{
if (!alias_found)
{
weechat_printf (NULL, "");
if (ptr_alias_name)
{
weechat_printf (NULL,
_("Aliases with \"%s\":"),
ptr_alias_name);
}
else
{
weechat_printf (NULL, _("All aliases:"));
}
}
weechat_printf (NULL, " %s %s=>%s %s",
ptr_alias->name,
weechat_color ("chat_delimiters"),
weechat_color ("chat"),
ptr_alias->command);
alias_found = 1;
}
}
if (!alias_found)
{
weechat_printf (NULL, _("No alias found matching \"%s\""),
(ptr_alias_name) ? ptr_alias_name : "");
}
}
else
{
weechat_printf (NULL, _("No alias defined"));
}
return WEECHAT_RC_OK;
}
if (weechat_strcasecmp (argv[1], "add") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(4, "add");
alias_command_add (
(weechat_string_is_command_char (argv[2])) ?
(char *)weechat_utf8_next_char (argv[2]) : argv[2],
argv_eol[3],
NULL);
return WEECHAT_RC_OK;
}
if (weechat_strcasecmp (argv[1], "addcompletion") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(5, "add");
alias_command_add (
(weechat_string_is_command_char (argv[3])) ?
(char *)weechat_utf8_next_char (argv[3]) : argv[3],
argv_eol[4],
argv[2]);
return WEECHAT_RC_OK;
}
if (weechat_strcasecmp (argv[1], "del") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(3, "del");
for (i = 2; i < argc; i++)
{
ptr_alias_name = (weechat_string_is_command_char (argv[i])) ?
(char *)weechat_utf8_next_char (argv[i]) : argv[i];
ptr_alias = alias_search (ptr_alias_name);
if (!ptr_alias)
{
weechat_printf (NULL,
_("%sAlias \"%s\" not found"),
weechat_prefix ("error"),
ptr_alias_name);
}
else
{
/* remove alias */
alias_free (ptr_alias);
/* remove options */
ptr_option = weechat_config_search_option (
alias_config_file,
alias_config_section_cmd,
ptr_alias_name);
if (ptr_option)
weechat_config_option_free (ptr_option);
ptr_option = weechat_config_search_option (
alias_config_file,
alias_config_section_completion,
ptr_alias_name);
if (ptr_option)
weechat_config_option_free (ptr_option);
weechat_printf (NULL,
_("Alias \"%s\" removed"),
ptr_alias_name);
}
}
return WEECHAT_RC_OK;
}
WEECHAT_COMMAND_ERROR;
}
/*
* Hooks alias command.
*/
void
alias_command_init ()
{
weechat_hook_command (
"alias",
N_("list, add or remove command aliases"),
N_("list [<alias>]"
" || add <alias> [<command>[;<command>...]]"
" || addcompletion <completion> <alias> [<command>[;<command>...]]"
" || del <alias> [<alias>...]"),
N_(" list: list aliases (without argument, this list is "
"displayed)\n"
" add: add an alias\n"
"addcompletion: add an alias with a custom completion\n"
" del: delete an alias\n"
" completion: completion for alias: by default completion is "
"done with target command\n"
" note: you can use %%command to use completion of "
"an existing command\n"
" alias: name of alias\n"
" command: command name with arguments (many commands can be "
"separated by semicolons)\n"
"\n"
"Note: in command, special variables are replaced:\n"
" $n: argument 'n' (between 1 and 9)\n"
" $-m: arguments from 1 to 'm'\n"
" $n-: arguments from 'n' to last\n"
" $n-m: arguments from 'n' to 'm'\n"
" $*: all arguments\n"
" $~: last argument\n"
" $var: where \"var\" is a local variable of buffer (see "
"/buffer localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"Examples:\n"
" alias /split to split window horizontally:\n"
" /alias add split /window splith\n"
" alias /hello to say \"hello\" on all channels but not on "
"#weechat:\n"
" /alias add hello /allchan -exclude=#weechat msg * hello\n"
" alias /forcejoin to send IRC command \"forcejoin\" with "
"completion of /sajoin:\n"
" /alias addcompletion %%sajoin forcejoin /quote forcejoin"),
"list %(alias)"
" || add %(alias) %(commands)|%(alias_value)"
" || addcompletion %- %(alias) %(commands)|%(alias_value)"
" || del %(alias)|%*",
&alias_command_cb, NULL);
}

View File

@ -0,0 +1,25 @@
/*
* Copyright (C) 2013-2015 Sébastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
* WeeChat is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* WeeChat is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef WEECHAT_ALIAS_COMMAND_H
#define WEECHAT_ALIAS_COMMAND_H 1
extern void alias_command_init ();
#endif /* WEECHAT_ALIAS_COMMAND_H */

View File

@ -0,0 +1,116 @@
/*
* alias-completion.c - completion for alias commands
*
* Copyright (C) 2003-2015 Sébastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
* WeeChat is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* WeeChat is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "../weechat-plugin.h"
#include "alias.h"
/*
* Adds list of aliases to completion list.
*/
int
alias_completion_alias_cb (void *data, const char *completion_item,
struct t_gui_buffer *buffer,
struct t_gui_completion *completion)
{
struct t_alias *ptr_alias;
/* make C compiler happy */
(void) data;
(void) completion_item;
(void) buffer;
for (ptr_alias = alias_list; ptr_alias;
ptr_alias = ptr_alias->next_alias)
{
weechat_hook_completion_list_add (completion, ptr_alias->name,
0, WEECHAT_LIST_POS_SORT);
}
return WEECHAT_RC_OK;
}
/*
* Adds value of an alias to completion list.
*/
int
alias_completion_alias_value_cb (void *data, const char *completion_item,
struct t_gui_buffer *buffer,
struct t_gui_completion *completion)
{
const char *args;
char **argv, *alias_name;
int argc;
struct t_alias *ptr_alias;
/* make C compiler happy */
(void) data;
(void) completion_item;
(void) buffer;
args = weechat_hook_completion_get_string (completion, "args");
if (args)
{
argv = weechat_string_split (args, " ", 0, 0, &argc);
if (argv)
{
if (argc > 0)
alias_name = strdup (argv[argc - 1]);
else
alias_name = strdup (args);
if (alias_name)
{
ptr_alias = alias_search (alias_name);
if (ptr_alias)
{
weechat_hook_completion_list_add (completion,
ptr_alias->command,
0,
WEECHAT_LIST_POS_BEGINNING);
}
free (alias_name);
}
weechat_string_free_split (argv);
}
}
return WEECHAT_RC_OK;
}
/*
* Hooks completions.
*/
void
alias_completion_init ()
{
weechat_hook_completion ("alias", N_("list of aliases"),
&alias_completion_alias_cb, NULL);
weechat_hook_completion ("alias_value", N_("value of alias"),
&alias_completion_alias_value_cb, NULL);
}

View File

@ -0,0 +1,25 @@
/*
* Copyright (C) 2013-2015 Sébastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
* WeeChat is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* WeeChat is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef WEECHAT_ALIAS_COMPLETION_H
#define WEECHAT_ALIAS_COMPLETION_H 1
extern void alias_completion_init ();
#endif /* WEECHAT_ALIAS_COMPLETION_H */

View File

@ -25,6 +25,8 @@
#include "../weechat-plugin.h"
#include "alias.h"
#include "alias-command.h"
#include "alias-completion.h"
#include "alias-config.h"
#include "alias-info.h"
@ -638,268 +640,6 @@ alias_new (const char *name, const char *command, const char *completion)
return new_alias;
}
/*
* Callback for command "/alias": displays or creates alias.
*/
int
alias_command_cb (void *data, struct t_gui_buffer *buffer, int argc,
char **argv, char **argv_eol)
{
char *ptr_completion, *ptr_alias_name, *ptr_command;
struct t_alias *ptr_alias;
struct t_config_option *ptr_option;
int alias_found;
/* make C compiler happy */
(void) data;
(void) buffer;
/* List all aliases */
if (argc == 1)
{
if (alias_list)
{
weechat_printf (NULL, "");
weechat_printf (NULL, _("List of aliases:"));
for (ptr_alias = alias_list; ptr_alias;
ptr_alias = ptr_alias->next_alias)
{
weechat_printf (NULL,
" %s %s=>%s %s",
ptr_alias->name,
weechat_color ("chat_delimiters"),
weechat_color ("chat"),
ptr_alias->command);
}
}
else
weechat_printf (NULL, _("No alias defined"));
return WEECHAT_RC_OK;
}
if (argc > 2)
{
/* get pointers to completion, alias name and command (+ args) */
ptr_completion = NULL;
ptr_alias_name = NULL;
ptr_command = NULL;
if ((argc > 4) && (weechat_strcasecmp (argv[1], "-completion") == 0))
{
ptr_completion = argv[2];
ptr_alias_name = (weechat_string_is_command_char (argv[3])) ?
(char *)weechat_utf8_next_char (argv[3]) : argv[3];
ptr_command = argv_eol[4];
}
else
{
ptr_alias_name = (weechat_string_is_command_char (argv[1])) ?
(char *)weechat_utf8_next_char (argv[1]) : argv[1];
ptr_command = argv_eol[2];
}
/* define new alias */
if (!alias_new (ptr_alias_name, ptr_command, ptr_completion))
{
weechat_printf (NULL,
_("%s%s: error creating alias \"%s\" "
"=> \"%s\""),
weechat_prefix ("error"), ALIAS_PLUGIN_NAME,
ptr_alias_name, ptr_command);
return WEECHAT_RC_OK;
}
/* create configuration option for command */
ptr_option = weechat_config_search_option (alias_config_file,
alias_config_section_cmd,
ptr_alias_name);
if (ptr_option)
weechat_config_option_free (ptr_option);
alias_config_cmd_new_option (ptr_alias_name, ptr_command);
/* create configuration option for completion */
ptr_option = weechat_config_search_option (alias_config_file,
alias_config_section_completion,
ptr_alias_name);
if (ptr_option)
weechat_config_option_free (ptr_option);
if (ptr_completion)
alias_config_completion_new_option (ptr_alias_name, ptr_completion);
/* display message */
weechat_printf (NULL,
_("Alias \"%s\" => \"%s\" created"),
ptr_alias_name, ptr_command);
}
else
{
/* get pointer to alias name */
ptr_alias_name = (weechat_string_is_command_char (argv[1])) ?
(char *)weechat_utf8_next_char (argv[1]) : argv[1];
/* display list of aliases */
alias_found = 0;
for (ptr_alias = alias_list; ptr_alias;
ptr_alias = ptr_alias->next_alias)
{
if (weechat_string_match (ptr_alias->name, ptr_alias_name, 0))
{
if (!alias_found)
{
weechat_printf (NULL, "");
weechat_printf (NULL, _("List of aliases:"));
}
weechat_printf (NULL, " %s %s=>%s %s",
ptr_alias->name,
weechat_color ("chat_delimiters"),
weechat_color ("chat"),
ptr_alias->command);
alias_found = 1;
}
}
if (!alias_found)
{
weechat_printf (NULL, _("No alias found matching \"%s\""),
ptr_alias_name);
}
}
return WEECHAT_RC_OK;
}
/*
* Callback for command "/unalias": removes an alias.
*/
int
unalias_command_cb (void *data, struct t_gui_buffer *buffer, int argc,
char **argv, char **argv_eol)
{
int i;
char *alias_name;
struct t_alias *ptr_alias;
struct t_config_option *ptr_option;
/* make C compiler happy */
(void) data;
(void) buffer;
(void) argv_eol;
WEECHAT_COMMAND_MIN_ARGS(2, "");
for (i = 1; i < argc; i++)
{
alias_name = (weechat_string_is_command_char (argv[i])) ?
(char *)weechat_utf8_next_char (argv[i]) : argv[i];
ptr_alias = alias_search (alias_name);
if (!ptr_alias)
{
weechat_printf (NULL,
_("%sAlias \"%s\" not found"),
weechat_prefix ("error"),
alias_name);
}
else
{
/* remove alias */
alias_free (ptr_alias);
/* remove options */
ptr_option = weechat_config_search_option (alias_config_file,
alias_config_section_cmd,
alias_name);
if (ptr_option)
weechat_config_option_free (ptr_option);
ptr_option = weechat_config_search_option (alias_config_file,
alias_config_section_completion,
alias_name);
if (ptr_option)
weechat_config_option_free (ptr_option);
weechat_printf (NULL,
_("Alias \"%s\" removed"),
alias_name);
}
}
return WEECHAT_RC_OK;
}
/*
* Adds list of aliases to completion list.
*/
int
alias_completion_cb (void *data, const char *completion_item,
struct t_gui_buffer *buffer,
struct t_gui_completion *completion)
{
struct t_alias *ptr_alias;
/* make C compiler happy */
(void) data;
(void) completion_item;
(void) buffer;
for (ptr_alias = alias_list; ptr_alias;
ptr_alias = ptr_alias->next_alias)
{
weechat_hook_completion_list_add (completion, ptr_alias->name,
0, WEECHAT_LIST_POS_SORT);
}
return WEECHAT_RC_OK;
}
/*
* Adds value of an alias to completion list.
*/
int
alias_value_completion_cb (void *data, const char *completion_item,
struct t_gui_buffer *buffer,
struct t_gui_completion *completion)
{
const char *args;
char **argv, *alias_name;
int argc;
struct t_alias *ptr_alias;
/* make C compiler happy */
(void) data;
(void) completion_item;
(void) buffer;
args = weechat_hook_completion_get_string (completion, "args");
if (args)
{
argv = weechat_string_split (args, " ", 0, 0, &argc);
if (argv)
{
if (argc > 0)
alias_name = strdup (argv[argc - 1]);
else
alias_name = strdup (args);
if (alias_name)
{
ptr_alias = alias_search (alias_name);
if (ptr_alias)
{
weechat_hook_completion_list_add (completion,
ptr_alias->command,
0,
WEECHAT_LIST_POS_BEGINNING);
}
free (alias_name);
}
weechat_string_free_split (argv);
}
}
return WEECHAT_RC_OK;
}
/*
* Adds an alias in an infolist.
*
@ -952,56 +692,9 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
alias_config_read ();
weechat_hook_command (
"alias",
N_("create an alias for a command"),
N_("[-completion <completion>] <alias> [<command> [;<command>...]]"),
N_("completion: completion for alias (optional, by default completion "
"is done with target command)\n"
" note: you can use %%command to use completion of an "
"existing command\n"
" alias: name of alias (wildcard \"*\" is allowed)\n"
" command: command name with arguments (many commands can be "
"separated by semicolons)\n"
"\n"
"Without argument, this command lists all defined alias.\n"
"\n"
"Note: in command, special variables are replaced:\n"
" $n: argument 'n' (between 1 and 9)\n"
" $-m: arguments from 1 to 'm'\n"
" $n-: arguments from 'n' to last\n"
" $n-m: arguments from 'n' to 'm'\n"
" $*: all arguments\n"
" $~: last argument\n"
" $var: where \"var\" is a local variable of buffer (see "
"/buffer localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
"Examples:\n"
" alias /split to split window horizontally:\n"
" /alias split /window splith\n"
" alias /hello to say \"hello\" on all channels but not on "
"#weechat:\n"
" /alias hello /allchan -exclude=#weechat msg * hello\n"
" alias /forcejoin to send IRC command \"forcejoin\" with "
"completion of /sajoin:\n"
" /alias -completion %%sajoin forcejoin /quote forcejoin"),
"-completion %- %(alias) %(commands)|%(alias_value)"
" || %(alias) %(commands)|%(alias_value)",
&alias_command_cb, NULL);
weechat_hook_command (
"unalias", N_("remove aliases"),
N_("<alias> [<alias>...]"),
N_("alias: name of alias to remove"),
"%(alias)|%*",
&unalias_command_cb, NULL);
alias_command_init ();
weechat_hook_completion ("alias", N_("list of aliases"),
&alias_completion_cb, NULL);
weechat_hook_completion ("alias_value", N_("value of alias"),
&alias_value_completion_cb, NULL);
alias_completion_init ();
alias_info_init ();