mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 16:52:02 +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/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_)
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user