* InsetBranch.cpp:

- indicate branch status in the tooltip.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29197 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-04-11 07:11:37 +00:00
parent 6974c65ed4
commit 1c738a37fb

View File

@ -29,6 +29,7 @@
#include "support/debug.h"
#include "support/gettext.h"
#include "support/lstrings.h"
#include "frontends/Application.h"
@ -72,7 +73,11 @@ void InsetBranch::read(Lexer & lex)
docstring InsetBranch::toolTip(BufferView const &, int, int) const
{
return _("Branch: ") + params_.branch;
docstring const status = isBranchSelected() ?
_("active") : _("non-active");
return support::bformat(_("Branch (%1$s): %2$s"),
status,
params_.branch);
}