~osomon/phatch/extract-all-metadata

« back to all changes in this revision

Viewing changes to ct.py

  • Committer: stani
  • Date: 2007-06-12 17:18:53 UTC
  • Revision ID: spe.stani.be@gmail.com-20070612171853-cndnqupa2o42iai4
gettext support, major rewrite

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import os
2
2
import license
3
 
from translation import _
 
3
from translation import _t
4
4
 
5
5
#---version
6
6
NAME                = 'Phatch'
7
7
VERSION             = '0.0.1'
8
8
 
9
9
#---description
10
 
DESCRIPTION         = 'Photo Batch Processor'
 
10
DESCRIPTION         = _('Photo Batch Processor')
11
11
FULL_DESCRIPTION    = \
12
12
"""Phatch = Photo & Batch
13
13
    
21
21
(http://pythonide.stani.be) on\
22
22
 Ubuntu (GNU/Linux), but should run fine as well on Windows and Mac Os X.
23
23
    
24
 
Patch uses python, wxPython, PIL, Andrew Enyart's and Crystal Diamond Icons.\
 
24
Phatch uses python, wxPython, PIL, Andrew Enyart's and Crystal Diamond Icons.\
25
25
 Phatch is licensed under the GPL3. Phatch has no limitations, no\
26
26
 time-outs, no nags, no adware, no banner ads and no spyware. It is 100% free. 
27
27
"""
34
34
                        'gbr','gd','ico','imt','mic','mcidas','pcd',
35
35
                        'psd','bw','rgb','cmyk','sun','tga','xpm']
36
36
IMAGE_WRITE_EXTENSIONS  = IMAGE_EXTENSIONS + ['eps','ps','pdf']
37
 
IMAGE_MODES             = ['Monochrome (1-bit pixels, black and white)',
38
 
                        'Grayscale (8-bit pixels, black and white)',
39
 
                        'RGB (3x8-bit pixels, true colour)',
40
 
                        'RGBA (4x8-bit pixels, RGB with transparency mask)',
41
 
                        'CMYK (4x8-bit pixels, colour separation)',
42
 
                        'P (8-bit pixels, mapped using a colour palette)',
43
 
                        'YCbCr (3x8-bit pixels, colour video format)',
44
 
                        'I (32-bit integer pixels)',
45
 
                        'F (32-bit floating point pixels)']
46
 
IMAGE_RESAMPLE_FILTERS  = ['nearest','bilinear','bicubic','antialias']
 
37
IMAGE_MODES             = [_t('Monochrome (1-bit pixels, black and white)'),
 
38
                        _t('Grayscale (8-bit pixels, black and white)'),
 
39
                        _t('RGB (3x8-bit pixels, true colour)'),
 
40
                        _t('RGBA (4x8-bit pixels, RGB with transparency mask)'),
 
41
                        _t('CMYK (4x8-bit pixels, colour separation)'),
 
42
                        _t('P (8-bit pixels, mapped using a colour palette)'),
 
43
                        _t('YCbCr (3x8-bit pixels, colour video format)'),
 
44
                        _t('I (32-bit integer pixels)'),
 
45
                        _t('F (32-bit floating point pixels)')]
 
46
IMAGE_RESAMPLE_FILTERS  = [_t('nearest'),_t('bilinear'),_t('bicubic'),
 
47
                        _t('antialias')]
47
48
 
48
49
IMAGE_MODELS_WRITE_EXTENSIONS = ['<type>']+IMAGE_WRITE_EXTENSIONS
49
50
 
54
55
#---fields
55
56
ACTION_PREFIX           = 'Action_'
56
57
ENABLED                 = '__enabled__'#invisible/private field
57
 
FIELD_DELIMITER        = ': '
 
58
FIELD_DELIMITER         = ': '
58
59
 
59
60
#i8n
60
 
UNKNOWN         = _('Unsaved Action List')
61
 
WILDCARD        = _("Action Lists (*.py)|*.py|All Files|*")
62
 
DESCRIPTION     = _("Describe here the action list.")
 
61
BOOLEANS                = [_t('True'),_t('False'),_t('true'),_t('false')]
 
62
UNKNOWN                 = _("Unsaved Action List")
 
63
WILDCARD                = "%s (*.py)|*.py|%s|*"\
 
64
                            %(_("Action Lists"),_("All Files"))
 
65
ACTION_LIST_DESCRIPTION = _("Describe here the action list.")
63
66
 
64
67
#---info
65
68
INFO            = {