Skip to content

Strings in docs/macros.py aren't translated #757

@freakboy3742

Description

@freakboy3742

Describe the bug

Some content on the website (e.g., parts of the about page, event blog posts) is generated by macros. The content in these macros is hard-coded English,

How to reproduce the bug

  1. Go to a translated version of the team page or an event page
  2. See English content.

Minimum example code

Screenshots

No response

Environment details

  • Operating system and version: All - visible in web browser

Logs


Additional context

To fix this, the English strings will need to be extracted into content that will be picked up as translated content, and the used as translated content when the site is built.

The process of translating navigation header titles may be helpful as a point of comparison - titles.md is written out as part of the generate_titles() call in build_pot_translations from beeware-docs-tools. We may need to add a step that looks for a macros file, parses it for a particular type of "translatable" content, writes that content out into a translatable form, then reads the pofile for the relevant translation to generate the translated content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA crash or error in behavior.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions