[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:
committed by
Alexandre Kühn
parent
bc325631b3
commit
57d33e78a8
@@ -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,
|
||||
}),
|
||||
|
||||
+21614
-21587
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user