i18n: don't use backslash-newline for wrapping long lines in _(), fixes #872

This commit is contained in:
Johannes Keyser 2017-06-24 23:49:54 +02:00 committed by James Valleroy
parent bd3390089b
commit e8f0be1010
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
4 changed files with 20 additions and 19 deletions

View File

@ -34,8 +34,8 @@ class DateTimeForm(ServiceForm):
"""Date/time configuration form.""" """Date/time configuration form."""
time_zone = forms.ChoiceField( time_zone = forms.ChoiceField(
label=_('Time Zone'), label=_('Time Zone'),
help_text=_('Set your time zone to get accurate timestamps. \ help_text=_('Set your time zone to get accurate timestamps. '
This will set the system-wide time zone.')) 'This will set the system-wide time zone.'))
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
"""Initialize the date/time form.""" """Initialize the date/time form."""

View File

@ -32,24 +32,24 @@ class MinetestForm(ServiceForm):
required=True, required=True,
min_value=1, min_value=1,
max_value=100, max_value=100,
help_text=_('You can change the maximum number of players playing \ help_text=_('You can change the maximum number of players playing '
minetest at a single instance of time')) 'minetest at a single instance of time.'))
creative_mode = forms.BooleanField( creative_mode = forms.BooleanField(
label=_('Enable creative mode'), label=_('Enable creative mode'),
required=False, required=False,
help_text=_('Creative mode changes the rules of the game to make it \ help_text=_('Creative mode changes the rules of the game to make it '
more suitable for creative gameplay, rather than \ 'more suitable for creative gameplay, rather than '
challenging "survival" gameplay.')) 'challenging "survival" gameplay.'))
enable_pvp = forms.BooleanField( enable_pvp = forms.BooleanField(
label=_('Enable PVP'), label=_('Enable PVP'),
required=False, required=False,
help_text=_('Enabling Player Vs Player will allow players to damage \ help_text=_('Enabling Player Vs Player will allow players to damage '
other players')) 'other players.'))
enable_damage = forms.BooleanField( enable_damage = forms.BooleanField(
label=_('Enable damage'), label=_('Enable damage'),
required=False, required=False,
help_text=_('When disabled, players cannot die or receive damage of \ help_text=_('When disabled, players cannot die or receive damage of '
any kind')) 'any kind.'))

View File

@ -43,8 +43,9 @@ class ConnectionForm(forms.Form):
'to.')) 'to.'))
zone = forms.ChoiceField( zone = forms.ChoiceField(
label=_('Firewall Zone'), label=_('Firewall Zone'),
help_text=_('The firewall zone will control which services are \ help_text=_('The firewall zone will control which services are '
available over this interfaces. Select Internal only for trusted networks.'), 'available over this interfaces. Select Internal only '
'for trusted networks.'),
choices=[('external', _('External')), choices=[('external', _('External')),
('internal', _('Internal'))]) ('internal', _('Internal'))])
ipv4_method = forms.ChoiceField( ipv4_method = forms.ChoiceField(

View File

@ -29,9 +29,9 @@ class TransmissionForm(ServiceForm): # pylint: disable=W0232
"""Transmission configuration form""" """Transmission configuration form"""
download_dir = forms.CharField( download_dir = forms.CharField(
label=_('Download directory'), label=_('Download directory'),
help_text=_('Directory where downloads are saved. If you change the \ help_text=_('Directory where downloads are saved. If you change the '
default directory, ensure that the new directory exists and is writable by \ 'default directory, ensure that the new directory exists '
"debian-transmission" user.')) 'and is writable by "debian-transmission" user.'))
rpc_username = forms.CharField( rpc_username = forms.CharField(
label=_('Username'), label=_('Username'),
@ -39,6 +39,6 @@ default directory, ensure that the new directory exists and is writable by \
rpc_password = forms.CharField( rpc_password = forms.CharField(
label=_('Password'), label=_('Password'),
help_text=_('Password to login to the web interface. Current \ help_text=_('Password to login to the web interface. Current '
password is shown in a hashed format. To set a new password, enter the \ 'password is shown in a hashed format. To set a new '
password in plain text.')) 'password, enter the password in plain text.'))