add 'flattr' to EPISODE_ACTION_TYPES
[mygpo.git] / mygpo / api / constants.py
blob1b915678645d793a1413f09b41473cd24a914a55
2 # This file is part of my.gpodder.org.
4 # my.gpodder.org is free software: you can redistribute it and/or modify it
5 # under the terms of the GNU Affero General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or (at your
7 # option) any later version.
9 # my.gpodder.org is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
12 # License for more details.
14 # You should have received a copy of the GNU Affero General Public License
15 # along with my.gpodder.org. If not, see <http://www.gnu.org/licenses/>.
18 # Set _ to no-op, because we just want to mark the strings as
19 # translatable and will use gettext on these strings later on
21 from django.utils.translation import ugettext_lazy as _
24 EPISODE_ACTION_TYPES = (
25 ('download', _('downloaded')),
26 ('play', _('played')),
27 ('delete', _('deleted')),
28 ('new', _('marked as new')),
29 ('flattr', _('flattr\'d')),
33 DEVICE_TYPES = (
34 ('desktop', _('Desktop')),
35 ('laptop', _('Laptop')),
36 ('mobile', _('Cell phone')),
37 ('server', _('Server')),
38 ('other', _('Other')),
42 SUBSCRIBE_ACTION = 1
43 UNSUBSCRIBE_ACTION = -1
45 SUBSCRIPTION_ACTION_TYPES = (
46 (SUBSCRIBE_ACTION, _('subscribed')),
47 (UNSUBSCRIBE_ACTION, _('unsubscribed')),