From: Juergen Spitzmueller Date: Tue, 9 Aug 2022 15:28:41 +0000 (+0200) Subject: Use localized length strings also in space label/tooltip X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c69da75dfca389b219e269f9d5668215f398c24b;p=features.git Use localized length strings also in space label/tooltip --- diff --git a/src/VSpace.cpp b/src/VSpace.cpp index 66e3a6c7c9..50fc2e50a7 100644 --- a/src/VSpace.cpp +++ b/src/VSpace.cpp @@ -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_) diff --git a/src/insets/InsetSpace.cpp b/src/insets/InsetSpace.cpp index 86c8670420..3f86eb8c07 100644 --- a/src/insets/InsetSpace.cpp +++ b/src/insets/InsetSpace.cpp @@ -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;