File tree 4 files changed +52
-3
lines changed
4 files changed +52
-3
lines changed Original file line number Diff line number Diff line change 1
1
* .pyc
2
+ * .mo
2
3
django_stdimage.egg-info
3
4
build /
4
5
dist /
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
# -*- coding: utf-8 -*-
3
+ import os
3
4
from setuptools import setup , Command , find_packages
5
+ import sys
4
6
5
7
6
8
class PyTest (Command ):
@@ -20,9 +22,18 @@ def run(self):
20
22
raise SystemExit (errno )
21
23
22
24
25
+ if 'sdist' in sys .argv or 'develop' in sys .argv :
26
+ try :
27
+ os .chdir ('stdimage' )
28
+ from django .core import management
29
+ management .call_command ('compilemessages' )
30
+ finally :
31
+ os .chdir ('..' )
32
+
33
+
23
34
setup (
24
35
name = 'django-stdimage' ,
25
- version = '2.0.2 ' ,
36
+ version = '2.0.3 ' ,
26
37
description = 'Django Standarized Image Field' ,
27
38
author = 'codingjoe' ,
28
39
url = 'https://github.com/codingjoe/django-stdimage' ,
Original file line number Diff line number Diff line change
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the PACKAGE package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version : \n "
9
+ "Report-Msgid-Bugs-To : \n "
10
+ "POT-Creation-Date : 2015-08-06 12:13+0200\n "
11
+ "PO-Revision-Date : 2015-08-06 12:15+0200\n "
12
+ "Language : de\n "
13
+ "MIME-Version : 1.0\n "
14
+ "Content-Type : text/plain; charset=UTF-8\n "
15
+ "Content-Transfer-Encoding : 8bit\n "
16
+ "Plural-Forms : nplurals=2; plural=(n != 1);\n "
17
+ "Last-Translator : \n "
18
+ "Language-Team : \n "
19
+ "X-Generator : Poedit 1.8.3\n "
20
+
21
+ #: validators.py:48
22
+ #, python-format
23
+ msgid ""
24
+ "The image you uploaded is too large. The required maximum resolution is: "
25
+ "%(with)sx%(height)s px."
26
+ msgstr ""
27
+ "Das hochgeladene Bild ist zu groß. Die maximale erlaube Größe ist: "
28
+ "%(with)sx%(height)s px."
29
+
30
+ #: validators.py:64
31
+ #, python-format
32
+ msgid ""
33
+ "The image you uploaded is too small. The required minimum resolution is: "
34
+ "%(with)sx%(height)s px."
35
+ msgstr ""
36
+ "Das hochgeladene Bild ist zu klein. Die minimale erlaube Größe ist: "
37
+ "%(with)sx%(height)s px."
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ class MaxSizeValidator(BaseSizeValidator):
46
46
compare = lambda self , img_size , max_size :\
47
47
img_size [0 ] > max_size [0 ] or img_size [1 ] > max_size [1 ]
48
48
message = _ ('The image you uploaded is too large.'
49
- ' The required minimal resolution is:'
49
+ ' The required maximum resolution is:'
50
50
' %(with)sx%(height)s px.' )
51
51
code = 'max_resolution'
52
52
@@ -62,5 +62,5 @@ class MinSizeValidator(BaseSizeValidator):
62
62
compare = lambda self , img_size , min_size :\
63
63
img_size [0 ] < min_size [0 ] or img_size [1 ] < min_size [1 ]
64
64
message = _ ('The image you uploaded is too small.'
65
- ' The required minimal resolution is:'
65
+ ' The required minimum resolution is:'
66
66
' %(with)sx%(height)s px.' )
You can’t perform that action at this time.
0 commit comments