Skip to content

[16.0][I18N] shopfloor_mobile_*: add fr translations - #1281

Open
nicolas-delbovier-acsone wants to merge 6 commits into
OCA:16.0from
acsone:16.0-i18n-shopfloor_mobile-add-fr-translations
Open

nicolas-delbovier-acsone wants to merge 6 commits into
OCA:16.0from
acsone:16.0-i18n-shopfloor_mobile-add-fr-translations

Conversation

@nicolas-delbovier-acsone

@nicolas-delbovier-acsone nicolas-delbovier-acsone commented Sep 18, 2026 •

Copy link
Copy Markdown

Note that I did not follow the convention for the translation keys for new translations.

IMO, Natural Language translation keys are better because they provide a better fallback in case of error (you do not see "btn.confirm" in case the registery got a problem/your venv is not up to date etc.). This is closer to what we do in odoo with _("Some String").

This is also easier to dev as you see directly inside one file what the user sees (no need to open i18n/en.json to see what is displayed).

We can follow the convention to always use English in the .js files and only provide translation files for other languages (thus getting rid of all unnecessary en.json files).


=> I've been convinced to use labels instead of raw English strings because this makes the translations more resilient to code changes.

cc @jbaudoux

@OCA-git-bot OCA-git-bot added series:16.0 mod:shopfloor_reception_mobile Module shopfloor_reception_mobile mod:shopfloor_mobile_base Module shopfloor_mobile_base mod:shopfloor_reception_packaging_dimension_mobile Module shopfloor_reception_packaging_dimension_mobile mod:shopfloor_mobile Module shopfloor_mobile mod:shopfloor_reception_product_barcode_mobile Module shopfloor_reception_product_barcode_mobile mod:shopfloor_reception_helpdesk_mobile Module shopfloor_reception_helpdesk_mobile labels Sep 18, 2026
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @TDu, @rousseldenis, @simahawk, @JuMiSanAr,
some modules you are maintaining are being modified, check this out!

@nicolas-delbovier-acsone
nicolas-delbovier-acsone force-pushed the 16.0-i18n-shopfloor_mobile-add-fr-translations branch from 6c30737 to ee5573d Compare September 18, 2026 12:49
@nicolas-delbovier-acsone

Copy link
Copy Markdown
Author

@sebalix Jacques told me to ping you on this one. Any thoughts about the way I suggest to translate?

@nicolas-delbovier-acsone
nicolas-delbovier-acsone marked this pull request as draft September 21, 2026 09:59
@nicolas-delbovier-acsone

Copy link
Copy Markdown
Author

For the record, I've been convinced by @simahawk to keep using keys for translations instead of plain English strings. I'll change this PR to use this approach.

@nicolas-delbovier-acsone
nicolas-delbovier-acsone force-pushed the 16.0-i18n-shopfloor_mobile-add-fr-translations branch 2 times, most recently from ef7c8c9 to 3081505 Compare September 21, 2026 14:27
@nicolas-delbovier-acsone
nicolas-delbovier-acsone marked this pull request as ready for review September 22, 2026 08:21
Comment thread shopfloor_mobile/static/wms/src/components/detail/detail_lot.esm.js Outdated
Comment thread shopfloor_mobile/static/wms/src/i18n/en.json
Comment thread shopfloor_mobile/static/wms/src/i18n/fr.json
@nicolas-delbovier-acsone
nicolas-delbovier-acsone force-pushed the 16.0-i18n-shopfloor_mobile-add-fr-translations branch from 3081505 to d451e19 Compare September 23, 2026 09:01

@lmignon lmignon left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What a big job.... unfortunately one translation is missing..

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved mod:shopfloor_mobile_base Module shopfloor_mobile_base mod:shopfloor_mobile Module shopfloor_mobile mod:shopfloor_reception_helpdesk_mobile Module shopfloor_reception_helpdesk_mobile mod:shopfloor_reception_mobile Module shopfloor_reception_mobile mod:shopfloor_reception_packaging_dimension_mobile Module shopfloor_reception_packaging_dimension_mobile mod:shopfloor_reception_product_barcode_mobile Module shopfloor_reception_product_barcode_mobile ready to merge series:16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants