Skip to content
Snippets Groups Projects
Commit 30a6f57b authored by qsm-odoo's avatar qsm-odoo
Browse files

[FIX] web_editor: stop auto-capitalize of editor UI labels (translation)

Commit [1] added a rule whose intention was to unify the way our editor
labels look: capitalized. However, this is not working as intended for
translations as some languages have different rules for capitalization.

In the future, we will rely solely on the labels being written with the
intended capitalization in the first place (which is currently not the
case for dozens of English labels). As a fix, we keep the auto CSS rule
for English languages only. Hopefully, the amount of translations made
by translators being better than their auto-capitalized versions is
greater than non-capitalized English labels translated by mistake
without the auto-capitalization.

Note: this is the way python fields work too, they are not displayed
auto-capitalized in the webclient, although we want them to be.

[1]: https://github.com/odoo/odoo/commit/5db73c12d3ed14239dc81f60eec6c21d0f65af26



closes odoo/odoo#153248

Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
parent dcae15dc
No related branches found
No related tags found
No related merge requests found
......@@ -766,6 +766,13 @@ body.editor_enable.editor_has_snippets {
we-title {
display: block;
}
// TODO in master, remove the text-transform rule entirely and rely on
// developers writing their label with the intended "design". The
// "where" change here was added as a way to minimize the impact of this
// fix in stable. That CSS style was breaking translations.
:where(html[lang^="en-"]) & we-title {
text-transform: capitalize;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment