Skip to content

Commit cfa3273

Browse files
committed
new locale files
1 parent 2c84da4 commit cfa3273

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+27
-50
lines changed

Diff for: docs/conf.py

+10-3
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,17 @@
5858
# |version| and |release|, also used in various other places throughout the
5959
# built documents.
6060
#
61-
# The short X.Y version.
62-
version = '0.4'
6361
# The full version, including alpha/beta/rc tags.
64-
release = '0.4.8'
62+
""" [[[cog
63+
from pavement import options
64+
v = options.version.split(".")
65+
cog.outl("version = '%s'" % ".".join(v[:2]))
66+
cog.outl("release = '%s'" % ".".join(v))
67+
]]]"""
68+
version = '0.4'
69+
release = '0.4.9'
70+
# [[[end]]]
71+
6572

6673
# The language for content autogenerated by Sphinx. Refer to documentation
6774
# for a list of supported languages.

Diff for: locale/cs/LC_MESSAGES/django.mo

100755100644
816 Bytes
Binary file not shown.

Diff for: locale/cs/LC_MESSAGES/pyLoad.mo

100755100644
2.03 KB
Binary file not shown.

Diff for: locale/cs/LC_MESSAGES/pyLoadCli.mo

100755100644
383 Bytes
Binary file not shown.

Diff for: locale/cs/LC_MESSAGES/pyLoadGui.mo

100755100644
31 Bytes
Binary file not shown.

Diff for: locale/cs/LC_MESSAGES/setup.mo

100755100644
2.17 KB
Binary file not shown.

Diff for: locale/de/LC_MESSAGES/django.mo

100755100644
625 Bytes
Binary file not shown.

Diff for: locale/de/LC_MESSAGES/pyLoad.mo

100755100644
-329 Bytes
Binary file not shown.

Diff for: locale/de/LC_MESSAGES/pyLoadCli.mo

100755100644
File mode changed.

Diff for: locale/de/LC_MESSAGES/pyLoadGui.mo

100755100644
1 Byte
Binary file not shown.

Diff for: locale/de/LC_MESSAGES/setup.mo

100755100644
750 Bytes
Binary file not shown.

Diff for: locale/es/LC_MESSAGES/django.mo

100755100644
887 Bytes
Binary file not shown.

Diff for: locale/es/LC_MESSAGES/pyLoad.mo

100755100644
-204 Bytes
Binary file not shown.

Diff for: locale/es/LC_MESSAGES/pyLoadCli.mo

100755100644
52 Bytes
Binary file not shown.

Diff for: locale/es/LC_MESSAGES/pyLoadGui.mo

100755100644
51 Bytes
Binary file not shown.

Diff for: locale/es/LC_MESSAGES/setup.mo

100755100644
1.84 KB
Binary file not shown.

Diff for: locale/fr/LC_MESSAGES/django.mo

100755100644
-18 Bytes
Binary file not shown.

Diff for: locale/fr/LC_MESSAGES/pyLoad.mo

100755100644
-1.5 KB
Binary file not shown.

Diff for: locale/fr/LC_MESSAGES/pyLoadCli.mo

100755100644
File mode changed.

Diff for: locale/fr/LC_MESSAGES/pyLoadGui.mo

100755100644
45 Bytes
Binary file not shown.

Diff for: locale/fr/LC_MESSAGES/setup.mo

100755100644
289 Bytes
Binary file not shown.

Diff for: locale/it/LC_MESSAGES/django.mo

100755100644
692 Bytes
Binary file not shown.

Diff for: locale/it/LC_MESSAGES/pyLoad.mo

100755100644
-1.3 KB
Binary file not shown.

Diff for: locale/it/LC_MESSAGES/pyLoadCli.mo

100755100644
File mode changed.

Diff for: locale/it/LC_MESSAGES/pyLoadGui.mo

100755100644
46 Bytes
Binary file not shown.

Diff for: locale/it/LC_MESSAGES/setup.mo

100755100644
279 Bytes
Binary file not shown.

Diff for: locale/nl/LC_MESSAGES/pyLoad.mo

100755100644
-1.32 KB
Binary file not shown.

Diff for: locale/nl/LC_MESSAGES/pyLoadCli.mo

100755100644
File mode changed.

Diff for: locale/nl/LC_MESSAGES/pyLoadGui.mo

100755100644
51 Bytes
Binary file not shown.

Diff for: locale/pl/LC_MESSAGES/django.mo

100755100644
-104 Bytes
Binary file not shown.

Diff for: locale/pl/LC_MESSAGES/pyLoad.mo

100755100644
-1.66 KB
Binary file not shown.

Diff for: locale/pl/LC_MESSAGES/pyLoadCli.mo

100755100644
File mode changed.

Diff for: locale/pl/LC_MESSAGES/pyLoadGui.mo

100755100644
41 Bytes
Binary file not shown.

Diff for: locale/pl/LC_MESSAGES/setup.mo

100755100644
0 Bytes
Binary file not shown.

Diff for: locale/pt_BR/LC_MESSAGES/django.mo

100755100644
115 Bytes
Binary file not shown.

Diff for: locale/pt_BR/LC_MESSAGES/pyLoad.mo

100755100644
3.76 KB
Binary file not shown.

Diff for: locale/pt_BR/LC_MESSAGES/pyLoadCli.mo

100755100644
411 Bytes
Binary file not shown.

Diff for: locale/pt_BR/LC_MESSAGES/pyLoadGui.mo

100755100644
50 Bytes
Binary file not shown.

Diff for: locale/pt_BR/LC_MESSAGES/setup.mo

100755100644
1 Byte
Binary file not shown.

Diff for: locale/ru/LC_MESSAGES/django.mo

100755100644
2.16 KB
Binary file not shown.

Diff for: locale/ru/LC_MESSAGES/pyLoad.mo

100755100644
-1.01 KB
Binary file not shown.

Diff for: locale/ru/LC_MESSAGES/pyLoadCli.mo

100755100644
211 Bytes
Binary file not shown.

Diff for: locale/ru/LC_MESSAGES/pyLoadGui.mo

100755100644
188 Bytes
Binary file not shown.

Diff for: locale/ru/LC_MESSAGES/setup.mo

100755100644
0 Bytes
Binary file not shown.

Diff for: module/config/default.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ log - "Log":
2424
int log_size : "Size in kb" = 100
2525
bool log_rotate : "Log Rotate" = True
2626
general - "General":
27-
en;de;fr;it;es;nl;sv;ru;pl;cs;pt_BR language : "Language" = en
27+
en;de;fr;it;es;nl;sv;ru;pl;cs;sr;pt_BR language : "Language" = en
2828
folder download_folder : "Download Folder" = Downloads
2929
bool debug_mode : "Debug Mode" = False
3030
bool checksum : "Use Checksum" = False

Diff for: module/database/FileDatabase.py

+1-38
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ def deleteLink(self, id):
194194
e = RemoveEvent("file", id, "collector" if not f.package().queue else "queue")
195195

196196
oldorder = f.order
197-
package = f.package
198197

199198
if id in self.core.threadManager.processingIds():
200199
self.cache[id].abortDownload()
@@ -212,7 +211,7 @@ def deleteLink(self, id):
212211

213212
pyfiles = self.cache.values()
214213
for pyfile in pyfiles:
215-
if pyfile.packageid == package and pyfile.order > oldorder:
214+
if pyfile.packageid == pid and pyfile.order > oldorder:
216215
pyfile.order -= 1
217216
pyfile.notifyChange()
218217

@@ -576,11 +575,6 @@ def restartFailed(self):
576575
""" restart all failed links """
577576
self.db.restartFailed()
578577

579-
@lock
580-
@change
581-
def fixPackageOrder(self, queue=0):
582-
self.db.fixPackageOrder(queue)
583-
584578
class FileMethods():
585579
@style.queue
586580
def filecount(self, queue):
@@ -883,41 +877,10 @@ def deleteFinished(self):
883877
self.c.execute("DELETE FROM links WHERE status IN (0,4)")
884878
self.c.execute("DELETE FROM packages WHERE NOT EXISTS(SELECT 1 FROM links WHERE packages.id=links.package)")
885879

886-
887880
@style.queue
888881
def restartFailed(self):
889882
self.c.execute("UPDATE links SET status=3,error='' WHERE status IN (8, 9)")
890883

891-
892-
@style.queue
893-
def fixPackageOrder(self, queue=0):
894-
found = 0
895-
order = 0
896-
i = 0
897-
self.c.execute("SELECT count(*) FROM packages WHERE queue = ?", (queue, ))
898-
count = self.c.fetchone()[0]
899-
if count == 0:
900-
return
901-
while order < count:
902-
self.c.execute("SELECT id FROM packages WHERE packageorder = ? AND queue = ?", (i, queue))
903-
all = self.c.fetchall()
904-
if len(all) == 0:
905-
i += 1
906-
elif len(all) == 1:
907-
self.c.execute("UPDATE packages SET packageorder=? WHERE id = ?", (order, all[0][0]))
908-
order += 1
909-
i += 1
910-
elif len(all) > 1:
911-
self.c.execute("UPDATE packages SET packageorder=? WHERE id = ?", (order, all[0][0]))
912-
order += 1
913-
i += len(all)
914-
del all[0]
915-
self.c.execute("UPDATE packages SET packageorder=packageorder+? WHERE packageorder >= ? AND queue=?", (len(all), order, queue))
916-
for r in all:
917-
self.c.execute("UPDATE packages SET packageorder=? WHERE id = ?", order, r[0])
918-
order += 1
919-
920-
921884
@style.queue
922885
def findDuplicates(self, id, folder, filename):
923886
""" checks if filename exists with different id and same package """

Diff for: module/setup.py

+10-5
Original file line numberDiff line numberDiff line change
@@ -454,9 +454,9 @@ def ask(self, qst, default, answers=[], bool=False, password=False):
454454
info += ")"
455455
elif bool:
456456
if default == self.yes:
457-
info = _("[y]/n")
457+
info = "([%s]/%s)" % (self.yes, self.no)
458458
else:
459-
info = _("y/[n]")
459+
info = "(%s/[%s])" % (self.yes, self.no)
460460
else:
461461
info = "[%s]" % default
462462

@@ -488,18 +488,23 @@ def ask(self, qst, default, answers=[], bool=False, password=False):
488488
print _("Passwords did not match.").decode("utf-8")
489489

490490
while True:
491-
input = raw_input(qst + " %s: " % info)
491+
try:
492+
input = raw_input(qst + " %s: " % info)
493+
except KeyboardInterrupt:
494+
print "\nSetup interrupted"
495+
exit()
496+
492497
input = input.decode(sys.stdin.encoding)
493498

494499
if input.strip() == "":
495500
input = default
496501

497502
if bool:
498503
# yes, true,t are inputs for booleans with value true
499-
if input.lower().strip() in [self.yes, _("yes"), _("true"), _("t")]:
504+
if input.lower().strip() in [self.yes, _("yes"), _("true"), _("t"), "yes"]:
500505
return True
501506
# no, false,f are inputs for booleans with value false
502-
elif input.lower().strip() in [self.no, _("no"), _("false"), _("f")]:
507+
elif input.lower().strip() in [self.no, _("no"), _("false"), _("f"), "no"]:
503508
return False
504509
else:
505510
print _("Invalid Input")

Diff for: pavement.py

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from paver.easy import *
55
from paver.setuputils import setup
6+
from paver.doctools import cog
67

78
import sys
89
import re
@@ -83,6 +84,9 @@
8384
dir="env",
8485
python="python2",
8586
virtual="virtualenv2",
87+
),
88+
cog=Bunch(
89+
pattern="*.py",
8690
)
8791
)
8892

@@ -91,6 +95,7 @@
9195
"--package-version=%s" % options.version, "--msgid-bugs-address='[email protected]'"]
9296

9397
@task
98+
@needs('cog')
9499
def html():
95100
"""Build html documentation"""
96101
module = path("docs") / "module"

Diff for: pyLoadCore.py

-3
Original file line numberDiff line numberDiff line change
@@ -472,9 +472,6 @@ def setupDB(self):
472472

473473
self.files = FileHandler(self)
474474
self.db.manager = self.files #ugly?
475-
476-
self.files.fixPackageOrder(0)
477-
self.files.fixPackageOrder(1)
478475

479476
def init_webserver(self):
480477
if self.config['webinterface']['activated']:

0 commit comments

Comments
 (0)