GCC Code Coverage Report
Directory: src/ Exec Total Coverage
File: src/input/pages/emotes.cpp Lines: 98 98 100.0 %
Date: 2021-03-17 Branches: 316 632 50.0 %

Line Branch Exec Source
1
/*
2
 *  The ManaPlus Client
3
 *  Copyright (C) 2007  Joshua Langley <[email protected]>
4
 *  Copyright (C) 2009  The Mana World Development Team
5
 *  Copyright (C) 2009-2010  The Mana Developers
6
 *  Copyright (C) 2011-2019  The ManaPlus Developers
7
 *  Copyright (C) 2019-2021  Andrei Karas
8
 *
9
 *  This file is part of The ManaPlus Client.
10
 *
11
 *  This program is free software; you can redistribute it and/or modify
12
 *  it under the terms of the GNU General Public License as published by
13
 *  the Free Software Foundation; either version 2 of the License, or
14
 *  any later version.
15
 *
16
 *  This program is distributed in the hope that it will be useful,
17
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
 *  GNU General Public License for more details.
20
 *
21
 *  You should have received a copy of the GNU General Public License
22
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
23
 */
24
25
#include "gui/setupactiondata.h"
26
27
#include "utils/gettext.h"
28
#include "utils/stringutils.h"
29
30
#include "debug.h"
31
32
2
SetupActionData setupActionDataEmotes[] =
33
{
34
    {
35
        // TRANSLATORS: input action name
36
        N_("Emote modifiers keys"),
37
        InputAction::NO_VALUE,
38
        ""
39
    },
40
    {
41
        // TRANSLATORS: input action name
42
        N_("Emote modifier key"),
43
        InputAction::EMOTE,
44
        "",
45
    },
46
    {
47
        // TRANSLATORS: input action name
48
        N_("Pet emote modifier key"),
49
        InputAction::PET_EMOTE,
50
        "",
51
    },
52
    {
53
        // TRANSLATORS: input action name
54
        N_("Homunculus / mercenary emote modifier key"),
55
        InputAction::HOMUN_EMOTE,
56
        "",
57
    },
58
    {
59
        // TRANSLATORS: input action name
60
        N_("Emote shortcuts"),
61
        InputAction::NO_VALUE,
62
        ""
63
    },
64
    {
65
        // TRANSLATORS: input action name
66
2
        strprintf(N_("Emote Shortcut %d"), 1),
67
        InputAction::EMOTE_1,
68
        "",
69
    },
70
    {
71
        // TRANSLATORS: input action name
72
2
        strprintf(N_("Emote Shortcut %d"), 2),
73
        InputAction::EMOTE_2,
74
        "",
75
    },
76
    {
77
        // TRANSLATORS: input action name
78
2
        strprintf(N_("Emote Shortcut %d"), 3),
79
        InputAction::EMOTE_3,
80
        "",
81
    },
82
    {
83
        // TRANSLATORS: input action name
84
2
        strprintf(N_("Emote Shortcut %d"), 4),
85
        InputAction::EMOTE_4,
86
        "",
87
    },
88
    {
89
        // TRANSLATORS: input action name
90
2
        strprintf(N_("Emote Shortcut %d"), 5),
91
        InputAction::EMOTE_5,
92
        "",
93
    },
94
    {
95
        // TRANSLATORS: input action name
96
2
        strprintf(N_("Emote Shortcut %d"), 6),
97
        InputAction::EMOTE_6,
98
        "",
99
    },
100
    {
101
        // TRANSLATORS: input action name
102
2
        strprintf(N_("Emote Shortcut %d"), 7),
103
        InputAction::EMOTE_7,
104
        "",
105
    },
106
    {
107
        // TRANSLATORS: input action name
108
2
        strprintf(N_("Emote Shortcut %d"), 8),
109
        InputAction::EMOTE_8,
110
        "",
111
    },
112
    {
113
        // TRANSLATORS: input action name
114
2
        strprintf(N_("Emote Shortcut %d"), 9),
115
        InputAction::EMOTE_9,
116
        "",
117
    },
118
    {
119
        // TRANSLATORS: input action name
120
2
        strprintf(N_("Emote Shortcut %d"), 10),
121
        InputAction::EMOTE_10,
122
        "",
123
    },
124
    {
125
        // TRANSLATORS: input action name
126
2
        strprintf(N_("Emote Shortcut %d"), 11),
127
        InputAction::EMOTE_11,
128
        "",
129
    },
130
    {
131
        // TRANSLATORS: input action name
132
2
        strprintf(N_("Emote Shortcut %d"), 12),
133
        InputAction::EMOTE_12,
134
        "",
135
    },
136
    {
137
        // TRANSLATORS: input action name
138
2
        strprintf(N_("Emote Shortcut %d"), 13),
139
        InputAction::EMOTE_13,
140
        "",
141
    },
142
    {
143
        // TRANSLATORS: input action name
144
2
        strprintf(N_("Emote Shortcut %d"), 14),
145
        InputAction::EMOTE_14,
146
        "",
147
    },
148
    {
149
        // TRANSLATORS: input action name
150
2
        strprintf(N_("Emote Shortcut %d"), 15),
151
        InputAction::EMOTE_15,
152
        "",
153
    },
154
    {
155
        // TRANSLATORS: input action name
156
2
        strprintf(N_("Emote Shortcut %d"), 16),
157
        InputAction::EMOTE_16,
158
        "",
159
    },
160
    {
161
        // TRANSLATORS: input action name
162
2
        strprintf(N_("Emote Shortcut %d"), 17),
163
        InputAction::EMOTE_17,
164
        "",
165
    },
166
    {
167
        // TRANSLATORS: input action name
168
2
        strprintf(N_("Emote Shortcut %d"), 18),
169
        InputAction::EMOTE_18,
170
        "",
171
    },
172
    {
173
        // TRANSLATORS: input action name
174
2
        strprintf(N_("Emote Shortcut %d"), 19),
175
        InputAction::EMOTE_19,
176
        "",
177
    },
178
    {
179
        // TRANSLATORS: input action name
180
2
        strprintf(N_("Emote Shortcut %d"), 20),
181
        InputAction::EMOTE_20,
182
        "",
183
    },
184
    {
185
        // TRANSLATORS: input action name
186
2
        strprintf(N_("Emote Shortcut %d"), 21),
187
        InputAction::EMOTE_21,
188
        "",
189
    },
190
    {
191
        // TRANSLATORS: input action name
192
2
        strprintf(N_("Emote Shortcut %d"), 22),
193
        InputAction::EMOTE_22,
194
        "",
195
    },
196
    {
197
        // TRANSLATORS: input action name
198
2
        strprintf(N_("Emote Shortcut %d"), 23),
199
        InputAction::EMOTE_23,
200
        "",
201
    },
202
    {
203
        // TRANSLATORS: input action name
204
2
        strprintf(N_("Emote Shortcut %d"), 24),
205
        InputAction::EMOTE_24,
206
        "",
207
    },
208
    {
209
        // TRANSLATORS: input action name
210
2
        strprintf(N_("Emote Shortcut %d"), 25),
211
        InputAction::EMOTE_25,
212
        "",
213
    },
214
    {
215
        // TRANSLATORS: input action name
216
2
        strprintf(N_("Emote Shortcut %d"), 26),
217
        InputAction::EMOTE_26,
218
        "",
219
    },
220
    {
221
        // TRANSLATORS: input action name
222
2
        strprintf(N_("Emote Shortcut %d"), 27),
223
        InputAction::EMOTE_27,
224
        "",
225
    },
226
    {
227
        // TRANSLATORS: input action name
228
2
        strprintf(N_("Emote Shortcut %d"), 28),
229
        InputAction::EMOTE_28,
230
        "",
231
    },
232
    {
233
        // TRANSLATORS: input action name
234
2
        strprintf(N_("Emote Shortcut %d"), 29),
235
        InputAction::EMOTE_29,
236
        "",
237
    },
238
    {
239
        // TRANSLATORS: input action name
240
2
        strprintf(N_("Emote Shortcut %d"), 30),
241
        InputAction::EMOTE_30,
242
        "",
243
    },
244
    {
245
        // TRANSLATORS: input action name
246
2
        strprintf(N_("Emote Shortcut %d"), 31),
247
        InputAction::EMOTE_31,
248
        "",
249
    },
250
    {
251
        // TRANSLATORS: input action name
252
2
        strprintf(N_("Emote Shortcut %d"), 32),
253
        InputAction::EMOTE_32,
254
        "",
255
    },
256
    {
257
        // TRANSLATORS: input action name
258
2
        strprintf(N_("Emote Shortcut %d"), 33),
259
        InputAction::EMOTE_33,
260
        "",
261
    },
262
    {
263
        // TRANSLATORS: input action name
264
2
        strprintf(N_("Emote Shortcut %d"), 34),
265
        InputAction::EMOTE_34,
266
        "",
267
    },
268
    {
269
        // TRANSLATORS: input action name
270
2
        strprintf(N_("Emote Shortcut %d"), 35),
271
        InputAction::EMOTE_35,
272
        "",
273
    },
274
    {
275
        // TRANSLATORS: input action name
276
2
        strprintf(N_("Emote Shortcut %d"), 36),
277
        InputAction::EMOTE_36,
278
        "",
279
    },
280
    {
281
        // TRANSLATORS: input action name
282
2
        strprintf(N_("Emote Shortcut %d"), 37),
283
        InputAction::EMOTE_37,
284
        "",
285
    },
286
    {
287
        // TRANSLATORS: input action name
288
2
        strprintf(N_("Emote Shortcut %d"), 38),
289
        InputAction::EMOTE_38,
290
        "",
291
    },
292
    {
293
        // TRANSLATORS: input action name
294
2
        strprintf(N_("Emote Shortcut %d"), 39),
295
        InputAction::EMOTE_39,
296
        "",
297
    },
298
    {
299
        // TRANSLATORS: input action name
300
2
        strprintf(N_("Emote Shortcut %d"), 40),
301
        InputAction::EMOTE_40,
302
        "",
303
    },
304
    {
305
        // TRANSLATORS: input action name
306
2
        strprintf(N_("Emote Shortcut %d"), 41),
307
        InputAction::EMOTE_41,
308
        "",
309
    },
310
    {
311
        // TRANSLATORS: input action name
312
2
        strprintf(N_("Emote Shortcut %d"), 42),
313
        InputAction::EMOTE_42,
314
        "",
315
    },
316
    {
317
        // TRANSLATORS: input action name
318
2
        strprintf(N_("Emote Shortcut %d"), 43),
319
        InputAction::EMOTE_43,
320
        "",
321
    },
322
    {
323
        // TRANSLATORS: input action name
324
2
        strprintf(N_("Emote Shortcut %d"), 44),
325
        InputAction::EMOTE_44,
326
        "",
327
    },
328
    {
329
        // TRANSLATORS: input action name
330
2
        strprintf(N_("Emote Shortcut %d"), 45),
331
        InputAction::EMOTE_45,
332
        "",
333
    },
334
    {
335
        // TRANSLATORS: input action name
336
2
        strprintf(N_("Emote Shortcut %d"), 46),
337
        InputAction::EMOTE_46,
338
        "",
339
    },
340
    {
341
        // TRANSLATORS: input action name
342
2
        strprintf(N_("Emote Shortcut %d"), 47),
343
        InputAction::EMOTE_47,
344
        "",
345
    },
346
    {
347
        // TRANSLATORS: input action name
348
2
        strprintf(N_("Emote Shortcut %d"), 48),
349
        InputAction::EMOTE_48,
350
        "",
351
    },
352
    {
353
        "",
354
        InputAction::NO_VALUE,
355
        ""
356
    },
357
    {
358
        // TRANSLATORS: input action name
359
        N_("Pet emote shortcuts"),
360
        InputAction::NO_VALUE,
361
        ""
362
    },
363
    {
364
        // TRANSLATORS: input action name
365
2
        strprintf(N_("Pet emote shortcut %d"), 1),
366
        InputAction::PET_EMOTE_1,
367
        "",
368
    },
369
    {
370
        // TRANSLATORS: input action name
371
2
        strprintf(N_("Pet emote shortcut %d"), 2),
372
        InputAction::PET_EMOTE_2,
373
        "",
374
    },
375
    {
376
        // TRANSLATORS: input action name
377
2
        strprintf(N_("Pet emote shortcut %d"), 3),
378
        InputAction::PET_EMOTE_3,
379
        "",
380
    },
381
    {
382
        // TRANSLATORS: input action name
383
2
        strprintf(N_("Pet emote shortcut %d"), 4),
384
        InputAction::PET_EMOTE_4,
385
        "",
386
    },
387
    {
388
        // TRANSLATORS: input action name
389
2
        strprintf(N_("Pet emote shortcut %d"), 5),
390
        InputAction::PET_EMOTE_5,
391
        "",
392
    },
393
    {
394
        // TRANSLATORS: input action name
395
2
        strprintf(N_("Pet emote shortcut %d"), 6),
396
        InputAction::PET_EMOTE_6,
397
        "",
398
    },
399
    {
400
        // TRANSLATORS: input action name
401
2
        strprintf(N_("Pet emote shortcut %d"), 7),
402
        InputAction::PET_EMOTE_7,
403
        "",
404
    },
405
    {
406
        // TRANSLATORS: input action name
407
2
        strprintf(N_("Pet emote shortcut %d"), 8),
408
        InputAction::PET_EMOTE_8,
409
        "",
410
    },
411
    {
412
        // TRANSLATORS: input action name
413
2
        strprintf(N_("Pet emote shortcut %d"), 9),
414
        InputAction::PET_EMOTE_9,
415
        "",
416
    },
417
    {
418
        // TRANSLATORS: input action name
419
2
        strprintf(N_("Pet emote shortcut %d"), 10),
420
        InputAction::PET_EMOTE_10,
421
        "",
422
    },
423
    {
424
        // TRANSLATORS: input action name
425
2
        strprintf(N_("Pet emote shortcut %d"), 11),
426
        InputAction::PET_EMOTE_11,
427
        "",
428
    },
429
    {
430
        // TRANSLATORS: input action name
431
2
        strprintf(N_("Pet emote shortcut %d"), 12),
432
        InputAction::PET_EMOTE_12,
433
        "",
434
    },
435
    {
436
        // TRANSLATORS: input action name
437
2
        strprintf(N_("Pet emote shortcut %d"), 13),
438
        InputAction::PET_EMOTE_13,
439
        "",
440
    },
441
    {
442
        // TRANSLATORS: input action name
443
2
        strprintf(N_("Pet emote shortcut %d"), 14),
444
        InputAction::PET_EMOTE_14,
445
        "",
446
    },
447
    {
448
        // TRANSLATORS: input action name
449
2
        strprintf(N_("Pet emote shortcut %d"), 15),
450
        InputAction::PET_EMOTE_15,
451
        "",
452
    },
453
    {
454
        // TRANSLATORS: input action name
455
2
        strprintf(N_("Pet emote shortcut %d"), 16),
456
        InputAction::PET_EMOTE_16,
457
        "",
458
    },
459
    {
460
        // TRANSLATORS: input action name
461
2
        strprintf(N_("Pet emote shortcut %d"), 17),
462
        InputAction::PET_EMOTE_17,
463
        "",
464
    },
465
    {
466
        // TRANSLATORS: input action name
467
2
        strprintf(N_("Pet emote shortcut %d"), 18),
468
        InputAction::PET_EMOTE_18,
469
        "",
470
    },
471
    {
472
        // TRANSLATORS: input action name
473
2
        strprintf(N_("Pet emote shortcut %d"), 19),
474
        InputAction::PET_EMOTE_19,
475
        "",
476
    },
477
    {
478
        // TRANSLATORS: input action name
479
2
        strprintf(N_("Pet emote shortcut %d"), 20),
480
        InputAction::PET_EMOTE_20,
481
        "",
482
    },
483
    {
484
        // TRANSLATORS: input action name
485
2
        strprintf(N_("Pet emote shortcut %d"), 21),
486
        InputAction::PET_EMOTE_21,
487
        "",
488
    },
489
    {
490
        // TRANSLATORS: input action name
491
2
        strprintf(N_("Pet emote shortcut %d"), 22),
492
        InputAction::PET_EMOTE_22,
493
        "",
494
    },
495
    {
496
        // TRANSLATORS: input action name
497
2
        strprintf(N_("Pet emote shortcut %d"), 23),
498
        InputAction::PET_EMOTE_23,
499
        "",
500
    },
501
    {
502
        // TRANSLATORS: input action name
503
2
        strprintf(N_("Pet emote shortcut %d"), 24),
504
        InputAction::PET_EMOTE_24,
505
        "",
506
    },
507
    {
508
        // TRANSLATORS: input action name
509
2
        strprintf(N_("Pet emote shortcut %d"), 25),
510
        InputAction::PET_EMOTE_25,
511
        "",
512
    },
513
    {
514
        // TRANSLATORS: input action name
515
2
        strprintf(N_("Pet emote shortcut %d"), 26),
516
        InputAction::PET_EMOTE_26,
517
        "",
518
    },
519
    {
520
        // TRANSLATORS: input action name
521
2
        strprintf(N_("Pet emote shortcut %d"), 27),
522
        InputAction::PET_EMOTE_27,
523
        "",
524
    },
525
    {
526
        // TRANSLATORS: input action name
527
2
        strprintf(N_("Pet emote shortcut %d"), 28),
528
        InputAction::PET_EMOTE_28,
529
        "",
530
    },
531
    {
532
        // TRANSLATORS: input action name
533
2
        strprintf(N_("Pet emote shortcut %d"), 29),
534
        InputAction::PET_EMOTE_29,
535
        "",
536
    },
537
    {
538
        // TRANSLATORS: input action name
539
2
        strprintf(N_("Pet emote shortcut %d"), 30),
540
        InputAction::PET_EMOTE_30,
541
        "",
542
    },
543
    {
544
        // TRANSLATORS: input action name
545
2
        strprintf(N_("Pet emote shortcut %d"), 31),
546
        InputAction::PET_EMOTE_31,
547
        "",
548
    },
549
    {
550
        // TRANSLATORS: input action name
551
2
        strprintf(N_("Pet emote shortcut %d"), 32),
552
        InputAction::PET_EMOTE_32,
553
        "",
554
    },
555
    {
556
        // TRANSLATORS: input action name
557
2
        strprintf(N_("Pet emote shortcut %d"), 33),
558
        InputAction::PET_EMOTE_33,
559
        "",
560
    },
561
    {
562
        // TRANSLATORS: input action name
563
2
        strprintf(N_("Pet emote shortcut %d"), 34),
564
        InputAction::PET_EMOTE_34,
565
        "",
566
    },
567
    {
568
        // TRANSLATORS: input action name
569
2
        strprintf(N_("Pet emote shortcut %d"), 35),
570
        InputAction::PET_EMOTE_35,
571
        "",
572
    },
573
    {
574
        // TRANSLATORS: input action name
575
2
        strprintf(N_("Pet emote shortcut %d"), 36),
576
        InputAction::PET_EMOTE_36,
577
        "",
578
    },
579
    {
580
        // TRANSLATORS: input action name
581
2
        strprintf(N_("Pet emote shortcut %d"), 37),
582
        InputAction::PET_EMOTE_37,
583
        "",
584
    },
585
    {
586
        // TRANSLATORS: input action name
587
2
        strprintf(N_("Pet emote shortcut %d"), 38),
588
        InputAction::PET_EMOTE_38,
589
        "",
590
    },
591
    {
592
        // TRANSLATORS: input action name
593
2
        strprintf(N_("Pet emote shortcut %d"), 39),
594
        InputAction::PET_EMOTE_39,
595
        "",
596
    },
597
    {
598
        // TRANSLATORS: input action name
599
2
        strprintf(N_("Pet emote shortcut %d"), 40),
600
        InputAction::PET_EMOTE_40,
601
        "",
602
    },
603
    {
604
        // TRANSLATORS: input action name
605
2
        strprintf(N_("Pet emote shortcut %d"), 41),
606
        InputAction::PET_EMOTE_41,
607
        "",
608
    },
609
    {
610
        // TRANSLATORS: input action name
611
2
        strprintf(N_("Pet emote shortcut %d"), 42),
612
        InputAction::PET_EMOTE_42,
613
        "",
614
    },
615
    {
616
        // TRANSLATORS: input action name
617
2
        strprintf(N_("Pet emote shortcut %d"), 43),
618
        InputAction::PET_EMOTE_43,
619
        "",
620
    },
621
    {
622
        // TRANSLATORS: input action name
623
2
        strprintf(N_("Pet emote shortcut %d"), 44),
624
        InputAction::PET_EMOTE_44,
625
        "",
626
    },
627
    {
628
        // TRANSLATORS: input action name
629
2
        strprintf(N_("Pet emote shortcut %d"), 45),
630
        InputAction::PET_EMOTE_45,
631
        "",
632
    },
633
    {
634
        // TRANSLATORS: input action name
635
2
        strprintf(N_("Pet emote shortcut %d"), 46),
636
        InputAction::PET_EMOTE_46,
637
        "",
638
    },
639
    {
640
        // TRANSLATORS: input action name
641
2
        strprintf(N_("Pet emote shortcut %d"), 47),
642
        InputAction::PET_EMOTE_47,
643
        "",
644
    },
645
    {
646
        // TRANSLATORS: input action name
647
2
        strprintf(N_("Pet emote shortcut %d"), 48),
648
        InputAction::PET_EMOTE_48,
649
        "",
650
    },
651
    {
652
        "",
653
        InputAction::NO_VALUE,
654
        ""
655
    },
656













































































































437
};