mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
Fix trying to translate docstring/non-ascii text.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15019 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1a0f5eaf8d
commit
d8f91273d3
@ -778,7 +778,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
|
|||||||
if (view()->buffer())
|
if (view()->buffer())
|
||||||
// cancel any selection
|
// cancel any selection
|
||||||
dispatch(FuncRequest(LFUN_MARK_OFF));
|
dispatch(FuncRequest(LFUN_MARK_OFF));
|
||||||
setMessage(lyx::from_utf8(N_("Cancel")));
|
setMessage(_("Cancel"));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LFUN_META_PREFIX:
|
case LFUN_META_PREFIX:
|
||||||
@ -1026,7 +1026,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
|
|||||||
case LFUN_HELP_OPEN: {
|
case LFUN_HELP_OPEN: {
|
||||||
string const arg = argument;
|
string const arg = argument;
|
||||||
if (arg.empty()) {
|
if (arg.empty()) {
|
||||||
setErrorMessage(lyx::from_utf8(N_("Missing argument")));
|
setErrorMessage(_("Missing argument"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
string const fname = i18nLibFileSearch("doc", arg, "lyx");
|
string const fname = i18nLibFileSearch("doc", arg, "lyx");
|
||||||
@ -1283,7 +1283,8 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
|
|||||||
case LFUN_BUFFER_CHILD_OPEN: {
|
case LFUN_BUFFER_CHILD_OPEN: {
|
||||||
string const filename =
|
string const filename =
|
||||||
makeAbsPath(argument, owner->buffer()->filePath());
|
makeAbsPath(argument, owner->buffer()->filePath());
|
||||||
setMessage(lyx::from_utf8(N_("Opening child document ")) +
|
// FIXME Should use bformat
|
||||||
|
setMessage(_("Opening child document ") +
|
||||||
makeDisplayPath(filename) + lyx::from_ascii("..."));
|
makeDisplayPath(filename) + lyx::from_ascii("..."));
|
||||||
view()->savePosition(0);
|
view()->savePosition(0);
|
||||||
string const parentfilename = owner->buffer()->fileName();
|
string const parentfilename = owner->buffer()->fileName();
|
||||||
@ -1362,8 +1363,8 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
|
|||||||
string lyx_name;
|
string lyx_name;
|
||||||
string const x11_name = split(argument, lyx_name, ' ');
|
string const x11_name = split(argument, lyx_name, ' ');
|
||||||
if (lyx_name.empty() || x11_name.empty()) {
|
if (lyx_name.empty() || x11_name.empty()) {
|
||||||
setErrorMessage(lyx::from_utf8(N_("Syntax: set-color <lyx_name>"
|
setErrorMessage(_("Syntax: set-color <lyx_name>"
|
||||||
" <x11_name>")));
|
" <x11_name>"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1487,6 +1488,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (defaults.writeFile(defaults.fileName()))
|
if (defaults.writeFile(defaults.fileName()))
|
||||||
|
// FIXME Should use bformat
|
||||||
setMessage(_("Document defaults saved in ")
|
setMessage(_("Document defaults saved in ")
|
||||||
+ makeDisplayPath(fname));
|
+ makeDisplayPath(fname));
|
||||||
else
|
else
|
||||||
@ -1616,7 +1618,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
|
|||||||
if (!quitting)
|
if (!quitting)
|
||||||
// FIXME UNICODE: _() does not support anything but ascii.
|
// FIXME UNICODE: _() does not support anything but ascii.
|
||||||
// Do we need a lyx::to_ascii() method?
|
// Do we need a lyx::to_ascii() method?
|
||||||
sendDispatchMessage(_(lyx::to_utf8(getMessage())), cmd);
|
sendDispatchMessage(getMessage(), cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user