mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
* GuiErrorList.cpp:
- use GUIfied strings (bug 6397). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33408 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
fd43c35d30
commit
788eb2926f
@ -31,6 +31,23 @@
|
||||
using namespace std;
|
||||
using namespace lyx::support;
|
||||
|
||||
namespace {
|
||||
|
||||
string const guiErrorType(string const s)
|
||||
{
|
||||
if (s == "docbook")
|
||||
return N_("DocBook");
|
||||
else if (s == "literate")
|
||||
return N_("Literate");
|
||||
else if (s == "platex")
|
||||
return N_("pLaTeX");
|
||||
else if (s == "latex")
|
||||
return N_("LaTeX");
|
||||
return s;
|
||||
}
|
||||
|
||||
} // namespace anon
|
||||
|
||||
namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
@ -92,8 +109,9 @@ bool GuiErrorList::initialiseParams(string const & error_type)
|
||||
{
|
||||
error_type_ = error_type;
|
||||
Buffer const & buf = bufferview()->buffer();
|
||||
name_ = bformat(_("%1$s Errors (%2$s)"), _(error_type),
|
||||
from_utf8(buf.absFileName()));
|
||||
name_ = bformat(_("%1$s Errors (%2$s)"),
|
||||
_(guiErrorType(error_type)),
|
||||
from_utf8(buf.absFileName()));
|
||||
paramsToDialog();
|
||||
return true;
|
||||
}
|
||||
|
@ -204,6 +204,8 @@ What's new
|
||||
- Fix keyboard accelerator for the "Content" combo box in the BibTeX
|
||||
bibliography dialog.
|
||||
|
||||
- Fix title of the error dialog (bug 6397).
|
||||
|
||||
|
||||
* DOCUMENTATION AND LOCALIZATION
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user