prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  localization: various problems
  # Bug
  
  ## Description
  
  This issue is to collect the various localization problems found before the 0.4.4 release and after the **string freeze**
  
  They should be fixed in a pull request right after the 0.4.4 release.
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `securedrop/source_app/forms.py`
  Content:
  ```
  1 from flask_babel import gettext
  2 from flask_wtf import FlaskForm
  3 from wtforms import PasswordField
  4 from wtforms.validators import InputRequired, Regexp, Length
  5 
  6 from db import Source
  7 
  8 
  9 class LoginForm(FlaskForm):
  10     codename = PasswordField('codename', validators=[
  11         InputRequired(message=gettext('This field is required.')),
  12         Length(1, Source.MAX_CODENAME_LEN,
  13                message=gettext('Field must be between 1 and '
  14                                '{max_codename_len} characters long. '.format(
  15                                    max_codename_len=Source.MAX_CODENAME_LEN))),
  16         # Make sure to allow dashes since some words in the wordlist have them
  17         Regexp(r'[\sA-Za-z0-9-]+$', message=gettext('Invalid input.'))
  18     ])
  19
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/securedrop/source_app/forms.py b/securedrop/source_app/forms.py
  --- a/securedrop/source_app/forms.py
  +++ b/securedrop/source_app/forms.py
  @@ -11,7 +11,7 @@
           InputRequired(message=gettext('This field is required.')),
           Length(1, Source.MAX_CODENAME_LEN,
                  message=gettext('Field must be between 1 and '
  -                               '{max_codename_len} characters long. '.format(
  +                               '{max_codename_len} characters long.'.format(
                                      max_codename_len=Source.MAX_CODENAME_LEN))),
           # Make sure to allow dashes since some words in the wordlist have them
           Regexp(r'[\sA-Za-z0-9-]+$', message=gettext('Invalid input.'))
  
verification_info: {"golden_diff": "diff --git a/securedrop/source_app/forms.py b/securedrop/source_app/forms.py\n--- a/securedrop/source_app/forms.py\n+++ b/securedrop/source_app/forms.py\n@@ -11,7 +11,7 @@\n         InputRequired(message=gettext('This field is required.')),\n         Length(1, Source.MAX_CODENAME_LEN,\n                message=gettext('Field must be between 1 and '\n-                               '{max_codename_len} characters long. '.format(\n+                               '{max_codename_len} characters long.'.format(\n                                    max_codename_len=Source.MAX_CODENAME_LEN))),\n         # Make sure to allow dashes since some words in the wordlist have them\n         Regexp(r'[\\sA-Za-z0-9-]+$', message=gettext('Invalid input.'))\n", "issue": "localization: various problems\n# Bug\r\n\r\n## Description\r\n\r\nThis issue is to collect the various localization problems found before the 0.4.4 release and after the **string freeze**\r\n\r\nThey should be fixed in a pull request right after the 0.4.4 release.\n", "before_files": [{"content": "from flask_babel import gettext\nfrom flask_wtf import FlaskForm\nfrom wtforms import PasswordField\nfrom wtforms.validators import InputRequired, Regexp, Length\n\nfrom db import Source\n\n\nclass LoginForm(FlaskForm):\n    codename = PasswordField('codename', validators=[\n        InputRequired(message=gettext('This field is required.')),\n        Length(1, Source.MAX_CODENAME_LEN,\n               message=gettext('Field must be between 1 and '\n                               '{max_codename_len} characters long. '.format(\n                                   max_codename_len=Source.MAX_CODENAME_LEN))),\n        # Make sure to allow dashes since some words in the wordlist have them\n        Regexp(r'[\\sA-Za-z0-9-]+$', message=gettext('Invalid input.'))\n    ])\n", "path": "securedrop/source_app/forms.py"}], "after_files": [{"content": "from flask_babel import gettext\nfrom flask_wtf import FlaskForm\nfrom wtforms import PasswordField\nfrom wtforms.validators import InputRequired, Regexp, Length\n\nfrom db import Source\n\n\nclass LoginForm(FlaskForm):\n    codename = PasswordField('codename', validators=[\n        InputRequired(message=gettext('This field is required.')),\n        Length(1, Source.MAX_CODENAME_LEN,\n               message=gettext('Field must be between 1 and '\n                               '{max_codename_len} characters long.'.format(\n                                   max_codename_len=Source.MAX_CODENAME_LEN))),\n        # Make sure to allow dashes since some words in the wordlist have them\n        Regexp(r'[\\sA-Za-z0-9-]+$', message=gettext('Invalid input.'))\n    ])\n", "path": "securedrop/source_app/forms.py"}]}