@@ -93,6 +93,8 @@ local function destroy()
9393 dt .destroy_event (" rg5" , " shortcut" )
9494end
9595
96+ local rate_group = _ (" rate group" )
97+
9698dt .register_event (" rg_reject" , " shortcut" ,
9799 function (event , shortcut )
98100 apply_rating (- 1 )
@@ -101,32 +103,32 @@ end, _("reject group"))
101103dt .register_event (" rg0" , " shortcut" ,
102104 function (event , shortcut )
103105 apply_rating (0 )
104- end , _ ( " rate group 0 " ) )
106+ end , rate group .. " 0 " )
105107
106108dt .register_event (" rg1" , " shortcut" ,
107109 function (event , shortcut )
108110 apply_rating (1 )
109- end , _ ( " rate group 1 " ) )
111+ end , rate group .. " 1 " )
110112
111113dt .register_event (" rg2" , " shortcut" ,
112114 function (event , shortcut )
113115 apply_rating (2 )
114- end , _ ( " rate group 2 " ) )
116+ end , rate group .. " 2 " )
115117
116118dt .register_event (" rg3" , " shortcut" ,
117119 function (event , shortcut )
118120 apply_rating (3 )
119- end , _ ( " rate group 3 " ) )
121+ end , rate group .. " 3 " )
120122
121123dt .register_event (" rg4" , " shortcut" ,
122124 function (event , shortcut )
123125 apply_rating (4 )
124- end , _ ( " rate group 4 " ) )
126+ end , rate group .. " 4 " )
125127
126128dt .register_event (" rg5" , " shortcut" ,
127129 function (event , shortcut )
128130 apply_rating (5 )
129- end , _ ( " rate group 5 " ) )
131+ end , rate group .. " 5 " )
130132
131133script_data .destroy = destroy
132134
0 commit comments