]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetInfo.cpp
correct the gettext format of the displayed error message for unknown vcs buffer...
[lyx.git] / src / insets / InsetInfo.cpp
index 95cecc3db6941a0e61c1c1747c7858a859778fbf..6fee48de2fb71c7934e56339d75fea24c2995ea3 100644 (file)
@@ -437,9 +437,10 @@ void InsetInfo::updateInfo()
                else if (name_ == "vcs-date")
                        itype = LyXVC::Date;
                string binfo = buffer().lyxvc().revisionInfo(itype);
-               if (binfo.empty())
-                       setText(bformat(_("[[%1$s unknown]]"), from_utf8(name_)));
-               else
+               if (binfo.empty()) {
+                       docstring fmt = _("%1$s unknown[[InsetNote]]");
+                       setText(bformat(fmt, from_utf8(name_)));
+               } else
                        setText(from_utf8(binfo));
                break;
        }