Revision: 3987 Author: wikipedian Date: 2007-08-07 14:55:47 +0000 (Tue, 07 Aug 2007)
Log Message: ----------- German UI translations
Modified Paths: -------------- trunk/pywikipedia/selflink.py trunk/pywikipedia/translations/de/LC_MESSAGES/pywikipedia.mo trunk/pywikipedia/translations/de/LC_MESSAGES/pywikipedia.po trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/selflink.py =================================================================== --- trunk/pywikipedia/selflink.py 2007-08-07 14:36:57 UTC (rev 3986) +++ trunk/pywikipedia/selflink.py 2007-08-07 14:55:47 UTC (rev 3987) @@ -108,13 +108,13 @@ # at the end of the link, reset the color to default colors = [None for c in text[max(0, match.start() - context) : match.start()]] + [12 for c in text[match.start() : match.end()]] + [None for c in text[match.end() : match.end() + context]] wikipedia.output(text[max(0, match.start() - context) : match.end() + context], colors = colors) - choice = wikipedia.inputChoice(_(u'\nWhat shall be done with this selflink?'), ['unlink', 'make bold', 'skip', 'edit', 'more context'], ['u', 'b', 's', 'e', 'm'], 'u') + choice = wikipedia.inputChoice(_(u'\nWhat shall be done with this selflink?'), [_('unlink'), _('make bold'), _('skip'), _('edit'), _('more context')], [_('u [unlink hotkey]'), _('b [make bold hotkey]'), _('s [skip hotkey]'), _('e [edit hotkey]'), _('m [more context hotkey]')], _('u [unlink hotkey]')) wikipedia.output(u'')
- if choice == 's': + if choice == _('s [skip hotkey]'): # skip this link return text, False - elif choice == 'e': + elif choice == _('e [edit hotkey]'): editor = editarticle.TextEditor() newText = editor.edit(text, jumpIndex = match.start()) # if user didn't press Cancel @@ -122,13 +122,13 @@ return newText, True else: return text, True - elif choice == 'm': + elif choice == _('m [more context hotkey]'): # show more context by recursive self-call return self.handleNextLink(page, text, match, context = context + 100) else: new = match.group('label') or match.group('title') new += match.group('linktrail') - if choice == 'u': + if choice == _('u [unlink hotkey]'): return text[:match.start()] + new + text[match.end():], False else: # make bold @@ -154,16 +154,16 @@ curpos = 0
if oldText == text: - wikipedia.output(u'No changes necessary.') + wikipedia.output(_(u'No changes necessary.')) else: wikipedia.showDiff(oldText, text) page.put(text) except wikipedia.NoPage: - wikipedia.output(u"Page %s does not exist?!" % page.aslink()) + wikipedia.output(_(u"Page %s does not exist; skipping.") % page.aslink()) except wikipedia.IsRedirectPage: - wikipedia.output(u"Page %s is a redirect; skipping." % page.aslink()) + wikipedia.output(_(u"Page %s is a redirect; skipping.") % page.aslink()) except wikipedia.LockedPage: - wikipedia.output(u"Page %s is locked?!" % page.aslink()) + wikipedia.output(_(u"Page %s is locked; skipping.") % page.aslink())
def run(self): comment = wikipedia.translate(wikipedia.getSite(), msg) @@ -189,7 +189,7 @@ for arg in wikipedia.handleArgs(): if arg.startswith('-xml'): if len(arg) == 4: - xmlFilename = wikipedia.input(u'Please enter the XML dump's filename:') + xmlFilename = wikipedia.input(_(u'Please enter the XML dump's filename:')) else: xmlFilename = arg[5:] gen = XmlDumpSelflinkPageGenerator(xmlFilename)
Modified: trunk/pywikipedia/translations/de/LC_MESSAGES/pywikipedia.mo =================================================================== (Binary files differ)
Modified: trunk/pywikipedia/translations/de/LC_MESSAGES/pywikipedia.po =================================================================== --- trunk/pywikipedia/translations/de/LC_MESSAGES/pywikipedia.po 2007-08-07 14:36:57 UTC (rev 3986) +++ trunk/pywikipedia/translations/de/LC_MESSAGES/pywikipedia.po 2007-08-07 14:55:47 UTC (rev 3987) @@ -4,22 +4,102 @@ # msgid "" msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2007-08-07 16:25+CEST\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" +"Project-Id-Version: Python Wikipedia Bot Framework\n" +"POT-Creation-Date: 2007-08-07 16:52+CEST\n" +"PO-Revision-Date: 2007-08-07 16:52+0100\n" +"Last-Translator: Daniel Herding <DHerding {at} gmx {dot} de>\n" +"Language-Team: German team pywikipedia-l@lists.wikimedia.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: ENCODING\n" +"Content-Transfer-Encoding: 8bit\n" "Generated-By: pygettext.py 1.5\n" +"X-Poedit-Language: German\n" +"X-Poedit-SourceCharset: utf-8\n"
#: selflink.py:111 msgid "" "\n" "What shall be done with this selflink?" -msgstr "Was soll mit diesem Selbstlink gemacht werden?" +msgstr "" +"\n" +"Was soll mit diesem Selbstlink geschehen?"
+#: selflink.py:111 +msgid "b [make bold hotkey]" +msgstr "f" + +#: selflink.py:111 +msgid "edit" +msgstr "bearbeiten" + +#: selflink.py:111 +msgid "make bold" +msgstr "fett schreiben" + +#: selflink.py:111 +msgid "more context" +msgstr "mehr Kontext" + +#: selflink.py:111 +msgid "skip" +msgstr "überspringen" + +#: selflink.py:111 +msgid "unlink" +msgstr "entlinken" + +#: selflink.py:111 selflink.py:114 +msgid "s [skip hotkey]" +msgstr "s" + +#: selflink.py:111 selflink.py:117 +msgid "e [edit hotkey]" +msgstr "e" + +#: selflink.py:111 selflink.py:125 +msgid "m [more context hotkey]" +msgstr "m" + +#: selflink.py:111 selflink.py:131 +msgid "u [unlink hotkey]" +msgstr "l" + +#: selflink.py:157 +msgid "No changes necessary." +msgstr "Keine Änderung nötig." + +#: selflink.py:162 +msgid "Page %s does not exist; skipping." +msgstr "Seite %s existiert nicht; überspringe." + +#: selflink.py:164 +msgid "Page %s is a redirect; skipping." +msgstr "Seite %s ist ein Redirect; überspringe." + +#: selflink.py:166 +msgid "Page %s is locked; skipping." +msgstr "Seite %s ist gesperrt; überspringe." + +#: selflink.py:192 +msgid "Please enter the XML dump's filename:" +msgstr "Bitte gib den Dateinamen des XML-Dumps ein:" + +#: wikipedia.py:552 +msgid "Getting page %s" +msgstr "Lade Seite %s" + +#: wikipedia.py:1154 +msgid "Creating page %s..." +msgstr "Erstelle Seite %s..." + +#: wikipedia.py:1156 +msgid "Changing page %s..." +msgstr "Ändere Seite %s..." + +#: wikipedia.py:2319 +msgid "Getting %i pages from %s..." +msgstr "Lade %i Seiten von %s..." + #: wikipedia.py:2414 msgid "" "Checked for running processes. %i processes currently running, including the " @@ -27,3 +107,11 @@ msgstr "" "Prüfe auf laufende Prozesse. %i Prozesse laufen momentan, diesen Prozess " "eingeschlossen." + +#: wikipedia.py:3183 +msgid "Getting a page to check if we're logged in on %s..." +msgstr "Lade eine Seite, um herauszufinden, ob wir auf %s eingeloggt sind..." + +#: wikipedia.py:3194 +msgid "NOTE: You have unread messages on %s" +msgstr "HINWEIS: Du hast ungelesene Nachrichten auf %s"
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2007-08-07 14:36:57 UTC (rev 3986) +++ trunk/pywikipedia/wikipedia.py 2007-08-07 14:55:47 UTC (rev 3987) @@ -549,7 +549,7 @@ isWatched = False editRestriction = None if verbose: - output(u'Getting page %s' % self.aslink()) + output(_(u'Getting page %s') % self.aslink()) path = self.site().edit_address(self.urlname()) if oldid: path = path + "&oldid="+oldid @@ -1151,9 +1151,9 @@ predata['masteredit'] = '1'
if newPage: - output(u'Creating page %s' % self.aslink(forceInterwiki=True)) + output(_(u'Creating page %s...') % self.aslink(forceInterwiki=True)) else: - output(u'Changing page %s' % self.aslink(forceInterwiki=True)) + output(_(u'Changing page %s...') % self.aslink(forceInterwiki=True)) # Submit the prepared information if self.site().hostname() in config.authenticate.keys(): predata.append(("Content-type","application/x-www-form-urlencoded")) @@ -2316,7 +2316,7 @@ return data
def getall(site, pages, throttle = True, force = False): - output(u'Getting %d pages from %s...' % (len(pages), site)) + output(_(u'Getting %i pages from %s...') % (len(pages), site)) return GetAll(site, pages, throttle, force).run()
# Library functions @@ -3180,7 +3180,7 @@ """ self._loadCookies(sysop = sysop) if not self.loginStatusKnown: - output(u'Getting a page to check if we're logged in on %s' % self) + output(_(u'Getting a page to check if we're logged in on %s...') % self) path = self.put_address('Non-existing_page') text = self.getUrl(path, sysop = sysop) # Search for the "my talk" link at the top @@ -3191,7 +3191,7 @@ self._loggedInAs = m.group('username') # While we're at it, check if we have got unread messages if '<div class="usermessage">' in text: - output(u'NOTE: You have unread messages on %s' % self) + output(_(u'NOTE: You have unread messages on %s') % self) messages=True else: messages=False