|
|
@@ -1,29 +1,6 @@
|
|
|
-Index: linkcheck/i18n.py
|
|
|
---- linkcheck/i18n.py.orig 2005-01-24 21:52:50 +0100
|
|
|
-+++ linkcheck/i18n.py 2005-02-16 16:39:54 +0100
|
|
|
-@@ -73,12 +73,13 @@
|
|
|
- """
|
|
|
- global default_language
|
|
|
- # get supported languages
|
|
|
-- for lang in os.listdir(directory):
|
|
|
-- path = os.path.join(directory, lang)
|
|
|
-- if not os.path.isdir(path):
|
|
|
-- continue
|
|
|
-- if os.path.exists(os.path.join(path, 'LC_MESSAGES', '%s.mo'%domain)):
|
|
|
-- supported_languages.append(lang)
|
|
|
-+ if os.path.isdir(directory):
|
|
|
-+ for lang in os.listdir(directory):
|
|
|
-+ path = os.path.join(directory, lang)
|
|
|
-+ if not os.path.isdir(path):
|
|
|
-+ continue
|
|
|
-+ if os.path.exists(os.path.join(path,'LC_MESSAGES','%s.mo'%domain)):
|
|
|
-+ supported_languages.append(lang)
|
|
|
- loc = get_locale()
|
|
|
- if loc in supported_languages:
|
|
|
- default_language = loc
|
|
|
Index: setup.py
|
|
|
---- setup.py.orig 2005-02-07 01:30:28 +0100
|
|
|
-+++ setup.py 2005-02-16 16:39:54 +0100
|
|
|
+--- setup.py.orig 2005-03-02 22:14:33 +0100
|
|
|
++++ setup.py 2005-03-05 09:40:46 +0100
|
|
|
@@ -86,7 +86,7 @@
|
|
|
else:
|
|
|
val = getattr(self, attr)
|
|
|
@@ -48,16 +25,16 @@ Index: setup.py
|
|
|
# First, sanity-check the 'extensions' list
|
|
|
self.check_extensions_list(self.extensions)
|
|
|
for ext in self.extensions:
|
|
|
-@@ -248,7 +248,7 @@
|
|
|
- ['share/locale/fr/LC_MESSAGES/linkchecker.mo']),
|
|
|
- ('share/locale/nl/LC_MESSAGES',
|
|
|
+@@ -250,7 +250,7 @@
|
|
|
['share/locale/nl/LC_MESSAGES/linkchecker.mo']),
|
|
|
+ ('share/locale/es/LC_MESSAGES',
|
|
|
+ ['share/locale/es/LC_MESSAGES/linkchecker.mo']),
|
|
|
- ('share/linkchecker',
|
|
|
+ ('etc/linkchecker',
|
|
|
['config/linkcheckerrc', 'config/logging.conf', ]),
|
|
|
('share/linkchecker/examples',
|
|
|
['cgi/lconline/leer.html.en', 'cgi/lconline/leer.html.de',
|
|
|
-@@ -258,13 +258,12 @@
|
|
|
+@@ -260,13 +260,12 @@
|
|
|
]
|
|
|
|
|
|
if os.name == 'posix':
|