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

View File

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