mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 08:44:01 +00:00
Use localized length strings also in space label/tooltip
This commit is contained in:
parent
9214f92599
commit
c69da75dfc
@ -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_)
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user