Sunil Mohan Adapa 74214c18ae
*: Use Django gettext functions instead of ugettext
- ugettext functions will be removed in Django 4.0. Each use emits a warning
when running with Django 3.2. Since we have warnings enabled in developer mode,
we see quite a few messages because of this.

- ugettext is already a simple alias of gettext. So, no regressions are
expected.

Tests:

- Accessing an affected app in UI with Django 3.2 and Django 2.2 works fine.

- Using Django 3.2 there are no warnings related to removal of ugettext
functions.

- Ran regular unit tests.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-09-20 16:50:16 -04:00

121 lines
3.1 KiB
Python

# SPDX-License-Identifier: AGPL-3.0-or-later
from django.utils.translation import gettext_lazy as _
from plinth.clients import store_url
from plinth.modules.jsxc import manifest as jsxc_manifest
_clients = [{
'name':
_('Conversations'),
'platforms': [{
'type': 'store',
'os': 'android',
'store_name': 'f-droid',
'url': store_url('f-droid', 'eu.siacs.conversations')
}, {
'type': 'store',
'os': 'android',
'store_name': 'google-play',
'url': store_url('google-play', 'eu.siacs.conversations')
}]
}, {
'name':
_('Xabber'),
'description':
_('Open source Jabber (XMPP) client with multi-account support '
'and clean and simple interface. '),
'platforms': [{
'type': 'store',
'os': 'android',
'store_name': 'f-droid',
'url': store_url('f-droid', 'com.xabber.androiddev')
}, {
'type': 'store',
'os': 'android',
'store_name': 'google-play',
'url': store_url('google-play', 'com.xabber.android')
}]
}, {
'name':
_('Yaxim'),
'platforms': [{
'type': 'store',
'os': 'android',
'store_name': 'f-droid',
'url': store_url('f-droid', 'org.yaxim.androidclient'),
}, {
'type': 'store',
'os': 'android',
'store_name': 'google-play',
'url': store_url('google-play', 'org.yaxim.androidclient'),
}]
}, {
'name':
_('ChatSecure'),
'description':
_('ChatSecure is a free and open source '
'messaging app that features OTR encryption '
'over XMPP. You can connect to an existing '
'Google account, create new accounts on '
'public XMPP servers (including via Tor), '
'or even connect to your own server for '
'extra security.'),
'platforms': [{
'type': 'store',
'os': 'ios',
'store_name': 'app-store',
'url': 'https://apps.apple.com/us/app/chatsecure/id464200063'
}]
}, {
'name':
_('Dino'),
'platforms': [{
'type': 'download',
'os': 'gnu-linux',
'url': 'https://github.com/dino/dino/wiki/Distribution-Packages',
}, {
'type': 'package',
'format': 'deb',
'name': 'dino-im'
}]
}, {
'name':
_('Gajim'),
'platforms': [{
'type': 'package',
'format': 'deb',
'name': 'gajim'
}, {
'type': 'download',
'os': 'gnu-linux',
'url': 'https://gajim.org/downloads.php'
}, {
'type': 'download',
'os': 'macos',
'url': 'https://gajim.org/downloads.php'
}, {
'type': 'download',
'os': 'windows',
'url': 'https://gajim.org/downloads.php'
}]
}]
_clients.extend(jsxc_manifest.clients)
clients = _clients
backup = {
'config': {
'files': ['/etc/ejabberd/ejabberd.yml']
},
'data': {
'directories': ['/var/lib/ejabberd/']
},
'secrets': {
'files': ['/etc/ejabberd/ejabberd.pem'],
'directories': ['/etc/ejabberd/letsencrypt/']
},
'services': ['ejabberd']
}