[FIX] mail: emoji data for search and display in other languages

Before this commit:

Emoji data are all in English. Unable to use in other languages.

After this commit:

Emoji names and keywords are translatable for search and display purposes.
Emoji category names are translateable for display.

Task-3043336

closes odoo/odoo#107941

X-original-commit: ee5e0a201fb1980c1745692d366fd8539815773e
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Rahul Prajapati
2022-12-14 17:18:00 +01:00
committed by Alexandre Kühn
parent bc325631b3
commit 57d33e78a8
4 changed files with 21617 additions and 21588 deletions
@@ -4,7 +4,7 @@
<t t-name="mail.EmojiGridRowView" owl="1">
<div class="o_EmojiGridRowView">
<div t-if="hasSection" class="o_EmojiGridSectionView d-flex justify-content-center align-items-end mx-2 text-truncate">
<span t-out="category.name"/>
<span t-out="category.displayName"/>
</div>
<t t-else="">
<EmojiView t-foreach="items" t-as="item" t-key="item" className="'o_EmojiGridRowView_item'" record="item"/>
@@ -8,6 +8,7 @@ Model({
allEmojiInCategoryOfCurrent: many("EmojiInCategory", { inverse: "category" }),
allEmojiPickerViewCategory: many("EmojiPickerView.Category", { inverse: "category" }),
allEmojis: many("Emoji", { inverse: "emojiCategories" }),
displayName: attr(),
emojiRegistry: one("EmojiRegistry", {
inverse: "allCategories",
required: true,
@@ -22,6 +22,7 @@ Model({
this.update({
dataCategories: insert({
name: category.name,
displayName: category.displayName,
title: category.title,
sortId: category.sortId,
}),
File diff suppressed because it is too large Load Diff