openlibhums / openlibhums/janeway

Submission help text not translatable to German as marked up

Open Beginner friendly
#5,124 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Priority high Size S
Dominant language
Python
Stars
238
Forks
97
Avg merge
9d 1h
Merged PRs (30d)
8

Description

Problem

The way we construct the help text on the submission start page, it does not play nicely with German word order:

https://github.com/openlibhums/janeway/blob/4bde358b354a2fbdaac0ab4b6a511e4330a79c39/src/templates/admin/submission/start.html#L29

The German translation for the first bit includes {Title} which is not the right syntax for a Django template:

https://github.com/openlibhums/janeway/blob/4bde358b354a2fbdaac0ab4b6a511e4330a79c39/src/core/locales/de/LC_MESSAGES/django.po#L2482-L2488

Proposed solution

Rewrite this markup so that there is one translatable string, using blocktrans, and containing a one-word variable for the article title.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/templates/admin/submission/start.html at the linked markup and compare it with the German entry in src/core/locales/de/LC_MESSAGES/django.po. Check Django's blocktrans syntax and the existing translation format. Done means the submission start help text is one translatable string with a one-word article-title variable that supports German word order.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
localization
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.