From caae04d549c62e7c578d4abe18296e60a98b11a6 Mon Sep 17 00:00:00 2001 From: Johannes Keyser Date: Sat, 5 Aug 2017 20:05:09 +0200 Subject: [PATCH] ejabberd, ikiwiki, ttrss: user login descriptions, fixes #699 --- plinth/modules/ejabberd/__init__.py | 13 ++++++++++--- plinth/modules/ikiwiki/__init__.py | 11 ++++++++++- plinth/modules/ttrss/__init__.py | 9 +++++++-- 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/plinth/modules/ejabberd/__init__.py b/plinth/modules/ejabberd/__init__.py index 49c317179..64aeb559e 100644 --- a/plinth/modules/ejabberd/__init__.py +++ b/plinth/modules/ejabberd/__init__.py @@ -21,11 +21,14 @@ Plinth module to configure ejabberd server from django.urls import reverse_lazy from django.utils.translation import ugettext_lazy as _ +from plinth.utils import format_lazy + import logging import socket from plinth import actions from plinth import action_utils +from plinth import cfg from plinth import frontpage from plinth import service as service_module from plinth.menu import main_menu @@ -45,9 +48,13 @@ description = [ _('XMPP is an open and standardized communication protocol. Here ' 'you can run and configure your XMPP server, called ejabberd.'), - _('To actually communicate, you can use the web client or any other ' - 'XMPP client.'), + format_lazy( + _('To actually communicate, you can use the web client or any other XMPP client. ' + 'When enabled, ejabberd can be accessed by any user with a {box_name} login.'), + box_name=_(cfg.box_name)) ] reserved_usernames = ['ejabberd'] diff --git a/plinth/modules/ikiwiki/__init__.py b/plinth/modules/ikiwiki/__init__.py index 957ebaa25..b0bebb9ac 100644 --- a/plinth/modules/ikiwiki/__init__.py +++ b/plinth/modules/ikiwiki/__init__.py @@ -20,9 +20,11 @@ Plinth module to configure ikiwiki """ from django.utils.translation import ugettext_lazy as _ +from plinth.utils import format_lazy from plinth import actions from plinth import action_utils +from plinth import cfg from plinth import frontpage from plinth import service as service_module from plinth.menu import main_menu @@ -43,7 +45,14 @@ description = [ 'several lightweight markup languages, including Markdown, and ' 'common blogging functionality such as comments and RSS feeds. ' 'When enabled, the blogs and wikis will be available ' - 'from /ikiwiki.') + 'at /ikiwiki (once created).'), + + format_lazy( + _('Only {box_name} users in the admin group can create ' + 'and manage blogs and wikis, but any user in the wiki ' + 'group can edit existing ones. In the User Configuration you can change these ' + 'permissions or add new users.'), box_name=_(cfg.box_name)) ] diff --git a/plinth/modules/ttrss/__init__.py b/plinth/modules/ttrss/__init__.py index 6a0782933..98eaf7f2c 100644 --- a/plinth/modules/ttrss/__init__.py +++ b/plinth/modules/ttrss/__init__.py @@ -20,9 +20,11 @@ Plinth module to configure Tiny Tiny RSS. """ from django.utils.translation import ugettext_lazy as _ +from plinth.utils import format_lazy from plinth import actions from plinth import action_utils +from plinth import cfg from plinth import frontpage from plinth import service as service_module from plinth.menu import main_menu @@ -41,8 +43,11 @@ description = [ 'designed to allow reading news from any location, while feeling as ' 'close to a real desktop application as possible.'), - _('When enabled, Tiny Tiny RSS will be available from ' - '/tt-rss path on the web server.'), + format_lazy( + _('When enabled, Tiny Tiny RSS will be available from /tt-rss path on the web server. It can be accessed by ' + 'any user with a {box_name} login.'), + box_name=_(cfg.box_name)) ] service = None