#include "support/docstream.h"
#include "support/gettext.h"
#include "support/lstrings.h"
+#include "support/Messages.h"
#include "support/textutils.h"
using namespace lyx::support;
display_string = value;
else if (cmd == "pageref" || cmd == "vpageref") {
// normally would be "on page #", but we have no pages.
- display_string =
- translateIfPossible(from_ascii("elsewhere"), language);
+ display_string = language.empty() ? _("elsewhere")
+ : getMessages(language).get("elsewhere");
} else if (cmd == "eqref")
display_string = '(' + value + ')';
else if (cmd == "formatted") {