]> git.lyx.org Git - features.git/commitdiff
* src/client/debug.C (showLevel):
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 11 Sep 2006 10:27:48 +0000 (10:27 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 11 Sep 2006 10:27:48 +0000 (10:27 +0000)
        * src/ispell.C (ISpell,check): compilation fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14974 a592a061-630c-0410-9148-cb99ea01b6c8

src/client/debug.C
src/ispell.C

index ac42a27c6f3ec289f14ea58b54e564a3ce2eb35f..b4d244b7d168fab54954ab2dfa89ec7a794cde8f 100644 (file)
@@ -84,9 +84,11 @@ void lyx_debug_trait::showLevel(ostream & os, lyx_debug_trait::type level)
                    && errorTags[i].level != Debug::NONE
                    && errorTags[i].level & level) {
                        // avoid _(...) re-entrance problem
+                       // FIXME: should we use _() from gettext.h here?
                        string const s = _(errorTags[i].desc);
-                       os << bformat(_("Debugging `%1$s' (%2$s)"),
-                                       lyx::from_utf8(errorTags[i].name), lyx::from_utf8(s))
+                       os << lyx::to_utf8(bformat(lyx::from_utf8(_("Debugging `%1$s' (%2$s)")),
+                                                  lyx::from_utf8(errorTags[i].name), 
+                                                  lyx::from_utf8(s)))
                           << '\n';
                }
        }
index 85742611f2266076dcd62110b7e407687fba4010..8a134c8624935de7cd093094f1dd7c3b4cdccddc 100644 (file)
@@ -268,7 +268,7 @@ ISpell::ISpell(BufferParams const & params, string const & lang)
        } else {
                // select returned error
                error_ = _("The ispell process returned an error.\nPerhaps "
-                                       "it has been configured wrongly ?"));
+                          "it has been configured wrongly ?");
        }
 
        close(pipein[0]);
@@ -376,7 +376,7 @@ enum ISpell::Result ISpell::check(WordLangTuple const & word)
        bool error = select(err_read);
 
        if (error) {
-               error_ = _("Could not communicate with the ispell spellchecker process."));
+               error_ = _("Could not communicate with the ispell spellchecker process.");
                return UNKNOWN_WORD;
        }