From 77597d2cc93b1d966972c955d893e494abad50cf Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Wed, 21 Dec 2011 20:40:10 +0100 Subject: [PATCH 1/5] User: Add l10n-hu --- plugins/User/locale/hu.po | 105 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 plugins/User/locale/hu.po diff --git a/plugins/User/locale/hu.po b/plugins/User/locale/hu.po new file mode 100644 index 000000000..ee4ccecb9 --- /dev/null +++ b/plugins/User/locale/hu.po @@ -0,0 +1,105 @@ +# Limnoria User plugin +# Copyright (C) YEAR ORGANIZATION +# nyuszika7h , 2011. +# +msgid "" +msgstr "" +"Project-Id-Version: Limnoria User\n" +"POT-Creation-Date: 2011-12-21 18:24+EET\n" +"PO-Revision-Date: 2011-12-21 20:38+0100\n" +"Last-Translator: nyuszika7h \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." + From 3ec2b166a6a0f20ed2d3dd5dc4b103b54bd3a5ac Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Thu, 22 Dec 2011 15:18:16 +0100 Subject: [PATCH 2/5] User: Fix copyright in l10n-hu --- plugins/User/locale/hu.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/User/locale/hu.po b/plugins/User/locale/hu.po index ee4ccecb9..46a44a7e3 100644 --- a/plugins/User/locale/hu.po +++ b/plugins/User/locale/hu.po @@ -1,12 +1,12 @@ # Limnoria User plugin -# Copyright (C) YEAR ORGANIZATION +# Copyright (C) 2011 Limnoria # nyuszika7h , 2011. # msgid "" msgstr "" "Project-Id-Version: Limnoria User\n" "POT-Creation-Date: 2011-12-21 18:24+EET\n" -"PO-Revision-Date: 2011-12-21 20:38+0100\n" +"PO-Revision-Date: 2011-12-22 15:17+0100\n" "Last-Translator: nyuszika7h \n" "Language-Team: \n" "MIME-Version: 1.0\n" From 1c01dc2a3c1e9bbd00adf0f393615eeda529cba0 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Thu, 22 Dec 2011 22:21:20 +0100 Subject: [PATCH 3/5] Unix: Add configuration variable spell.language --- plugins/Unix/config.py | 3 +++ plugins/Unix/plugin.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/Unix/config.py b/plugins/Unix/config.py index 0da4ec10b..2b618327c 100644 --- a/plugins/Unix/config.py +++ b/plugins/Unix/config.py @@ -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', diff --git a/plugins/Unix/plugin.py b/plugins/Unix/plugin.py index 0f5a8c07c..9a18c4050 100644 --- a/plugins/Unix/plugin.py +++ b/plugins/Unix/plugin.py @@ -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(_(' 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) From 277080a247b02cf6661a222a5a9611f6ecef001f Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Thu, 22 Dec 2011 22:28:46 +0100 Subject: [PATCH 4/5] Unix: Made plugin.py:190 localizable and regenerated messages.pot --- plugins/Unix/messages.pot | 40 ++++++++++++++++++++++++--------------- plugins/Unix/plugin.py | 2 +- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/plugins/Unix/messages.pot b/plugins/Unix/messages.pot index ca4264c92..87c8e89b6 100644 --- a/plugins/Unix/messages.pot +++ b/plugins/Unix/messages.pot @@ -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 \n" "Language-Team: LANGUAGE \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 " 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] \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 ] [--i ] [--t ] [--W ] \n" @@ -207,7 +217,7 @@ msgid "" " " msgstr "" -#: plugin.py:315 +#: plugin.py:317 #, docstring msgid "" " \n" diff --git a/plugins/Unix/plugin.py b/plugins/Unix/plugin.py index 9a18c4050..d8e953b9f 100644 --- a/plugins/Unix/plugin.py +++ b/plugins/Unix/plugin.py @@ -187,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'])) From dd8685e7d03c3d1b94ae9016c7fb4aa4148aeb96 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Fri, 23 Dec 2011 10:37:40 +0100 Subject: [PATCH 5/5] Alias: Fix l10n-hu --- plugins/Alias/locale/hu.po | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/Alias/locale/hu.po b/plugins/Alias/locale/hu.po index 8b83459c9..46737ed41 100644 --- a/plugins/Alias/locale/hu.po +++ b/plugins/Alias/locale/hu.po @@ -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 \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -37,9 +37,10 @@ msgid "" "\n" "\n" "Alias for %q." +msgstr "" "