help, networks: Clarify i18n different contexts for "Manual"

The word "Manual" means 'user guide' in case of help and 'not automatically' in
case of networking app.

After change, POT file is produced as follows:

msgctxt "User guide"
msgid "Manual"
msgstr ""

msgctxt "Not automatically"
msgid "Manual"
msgstr ""

Closes: #1922.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
Sunil Mohan Adapa authored and Joseph Nuthalapati committed 2020-08-22 10:52:32 +05:30
1 parent eb567e0f41
commit 699266fdc1
4 files changed
+11 -6

No files matched your search

+3 -1
View File
@@ -5,6 +5,7 @@ FreedomBox app for help pages.
import os
from django.utils.translation import pgettext_lazy
from django.utils.translation import ugettext_lazy as _
from plinth import app as app_module
@@ -32,7 +33,8 @@ class HelpApp(app_module.App):
menu_item = menu.Menu('menu-help', _('Documentation'), None, 'fa-book',
'help:index', parent_url_name='index')
self.add(menu_item)
menu_item = menu.Menu('menu-help-manual', _('Manual'), None,
menu_item = menu.Menu('menu-help-manual',
pgettext_lazy('User guide', 'Manual'), None,
'fa-info-circle', 'help:manual',
parent_url_name='help:index', order=10)
self.add(menu_item)
+5 -2
View File
@@ -2,6 +2,7 @@
from django import forms
from django.core import validators
from django.utils.translation import pgettext_lazy
from django.utils.translation import ugettext_lazy as _
from plinth import cfg, network
@@ -44,7 +45,8 @@ class ConnectionForm(forms.Form):
'clients on this network and share its Internet connection.'),
box_name=_(cfg.box_name)),
choices=[('auto', _('Automatic (DHCP)')), ('shared', _('Shared')),
('manual', _('Manual')), ('disabled', _('Disabled'))])
('manual', pgettext_lazy('Not automatically', 'Manual')),
('disabled', _('Disabled'))])
ipv4_address = forms.CharField(
label=_('Address'), validators=[validators.validate_ipv4_address],
required=False)
@@ -74,7 +76,8 @@ class ConnectionForm(forms.Form):
'configuration from this network making it a client.'),
box_name=_(cfg.box_name)),
choices=[('auto', _('Automatic')), ('dhcp', _('Automatic, DHCP only')),
('manual', _('Manual')), ('ignore', _('Ignore'))])
('manual', pgettext_lazy('Not automatically', 'Manual')),
('ignore', _('Ignore'))])
ipv6_address = forms.CharField(
label=_('Address'), validators=[validators.validate_ipv6_address],
required=False)