|
|
@@ -1,10 +1,29 @@
|
|
|
+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
|
|
|
-===================================================================
|
|
|
-RCS file: /cvs/opkg/vendor_stuff/linkchecker/setup.py,v
|
|
|
-retrieving revision 1.1.1.1
|
|
|
-diff -u -u -r1.1.1.1 setup.py
|
|
|
---- setup.py 7 Feb 2005 00:30:28 -0000 1.1.1.1
|
|
|
-+++ setup.py 14 Feb 2005 07:18:20 -0000
|
|
|
+--- setup.py.orig 2005-02-07 01:30:28 +0100
|
|
|
++++ setup.py 2005-02-16 16:39:54 +0100
|
|
|
@@ -86,7 +86,7 @@
|
|
|
else:
|
|
|
val = getattr(self, attr)
|