Merge pull request #293 from nyuszika7h/testing

Testing
This commit is contained in:
Valentin Lorentz 2011-12-23 01:45:41 -08:00
commit c510bae4b4
5 changed files with 140 additions and 20 deletions

View File

@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Limnoria Alias\n"
"POT-Creation-Date: 2011-02-26 09:49+CET\n"
"PO-Revision-Date: 2011-10-25 14:42+0200\n"
"PO-Revision-Date: 2011-12-23 10:30+0100\n"
"Last-Translator: nyuszika7h <litemininyuszika@gmail.com>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@ -37,9 +37,10 @@ msgid ""
"<an alias,%s %n>\n"
"\n"
"Alias for %q."
msgstr ""
"<egy álnév,%s %n\n"
"\n"
msgstr "Álnév %q-ra."
"Álnév %q-ra."
#: plugin.py:166
msgid "argument"
@ -75,7 +76,7 @@ msgstr ""
#: plugin.py:254
msgid "That name isn't valid. Try %q instead."
msgstr "Ez a név érvénytelen. Próbáld meg %q-t inkább."
msgstr "Az a név nem érvényes. Próbáld meg %q-t inkább."
#: plugin.py:292
#, docstring

View File

@ -81,6 +81,9 @@ conf.registerGlobalValue(Unix.spell, 'command',
registry.String(utils.findBinaryInPath('aspell') or
utils.findBinaryInPath('ispell') or '', _("""Determines
what command will be called for the spell command.""")))
conf.registerGlobalValue(Unix.spell, 'language',
registry.String('en', _("""Determines what aspell dictionary will be used
for spell checking.""")))
conf.registerGroup(Unix, 'wtf')
conf.registerGlobalValue(Unix.wtf, 'command',

View File

@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2011-08-10 11:27+CEST\n"
"POT-Creation-Date: 2011-12-22 22:28+CET\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"
@ -68,7 +68,13 @@ msgid ""
" what command will be called for the spell command."
msgstr ""
#: config.py:87
#: config.py:85
msgid ""
"Determines what aspell dictionary will be used\n"
" for spell checking."
msgstr ""
#: config.py:90
msgid ""
"Determines what\n"
" command will be called for the wtf command."
@ -140,27 +146,31 @@ msgstr ""
msgid "The spell checking command is not configured. If one is installed, reconfigure supybot.plugins.Unix.spell.command appropriately."
msgstr ""
#: plugin.py:147
#: plugin.py:148
msgid "<word> must begin with an alphabet character."
msgstr ""
#: plugin.py:169
#: plugin.py:170
msgid "No results found."
msgstr ""
#: plugin.py:180
#: plugin.py:181
msgid "%q may be spelled correctly."
msgstr ""
#: plugin.py:182
#: plugin.py:183
msgid "I could not find an alternate spelling for %q"
msgstr ""
#: plugin.py:186
#: plugin.py:187
msgid "Possible spellings for %q: %L."
msgstr ""
#: plugin.py:195
#: plugin.py:190
msgid "Something unexpected was seen in the [ai]spell output."
msgstr ""
#: plugin.py:196
#, docstring
msgid ""
"takes no arguments\n"
@ -169,15 +179,15 @@ msgid ""
" "
msgstr ""
#: plugin.py:215
#: plugin.py:217
msgid "It seems the configured fortune command was not available."
msgstr ""
#: plugin.py:224
#: plugin.py:226
msgid "The fortune command is not configured. If fortune is installed on this system, reconfigure the supybot.plugins.Unix.fortune.command configuration variable appropriately."
msgstr ""
#: plugin.py:231
#: plugin.py:233
#, docstring
msgid ""
"[is] <something>\n"
@ -188,15 +198,15 @@ msgid ""
" "
msgstr ""
#: plugin.py:246
#: plugin.py:248
msgid "It seems the configured wtf command was not available."
msgstr ""
#: plugin.py:255
#: plugin.py:257
msgid "The wtf command is not configured. If it is installed on this system, reconfigure the supybot.plugins.Unix.wtf.command configuration variable appropriately."
msgstr ""
#: plugin.py:263
#: plugin.py:265
#, docstring
msgid ""
"[--c <count>] [--i <interval>] [--t <ttl>] [--W <timeout>] <host or ip>\n"
@ -207,7 +217,7 @@ msgid ""
" "
msgstr ""
#: plugin.py:315
#: plugin.py:317
#, docstring
msgid ""
"<command to call with any arguments> \n"

View File

@ -143,11 +143,12 @@ class Unix(callbacks.Plugin):
'is installed, reconfigure '
'supybot.plugins.Unix.spell.command appropriately.'),
Raise=True)
spellLang = self.registryValue('spell.language') or 'en'
if word and not word[0].isalpha():
irc.error(_('<word> must begin with an alphabet character.'))
return
try:
inst = subprocess.Popen([spellCmd, '-a'], close_fds=True,
inst = subprocess.Popen([spellCmd, '-l', spellLang, '-a'], close_fds=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
stdin=subprocess.PIPE)
@ -186,7 +187,7 @@ class Unix(callbacks.Plugin):
resp = format(_('Possible spellings for %q: %L.'),
word, matches.split(', '))
else:
resp = 'Something unexpected was seen in the [ai]spell output.'
resp = _('Something unexpected was seen in the [ai]spell output.')
irc.reply(resp)
spell = thread(wrap(spell, ['something']))

105
plugins/User/locale/hu.po Normal file
View File

@ -0,0 +1,105 @@
# Limnoria User plugin
# Copyright (C) 2011 Limnoria
# nyuszika7h <litemininyuszika@gmail.com>, 2011.
#
msgid ""
msgstr ""
"Project-Id-Version: Limnoria User\n"
"POT-Creation-Date: 2011-12-21 18:24+EET\n"
"PO-Revision-Date: 2011-12-22 15:17+0100\n"
"Last-Translator: nyuszika7h <litemininyuszika@gmail.com>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: pygettext.py 1.5\n"
#: plugin.py:80
msgid "There are no matching registered users."
msgstr "Nincsenek egyező regisztrált felhasználók."
#: plugin.py:82
msgid "There are no registered users."
msgstr "Nincsenek regisztrált felhasználók."
#: plugin.py:101
msgid "That name is already assigned to someone."
msgstr "Az a név már hozzá van rendelve valakihez."
#: plugin.py:106
msgid "username"
msgstr "felhasználónév"
#: plugin.py:107
msgid "Hostmasks are not valid usernames."
msgstr "A hosztmaszkok nem érvényes felhasználónevek."
#: plugin.py:114
msgid "Your hostmask is already registered to %s"
msgstr "A hosztmaszkod már regisztrálva van %s-hoz."
#: plugin.py:145
msgid "This command has been disabled. You'll have to ask the owner of this bot to unregister your user."
msgstr "Ez a parancs le lett tiltva. Meg kell kérned a bot tulajdonosát, hogy törölje a regisztrációdat."
#: plugin.py:167
msgid "%q is already registered."
msgstr "%q már regisztrálva van."
#: plugin.py:224
msgid "Secure flag set to %s"
msgstr "A secure jelző be lett állítva %s-ra"
#: plugin.py:241
msgid "I haven't seen %s."
msgstr "Nem láttam %s-t."
#: plugin.py:246
msgid "I don't know who that is."
msgstr "Nem tudom, ki az."
#: plugin.py:276
msgid "%s has no registered hostmasks."
msgstr "%s-nak nincsenek regisztrált hosztmaszkjai."
#: plugin.py:283
msgid "You may only retrieve your own hostmasks."
msgstr "Csak a saját hosztmaszkjaidat szerezheted meg."
#: plugin.py:313
msgid "hostmask"
msgstr "hosztmaszk"
#: plugin.py:314
msgid "Make sure your hostmask includes a nick, then an exclamation point (!), then a user, then an at symbol (@), then a host. Feel free to use wildcards (* and ?, which work just like they do on the command line) in any of these parts."
msgstr "Győződj meg róla, hogy a hosztmaszkod tartalmaz egy nevet, aztán egy felkiáltójelet (!), aztán egy felhasználót, aztán egy kukac jelet (@), aztán egy hosztot. Nyugodtan használj helyettesítő karaktereket (* és ?, amelyek úgy működnek, mint a parancssorban) ezeknek a részeknek bármelyikében."
#: plugin.py:324 plugin.py:347
msgid "That hostmask is already registered."
msgstr "Ez a hosztmaszk már regisztrálva van."
#: plugin.py:374
msgid "All hostmasks removed."
msgstr "Minden hosztmaszk eltávolítva."
#: plugin.py:378
msgid "There was no such hostmask."
msgstr "Nem volt ilyen hosztmaszk."
#: plugin.py:419
msgid "Your secure flag is true and your hostmask doesn't match any of your known hostmasks."
msgstr "A secure jelződ igaz és a hosztmaszkod nem egyezik egy ismert hosztmaszkoddal sem."
#: plugin.py:438
msgid "If you remain recognized after giving this command, you're being recognized by hostmask, rather than by password. You must remove whatever hostmask is causing you to be recognized in order not to be recognized."
msgstr "Ha felismerve maradsz e parancs kiadása után, hosztmaszk alapján vagy felismerve, jelszó helyett. El kell távolítanod akármilyen hosztmaszkot, amely a fekusmerésedet okozza, hogy ne legyél felismerve."
#: plugin.py:455
msgid "I don't recognize you."
msgstr "Nem ismerlek fel."
#: plugin.py:478
msgid "I have %s registered users with %s registered hostmasks; %n and %n."
msgstr "%s regisztrált felhasználóm van %s regisztrált hosztmaszkkal; %n és %n."