MDL-70316 core: Update the emoji categories in the emoji picker

This commit is contained in:
Mihail Geshoski 2021-01-06 12:04:34 +08:00
parent adb66d4b03
commit db758db533
3 changed files with 15 additions and 5 deletions

View file

@ -748,8 +748,9 @@ $string['emojicategoryanimalsnature'] = 'Animals & nature';
$string['emojicategoryflags'] = 'Flags'; $string['emojicategoryflags'] = 'Flags';
$string['emojicategoryfooddrink'] = 'Food & drink'; $string['emojicategoryfooddrink'] = 'Food & drink';
$string['emojicategoryobjects'] = 'Objects'; $string['emojicategoryobjects'] = 'Objects';
$string['emojicategorypeoplebody'] = 'People & body';
$string['emojicategoryrecent'] = 'Recent'; $string['emojicategoryrecent'] = 'Recent';
$string['emojicategorysmileyspeople'] = 'Smileys & people'; $string['emojicategorysmileysemotion'] = 'Smileys & emotion';
$string['emojicategorysymbols'] = 'Symbols'; $string['emojicategorysymbols'] = 'Symbols';
$string['emojicategorytravelplaces'] = 'Travel & places'; $string['emojicategorytravelplaces'] = 'Travel & places';
$string['emptydragdropregion'] = 'empty region'; $string['emptydragdropregion'] = 'empty region';

View file

@ -226,8 +226,9 @@ class icon_system_fontawesome extends icon_system_font {
'core:i/emojicategoryflags' => 'fa-flag', 'core:i/emojicategoryflags' => 'fa-flag',
'core:i/emojicategoryfooddrink' => 'fa-cutlery', 'core:i/emojicategoryfooddrink' => 'fa-cutlery',
'core:i/emojicategoryobjects' => 'fa-lightbulb-o', 'core:i/emojicategoryobjects' => 'fa-lightbulb-o',
'core:i/emojicategorypeoplebody' => 'fa-male',
'core:i/emojicategoryrecent' => 'fa-clock-o', 'core:i/emojicategoryrecent' => 'fa-clock-o',
'core:i/emojicategorysmileyspeople' => 'fa-smile-o', 'core:i/emojicategorysmileysemotion' => 'fa-smile-o',
'core:i/emojicategorysymbols' => 'fa-heart', 'core:i/emojicategorysymbols' => 'fa-heart',
'core:i/emojicategorytravelplaces' => 'fa-plane', 'core:i/emojicategorytravelplaces' => 'fa-plane',
'core:i/edit' => 'fa-pencil', 'core:i/edit' => 'fa-pencil',

View file

@ -49,10 +49,18 @@
<button <button
class="btn btn-outline-secondary icon-no-margin category-button" class="btn btn-outline-secondary icon-no-margin category-button"
data-action="show-category" data-action="show-category"
data-category="Smileys & People" data-category="Smileys & Emotion"
title="{{#str}} emojicategorysmileyspeople, core {{/str}}" title="{{#str}} emojicategorysmileysemotion, core {{/str}}"
> >
{{#pix}} i/emojicategorysmileyspeople, core {{/pix}} {{#pix}} i/emojicategorysmileysemotion, core {{/pix}}
</button>
<button
class="btn btn-outline-secondary icon-no-margin category-button"
data-action="show-category"
data-category="People & Body"
title="{{#str}} emojicategorypeoplebody, core {{/str}}"
>
{{#pix}} i/emojicategorypeoplebody, core {{/pix}}
</button> </button>
<button <button
class="btn btn-outline-secondary icon-no-margin category-button" class="btn btn-outline-secondary icon-no-margin category-button"