mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 11:08:41 +00:00
unicode: ditch another utf8 roundtrip
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15865 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f6730f66b0
commit
a956cc56e6
@ -107,8 +107,7 @@ void InsetVSpace::write(Buffer const &, ostream & os) const
|
|||||||
docstring const InsetVSpace::label() const
|
docstring const InsetVSpace::label() const
|
||||||
{
|
{
|
||||||
static docstring const label = _("Vertical Space");
|
static docstring const label = _("Vertical Space");
|
||||||
// FIXME UNICODE
|
return label + " (" + space_.asGUIName() + ')';
|
||||||
return label + " (" + from_utf8(space_.asGUIName()) + ')';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#define LYX_LENGTH_H
|
#define LYX_LENGTH_H
|
||||||
|
|
||||||
#include "support/docstring.h"
|
#include "support/docstring.h"
|
||||||
#include <string>
|
|
||||||
|
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
18
src/vspace.C
18
src/vspace.C
@ -482,31 +482,31 @@ string const VSpace::asLatexCommand(BufferParams const & params) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
string const VSpace::asGUIName() const
|
docstring const VSpace::asGUIName() const
|
||||||
{
|
{
|
||||||
string result;
|
docstring result;
|
||||||
switch (kind_) {
|
switch (kind_) {
|
||||||
case DEFSKIP:
|
case DEFSKIP:
|
||||||
result = to_utf8(_("Default skip"));
|
result = _("Default skip");
|
||||||
break;
|
break;
|
||||||
case SMALLSKIP:
|
case SMALLSKIP:
|
||||||
result = to_utf8(_("Small skip"));
|
result = _("Small skip");
|
||||||
break;
|
break;
|
||||||
case MEDSKIP:
|
case MEDSKIP:
|
||||||
result = to_utf8(_("Medium skip"));
|
result = _("Medium skip");
|
||||||
break;
|
break;
|
||||||
case BIGSKIP:
|
case BIGSKIP:
|
||||||
result = to_utf8(_("Big skip"));
|
result = _("Big skip");
|
||||||
break;
|
break;
|
||||||
case VFILL:
|
case VFILL:
|
||||||
result = to_utf8(_("Vertical fill"));
|
result = _("Vertical fill");
|
||||||
break;
|
break;
|
||||||
case LENGTH:
|
case LENGTH:
|
||||||
result = len_.asString();
|
result = from_ascii(len_.asString());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (keep_)
|
if (keep_)
|
||||||
result += ", " + to_utf8(_("protected"));
|
result += ", " + _("protected");
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ public:
|
|||||||
/// the latex representation
|
/// the latex representation
|
||||||
std::string const asLatexCommand(BufferParams const & params) const;
|
std::string const asLatexCommand(BufferParams const & params) const;
|
||||||
/// how it is seen in the LyX window
|
/// how it is seen in the LyX window
|
||||||
std::string const asGUIName() const;
|
docstring const asGUIName() const;
|
||||||
/// the size of the space on-screen
|
/// the size of the space on-screen
|
||||||
int inPixels(BufferView const & bv) const;
|
int inPixels(BufferView const & bv) const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user