Skip to content

Commit

Permalink
website-ttol: Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
danpla committed Jul 20, 2023
1 parent 5ab80fd commit a4aa8b1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions website-tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def compile_po(out_dir):

if missing_pos:
print(
'The following PO files don''t exists; run update_po to '
'The following PO files don''t exist; run update_po to '
'generate them: {}'.format(', '.join(missing_pos)))


Expand Down Expand Up @@ -180,7 +180,7 @@ def collect_langs(mo_dir):

if untranslated_langs:
print(
'The following languages are skipped since their '
'The following languages were skipped since their '
'{} msgid is not translated: {}'.format(
GETTEXT_LANGUAGE_NAME_KEY,
', '.join(untranslated_langs)))
Expand Down Expand Up @@ -223,7 +223,7 @@ def get_localizable_resource_url(root_url, page_lang, suburl):
if os.path.exists(url2pathname(url)):
return suburl

print('"{}" does not exists; remapped to "en"'.format(url))
print('"{}" does not exist; remapped to "en"'.format(url))

return root_url + '/en/' + suburl

Expand Down Expand Up @@ -545,8 +545,7 @@ def main():

generate_parser = subparsers.add_parser(
'generate', help='Generate the website')
generate_parser.set_defaults(
func=lambda args: generate_website())
generate_parser.set_defaults(func=lambda args: generate_website())

args = parser.parse_args()

Expand Down

0 comments on commit a4aa8b1

Please sign in to comment.