]> git.lyx.org Git - lyx.git/blobdiff - src/Chktex.C
* Painter.h:
[lyx.git] / src / Chktex.C
index 8ca81b294c1e3b784f36989859ecda70cd4ef22b..fc492f48cdf688f8b6ef8dfe88d2047c72bb10a9 100644 (file)
 
 #include <fstream>
 
-using lyx::support::changeExtension;
-using lyx::support::onlyFilename;
-using lyx::support::split;
-using lyx::support::Systemcall;
+
+namespace lyx {
+
+using support::changeExtension;
+using support::onlyFilename;
+using support::split;
+using support::Systemcall;
 
 using std::getline;
 using std::string;
@@ -64,9 +67,9 @@ int Chktex::scanLogFile(TeXErrors & terr)
        string const tmp = onlyFilename(changeExtension(file, ".log"));
 
 #if USE_BOOST_FORMAT
-       boost::format msg(_("ChkTeX warning id # %1$d"));
+       boost::format msg(to_utf8(_("ChkTeX warning id # %1$d")));
 #else
-       string const msg(_("ChkTeX warning id # "));
+       string const msg(to_utf8(_("ChkTeX warning id # ")));
 #endif
        ifstream ifs(tmp.c_str());
        while (getline(ifs, token)) {
@@ -95,3 +98,6 @@ int Chktex::scanLogFile(TeXErrors & terr)
        }
        return retval;
 }
+
+
+} // namespace lyx