Skip to content

Fix #31471 translate CostPrice and PriceBaseType on import field list#38922

Open
pixodeo wants to merge 1 commit into
Dolibarr:18.0from
Dolicraft:fix/31471-import-load-products-margins-lang
Open

Fix #31471 translate CostPrice and PriceBaseType on import field list#38922
pixodeo wants to merge 1 commit into
Dolibarr:18.0from
Dolicraft:fix/31471-import-load-products-margins-lang

Conversation

@pixodeo

@pixodeo pixodeo commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Fixes #31471.

htdocs/imports/import.php only loaded exports/compta/errors so labels coming from modProduct and modService import_fields_array that resolve to keys in products.lang (PriceBaseType) and margins.lang (CostPrice) stayed in English on a French install. Add 'products' and 'margins' to the loadLangs call so the import field picker shows the translated label that the rest of the product card already uses.

…eld list

import.php loadLangs only loaded exports/compta/errors, so labels coming from
modProduct / modService import_fields_array that resolve to keys in
products.lang (PriceBaseType) and margins.lang (CostPrice) stayed in English
on a French install. Add 'products' and 'margins' to the loaded set so the
import field picker shows the translated label everywhere else the user sees
the product card.

Signed-off-by: Dolicraft <contact@dolicraft.com>
@the-dolibear-bot the-dolibear-bot Bot added the Issue for v18 maintenance Team PR is in a maintenance branch with several approvers. Waiting approval of all of them. label Jun 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Issue for v18 maintenance Team PR is in a maintenance branch with several approvers. Waiting approval of all of them.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant