* 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:
Jürgen Spitzmüller 2010-02-10 11:42:52 +00:00
parent fd43c35d30
commit 788eb2926f
2 changed files with 22 additions and 2 deletions

View File

@ -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;
}

View File

@ -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