.po file fixes

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@98 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2000-05-30 10:13:38 +00:00
parent c889458682
commit 6622e6cb84
3 changed files with 50 additions and 23 deletions

View file

@ -22,7 +22,8 @@ linkcheck/RobotsTxt.py \
linkcheck/TelnetUrlData.py \
linkcheck/Threader.py \
linkcheck/UrlData.py \
linkcheck/__init__.py
linkcheck/__init__.py.tmpl \
linkchecker
DESTDIR=/.
.PHONY: test clean files homepage dist install all

View file

@ -2,16 +2,18 @@
import sys
# no i18n at this point
if sys.version[:5] < "1.5.2":
print "This program requires Python 1.5.2 or later."
sys.exit(1)
# add the path to linkcheck module if you do not install with distutils
sys.path.append("/home/calvin/projects/linkchecker")
#sys.path.append("/home/calvin/projects/linkchecker")
import getopt,re,string,os
import linkcheck,StringUtil
from linkcheck import _
Usage = """USAGE\tlinkchecker [options] file_or_url...
Usage = _("""USAGE\tlinkchecker [options] file_or_url...
OPTIONS
-a, --anchors
@ -42,7 +44,7 @@ OPTIONS
environment variable NNTP_SERVER. If no host is given,
only the syntax of the link is checked.
-o name, --output=name
Specify output as """+linkcheck.Config.LoggerKeys+""".
Specify output as %s.
Default is text.
-p pwd, --password=pwd
Try given password for HTML and FTP authorization.
@ -81,9 +83,9 @@ OPTIONS
error message, for example "This page has moved" or
"Oracle Application Server error".
This option implies -w.
"""
""") % linkcheck.Config.LoggerKeys
Notes = """NOTES
Notes = _("""NOTES
o LinkChecker assumes an http:// resp. ftp:// link when a commandline URL
starts with "www." resp. "ftp."
You can also give local files as arguments
@ -97,9 +99,9 @@ o You can supply multiple user/password pairs in a configuration file
o Cookies are not accepted by LinkChecker
o When checking 'news:' links the given news host doesn't need to be the
same as the host of the user browsing your pages!
"""
""")
Examples = """EXAMPLES
Examples = _("""EXAMPLES
o linkchecker -v -o html -r2 -s -i treasure.calvinsplayground.de \\
http://treasure.calvinsplayground.de/~calvin/ > sample.html
o Local files and syntactic sugar on the command line:
@ -107,7 +109,7 @@ o Local files and syntactic sugar on the command line:
linkchecker ../bla.html
linkchecker www.myhomepage.de
linkchecker -r0 ftp.linux.org
"""
""")
def printVersion():
print linkcheck.Config.AppInfo
@ -123,7 +125,8 @@ def printHelp():
sys.exit(0)
def printUsage(msg):
sys.stderr.write("Error: "+str(msg)+"\nType linkchecker -h for help\n")
sys.stderr.write(_("Error: %s\n") % msg)
sys.stderr.write(_("Execute 'linkchecker -h' for help\n"))
sys.exit(1)
@ -202,15 +205,16 @@ for opt,arg in options:
if linkcheck.Config.Loggers.has_key(arg):
config["log"] = linkcheck.Config.Loggers[arg]()
else:
printUsage("Illegal argument '"+arg+"' for option '-o, --output'")
printUsage((_("Illegal argument '%s' for option ") % arg) +\
"'-o, --output'")
elif opt=="-F" or opt=="--file-output":
if linkcheck.Config.Loggers.has_key(arg) and arg != "blacklist":
config["fileoutput"].append(linkcheck.Config.Loggers[arg](
open(config["fileoutputnames"][arg], "w")))
else:
printUsage("Illegal argument '"+arg+\
"' for option '-F, --file-output'")
printUsage((_("Illegal argument '%s' for option ") % arg) +\
"'-F, --file-output'")
elif opt=="-i" or opt=="--intern":
config["internlinks"].append(re.compile(arg))
@ -240,8 +244,8 @@ for opt,arg in options:
if int(arg) >= 0:
config["recursionlevel"] = int(arg)
else:
printUsage("Illegal argument '"+str(arg)+\
"' to option '-r, --recursion-level'")
printUsage((_("Illegal argument '%s' for option ") % arg) +
"'-r, --recursion-level'")
elif opt=="-R" or opt=="--robots-txt":
config["robotstxt"] = 1
@ -285,7 +289,7 @@ if config["log"].__class__ == linkcheck.Logging.BlacklistLogger and \
args = open(linkcheck.Config.BlacklistFile).readlines()
if len(args)==0:
print "warning: no files or urls given"
print _("warning: no files or urls given")
for url in args:
url = string.strip(url)

View file

@ -1,17 +1,17 @@
# German translation for LinkChecker.
# Copyright (C) 2000
# Bastian Kleineidam <calvin@users.sourceforge.net>, 2000.
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Free Software Foundation, Inc.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: LinkChecker 1.2.3\n"
"POT-Creation-Date: 2000-05-29 01:35+0200\n"
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2000-05-30 12:02+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Bastian Kleineidam <calvin@users.sourceforge.net>\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=latin-1\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: ENCODING\n"
#: Logging.py:130 linkcheck/Logging.py:148
@ -94,6 +94,11 @@ msgstr "Effektive URL %s"
msgid "Error"
msgstr "Fehler"
#: linkchecker:128
#, c-format
msgid "Error: %s\n"
msgstr "Fehler: %s\n"
#: Logging.py:82 linkcheck/Logging.py:100 linkcheck/Logging.py:253
#: linkcheck/Logging.py:365 linkcheck/Logging.py:415
msgid "Get the newest version at "
@ -120,6 +125,11 @@ msgstr "HTTPS url ignoriert"
msgid "Illegal NNTP link syntax"
msgstr "Illegale NNTP link Syntax"
#: linkchecker:208 linkchecker:216 linkchecker:247
#, c-format
msgid "Illegal argument '%s' for option "
msgstr "Ungültiges Argument '%s' für Option "
#: linkcheck/TelnetUrlData.py:32
msgid "Illegal telnet link syntax"
msgstr "Illegale telnet link Syntax"
@ -177,6 +187,10 @@ msgstr "Beende Pr
msgid "Thats it. "
msgstr "Das wars. "
#: linkchecker:129
msgid "Execute 'linkchecker -h' for help\n"
msgstr "Führen Sie 'linkchecker -h' aus um Hilfe zu erhalten\n"
#: Logging.py:89 linkcheck/Logging.py:107 linkcheck/Logging.py:289
msgid "URL"
msgstr "URL"
@ -185,6 +199,10 @@ msgstr "URL"
msgid "URL is null or empty"
msgstr "URL ist Null oder leer"
#: linkchecker:16
msgid "USAGE\tlinkchecker [options] file_or_url..."
msgstr ""
#: linkcheck/UrlData.py:51 linkcheck/UrlData.py:72
msgid "Valid"
msgstr "Gültig"
@ -230,3 +248,7 @@ msgstr "robots.txt:%d: disallow ohne user agents"
#, c-format
msgid "robots.txt:%d: user-agent in the middle of rules"
msgstr "robots.txt:%d: user-agent zwischen Regeln"
#: linkchecker:292
msgid "warning: no files or urls given"
msgstr "Warnung: keine Dateien oder URLs angegeben"