Friday, May 24, 2024
4 changes
2 changes
Enhancements to existing features
Project sharing tests were updated to stay aligned with related changes in the community edition. This helps ensure sales timesheet features continue to be validated correctly after the shared wizard behavior changed.
Original PR description
This commit adapts the using of `project.share.wizard` wizard due to the changes made in the related PR in community. Community PR: odoo/odoo#165065
This update makes translated messages more reliable by naming placeholders in text that contains multiple dynamic values. It helps translators reorder words naturally for different languages, reducing awkward or incorrect translations across affected Odoo Enterprise modules.
Original PR description
## The problem Translating text in a language sometimes involves reordering words. Positional arguments are always inserted in the same order, which order matches English syntax, but this isn't…
2 changes
Enhancements to existing features
This update adjusts the color of placeholder text in input fields to make it appear lighter and more distinct from regular text. Previously, placeholder text was too similar in color to actual user-entered text, which could cause confusion. The change improves the user experience by making it clearer which text is a placeholder versus actual content.
Original PR description
This PR aims to decrease a bit the contrast of placeholder textin order to avoid confusion with regular text. Prior to this PR, placeholder texts were using a gray value from the grayscale, which was very similar to the `$body-color` in some context. To fix that issue, the color of the placeholder has been reduced to make it lighter, even though it doesn't meet `3.5:1` contrast ratio. task-3686510 - requires https://github.com/odoo/odoo/pull/164510 Forward-Port-Of: odoo/enterprise#63111 Forward-Port-Of: odoo/enterprise#62029
## The problem
Translating text in a language sometimes involves reordering words. Positional arguments are always inserted in the same order, which order matches English syntax, but this isn't necessarily right for every syntax of every language in the world.
Here's an eloquent example of the problem, taken from the GNU gettext documentation:
```c
printf(gettext("String '%s' has %d characters\n"), s, strlen(s));
```
which one could translate in German as follows:
```c
"%d Zeichen lang ist die Zeichenkette `%s'"
```
Even without knowing any of German, you could notice that the positions of `%d` and `%s` have been swapped; yet printf would still insert its arguments in the same order.
That's the reason why, whenever there is more than one “format specifier” (`%s`), you should always use keyworded arguments so that the translators can freely reorder the words without any problems.
## The fix
This pull request fixes the problem by naming providing a name to the placeholders of every call to gettext with more than two placeholders.
Part of task-3869533
Community: https://github.com/odoo/odoo/pull/166014This update improves how Odoo communicates with VoIP service providers by including the Odoo version number in the technical headers of VoIP calls. This helps providers better support and troubleshoot issues with different Odoo versions.
Original PR description
Include the version of Odoo in the UserAgent header of SIP requests so that the information is available to the provider. Task-3940569 Forward-Port-Of: odoo/enterprise#62970 Forward-Port-Of: odoo/enterprise#62879