Skip to content

Proposal to add translation support for non-docs pages of djangoproject.com #1648

@jacklinke

Description

@jacklinke

Proposal to add translation support for non-docs pages

While Django’s documentation is translated into several languages, the main entry-point to the framework — the djangoproject.com website itself — remains mostly untranslated. Ensuring djangoproject.com is accessible to non-English speakers is important for demonstrating Django’s inclusivity and supporting a broad user base.

  • Please let me know if this proposal misses any existing discussions or considerations.
  • If this should be addressed to the Internals - Internationalization forum, please let me know, but the technical portion of this proposal (adding translation templatetags) at least seemed more appropriate to post here.

This issue did not seem to be identified as a problem in the recent User research report (1496)

Discussion

It feels a bid odd to see that the docs are translated into a variety of languages, but the greater djangoproject.com site is only available to English speakers.

Django strongly promotes internationalization, with clear documentation on using trans and blocktrans tags, and even shows an example of using {% blocktrans %} and {% trans %} templatetags on the Start page, but the page itself is only available in English. (ref)

One issue that we will run into is the content of djangoproject.com is a mix of text in templates and text that comes from models. While the models-based text could be a problem for another day, there are concrete steps we could take today to work toward translation of the template-based text.

Questions

  • Was it a conscious decision not to translate the (non-docs) pages of djangoproject.com? If so, does the reason behind that decision still stand?
  • Would it be beneficial to start work on this?
  • If we move forward with this, would we prefer using a service like Transifex for translating non-documentation pages, similar to how documentation is currently handled, or would it be more appropriate to stick to the existing .po files?

Proposed Work

See updated checklist in the comment below

Templates with at least some trans or blocktrans tags

Approximate percentage of tags present on each template in the repo compared to potential trans or blocktrans opportunities.

Template Completion
dashboard/templates/dashboard/index.html 100%
djangoproject/templates/members/corporate_members_join_thanks.html 100%
djangoproject/templates/members/corporatemember_form.html 100%
djangoproject/templates/members/individualmember_list.html 100%
djangoproject/templates/registration/password_reset_email.html 100%
docs/templates/docs/doc.html 100%
docs/templates/docs/genindex.html 100%
docs/templates/docs/py-modindex.html 100%
docs/templates/docs/search_results.html 100%
djangoproject/templates/includes/toggle_theme.html 75%
docs/templates/base_docs.html 75%
docs/templates/docs/search_form.html 50%
dashboard/templates/base_dashboard.html 33%
djangoproject/templates/members/corporatemember_list.html 22%

Templates with no trans or blocktrans tags

Note: Only those templates with text that can be translated but have no trans or blocktrans tags are included in the list below. All remaining templates whcih only load other templates or only load text content from models have been excluded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions