From 489bfb4c77f84d935bd71a5e96143eef29e6044b Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Mon, 2 Apr 2018 13:00:13 +0200 Subject: [PATCH] [fix, i18n] ui/widget/frontlightwidget: translators don't need to worry about number of spaces (#3823) Transifex warns about some issues but this is not one of them. The proper solution would be `padding_right`. But although it's supported on FrameContainer it's not passed on through TextBoxWidget. --- frontend/ui/widget/frontlightwidget.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/ui/widget/frontlightwidget.lua b/frontend/ui/widget/frontlightwidget.lua index dec0e8800..96d646dae 100644 --- a/frontend/ui/widget/frontlightwidget.lua +++ b/frontend/ui/widget/frontlightwidget.lua @@ -401,7 +401,8 @@ function FrontLightWidget:addWarmthWidgets(num_warmth, step, vertical_group) }) local text_auto_nl = TextBoxWidget:new{ - text = _("Maximum at: "), + -- @TODO implement padding_right (etc.) on TextBoxWidget and remove the two-space hack + text = _("Maximum at:") .. " ", face = self.larger_font_face, alignment = "right", fgcolor = self.powerd.auto_warmth and Blitbuffer.COLOR_BLACK or