]> git.lyx.org Git - features.git/blobdiff - src/lyxfont.C
some small changes
[features.git] / src / lyxfont.C
index 19b6ee727c2a8e8ae1932b069ea64a534705c478..5239fbba8f8b79c5eaf6a37284ec615d0db2842b 100644 (file)
@@ -24,6 +24,7 @@
 #include "lyxlex.h"
 #include "FontLoader.h"
 #include "support/lstrings.h"
+#include "bufferparams.h" // stateText
 
 using std::ostream;
 using std::endl;
@@ -380,7 +381,7 @@ bool LyXFont::resolved() const
 
 
 /// Build GUI description of font state
-string LyXFont::stateText() const
+string LyXFont::stateText(BufferParams * params) const
 {
 #ifdef HAVE_SSTREAM
        std::ostringstream ost;
@@ -410,7 +411,8 @@ string LyXFont::stateText() const
                ost << _("Latex ") << _(GUIMiscNames[latex()]) << ", ";
        if (bits == inherit)
                ost << _("Default") << ", ";
-       ost << _("Language: ") << _(language()->display.c_str());
+       if (!params || language() != params->language_info)
+               ost << _("Language: ") << _(language()->display.c_str());
 #ifdef HAVE_SSTREAM
        string buf(ost.str().c_str());
 #else