From 3c4771ed00eded2fbc8126477acdcdb74dba640c Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sun, 30 Apr 2023 19:27:31 -0400 Subject: [PATCH] tor: Rename Hidden service to Onion service Signed-off-by: James Valleroy Reviewed-by: Sunil Mohan Adapa --- plinth/modules/tor/__init__.py | 6 +++--- plinth/modules/tor/forms.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plinth/modules/tor/__init__.py b/plinth/modules/tor/__init__.py index bf97f028d..226db8854 100644 --- a/plinth/modules/tor/__init__.py +++ b/plinth/modules/tor/__init__.py @@ -94,7 +94,7 @@ class TorApp(app_module.App): def post_init(self): """Perform post initialization operations.""" - # Register hidden service name with Name Services module. + # Register onion service name with Name Services module. if (not self.needs_setup() and self.is_enabled() and app_is_running(self)): status = utils.get_status(initialized=False) @@ -162,7 +162,7 @@ class TorApp(app_module.App): if status['hs_enabled']: hs_hostname = status['hs_hostname'].split('.onion')[0] results.append([ - _('Hidden service is version 3'), + _('Onion service is version 3'), 'passed' if len(hs_hostname) == 56 else 'failed' ]) @@ -203,7 +203,7 @@ class TorApp(app_module.App): def update_hidden_service_domain(status=None): - """Update HS domain with Name Services module.""" + """Update onion service domain with Name Services module.""" if not status: status = utils.get_status() diff --git a/plinth/modules/tor/forms.py b/plinth/modules/tor/forms.py index 4267869c9..cbf1551f2 100644 --- a/plinth/modules/tor/forms.py +++ b/plinth/modules/tor/forms.py @@ -101,9 +101,9 @@ class TorForm(forms.Form): # pylint: disable=W0232 'to censor this node. This helps others circumvent censorship.'), box_name=_(cfg.box_name))) hs_enabled = forms.BooleanField( - label=_('Enable Tor Hidden Service'), required=False, + label=_('Enable Tor Onion Service'), required=False, help_text=format_lazy( - _('A hidden service will allow {box_name} to provide selected ' + _('An onion service will allow {box_name} to provide selected ' 'services (such as wiki or chat) without revealing its ' 'location. Do not use this for strong anonymity yet.'), box_name=_(cfg.box_name)))