commit c69da75dfca389b219e269f9d5668215f398c24b
Author: Juergen Spitzmueller <[email protected]>
Date: Tue Aug 9 17:28:41 2022 +0200
Use localized length strings also in space label/tooltip
---
src/VSpace.cpp | 3 ++-
src/insets/InsetSpace.cpp | 5 +++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/VSpace.cpp b/src/VSpace.cpp
index 66e3a6c..50fc2e5 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 86c8670..3f86eb8 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;
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs