From 2db0ad9ad485557d23474539095545b64405f6bc Mon Sep 17 00:00:00 2001 From: Brendan Hagan Date: Sun, 3 Jul 2022 23:47:13 -0400 Subject: [PATCH] misc: add additional localized string methods for labels --- src/util/locale.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/util/locale.hpp b/src/util/locale.hpp index b6eae98a..8009cda4 100644 --- a/src/util/locale.hpp +++ b/src/util/locale.hpp @@ -87,7 +87,11 @@ String tr(const Package&, const String& subcat, const String& key, DefaultLocale #define _TOOLTIP_1_(s,a) format_string(_TOOLTIP_(s), a) /// A localized string for tooltip labels, with 1 argument (printf style) -#define _LABEL_1_(s,a) format_string(_LABEL_(s), a) +#define _LABEL_1_(s,a) format_string(_LABEL_(s), a) +/// A localized string for tooltip labels, with 2 argument (printf style) +#define _LABEL_2_(s,a,b) format_string(_LABEL_(s), a, b) +/// A localized string for tooltip labels, with 3 argument (printf style) +#define _LABEL_3_(s,a,b,c) format_string(_LABEL_(s), a, b, c) /// A localized string for button text, with 1 argument (printf style) #define _BUTTON_1_(s,a) format_string(_BUTTON_(s), a)