some i18n fixes
Hanno Böck

Hanno Böck commited on 2008-03-31 19:45:56
Zeige 2 geänderte Dateien mit 5 Einfügungen und 2 Löschungen.

... ...
@@ -9,5 +9,5 @@ install:
9 9
 	mkdir -p ${DESTDIR}${PREFIX}/bin
10 10
 	install -t ${DESTDIR}${PREFIX}/share/freewvs freewvsdb/*.freewvs
11 11
 	install -t ${DESTDIR}${PREFIX}/bin freewvs
12
-	mkdir -p ${DESTDIR}/usr/share/locale/de_DE/LC_MESSAGES
13
-	install i18n/de.mo ${DESTDIR}/usr/share/locale/de_DE/LC_MESSAGES/freewvs.mo
12
+	mkdir -p ${DESTDIR}/usr/share/locale/de/LC_MESSAGES
13
+	install i18n/de.mo ${DESTDIR}/usr/share/locale/de/LC_MESSAGES/freewvs.mo
... ...
@@ -41,6 +41,7 @@ def vulnprint(appname, version, safeversion, vuln, vfilename, subdir, fancy):
41 41
     appdir = '/'.join(os.path.abspath(vfilename).split('/')[:-1-subdir])
42 42
     if fancy:
43 43
         print _("Directory: %(appdir)s") % vars()
44
+	if safeversion!="ok":
44 45
             print _("Vulnerable %(appname)s %(version)s found, please update to " \
45 46
                     "%(safeversion)s or above.") % vars()
46 47
             if vuln[:3] == "CVE":
... ...
@@ -48,6 +49,8 @@ def vulnprint(appname, version, safeversion, vuln, vfilename, subdir, fancy):
48 49
                         % vars()
49 50
             else:
50 51
                 print (vuln)
52
+        else:
53
+            print _("%(appname)s %(version)s found." ) % vars()
51 54
         print
52 55
     else:
53 56
         print "%(appname)s %(version)s (%(safeversion)s) %(vuln)s %(appdir)s" \
54 57