Untranslated labels on customer order pages

Aperta
#64 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@aheathgr ci sta già lavorando.

Dal 10/11/2026.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
php

Direzione di ricerca

Read commerce_order_ui.module, commerce_order.module, commerce_customer.module, and config/views.view.commerce_user_orders.json to trace how the three labels are stored and rendered. Start by checking how Backdrop handles translations for existing field instance labels and View title and menu text. Done means identifying a supported way to translate or configure all three labels, including the locked field, and documenting or implementing the required change.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

On a German-language Backdrop CMS site migrated from Drupal 7, the customer order pages at /user/[UID]/orders/[order_id] display several labels in English:

  • Orders
  • Order total
  • Billing information:

I have not been able to translate these labels through the interface translation UI.

Environment
  • Backdrop CMS 1.35.2
  • German-language site
  • Migrated from Drupal 7
  • Commerce enabled
Actual behavior

The labels remain in English on an otherwise German customer order page.

Additionally, the commerce_order_total field is locked, so its label cannot be edited through the standard field management UI.

Expected behavior

All customer-facing labels should be translatable or configurable through a supported mechanism, including labels belonging to locked system fields.

Relevant findings

The customer order detail route is provided by commerce_order_ui_menu() and renders the order using the customer view mode.

The labels appear to come from different sources:

Label Apparent source
Orders Title and menu tab configuration of the commerce_user_orders View
Order total Field instance label of commerce_order_total
Billing information Field instance label of commerce_customer_billing
Order total and Billing information

Commerce calls t('Order total') when creating the order total field instance.

“Billing information” is also translated when defining the customer profile type and then used as the order field’s label.

However, these labels are subsequently stored in the field instance configuration. Backdrop’s standard field rendering uses $instance['label'] directly as #title, without calling t() again.

This appears to explain why adding an interface translation later does not change an existing English field label.

For commerce_order_total, the field lock also prevents changing the label through the standard UI.

Orders

The default commerce_user_orders View contains “Orders” in its title and menu configuration.

I have not yet established why the translation does not apply on my installation.

Questions
  • What is the intended way to translate existing Commerce field labels in Backdrop?
  • How should administrators translate the locked “Order total” field?
  • Is additional configuration required for the “Orders” View title/menu tab?
  • Could migration or field creation before translations were available explain the stored English labels?
Relevant source files
Lingua principale
PHP
Stelle
3
Fork
7
Merge medio
22m
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di backdrop-contrib/commerce

Tutte le issue di backdrop-contrib/commerce

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.