Skip to content

T3490 together confirmation de translations - #408

Merged
ecino merged 5 commits into
18.0from
T3490-together-confirmation-de-translations
Oct 5, 2026
Merged

ecino merged 5 commits into
18.0from
T3490-together-confirmation-de-translations

Conversation

@danpa32

@danpa32 danpa32 commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

T3490 — Fix German translations on TOGETHER confirmation page

Original report

Quality test "TOGETHER: Create a project", step 6 (submit the project form): the confirmation page was wrong in German. French was fine. While testing the rest of the scenario (project validation, communications), two more problems showed up.

Root causes

Confirmation page (step 6). The heading of the step3_form end message was built from separately translated fragments: Thank you for + <span t-if>launching</span>/<span t-else>joining</span> + a project !. German word order cannot fit fragments, so the page showed "Danke für ein Projekt startest! ein Projekt!". The e-mail sentence also said something else than the English ("you will be informed about the next steps").

"Expected singleton" when validating a second project. partner.communication.job.create() merges a new communication into a pending one of the same partner and rule. When the owner still had a pending "Project published" email for a first project, validating a second project merged both into one job, and the template (written for one project) failed: Expected singleton: crowdfunding.project(201, 207). Same for the creation and joined confirmations.

Broken project emails. "Project published" and "Project joined" still held v14 Jinja (% set ..., ${...}) in German, French and Italian. "Project creation confirmation" had its French subject with the forms of address swapped (tu/vous) and a typo.

Stale translations. The .po files still held the v14 Jinja texts of the bodies and subjects of the five TOGETHER email templates (including the two donation templates repaired in T3491). Loading translations with overwrite (or from the interface) replaced the repaired templates with them again.

Changes

  • 251fbb2 — Drop the old translations of the TOGETHER email templates: removes the model:mail.template,body_html/subject entries of the five templates from de/fr_CH/it (maintained in the database by migrations).
  • de7265d — Fix the German texts of the project confirmation page: one full sentence per case (t-if/t-else), new German texts, old fragments removed from the translations.
  • d26a307 — One email per project and repaired TOGETHER project emails: forbid_merging on the three project rules (XML + migration), QWeb rewrite of "Project published" and "Project joined" in the four languages (wording kept, link to the project page), French subject and typo of "Project creation confirmation".

German confirmation texts:

English Before Now
Thank you for launching a project! Danke für ein Projekt startest! ein Projekt! Vielen Dank, dass du ein Projekt gestartet hast!
Thank you for joining a project! Danke für an einem Projekt teilnimmst! ein Projekt! Vielen Dank, dass du einem Projekt beigetreten bist!
You will receive an email with all the necessary information. Du wirst per E-Mail über die nächsten Schritte informiert. Du erhältst eine E-Mail mit allen nötigen Informationen.

How to test manually

  1. TOGETHER website in German, "Launch a project", fill the three steps, submit: the confirmation reads "Vielen Dank, dass du ein Projekt gestartet hast!" and "Du erhältst eine E-Mail mit allen nötigen Informationen." (joining an existing project: "Vielen Dank, dass du einem Projekt beigetreten bist!").
  2. Backend, Events > Crowdfunding > Projects: validate the project. Create and validate a second project with the same owner while the first "Project published" email is still pending: no error, the owner has one "Project published" communication per project.
  3. Open the owner's communications (creation confirmation, project published, project joined) in German, French and Italian: readable texts, no ${...} or % set lines, link to the project.

Locally, Mailpit (localhost:1025) must be running: otherwise the automatic confirmation email fails and makes the project form submission fail (HTTP 500).

The .po files still held the v14 Jinja texts of the bodies and subjects
of the TOGETHER donation and project email templates. Loading the
translations (overwrite, or updating them from the interface) replaced
the repaired templates with them again. These templates are maintained
in the database by migrations: remove these entries.
The confirmation heading was built from separately translated fragments
("Thank you for" + "launching"/"joining" + "a project !"): German
word order could not fit them, and the page showed "Danke für ein
Projekt startest! ein Projekt!".

Use one full sentence per case, and better German texts matching the
English ones. The old fragments are removed from the translations.
- A new project was merged into a pending email of the same owner, and
  the templates then failed with several projects (validating a second
  project raised "Expected singleton"). The project creation, project
  joined and project published emails are no longer merged.
- "Project published" and "Project joined" still had Jinja in German,
  French and Italian: rewritten in QWeb, keeping their wording.
- "Project creation confirmation": French subject with the forms of
  address swapped, and a typo in the French text.
@greptile-apps

greptile-apps Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

[Critical risk] Modifies email template system and adds database migration.

Not safe to merge until fresh installations receive the repaired project emails.

Reviews (3) · Last reviewed commit: "[T3490] Address review: fix the French s..."

Comment thread crowdfunding_compassion/migrations/18.0.1.0.5/post-migration.py
Comment thread crowdfunding_compassion/migrations/18.0.1.0.5/post-migration.py Outdated
Comment thread crowdfunding_compassion/migrations/18.0.1.0.5/post-migration.py Outdated
- "Project joined" links to the page of the person who joined: the
  donations made there are credited to them, not to the project owner.
- Only replace the languages still written in Jinja, and the French
  subject only while it has the forms of address swapped: English and
  any text already corrected by hand are kept.
Comment thread crowdfunding_compassion/migrations/18.0.1.0.5/post-migration.py Outdated
The French subject of the project creation confirmation is stored as
${...} in v14 and as {{...}} once converted: match both, so the
swapped forms of address are corrected on every upgraded database.
@ecino
ecino merged commit e36dd44 into 18.0 Oct 5, 2026
2 checks passed
@ecino
ecino deleted the T3490-together-confirmation-de-translations branch October 5, 2026 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants