Use localized length strings also in space label/tooltip

This commit is contained in:
Juergen Spitzmueller 2022-08-09 17:28:41 +02:00
parent 9214f92599
commit c69da75dfc
2 changed files with 5 additions and 3 deletions

View File

@ -21,6 +21,7 @@
#include "support/convert.h"
#include "support/Length.h"
#include "support/lstrings.h"
#include "support/qstring_helpers.h"
#include "support/lassert.h"
@ -207,7 +208,7 @@ docstring const VSpace::asGUIName() const
result = _("Vertical fill");
break;
case LENGTH:
result = from_ascii(len_.asString());
result = locLengthDocString(from_ascii(len_.asString()));
break;
}
if (keep_)

View File

@ -33,6 +33,7 @@
#include "support/lassert.h"
#include "support/Length.h"
#include "support/lstrings.h"
#include "support/qstring_helpers.h"
#include "frontends/Application.h"
#include "frontends/FontMetrics.h"
@ -130,12 +131,12 @@ docstring InsetSpace::toolTip(BufferView const &, int, int) const
case InsetSpaceParams::CUSTOM:
// FIXME unicode
message = support::bformat(_("Horizontal Space (%1$s)"),
from_ascii(params_.length.asString()));
locLengthDocString(from_ascii(params_.length.asString())));
break;
case InsetSpaceParams::CUSTOM_PROTECTED:
// FIXME unicode
message = support::bformat(_("Non-Breaking Horizontal Space (%1$s)"),
from_ascii(params_.length.asString()));
locLengthDocString(from_ascii(params_.length.asString())));
break;
}
return message;