[AutoWarmth] Simplify translations (#9996)

This commit is contained in:
zwim
2023-01-05 13:46:52 +01:00
committed by GitHub
parent 20ac8004d6
commit b3a7d32d54

View File

@@ -1042,7 +1042,7 @@ function AutoWarmth:getWarmthMenu()
text_func = function()
if Device:hasNaturalLight() then
return T(_("Control: %1%2%3"), self.control_warmth and _("warmth") or "",
self.control_warmth and self.control_nightmode and T(_(" %1 "), _("and")) or "",
self.control_warmth and self.control_nightmode and T(" %1 ", _("and")) or "",
self.control_nightmode and _("night mode") or "")
else
return _("Control: night mode")