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

aspell: add new option aspell.check.enabled, add options enable/disable/toggle for command /aspell, display aspell status with /aspell (task #11988)

New options in command /aspell:
- "enable": enable aspell
- "disable": disable aspell
- "toggle": toggle aspell

Options renamed in command /aspell:
- "enable" renamed to "setdict" (set dictionary for current buffer)
- "disable" renamed to "deldict" (delete dictionary used on current buffer)
- "dictlist" renamed to "listdict" (show installed dictionaries)
This commit is contained in:
Sebastien Helleu
2012-07-05 16:06:28 +02:00
parent cbc47ece3d
commit 3de7b2ff3d
25 changed files with 795 additions and 187 deletions
+3
View File
@@ -17,6 +17,9 @@ Version 0.3.9 (under dev!)
* core: reallow names beginning with "#" for bars, proxies and filters
* core: escape special chars (`#[\`) in configuration files for name of options
(bug #36584)
* aspell: add option aspell.check.enabled, add options enable/disable/toggle for
command /aspell (rename options enable/disable/dictlist to
setdict/deldict/listdict), display aspell status with /aspell (task #11988)
* aspell: add missing dictionaries (ast/grc/hus/kn/ky)
* guile: fix crash when unloading a script without pointer to interpreter
* guile: fix path of guile include dirs in cmake build (patch #7790)
+10 -1
View File
@@ -1,7 +1,7 @@
WeeChat Release Notes
=====================
Sébastien Helleu <flashcode@flashtux.org>
v0.3.9-dev, 2012-06-14
v0.3.9-dev, 2012-07-05
Version 0.3.9 (under dev!)
@@ -9,10 +9,19 @@ Version 0.3.9 (under dev!)
Important release notes:
* changes in options for command `/aspell`:
** new option `enable`: enable aspell
** new option `disable`: disable aspell
** new option `toggle`: toggle aspell
** option `enable` renamed to `setdict` (set dictionary for current buffer)
** option `disable` renamed to `deldict` (delete dictionary used on current buffer)
** option `dictlist` renamed to `listdict` (show installed dictionaries)
* an horizontal separator has been added between split windows, and two options
have been added to toggle separators (both are enabled by default):
** 'weechat.look.window_separator_horizontal'
** 'weechat.look.window_separator_vertical'
* new keys were added, use command `/key missing` to add them or `/key listdiff`
to see differences between your current keys and WeeChat default keys
Version 0.3.8 (2012-06-03)
--------------------------
+17 -10
View File
@@ -1,19 +1,26 @@
[[command_aspell_aspell]]
[command]*`aspell`* Konfiguration für Aspell-Erweiterung::
........................................
/aspell dictlist
enable <lang>
disable
/aspell enable|disable|toggle
listdict
setdict <lang>
deldict
addword [<lang>] <word>
dictlist: listet installierte Wörterbücher auf
enable: aktiviert Aspell in aktuellem Buffer [lang = Wörterbuch)
disable: deaktiviert Aspell in aktuellem Buffer
addword: fügt ein Wort in das persönliche Wörterbuch von Aspell hinzu
enable: enable aspell
disable: disable aspell
toggle: toggle aspell
listdict: show installed dictionaries
setdict: set dictionary for current buffer
deldict: delete dictionary used on current buffer
addword: add a word in personal aspell dictionary
Eingaben die mit '/' beginnen werden nicht überprüft, davon ausgenommen sind einige Befehle (siehe /set aspell.check.commands).
Input line beginning with a '/' is not checked, except for some commands (see /set aspell.check.commands).
Um in allen Buffern Aspell anzuwenden sollte man die Option "default_dict" nutzen , als Beispiel:
/set aspell.check.default_dict "de_DE-neu"
To enable aspell on all buffers, use option "default_dict", then enable aspell, for example:
/set aspell.check.default_dict "en"
/aspell enable
Default key to toggle aspell is alt-s.
........................................
+5
View File
@@ -13,6 +13,11 @@
** Typ: boolesch
** Werte: on, off (Standardwert: `off`)
* [[option_aspell.check.enabled]] *aspell.check.enabled*
** Beschreibung: `enable aspell check for command line`
** Typ: boolesch
** Werte: on, off (Standardwert: `off`)
* [[option_aspell.check.real_time]] *aspell.check.real_time*
** Beschreibung: `Eine Korrektur findet während der Texteingabe statt (da dies langsamer ist, ist diese Funktion standardmäßig deaktiviert. Wörter werden erst überprüft sobald ein Leerzeichen dem vorangegangenen Wort folgt)`
** Typ: boolesch
+15 -8
View File
@@ -1,19 +1,26 @@
[[command_aspell_aspell]]
[command]*`aspell`* aspell plugin configuration::
........................................
/aspell dictlist
enable <lang>
disable
/aspell enable|disable|toggle
listdict
setdict <lang>
deldict
addword [<lang>] <word>
dictlist: show installed dictionaries
enable: enable aspell on current buffer
disable: disable aspell on current buffer
addword: add a word in your personal aspell dictionary
enable: enable aspell
disable: disable aspell
toggle: toggle aspell
listdict: show installed dictionaries
setdict: set dictionary for current buffer
deldict: delete dictionary used on current buffer
addword: add a word in personal aspell dictionary
Input line beginning with a '/' is not checked, except for some commands (see /set aspell.check.commands).
To enable aspell on all buffers, use option "default_dict", for example:
To enable aspell on all buffers, use option "default_dict", then enable aspell, for example:
/set aspell.check.default_dict "en"
/aspell enable
Default key to toggle aspell is alt-s.
........................................
+5
View File
@@ -13,6 +13,11 @@
** type: boolean
** values: on, off (default value: `off`)
* [[option_aspell.check.enabled]] *aspell.check.enabled*
** description: `enable aspell check for command line`
** type: boolean
** values: on, off (default value: `off`)
* [[option_aspell.check.real_time]] *aspell.check.real_time*
** description: `real-time spell checking of words (slower, disabled by default: words are checked only if there's delimiter after)`
** type: boolean
+13 -6
View File
@@ -1,19 +1,26 @@
[[command_aspell_aspell]]
[command]*`aspell`* configuration de l'extension aspell::
........................................
/aspell dictlist
enable <langue>
disable
/aspell enable|disable|toggle
listdict
setdict <langue>
deldict
addword [<langue>] <mot>
dictlist: afficher les dictionnaires installés
enable: activer aspell sur le tampon courant
disable: désactiver aspell sur le tampon courant
enable: activer aspell
disable: désactiver aspell
toggle: activer/désactiver aspell
listdict: afficher les dictionnaires installés
setdict: définir le dictionnaire pour le tampon courant
deldict: supprimer le dictionnaire utilisé sur le tampon courant
addword: ajouter un mot dans le dictionnaire personnel aspell
Les lignes d'entrée commençant par '/' ne sont pas vérifiées, sauf pour certaines commandes (voir /set aspell.check.commands).
Pour activer aspell sur tous les tampons, utilisez l'option "default_dict", par exemple :
/set aspell.check.default_dict "en"
/aspell enable
La touche par défaut pour activer/désactiver aspell est alt-s.
........................................
+5
View File
@@ -13,6 +13,11 @@
** type: booléen
** valeurs: on, off (valeur par défaut: `off`)
* [[option_aspell.check.enabled]] *aspell.check.enabled*
** description: `activer la vérification aspell pour la ligne de commande`
** type: booléen
** valeurs: on, off (valeur par défaut: `off`)
* [[option_aspell.check.real_time]] *aspell.check.real_time*
** description: `vérification orthographique des mots en temps réel (plus lent, désactivé par défaut: les mots sont vérifiés seulement s'il y a un délimiteur après)`
** type: booléen
+18 -11
View File
@@ -1,19 +1,26 @@
[[command_aspell_aspell]]
[command]*`aspell`* configurazione del plugin aspell::
........................................
/aspell dictlist
enable <lingua>
disable
addword [<lingua>] <parola>
/aspell enable|disable|toggle
listdict
setdict <lang>
deldict
addword [<lang>] <word>
dictlist: mostra i dizionari installati
enable: abilita aspell sul buffer corrente
disable: disabilita aspell sul buffer corrente
addword: aggiunge una parola nel dizionario personale aspell
enable: enable aspell
disable: disable aspell
toggle: toggle aspell
listdict: show installed dictionaries
setdict: set dictionary for current buffer
deldict: delete dictionary used on current buffer
addword: add a word in personal aspell dictionary
La riga di input che comincia con '/' non viene controllata, tranne che per alcuni comandi (consultare /set aspell.check.commands).
Input line beginning with a '/' is not checked, except for some commands (see /set aspell.check.commands).
Per abilitare aspell su tutti i buffer, usare l'opzione "default_dict", ad esempio:
/set aspell.check.default_dict "it"
To enable aspell on all buffers, use option "default_dict", then enable aspell, for example:
/set aspell.check.default_dict "en"
/aspell enable
Default key to toggle aspell is alt-s.
........................................
+5
View File
@@ -13,6 +13,11 @@
** tipo: bool
** valori: on, off (valore predefinito: `off`)
* [[option_aspell.check.enabled]] *aspell.check.enabled*
** descrizione: `enable aspell check for command line`
** tipo: bool
** valori: on, off (valore predefinito: `off`)
* [[option_aspell.check.real_time]] *aspell.check.real_time*
** descrizione: `controllo ortografico in tempo reale (più lento, disabilitato per default: le parole vengono controllate solo se seguite da un delimitatore)`
** tipo: bool
+48 -8
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.9-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2012-06-30 14:13+0200\n"
"POT-Creation-Date: 2012-07-05 15:54+0200\n"
"PO-Revision-Date: 2012-06-03 09:49+0200\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3608,6 +3608,32 @@ msgstr "%s: slovo \"%s\" přidáno do soukromého slovníku"
msgid "%s%s: failed to add word to personal dictionary"
msgstr "%s%s: selhalo přidání slova do vlastního slovníku"
#, fuzzy
msgid "Aspell is enabled"
msgstr "1 pokud jsou filtry povoleny"
#, fuzzy
msgid "Aspell is disabled"
msgstr "Filtrování zpráv zakázáno"
#, fuzzy, c-format
msgid "Default dictionary: %s"
msgstr "Výchozí barvy:"
msgid "(not set)"
msgstr ""
msgid "Specific dictionaries on buffers:"
msgstr ""
#, fuzzy
msgid "Aspell enabled"
msgstr "1 pokud jsou filtry povoleny"
#, fuzzy
msgid "Aspell disabled"
msgstr "Filtrování zpráv zakázáno"
#, c-format
msgid "%s%s: no dictionary on this buffer for adding word"
msgstr "%s%s: není žádný slovník pro přidání slova pro tento buffer"
@@ -3622,21 +3648,31 @@ msgstr ""
msgid "aspell plugin configuration"
msgstr "konfigurace pluginu aspell"
msgid "dictlist || enable <lang> || disable || addword [<lang>] <word>"
#, fuzzy
msgid ""
"enable|disable|toggle || listdict || setdict <lang> || deldict || addword "
"[<lang>] <word>"
msgstr "dictlist || enable <jazyk> || disable || addword [<jazyk>] <slovo>"
#, fuzzy
msgid ""
"dictlist: show installed dictionaries\n"
" enable: enable aspell on current buffer\n"
" disable: disable aspell on current buffer\n"
" addword: add a word in your personal aspell dictionary\n"
" enable: enable aspell\n"
" disable: disable aspell\n"
" toggle: toggle aspell\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal aspell dictionary\n"
"\n"
"Input line beginning with a '/' is not checked, except for some commands "
"(see /set aspell.check.commands).\n"
"\n"
"To enable aspell on all buffers, use option \"default_dict\", for example:\n"
" /set aspell.check.default_dict \"en\""
"To enable aspell on all buffers, use option \"default_dict\", then enable "
"aspell, for example:\n"
" /set aspell.check.default_dict \"en\"\n"
" /aspell enable\n"
"\n"
"Default key to toggle aspell is alt-s."
msgstr ""
"dictlist: zobrazí nainstalované slovníky\n"
" enable: zapnout aspell pro aktuální buffer\n"
@@ -3688,6 +3724,10 @@ msgstr ""
msgid "check words during text search in buffer"
msgstr "kontrolovat slova během hledání textu v bufferu"
#, fuzzy
msgid "enable aspell check for command line"
msgstr "funkce pro příkazovou řádku"
msgid ""
"real-time spell checking of words (slower, disabled by default: words are "
"checked only if there's delimiter after)"
+49 -8
View File
@@ -23,7 +23,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2012-07-03 11:33+0200\n"
"POT-Creation-Date: 2012-07-05 15:54+0200\n"
"PO-Revision-Date: 2012-06-30 14:28+0100\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <weechatter@arcor.de>\n"
@@ -3951,6 +3951,32 @@ msgid "%s%s: failed to add word to personal dictionary"
msgstr ""
"%s%s: Es kann kein Wort zum persönlichen Wörterbuch hinzugefügt werden."
#, fuzzy
msgid "Aspell is enabled"
msgstr "Maus ist aktiviert"
#, fuzzy
msgid "Aspell is disabled"
msgstr "Maus ist deaktiviert"
#, fuzzy, c-format
msgid "Default dictionary: %s"
msgstr "Standardfarben:"
msgid "(not set)"
msgstr ""
msgid "Specific dictionaries on buffers:"
msgstr ""
#, fuzzy
msgid "Aspell enabled"
msgstr "Maus ist aktiviert"
#, fuzzy
msgid "Aspell disabled"
msgstr "Maus ist deaktiviert"
#, c-format
msgid "%s%s: no dictionary on this buffer for adding word"
msgstr ""
@@ -3968,20 +3994,31 @@ msgstr ""
msgid "aspell plugin configuration"
msgstr "Konfiguration für Aspell-Erweiterung"
msgid "dictlist || enable <lang> || disable || addword [<lang>] <word>"
#, fuzzy
msgid ""
"enable|disable|toggle || listdict || setdict <lang> || deldict || addword "
"[<lang>] <word>"
msgstr "dictlist || enable <lang> || disable || addword [<lang>] <word>"
#, fuzzy
msgid ""
"dictlist: show installed dictionaries\n"
" enable: enable aspell on current buffer\n"
" disable: disable aspell on current buffer\n"
" addword: add a word in your personal aspell dictionary\n"
" enable: enable aspell\n"
" disable: disable aspell\n"
" toggle: toggle aspell\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal aspell dictionary\n"
"\n"
"Input line beginning with a '/' is not checked, except for some commands "
"(see /set aspell.check.commands).\n"
"\n"
"To enable aspell on all buffers, use option \"default_dict\", for example:\n"
" /set aspell.check.default_dict \"en\""
"To enable aspell on all buffers, use option \"default_dict\", then enable "
"aspell, for example:\n"
" /set aspell.check.default_dict \"en\"\n"
" /aspell enable\n"
"\n"
"Default key to toggle aspell is alt-s."
msgstr ""
"dictlist: listet installierte Wörterbücher auf\n"
" enable: aktiviert Aspell in aktuellem Buffer [lang = Wörterbuch)\n"
@@ -4044,6 +4081,10 @@ msgstr ""
msgid "check words during text search in buffer"
msgstr "Überprüfe Wörter während im Buffer nach einem Text gesucht wird"
#, fuzzy
msgid "enable aspell check for command line"
msgstr "Funktionen für die Befehlszeile"
msgid ""
"real-time spell checking of words (slower, disabled by default: words are "
"checked only if there's delimiter after)"
+49 -8
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.9-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2012-06-30 14:13+0200\n"
"POT-Creation-Date: 2012-07-05 15:54+0200\n"
"PO-Revision-Date: 2012-06-03 09:49+0200\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3797,6 +3797,32 @@ msgstr "%s: palabra \"%s\" agregada al diccionario personal"
msgid "%s%s: failed to add word to personal dictionary"
msgstr "%s%s: no se pudo agregar una palabra al diccionario personal"
#, fuzzy
msgid "Aspell is enabled"
msgstr "Ratón activado"
#, fuzzy
msgid "Aspell is disabled"
msgstr "Ratón desactivado"
#, fuzzy, c-format
msgid "Default dictionary: %s"
msgstr "Colores predeterminados:"
msgid "(not set)"
msgstr ""
msgid "Specific dictionaries on buffers:"
msgstr ""
#, fuzzy
msgid "Aspell enabled"
msgstr "Ratón activado"
#, fuzzy
msgid "Aspell disabled"
msgstr "Ratón desactivado"
#, c-format
msgid "%s%s: no dictionary on this buffer for adding word"
msgstr "%s%s: no hay diccionario en este buffer para agregar una palabra"
@@ -3812,21 +3838,32 @@ msgstr ""
msgid "aspell plugin configuration"
msgstr "configuración del plugin aspell"
msgid "dictlist || enable <lang> || disable || addword [<lang>] <word>"
#, fuzzy
msgid ""
"enable|disable|toggle || listdict || setdict <lang> || deldict || addword "
"[<lang>] <word>"
msgstr ""
"dictlist || enable <lenguaje> || disable || addword [<lenguaje>] <palabra>"
#, fuzzy
msgid ""
"dictlist: show installed dictionaries\n"
" enable: enable aspell on current buffer\n"
" disable: disable aspell on current buffer\n"
" addword: add a word in your personal aspell dictionary\n"
" enable: enable aspell\n"
" disable: disable aspell\n"
" toggle: toggle aspell\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal aspell dictionary\n"
"\n"
"Input line beginning with a '/' is not checked, except for some commands "
"(see /set aspell.check.commands).\n"
"\n"
"To enable aspell on all buffers, use option \"default_dict\", for example:\n"
" /set aspell.check.default_dict \"en\""
"To enable aspell on all buffers, use option \"default_dict\", then enable "
"aspell, for example:\n"
" /set aspell.check.default_dict \"en\"\n"
" /aspell enable\n"
"\n"
"Default key to toggle aspell is alt-s."
msgstr ""
"dictlist: muestra diccionarios instalados\n"
" enable: habilita aspell en el buffer actual\n"
@@ -3884,6 +3921,10 @@ msgstr ""
msgid "check words during text search in buffer"
msgstr "verificar palabras durante la búsqueda de texto en el buffer"
#, fuzzy
msgid "enable aspell check for command line"
msgstr "funciones para la línea de comandos"
msgid ""
"real-time spell checking of words (slower, disabled by default: words are "
"checked only if there's delimiter after)"
+56 -14
View File
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.9-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2012-06-30 14:13+0200\n"
"PO-Revision-Date: 2012-06-30 13:20+0200\n"
"POT-Creation-Date: 2012-07-05 15:54+0200\n"
"PO-Revision-Date: 2012-07-05 15:55+0200\n"
"Last-Translator: Sebastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: French\n"
@@ -3828,6 +3828,28 @@ msgstr "%s: mot \"%s\" ajouté dans le dictionnaire personnel"
msgid "%s%s: failed to add word to personal dictionary"
msgstr "%s%s: impossible d'ajouter le mot dans le dictionnaire personnel"
msgid "Aspell is enabled"
msgstr "Aspell est activé"
msgid "Aspell is disabled"
msgstr "Aspell est désactivé"
#, c-format
msgid "Default dictionary: %s"
msgstr "Dictionnaire par défaut: %s"
msgid "(not set)"
msgstr "(non défini)"
msgid "Specific dictionaries on buffers:"
msgstr "Dictionnaires spécifiques sur les tampons :"
msgid "Aspell enabled"
msgstr "Aspell activé"
msgid "Aspell disabled"
msgstr "Aspell désactivé"
#, c-format
msgid "%s%s: no dictionary on this buffer for adding word"
msgstr "%s%s: pas de dictionnaire sur ce tampon pour ajouter le mot"
@@ -3843,24 +3865,38 @@ msgstr ""
msgid "aspell plugin configuration"
msgstr "configuration de l'extension aspell"
msgid "dictlist || enable <lang> || disable || addword [<lang>] <word>"
msgstr "dictlist || enable <langue> || disable || addword [<langue>] <mot>"
msgid ""
"enable|disable|toggle || listdict || setdict <lang> || deldict || addword "
"[<lang>] <word>"
msgstr ""
"enable|disable|toggle || listdict || setdict <langue> || deldict || addword "
"[<langue>] <mot>"
msgid ""
"dictlist: show installed dictionaries\n"
" enable: enable aspell on current buffer\n"
" disable: disable aspell on current buffer\n"
" addword: add a word in your personal aspell dictionary\n"
" enable: enable aspell\n"
" disable: disable aspell\n"
" toggle: toggle aspell\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal aspell dictionary\n"
"\n"
"Input line beginning with a '/' is not checked, except for some commands "
"(see /set aspell.check.commands).\n"
"\n"
"To enable aspell on all buffers, use option \"default_dict\", for example:\n"
" /set aspell.check.default_dict \"en\""
"To enable aspell on all buffers, use option \"default_dict\", then enable "
"aspell, for example:\n"
" /set aspell.check.default_dict \"en\"\n"
" /aspell enable\n"
"\n"
"Default key to toggle aspell is alt-s."
msgstr ""
"dictlist: afficher les dictionnaires installés\n"
" enable: activer aspell sur le tampon courant\n"
" disable: désactiver aspell sur le tampon courant\n"
" enable: activer aspell\n"
" disable: désactiver aspell\n"
" toggle: activer/désactiver aspell\n"
"listdict: afficher les dictionnaires installés\n"
" setdict: définir le dictionnaire pour le tampon courant\n"
" deldict: supprimer le dictionnaire utilisé sur le tampon courant\n"
" addword: ajouter un mot dans le dictionnaire personnel aspell\n"
"\n"
"Les lignes d'entrée commençant par '/' ne sont pas vérifiées, sauf pour "
@@ -3868,7 +3904,10 @@ msgstr ""
"\n"
"Pour activer aspell sur tous les tampons, utilisez l'option \"default_dict"
"\", par exemple :\n"
" /set aspell.check.default_dict \"en\""
" /set aspell.check.default_dict \"en\"\n"
" /aspell enable\n"
"\n"
"La touche par défaut pour activer/désactiver aspell est alt-s."
msgid "list of supported langs for aspell"
msgstr "liste des langues supportées pour aspell"
@@ -3916,6 +3955,9 @@ msgstr ""
msgid "check words during text search in buffer"
msgstr "vérifier les mots pendant la recherche de texte dans le tampon"
msgid "enable aspell check for command line"
msgstr "activer la vérification aspell pour la ligne de commande"
msgid ""
"real-time spell checking of words (slower, disabled by default: words are "
"checked only if there's delimiter after)"
+47 -8
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.9-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2012-06-30 14:13+0200\n"
"POT-Creation-Date: 2012-07-05 15:54+0200\n"
"PO-Revision-Date: 2012-06-03 09:49+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3257,6 +3257,32 @@ msgstr ""
msgid "%s%s: failed to add word to personal dictionary"
msgstr ""
#, fuzzy
msgid "Aspell is enabled"
msgstr "a felhasználók le lettek tiltva"
#, fuzzy
msgid "Aspell is disabled"
msgstr "Nincs aliasz definiálva.\n"
#, fuzzy, c-format
msgid "Default dictionary: %s"
msgstr "Alapértelmezett billentyűparancsok visszaállítva\n"
msgid "(not set)"
msgstr ""
msgid "Specific dictionaries on buffers:"
msgstr ""
#, fuzzy
msgid "Aspell enabled"
msgstr "a felhasználók le lettek tiltva"
#, fuzzy
msgid "Aspell disabled"
msgstr "Nincs aliasz definiálva.\n"
#, c-format
msgid "%s%s: no dictionary on this buffer for adding word"
msgstr ""
@@ -3271,20 +3297,29 @@ msgstr ""
msgid "aspell plugin configuration"
msgstr "Beállítások mentése a lemezre\n"
msgid "dictlist || enable <lang> || disable || addword [<lang>] <word>"
msgid ""
"enable|disable|toggle || listdict || setdict <lang> || deldict || addword "
"[<lang>] <word>"
msgstr ""
msgid ""
"dictlist: show installed dictionaries\n"
" enable: enable aspell on current buffer\n"
" disable: disable aspell on current buffer\n"
" addword: add a word in your personal aspell dictionary\n"
" enable: enable aspell\n"
" disable: disable aspell\n"
" toggle: toggle aspell\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal aspell dictionary\n"
"\n"
"Input line beginning with a '/' is not checked, except for some commands "
"(see /set aspell.check.commands).\n"
"\n"
"To enable aspell on all buffers, use option \"default_dict\", for example:\n"
" /set aspell.check.default_dict \"en\""
"To enable aspell on all buffers, use option \"default_dict\", then enable "
"aspell, for example:\n"
" /set aspell.check.default_dict \"en\"\n"
" /aspell enable\n"
"\n"
"Default key to toggle aspell is alt-s."
msgstr ""
msgid "list of supported langs for aspell"
@@ -3323,6 +3358,10 @@ msgstr ""
msgid "check words during text search in buffer"
msgstr ""
#, fuzzy
msgid "enable aspell check for command line"
msgstr "szöveg beillesztése a parancssorba"
msgid ""
"real-time spell checking of words (slower, disabled by default: words are "
"checked only if there's delimiter after)"
+49 -8
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.9-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2012-06-30 14:13+0200\n"
"POT-Creation-Date: 2012-07-05 15:54+0200\n"
"PO-Revision-Date: 2012-06-03 09:49+0200\n"
"Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3788,6 +3788,32 @@ msgstr "%s: la parola \"%s\" è stata aggiunta al dizionario personale"
msgid "%s%s: failed to add word to personal dictionary"
msgstr "%s%s: impossibile aggiungere la parola al dizionario personale"
#, fuzzy
msgid "Aspell is enabled"
msgstr "Mouse abilitato"
#, fuzzy
msgid "Aspell is disabled"
msgstr "Mouse disabilitato"
#, fuzzy, c-format
msgid "Default dictionary: %s"
msgstr "Colori predefiniti:"
msgid "(not set)"
msgstr ""
msgid "Specific dictionaries on buffers:"
msgstr ""
#, fuzzy
msgid "Aspell enabled"
msgstr "Mouse abilitato"
#, fuzzy
msgid "Aspell disabled"
msgstr "Mouse disabilitato"
#, c-format
msgid "%s%s: no dictionary on this buffer for adding word"
msgstr "%s%s: nessun dizionario su questo buffer per aggiungere parole"
@@ -3803,20 +3829,31 @@ msgstr ""
msgid "aspell plugin configuration"
msgstr "configurazione del plugin aspell"
msgid "dictlist || enable <lang> || disable || addword [<lang>] <word>"
#, fuzzy
msgid ""
"enable|disable|toggle || listdict || setdict <lang> || deldict || addword "
"[<lang>] <word>"
msgstr "dictlist || enable <lingua> || disable || addword [<lingua>] <parola>"
#, fuzzy
msgid ""
"dictlist: show installed dictionaries\n"
" enable: enable aspell on current buffer\n"
" disable: disable aspell on current buffer\n"
" addword: add a word in your personal aspell dictionary\n"
" enable: enable aspell\n"
" disable: disable aspell\n"
" toggle: toggle aspell\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal aspell dictionary\n"
"\n"
"Input line beginning with a '/' is not checked, except for some commands "
"(see /set aspell.check.commands).\n"
"\n"
"To enable aspell on all buffers, use option \"default_dict\", for example:\n"
" /set aspell.check.default_dict \"en\""
"To enable aspell on all buffers, use option \"default_dict\", then enable "
"aspell, for example:\n"
" /set aspell.check.default_dict \"en\"\n"
" /aspell enable\n"
"\n"
"Default key to toggle aspell is alt-s."
msgstr ""
"dictlist: mostra i dizionari installati\n"
" enable: abilita aspell sul buffer corrente\n"
@@ -3874,6 +3911,10 @@ msgstr ""
msgid "check words during text search in buffer"
msgstr "controlla le parole durante la ricerca del testo nel buffer"
#, fuzzy
msgid "enable aspell check for command line"
msgstr "funzioni per la riga di comando"
msgid ""
"real-time spell checking of words (slower, disabled by default: words are "
"checked only if there's delimiter after)"
+49 -8
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.9-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2012-06-30 14:13+0200\n"
"POT-Creation-Date: 2012-07-05 15:54+0200\n"
"PO-Revision-Date: 2012-06-03 09:49+0200\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/WeeChat>\n"
@@ -3691,6 +3691,32 @@ msgstr "%s: 単語 \"%s\" を個人辞書に追加"
msgid "%s%s: failed to add word to personal dictionary"
msgstr "%s%s: 単語の個人辞書への登録に失敗"
#, fuzzy
msgid "Aspell is enabled"
msgstr "マウスを有効化しました"
#, fuzzy
msgid "Aspell is disabled"
msgstr "マウスを無効化しました"
#, fuzzy, c-format
msgid "Default dictionary: %s"
msgstr "デフォルト色:"
msgid "(not set)"
msgstr ""
msgid "Specific dictionaries on buffers:"
msgstr ""
#, fuzzy
msgid "Aspell enabled"
msgstr "マウスを有効化しました"
#, fuzzy
msgid "Aspell disabled"
msgstr "マウスを無効化しました"
#, c-format
msgid "%s%s: no dictionary on this buffer for adding word"
msgstr "%s%s: このバッファ上には単語を追加する辞書がありません"
@@ -3705,20 +3731,31 @@ msgstr ""
msgid "aspell plugin configuration"
msgstr "aspell プラグイン設定"
msgid "dictlist || enable <lang> || disable || addword [<lang>] <word>"
#, fuzzy
msgid ""
"enable|disable|toggle || listdict || setdict <lang> || deldict || addword "
"[<lang>] <word>"
msgstr "dictlist || enable <lang> || disable || addword [<lang>] <word>"
#, fuzzy
msgid ""
"dictlist: show installed dictionaries\n"
" enable: enable aspell on current buffer\n"
" disable: disable aspell on current buffer\n"
" addword: add a word in your personal aspell dictionary\n"
" enable: enable aspell\n"
" disable: disable aspell\n"
" toggle: toggle aspell\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal aspell dictionary\n"
"\n"
"Input line beginning with a '/' is not checked, except for some commands "
"(see /set aspell.check.commands).\n"
"\n"
"To enable aspell on all buffers, use option \"default_dict\", for example:\n"
" /set aspell.check.default_dict \"en\""
"To enable aspell on all buffers, use option \"default_dict\", then enable "
"aspell, for example:\n"
" /set aspell.check.default_dict \"en\"\n"
" /aspell enable\n"
"\n"
"Default key to toggle aspell is alt-s."
msgstr ""
"dictlist: インストール済み辞書を表示\n"
" enable: 現在のバッファで aspell を有効化\n"
@@ -3775,6 +3812,10 @@ msgstr ""
msgid "check words during text search in buffer"
msgstr "バッファ内のテキスト検索中に単語チェックを行う"
#, fuzzy
msgid "enable aspell check for command line"
msgstr "コマンドライン関数"
msgid ""
"real-time spell checking of words (slower, disabled by default: words are "
"checked only if there's delimiter after)"
+49 -8
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.9-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2012-06-30 14:13+0200\n"
"POT-Creation-Date: 2012-07-05 15:54+0200\n"
"PO-Revision-Date: 2012-06-03 09:49+0200\n"
"Last-Translator: Krzysztof Korościk <soltys@szluug.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3779,6 +3779,32 @@ msgstr "%s: słowo \"%s\" dodane do osobistego słownika"
msgid "%s%s: failed to add word to personal dictionary"
msgstr "%s%s: nie udało się dodać słowa do osobistego słownika"
#, fuzzy
msgid "Aspell is enabled"
msgstr "Obsługa myszy włączona"
#, fuzzy
msgid "Aspell is disabled"
msgstr "Obsługa myszy wyłączona"
#, fuzzy, c-format
msgid "Default dictionary: %s"
msgstr "Domyślne kolory:"
msgid "(not set)"
msgstr ""
msgid "Specific dictionaries on buffers:"
msgstr ""
#, fuzzy
msgid "Aspell enabled"
msgstr "Obsługa myszy włączona"
#, fuzzy
msgid "Aspell disabled"
msgstr "Obsługa myszy wyłączona"
#, c-format
msgid "%s%s: no dictionary on this buffer for adding word"
msgstr "%s%s: brak słownika w tym buforze do dodania słowa"
@@ -3793,20 +3819,31 @@ msgstr ""
msgid "aspell plugin configuration"
msgstr "konfiguracja wtyczki aspell"
msgid "dictlist || enable <lang> || disable || addword [<lang>] <word>"
#, fuzzy
msgid ""
"enable|disable|toggle || listdict || setdict <lang> || deldict || addword "
"[<lang>] <word>"
msgstr "dictlist || enable <język> || disable || addword [<język>] <słowo>"
#, fuzzy
msgid ""
"dictlist: show installed dictionaries\n"
" enable: enable aspell on current buffer\n"
" disable: disable aspell on current buffer\n"
" addword: add a word in your personal aspell dictionary\n"
" enable: enable aspell\n"
" disable: disable aspell\n"
" toggle: toggle aspell\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal aspell dictionary\n"
"\n"
"Input line beginning with a '/' is not checked, except for some commands "
"(see /set aspell.check.commands).\n"
"\n"
"To enable aspell on all buffers, use option \"default_dict\", for example:\n"
" /set aspell.check.default_dict \"en\""
"To enable aspell on all buffers, use option \"default_dict\", then enable "
"aspell, for example:\n"
" /set aspell.check.default_dict \"en\"\n"
" /aspell enable\n"
"\n"
"Default key to toggle aspell is alt-s."
msgstr ""
"dictlist: wyświetla zainstalowane słowniki\n"
" enable: włącza obsługę aspell dla obecnego bufora\n"
@@ -3863,6 +3900,10 @@ msgstr ""
msgid "check words during text search in buffer"
msgstr "sprawdzaj słowa podczas wyszukiwania tekstu w buforze"
#, fuzzy
msgid "enable aspell check for command line"
msgstr "funkcje linii komend"
msgid ""
"real-time spell checking of words (slower, disabled by default: words are "
"checked only if there's delimiter after)"
+48 -8
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.9-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2012-06-30 14:13+0200\n"
"POT-Creation-Date: 2012-07-05 15:54+0200\n"
"PO-Revision-Date: 2012-06-03 09:49+0200\n"
"Last-Translator: Sergio Durigan Junior <sergiosdj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3666,6 +3666,32 @@ msgstr "%s: palavra \"%s\" adicionada ao dicionário pessoal"
msgid "%s%s: failed to add word to personal dictionary"
msgstr "%s%s: falha ao adicionar palavra no dicionário pessoal"
#, fuzzy
msgid "Aspell is enabled"
msgstr "Mouse está habilitado"
#, fuzzy
msgid "Aspell is disabled"
msgstr "Mouse está desabilitado"
#, fuzzy, c-format
msgid "Default dictionary: %s"
msgstr "Cores padrões:"
msgid "(not set)"
msgstr ""
msgid "Specific dictionaries on buffers:"
msgstr ""
#, fuzzy
msgid "Aspell enabled"
msgstr "Mouse habilitado"
#, fuzzy
msgid "Aspell disabled"
msgstr "Mouse desabilitado"
#, c-format
msgid "%s%s: no dictionary on this buffer for adding word"
msgstr "%s%s: nenhum dicionário para adicionar palavra neste buffer"
@@ -3681,20 +3707,30 @@ msgstr ""
msgid "aspell plugin configuration"
msgstr "configuração do plugin aspell"
msgid "dictlist || enable <lang> || disable || addword [<lang>] <word>"
#, fuzzy
msgid ""
"enable|disable|toggle || listdict || setdict <lang> || deldict || addword "
"[<lang>] <word>"
msgstr "dictlist || enable <idioma> || disable || addword [<idioma>] <palavra>"
msgid ""
"dictlist: show installed dictionaries\n"
" enable: enable aspell on current buffer\n"
" disable: disable aspell on current buffer\n"
" addword: add a word in your personal aspell dictionary\n"
" enable: enable aspell\n"
" disable: disable aspell\n"
" toggle: toggle aspell\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal aspell dictionary\n"
"\n"
"Input line beginning with a '/' is not checked, except for some commands "
"(see /set aspell.check.commands).\n"
"\n"
"To enable aspell on all buffers, use option \"default_dict\", for example:\n"
" /set aspell.check.default_dict \"en\""
"To enable aspell on all buffers, use option \"default_dict\", then enable "
"aspell, for example:\n"
" /set aspell.check.default_dict \"en\"\n"
" /aspell enable\n"
"\n"
"Default key to toggle aspell is alt-s."
msgstr ""
msgid "list of supported langs for aspell"
@@ -3742,6 +3778,10 @@ msgstr ""
msgid "check words during text search in buffer"
msgstr "verificar palavras durante busca de texto no buffer"
#, fuzzy
msgid "enable aspell check for command line"
msgstr "funções para linha de comando"
msgid ""
"real-time spell checking of words (slower, disabled by default: words are "
"checked only if there's delimiter after)"
+47 -8
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.9-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2012-06-30 14:13+0200\n"
"POT-Creation-Date: 2012-07-05 15:54+0200\n"
"PO-Revision-Date: 2012-06-03 09:49+0200\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3287,6 +3287,32 @@ msgstr ""
msgid "%s%s: failed to add word to personal dictionary"
msgstr ""
#, fuzzy
msgid "Aspell is enabled"
msgstr "команда users отключена"
#, fuzzy
msgid "Aspell is disabled"
msgstr "Сокращения не заданы.\n"
#, fuzzy, c-format
msgid "Default dictionary: %s"
msgstr "Комбинации клавиш по умолчанию восстановлены\n"
msgid "(not set)"
msgstr ""
msgid "Specific dictionaries on buffers:"
msgstr ""
#, fuzzy
msgid "Aspell enabled"
msgstr "команда users отключена"
#, fuzzy
msgid "Aspell disabled"
msgstr "Сокращения не заданы.\n"
#, c-format
msgid "%s%s: no dictionary on this buffer for adding word"
msgstr ""
@@ -3301,20 +3327,29 @@ msgstr ""
msgid "aspell plugin configuration"
msgstr "Сохраняю конфигурацию\n"
msgid "dictlist || enable <lang> || disable || addword [<lang>] <word>"
msgid ""
"enable|disable|toggle || listdict || setdict <lang> || deldict || addword "
"[<lang>] <word>"
msgstr ""
msgid ""
"dictlist: show installed dictionaries\n"
" enable: enable aspell on current buffer\n"
" disable: disable aspell on current buffer\n"
" addword: add a word in your personal aspell dictionary\n"
" enable: enable aspell\n"
" disable: disable aspell\n"
" toggle: toggle aspell\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal aspell dictionary\n"
"\n"
"Input line beginning with a '/' is not checked, except for some commands "
"(see /set aspell.check.commands).\n"
"\n"
"To enable aspell on all buffers, use option \"default_dict\", for example:\n"
" /set aspell.check.default_dict \"en\""
"To enable aspell on all buffers, use option \"default_dict\", then enable "
"aspell, for example:\n"
" /set aspell.check.default_dict \"en\"\n"
" /aspell enable\n"
"\n"
"Default key to toggle aspell is alt-s."
msgstr ""
msgid "list of supported langs for aspell"
@@ -3353,6 +3388,10 @@ msgstr ""
msgid "check words during text search in buffer"
msgstr ""
#, fuzzy
msgid "enable aspell check for command line"
msgstr "вставить строку в поле ввода"
msgid ""
"real-time spell checking of words (slower, disabled by default: words are "
"checked only if there's delimiter after)"
+42 -8
View File
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2012-06-30 14:13+0200\n"
"POT-Creation-Date: 2012-07-05 15:54+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -2863,6 +2863,28 @@ msgstr ""
msgid "%s%s: failed to add word to personal dictionary"
msgstr ""
msgid "Aspell is enabled"
msgstr ""
msgid "Aspell is disabled"
msgstr ""
#, c-format
msgid "Default dictionary: %s"
msgstr ""
msgid "(not set)"
msgstr ""
msgid "Specific dictionaries on buffers:"
msgstr ""
msgid "Aspell enabled"
msgstr ""
msgid "Aspell disabled"
msgstr ""
#, c-format
msgid "%s%s: no dictionary on this buffer for adding word"
msgstr ""
@@ -2876,20 +2898,29 @@ msgstr ""
msgid "aspell plugin configuration"
msgstr ""
msgid "dictlist || enable <lang> || disable || addword [<lang>] <word>"
msgid ""
"enable|disable|toggle || listdict || setdict <lang> || deldict || addword "
"[<lang>] <word>"
msgstr ""
msgid ""
"dictlist: show installed dictionaries\n"
" enable: enable aspell on current buffer\n"
" disable: disable aspell on current buffer\n"
" addword: add a word in your personal aspell dictionary\n"
" enable: enable aspell\n"
" disable: disable aspell\n"
" toggle: toggle aspell\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal aspell dictionary\n"
"\n"
"Input line beginning with a '/' is not checked, except for some commands "
"(see /set aspell.check.commands).\n"
"\n"
"To enable aspell on all buffers, use option \"default_dict\", for example:\n"
" /set aspell.check.default_dict \"en\""
"To enable aspell on all buffers, use option \"default_dict\", then enable "
"aspell, for example:\n"
" /set aspell.check.default_dict \"en\"\n"
" /aspell enable\n"
"\n"
"Default key to toggle aspell is alt-s."
msgstr ""
msgid "list of supported langs for aspell"
@@ -2928,6 +2959,9 @@ msgstr ""
msgid "check words during text search in buffer"
msgstr ""
msgid "enable aspell check for command line"
msgstr ""
msgid ""
"real-time spell checking of words (slower, disabled by default: words are "
"checked only if there's delimiter after)"
@@ -44,6 +44,7 @@ struct t_config_option *weechat_aspell_config_look_color;
struct t_config_option *weechat_aspell_config_check_commands;
struct t_config_option *weechat_aspell_config_check_default_dict;
struct t_config_option *weechat_aspell_config_check_during_search;
struct t_config_option *weechat_aspell_config_check_enabled;
struct t_config_option *weechat_aspell_config_check_real_time;
struct t_config_option *weechat_aspell_config_check_word_min_length;
@@ -115,6 +116,22 @@ weechat_aspell_config_change_default_dict (void *data,
weechat_aspell_create_spellers (weechat_current_buffer ());
}
/*
* weechat_aspell_config_change_enabled: called when aspell state is changed
*/
void
weechat_aspell_config_change_enabled (void *data, struct t_config_option *option)
{
/* make C compiler happy */
(void) data;
aspell_enabled = weechat_config_boolean (option);
/* refresh input */
weechat_bar_item_update ("input_text");
}
/*
* weechat_aspell_config_dict_change: called when a dictionary is changed
*/
@@ -423,6 +440,12 @@ weechat_aspell_config_init ()
"during_search", "boolean",
N_("check words during text search in buffer"),
NULL, 0, 0, "off", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL);
weechat_aspell_config_check_enabled = weechat_config_new_option (
weechat_aspell_config_file, ptr_section,
"enabled", "boolean",
N_("enable aspell check for command line"),
NULL, 0, 0, "off", NULL, 0,
NULL, NULL, &weechat_aspell_config_change_enabled, NULL, NULL, NULL);
weechat_aspell_config_check_real_time = weechat_config_new_option (
weechat_aspell_config_file, ptr_section,
"real_time", "boolean",
@@ -29,6 +29,7 @@ extern struct t_config_option *weechat_aspell_config_look_color;
extern struct t_config_option *weechat_aspell_config_check_commands;
extern struct t_config_option *weechat_aspell_config_check_default_dict;
extern struct t_config_option *weechat_aspell_config_check_during_search;
extern struct t_config_option *weechat_aspell_config_check_enabled;
extern struct t_config_option *weechat_aspell_config_check_real_time;
extern struct t_config_option *weechat_aspell_config_check_word_min_length;
+141 -57
View File
@@ -43,6 +43,7 @@ WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE);
struct t_weechat_plugin *weechat_aspell_plugin = NULL;
int aspell_enabled = 0;
struct t_gui_buffer *aspell_buffer_spellers = NULL;
char *aspell_last_modifier_string = NULL; /* last str. received by modifier */
@@ -662,6 +663,9 @@ weechat_aspell_modifier_cb (void *data, const char *modifier,
(void) data;
(void) modifier;
if (!aspell_enabled)
return NULL;
if (!string || !string[0])
return NULL;
@@ -869,62 +873,131 @@ weechat_aspell_command_cb (void *data, struct t_gui_buffer *buffer,
int argc, char **argv, char **argv_eol)
{
char *dicts;
const char *default_dict;
struct t_infolist *infolist;
int number;
/* make C compiler happy */
(void) data;
if (argc > 1)
if (argc == 1)
{
if (weechat_strcasecmp (argv[1], "dictlist") == 0)
/* display aspell status */
weechat_printf (NULL, "");
weechat_printf (NULL, "%s",
(aspell_enabled) ?
_("Aspell is enabled") : _("Aspell is disabled"));
default_dict = weechat_config_string (weechat_aspell_config_check_default_dict);
weechat_printf (NULL,
_("Default dictionary: %s"),
(default_dict && default_dict[0]) ?
default_dict : _("(not set)"));
number = 0;
infolist = weechat_infolist_get ("option", NULL, "aspell.dict.*");
if (infolist)
{
weechat_aspell_speller_list_dicts ();
return WEECHAT_RC_OK;
while (weechat_infolist_next (infolist))
{
if (number == 0)
weechat_printf (NULL, _("Specific dictionaries on buffers:"));
number++;
weechat_printf (NULL, " %s: %s",
weechat_infolist_string (infolist, "option_name"),
weechat_infolist_string (infolist, "value"));
}
weechat_infolist_free (infolist);
}
if (weechat_strcasecmp (argv[1], "addword") == 0)
return WEECHAT_RC_OK;
}
/* enable aspell */
if (weechat_strcasecmp (argv[1], "enable") == 0)
{
weechat_config_option_set (weechat_aspell_config_check_enabled, "1", 1);
weechat_printf (NULL, _("Aspell enabled"));
return WEECHAT_RC_OK;
}
/* disable aspell */
if (weechat_strcasecmp (argv[1], "disable") == 0)
{
weechat_config_option_set (weechat_aspell_config_check_enabled, "0", 1);
weechat_printf (NULL, _("Aspell disabled"));
return WEECHAT_RC_OK;
}
/* toggle aspell */
if (weechat_strcasecmp (argv[1], "toggle") == 0)
{
if (aspell_enabled)
{
if (argc > 3)
weechat_aspell_add_word (argv[2], argv_eol[3]);
weechat_config_option_set (weechat_aspell_config_check_enabled, "0", 1);
weechat_printf (NULL, _("Aspell disabled"));
}
else
{
weechat_config_option_set (weechat_aspell_config_check_enabled, "1", 1);
weechat_printf (NULL, _("Aspell enabled"));
}
return WEECHAT_RC_OK;
}
/* list of dictionaries */
if (weechat_strcasecmp (argv[1], "listdict") == 0)
{
weechat_aspell_speller_list_dicts ();
return WEECHAT_RC_OK;
}
/* set dictionary for current buffer */
if (weechat_strcasecmp (argv[1], "setdict") == 0)
{
if (argc > 2)
{
dicts = weechat_string_replace (argv_eol[2], " ", "");
weechat_aspell_set_dict (buffer,
(dicts) ? dicts : argv[2]);
if (dicts)
free (dicts);
}
return WEECHAT_RC_OK;
}
/* delete dictionary used on current buffer */
if (weechat_strcasecmp (argv[1], "deldict") == 0)
{
weechat_aspell_set_dict (buffer, NULL);
return WEECHAT_RC_OK;
}
/* add word to personal dictionary */
if (weechat_strcasecmp (argv[1], "addword") == 0)
{
if (argc > 3)
weechat_aspell_add_word (argv[2], argv_eol[3]);
else
{
if (!weechat_aspell_spellers)
{
weechat_printf (NULL,
_("%s%s: no dictionary on this buffer for "
"adding word"),
weechat_prefix ("error"),
ASPELL_PLUGIN_NAME);
}
else if (weechat_aspell_spellers->next_speller)
{
weechat_printf (NULL,
_("%s%s: many dictionaries are defined for "
"this buffer, please specify dictionary"),
weechat_prefix ("error"),
ASPELL_PLUGIN_NAME);
}
else
{
if (!weechat_aspell_spellers)
{
weechat_printf (NULL,
_("%s%s: no dictionary on this buffer for "
"adding word"),
weechat_prefix ("error"),
ASPELL_PLUGIN_NAME);
}
else if (weechat_aspell_spellers->next_speller)
{
weechat_printf (NULL,
_("%s%s: many dictionaries are defined for "
"this buffer, please specify dictionary"),
weechat_prefix ("error"),
ASPELL_PLUGIN_NAME);
}
else
weechat_aspell_add_word (weechat_aspell_spellers->lang,
argv_eol[2]);
}
return WEECHAT_RC_OK;
}
if (weechat_strcasecmp (argv[1], "enable") == 0)
{
if (argc > 2)
{
dicts = weechat_string_replace (argv_eol[2], " ", "");
weechat_aspell_set_dict (buffer,
(dicts) ? dicts : argv[2]);
if (dicts)
free (dicts);
}
return WEECHAT_RC_OK;
}
if (weechat_strcasecmp (argv[1], "disable") == 0)
{
weechat_aspell_set_dict (buffer, NULL);
return WEECHAT_RC_OK;
weechat_aspell_add_word (weechat_aspell_spellers->lang,
argv_eol[2]);
}
return WEECHAT_RC_OK;
}
return WEECHAT_RC_ERROR;
@@ -978,25 +1051,36 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
/* command /aspell */
weechat_hook_command ("aspell",
N_("aspell plugin configuration"),
N_("dictlist"
" || enable <lang>"
" || disable"
N_("enable|disable|toggle"
" || listdict"
" || setdict <lang>"
" || deldict"
" || addword [<lang>] <word>"),
N_("dictlist: show installed dictionaries\n"
" enable: enable aspell on current buffer\n"
" disable: disable aspell on current buffer\n"
" addword: add a word in your personal aspell "
N_(" enable: enable aspell\n"
" disable: disable aspell\n"
" toggle: toggle aspell\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer\n"
" deldict: delete dictionary used on current "
"buffer\n"
" addword: add a word in personal aspell "
"dictionary\n"
"\n"
"Input line beginning with a '/' is not checked, "
"except for some commands (see /set "
"aspell.check.commands).\n\n"
"To enable aspell on all buffers, use option "
"\"default_dict\", for example:\n"
" /set aspell.check.default_dict \"en\""),
"dictlist"
" || enable %(aspell_langs)"
"\"default_dict\", then enable aspell, for "
"example:\n"
" /set aspell.check.default_dict \"en\"\n"
" /aspell enable\n\n"
"Default key to toggle aspell is alt-s."),
"enable"
" || disable"
" || toggle"
" || listdict"
" || setdict %(aspell_langs)"
" || deldict"
" || addword",
&weechat_aspell_command_cb, NULL);
weechat_hook_completion ("aspell_langs",
+1
View File
@@ -33,6 +33,7 @@ struct t_aspell_code
};
extern struct t_weechat_plugin *weechat_aspell_plugin;
extern int aspell_enabled;
extern void weechat_aspell_create_spellers (struct t_gui_buffer *buffer);