2003-04-23 20:44:53 +00:00
|
|
|
|
/* \file messages.C
|
2003-04-23 18:47:21 +00:00
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2003-04-23 18:47:21 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
2005-07-16 15:55:36 +00:00
|
|
|
|
#include "debug.h"
|
2003-04-23 18:47:21 +00:00
|
|
|
|
#include "messages.h"
|
2003-04-27 22:11:45 +00:00
|
|
|
|
#include "support/filetools.h"
|
2005-07-17 11:58:54 +00:00
|
|
|
|
#include "support/environment.h"
|
2005-01-10 19:17:43 +00:00
|
|
|
|
#include "support/package.h"
|
2006-09-09 11:16:28 +00:00
|
|
|
|
#include "support/docstring.h"
|
|
|
|
|
#include "support/types.h"
|
2003-04-23 18:47:21 +00:00
|
|
|
|
|
2005-09-26 09:20:15 +00:00
|
|
|
|
#include <boost/current_function.hpp>
|
2004-10-19 09:11:02 +00:00
|
|
|
|
#include <boost/regex.hpp>
|
|
|
|
|
|
2005-10-18 13:34:51 +00:00
|
|
|
|
#include <cerrno>
|
|
|
|
|
|
2005-01-10 19:17:43 +00:00
|
|
|
|
using lyx::support::package;
|
2005-07-17 11:58:54 +00:00
|
|
|
|
using lyx::support::getEnv;
|
|
|
|
|
using lyx::support::setEnv;
|
2003-06-30 23:56:22 +00:00
|
|
|
|
|
2006-09-09 11:16:28 +00:00
|
|
|
|
using lyx::char_type;
|
|
|
|
|
using lyx::docstring;
|
|
|
|
|
using lyx::from_ascii;
|
2003-10-06 15:43:21 +00:00
|
|
|
|
|
2006-09-09 11:16:28 +00:00
|
|
|
|
using std::string;
|
|
|
|
|
using std::endl;
|
2003-04-23 18:47:21 +00:00
|
|
|
|
|
2003-04-24 22:09:46 +00:00
|
|
|
|
#ifdef ENABLE_NLS
|
2003-04-23 18:47:21 +00:00
|
|
|
|
|
2003-04-27 22:11:45 +00:00
|
|
|
|
|
2003-04-24 22:09:46 +00:00
|
|
|
|
#if 0
|
2003-04-23 18:47:21 +00:00
|
|
|
|
|
2003-09-05 16:31:30 +00:00
|
|
|
|
-#include <locale>
|
2003-04-24 22:09:46 +00:00
|
|
|
|
|
|
|
|
|
// This version of the Pimpl utilizes the message capability of
|
2003-04-28 01:52:18 +00:00
|
|
|
|
// libstdc++ that is distributed with GNU G++.
|
2003-04-24 22:09:46 +00:00
|
|
|
|
class Messages::Pimpl {
|
|
|
|
|
public:
|
|
|
|
|
typedef std::messages<char>::catalog catalog;
|
|
|
|
|
|
2003-04-27 22:11:45 +00:00
|
|
|
|
Pimpl(string const & l)
|
|
|
|
|
: lang_(l),
|
2003-04-24 22:09:46 +00:00
|
|
|
|
loc_gl(lang_.c_str()),
|
|
|
|
|
mssg_gl(std::use_facet<std::messages<char> >(loc_gl))
|
|
|
|
|
{
|
|
|
|
|
//lyxerr << "Messages: language(" << l
|
2006-09-09 11:16:28 +00:00
|
|
|
|
// << ") in dir(" << dir << ")" << endl;
|
2003-04-24 22:09:46 +00:00
|
|
|
|
|
2005-01-10 19:17:43 +00:00
|
|
|
|
cat_gl = mssg_gl.open(PACKAGE, loc_gl, package().locale_dir().c_str());
|
2003-04-24 22:09:46 +00:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
~Pimpl()
|
|
|
|
|
{
|
|
|
|
|
mssg_gl.close(cat_gl);
|
|
|
|
|
}
|
|
|
|
|
|
2006-09-09 11:16:28 +00:00
|
|
|
|
docstring const get(string const & msg) const
|
2003-04-24 22:09:46 +00:00
|
|
|
|
{
|
|
|
|
|
return mssg_gl.get(cat_gl, 0, 0, msg);
|
|
|
|
|
}
|
|
|
|
|
private:
|
|
|
|
|
///
|
|
|
|
|
string lang_;
|
|
|
|
|
///
|
|
|
|
|
std::locale loc_gl;
|
|
|
|
|
///
|
|
|
|
|
std::messages<char> const & mssg_gl;
|
|
|
|
|
///
|
|
|
|
|
catalog cat_gl;
|
|
|
|
|
};
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_LOCALE_H
|
|
|
|
|
# include <locale.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
# if HAVE_GETTEXT
|
|
|
|
|
# include <libintl.h> // use the header already in the system *EK*
|
|
|
|
|
# else
|
|
|
|
|
# include "../intl/libintl.h"
|
|
|
|
|
# endif
|
2003-04-23 18:47:21 +00:00
|
|
|
|
|
2003-04-24 22:09:46 +00:00
|
|
|
|
// This is a more traditional variant.
|
|
|
|
|
class Messages::Pimpl {
|
|
|
|
|
public:
|
2003-04-27 22:11:45 +00:00
|
|
|
|
Pimpl(string const & l)
|
|
|
|
|
: lang_(l)
|
2003-04-24 22:09:46 +00:00
|
|
|
|
{
|
2005-11-03 09:21:09 +00:00
|
|
|
|
if ( lang_.empty() ) {
|
fix crash on startup under windows by avoiding the call
setlocale(LC_MESSAGES, ...
scons tests on LC_MESSAGES there is also an m4 file for LC_MESSAGES
so I think all build systems handle HAVE_LC_MESSAGES.
Index: src/messages.C
===================================================================
--- src/messages.C (revision 14066)
+++ src/messages.C (working copy)
@@ -90,7 +90,10 @@
: lang_(l)
{
if ( lang_.empty() ) {
- char const * lc_msgs = setlocale(LC_MESSAGES, NULL);
+ char const * lc_msgs = 0;
+#ifdef HAVE_LC_MESSAGES
+ lc_msgs = setlocale(LC_MESSAGES, NULL);
+#endif
lang_ = lc_msgs ? lc_msgs : "";
}
// strip off any encoding suffix, i.e., assume 8-bit po files
@@ -117,8 +120,9 @@
lang = "C";
}
}
-
+#ifdef HAVE_LC_MESSAGES
char const * lc_msgs = setlocale(LC_MESSAGES, lang_.c_str());
+#endif
// setlocale fails (returns NULL) if the corresponding locale
// is not installed.
// On windows (mingw) it always returns NULL.
@@ -164,7 +168,9 @@
boost::smatch sub;
if (regex_match(translated, sub, reg))
translated = sub.str(1);
+#ifdef HAVE_LC_MESSAGES
setlocale(LC_MESSAGES, lang.c_str());
+#endif
setlocale(LC_CTYPE, oldCTYPE.c_str());
return translated;
}
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14067 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-10 07:05:21 +00:00
|
|
|
|
char const * lc_msgs = 0;
|
|
|
|
|
#ifdef HAVE_LC_MESSAGES
|
|
|
|
|
lc_msgs = setlocale(LC_MESSAGES, NULL);
|
|
|
|
|
#endif
|
2005-11-03 09:21:09 +00:00
|
|
|
|
lang_ = lc_msgs ? lc_msgs : "";
|
|
|
|
|
}
|
2005-07-17 11:58:54 +00:00
|
|
|
|
// strip off any encoding suffix, i.e., assume 8-bit po files
|
|
|
|
|
string::size_type i = lang_.find(".");
|
|
|
|
|
lang_ = lang_.substr(0, i);
|
2005-07-18 15:12:15 +00:00
|
|
|
|
lyxerr[Debug::DEBUG] << BOOST_CURRENT_FUNCTION
|
2006-09-09 11:16:28 +00:00
|
|
|
|
<< ": language(" << lang_ << ")" << endl;
|
2003-04-24 22:09:46 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
~Pimpl() {}
|
|
|
|
|
|
2006-09-09 11:16:28 +00:00
|
|
|
|
docstring const get(string const & m) const
|
2003-04-24 22:09:46 +00:00
|
|
|
|
{
|
2003-06-10 14:39:45 +00:00
|
|
|
|
if (m.empty())
|
2006-09-09 11:16:28 +00:00
|
|
|
|
return lyx::from_ascii(m);
|
2003-06-10 14:39:45 +00:00
|
|
|
|
|
2005-07-17 11:58:54 +00:00
|
|
|
|
// In this order, see support/filetools.C:
|
|
|
|
|
string lang = getEnv("LC_ALL");
|
|
|
|
|
if (lang.empty()) {
|
|
|
|
|
lang = getEnv("LC_MESSAGES");
|
|
|
|
|
if (lang.empty()) {
|
|
|
|
|
lang = getEnv("LANG");
|
|
|
|
|
if (lang.empty())
|
|
|
|
|
lang = "C";
|
|
|
|
|
}
|
|
|
|
|
}
|
fix crash on startup under windows by avoiding the call
setlocale(LC_MESSAGES, ...
scons tests on LC_MESSAGES there is also an m4 file for LC_MESSAGES
so I think all build systems handle HAVE_LC_MESSAGES.
Index: src/messages.C
===================================================================
--- src/messages.C (revision 14066)
+++ src/messages.C (working copy)
@@ -90,7 +90,10 @@
: lang_(l)
{
if ( lang_.empty() ) {
- char const * lc_msgs = setlocale(LC_MESSAGES, NULL);
+ char const * lc_msgs = 0;
+#ifdef HAVE_LC_MESSAGES
+ lc_msgs = setlocale(LC_MESSAGES, NULL);
+#endif
lang_ = lc_msgs ? lc_msgs : "";
}
// strip off any encoding suffix, i.e., assume 8-bit po files
@@ -117,8 +120,9 @@
lang = "C";
}
}
-
+#ifdef HAVE_LC_MESSAGES
char const * lc_msgs = setlocale(LC_MESSAGES, lang_.c_str());
+#endif
// setlocale fails (returns NULL) if the corresponding locale
// is not installed.
// On windows (mingw) it always returns NULL.
@@ -164,7 +168,9 @@
boost::smatch sub;
if (regex_match(translated, sub, reg))
translated = sub.str(1);
+#ifdef HAVE_LC_MESSAGES
setlocale(LC_MESSAGES, lang.c_str());
+#endif
setlocale(LC_CTYPE, oldCTYPE.c_str());
return translated;
}
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14067 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-10 07:05:21 +00:00
|
|
|
|
#ifdef HAVE_LC_MESSAGES
|
2005-11-03 09:21:09 +00:00
|
|
|
|
char const * lc_msgs = setlocale(LC_MESSAGES, lang_.c_str());
|
fix crash on startup under windows by avoiding the call
setlocale(LC_MESSAGES, ...
scons tests on LC_MESSAGES there is also an m4 file for LC_MESSAGES
so I think all build systems handle HAVE_LC_MESSAGES.
Index: src/messages.C
===================================================================
--- src/messages.C (revision 14066)
+++ src/messages.C (working copy)
@@ -90,7 +90,10 @@
: lang_(l)
{
if ( lang_.empty() ) {
- char const * lc_msgs = setlocale(LC_MESSAGES, NULL);
+ char const * lc_msgs = 0;
+#ifdef HAVE_LC_MESSAGES
+ lc_msgs = setlocale(LC_MESSAGES, NULL);
+#endif
lang_ = lc_msgs ? lc_msgs : "";
}
// strip off any encoding suffix, i.e., assume 8-bit po files
@@ -117,8 +120,9 @@
lang = "C";
}
}
-
+#ifdef HAVE_LC_MESSAGES
char const * lc_msgs = setlocale(LC_MESSAGES, lang_.c_str());
+#endif
// setlocale fails (returns NULL) if the corresponding locale
// is not installed.
// On windows (mingw) it always returns NULL.
@@ -164,7 +168,9 @@
boost::smatch sub;
if (regex_match(translated, sub, reg))
translated = sub.str(1);
+#ifdef HAVE_LC_MESSAGES
setlocale(LC_MESSAGES, lang.c_str());
+#endif
setlocale(LC_CTYPE, oldCTYPE.c_str());
return translated;
}
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14067 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-10 07:05:21 +00:00
|
|
|
|
#endif
|
2006-01-28 20:13:10 +00:00
|
|
|
|
// setlocale fails (returns NULL) if the corresponding locale
|
|
|
|
|
// is not installed.
|
2006-09-08 14:43:50 +00:00
|
|
|
|
// On windows (mingw and cygwin) it always returns NULL.
|
2006-01-28 20:13:10 +00:00
|
|
|
|
// Since this method gets called for every translatable
|
|
|
|
|
// buffer string like e.g. "Figure:" we warn only once.
|
2006-09-08 14:43:50 +00:00
|
|
|
|
#if !defined(_WIN32) && !defined(__CYGWIN__)
|
2006-01-28 20:13:10 +00:00
|
|
|
|
static bool warned = false;
|
|
|
|
|
if (!warned && !lc_msgs) {
|
|
|
|
|
warned = true;
|
2006-09-09 11:16:28 +00:00
|
|
|
|
lyxerr << "Locale " << lang_ << " could not be set" << endl;
|
2006-01-28 20:13:10 +00:00
|
|
|
|
}
|
2005-11-03 09:21:09 +00:00
|
|
|
|
#endif
|
2005-07-16 15:55:36 +00:00
|
|
|
|
// CTYPE controls what getmessage thinks what encoding the po file uses
|
2005-11-03 09:21:09 +00:00
|
|
|
|
char const * lc_ctype = setlocale(LC_CTYPE, NULL);
|
|
|
|
|
string oldCTYPE = lc_ctype ? lc_ctype : "";
|
|
|
|
|
|
2005-07-16 15:55:36 +00:00
|
|
|
|
setlocale(LC_CTYPE, lang_.c_str());
|
2005-07-17 11:58:54 +00:00
|
|
|
|
errno = 0;
|
|
|
|
|
char const * c = bindtextdomain(PACKAGE, package().locale_dir().c_str());
|
|
|
|
|
int e = errno;
|
|
|
|
|
if (e) {
|
2005-07-18 15:12:15 +00:00
|
|
|
|
lyxerr[Debug::DEBUG]
|
2006-04-05 23:56:29 +00:00
|
|
|
|
<< BOOST_CURRENT_FUNCTION << '\n'
|
|
|
|
|
<< "Error code: " << errno << '\n'
|
|
|
|
|
<< "Lang, mess: " << lang_ << " " << m << '\n'
|
|
|
|
|
<< "Directory : " << package().locale_dir() << '\n'
|
2006-09-09 11:16:28 +00:00
|
|
|
|
<< "Rtn value : " << c << endl;
|
|
|
|
|
}
|
|
|
|
|
#ifdef WORDS_BIGENDIAN
|
|
|
|
|
static const char * codeset = "UCS-4BE";
|
|
|
|
|
#else
|
|
|
|
|
static const char * codeset = "UCS-4LE";
|
|
|
|
|
#endif
|
|
|
|
|
if (!bind_textdomain_codeset(PACKAGE, codeset)) {
|
|
|
|
|
lyxerr[Debug::DEBUG]
|
|
|
|
|
<< BOOST_CURRENT_FUNCTION << '\n'
|
|
|
|
|
<< "Error code: " << errno << '\n'
|
|
|
|
|
<< "Codeset : " << codeset << '\n'
|
|
|
|
|
<< endl;
|
2005-07-17 11:58:54 +00:00
|
|
|
|
}
|
2006-09-09 11:16:28 +00:00
|
|
|
|
|
2004-06-08 14:06:11 +00:00
|
|
|
|
textdomain(PACKAGE);
|
2006-09-09 11:16:28 +00:00
|
|
|
|
#if 0
|
2003-04-24 22:09:46 +00:00
|
|
|
|
const char* msg = gettext(m.c_str());
|
2005-11-03 09:21:09 +00:00
|
|
|
|
string translated(msg ? msg : m);
|
2004-10-19 09:11:02 +00:00
|
|
|
|
// Some english words have different translations, depending
|
|
|
|
|
// on context. In these cases the original string is
|
|
|
|
|
// augmented by context information (e.g.
|
|
|
|
|
// "To:[[as in 'From page x to page y']]" and
|
|
|
|
|
// "To:[[as in 'From format x to format y']]".
|
|
|
|
|
// This means that we need to filter out everything in
|
|
|
|
|
// double square brackets at the end of the string,
|
|
|
|
|
// otherwise the user sees bogus messages.
|
2003-04-25 01:54:04 +00:00
|
|
|
|
// If we are unable to honour the request we just
|
|
|
|
|
// return what we got in.
|
2004-10-19 09:11:02 +00:00
|
|
|
|
static boost::regex const reg("^([^\\[]*)\\[\\[[^\\]]*\\]\\]$");
|
|
|
|
|
boost::smatch sub;
|
|
|
|
|
if (regex_match(translated, sub, reg))
|
|
|
|
|
translated = sub.str(1);
|
2006-09-09 11:16:28 +00:00
|
|
|
|
#else
|
|
|
|
|
char const * tmp = m.c_str();
|
|
|
|
|
char const * msg = gettext(tmp);
|
|
|
|
|
docstring translated;
|
|
|
|
|
if (!msg) {
|
|
|
|
|
lyxerr << "Undefined result from gettext" << endl;
|
|
|
|
|
translated = from_ascii(tmp);
|
|
|
|
|
} else if (msg == tmp) {
|
2006-09-19 13:36:20 +00:00
|
|
|
|
//lyxerr << "Same as entered returned" << endl;
|
2006-09-09 11:16:28 +00:00
|
|
|
|
translated = from_ascii(tmp);
|
|
|
|
|
} else {
|
|
|
|
|
lyxerr << "We got a translation" << endl;
|
|
|
|
|
lyx::char_type const * ucs4 = reinterpret_cast<lyx::char_type const *>(msg);
|
|
|
|
|
translated = ucs4;
|
|
|
|
|
}
|
|
|
|
|
#endif
|
fix crash on startup under windows by avoiding the call
setlocale(LC_MESSAGES, ...
scons tests on LC_MESSAGES there is also an m4 file for LC_MESSAGES
so I think all build systems handle HAVE_LC_MESSAGES.
Index: src/messages.C
===================================================================
--- src/messages.C (revision 14066)
+++ src/messages.C (working copy)
@@ -90,7 +90,10 @@
: lang_(l)
{
if ( lang_.empty() ) {
- char const * lc_msgs = setlocale(LC_MESSAGES, NULL);
+ char const * lc_msgs = 0;
+#ifdef HAVE_LC_MESSAGES
+ lc_msgs = setlocale(LC_MESSAGES, NULL);
+#endif
lang_ = lc_msgs ? lc_msgs : "";
}
// strip off any encoding suffix, i.e., assume 8-bit po files
@@ -117,8 +120,9 @@
lang = "C";
}
}
-
+#ifdef HAVE_LC_MESSAGES
char const * lc_msgs = setlocale(LC_MESSAGES, lang_.c_str());
+#endif
// setlocale fails (returns NULL) if the corresponding locale
// is not installed.
// On windows (mingw) it always returns NULL.
@@ -164,7 +168,9 @@
boost::smatch sub;
if (regex_match(translated, sub, reg))
translated = sub.str(1);
+#ifdef HAVE_LC_MESSAGES
setlocale(LC_MESSAGES, lang.c_str());
+#endif
setlocale(LC_CTYPE, oldCTYPE.c_str());
return translated;
}
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14067 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-10 07:05:21 +00:00
|
|
|
|
#ifdef HAVE_LC_MESSAGES
|
2005-07-17 11:58:54 +00:00
|
|
|
|
setlocale(LC_MESSAGES, lang.c_str());
|
fix crash on startup under windows by avoiding the call
setlocale(LC_MESSAGES, ...
scons tests on LC_MESSAGES there is also an m4 file for LC_MESSAGES
so I think all build systems handle HAVE_LC_MESSAGES.
Index: src/messages.C
===================================================================
--- src/messages.C (revision 14066)
+++ src/messages.C (working copy)
@@ -90,7 +90,10 @@
: lang_(l)
{
if ( lang_.empty() ) {
- char const * lc_msgs = setlocale(LC_MESSAGES, NULL);
+ char const * lc_msgs = 0;
+#ifdef HAVE_LC_MESSAGES
+ lc_msgs = setlocale(LC_MESSAGES, NULL);
+#endif
lang_ = lc_msgs ? lc_msgs : "";
}
// strip off any encoding suffix, i.e., assume 8-bit po files
@@ -117,8 +120,9 @@
lang = "C";
}
}
-
+#ifdef HAVE_LC_MESSAGES
char const * lc_msgs = setlocale(LC_MESSAGES, lang_.c_str());
+#endif
// setlocale fails (returns NULL) if the corresponding locale
// is not installed.
// On windows (mingw) it always returns NULL.
@@ -164,7 +168,9 @@
boost::smatch sub;
if (regex_match(translated, sub, reg))
translated = sub.str(1);
+#ifdef HAVE_LC_MESSAGES
setlocale(LC_MESSAGES, lang.c_str());
+#endif
setlocale(LC_CTYPE, oldCTYPE.c_str());
return translated;
}
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14067 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-10 07:05:21 +00:00
|
|
|
|
#endif
|
2005-07-16 15:55:36 +00:00
|
|
|
|
setlocale(LC_CTYPE, oldCTYPE.c_str());
|
2004-10-19 09:11:02 +00:00
|
|
|
|
return translated;
|
2003-04-24 22:09:46 +00:00
|
|
|
|
}
|
|
|
|
|
private:
|
|
|
|
|
///
|
|
|
|
|
string lang_;
|
|
|
|
|
};
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#else // ENABLE_NLS
|
|
|
|
|
// This is the dummy variant.
|
|
|
|
|
class Messages::Pimpl {
|
|
|
|
|
public:
|
2003-04-27 22:11:45 +00:00
|
|
|
|
Pimpl(string const &) {}
|
2003-04-24 22:09:46 +00:00
|
|
|
|
|
|
|
|
|
~Pimpl() {}
|
|
|
|
|
|
2006-09-11 11:58:47 +00:00
|
|
|
|
docstring const get(string const & m) const
|
2003-04-24 22:09:46 +00:00
|
|
|
|
{
|
2006-09-11 11:58:47 +00:00
|
|
|
|
return lyx::from_ascii(m);
|
2003-04-24 22:09:46 +00:00
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
#endif
|
|
|
|
|
|
2003-04-27 22:11:45 +00:00
|
|
|
|
|
|
|
|
|
Messages::Messages()
|
|
|
|
|
: pimpl_(new Pimpl(""))
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Messages::Messages(string const & l)
|
|
|
|
|
: pimpl_(new Pimpl(l))
|
2003-04-24 22:09:46 +00:00
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
|
2003-04-24 23:46:40 +00:00
|
|
|
|
// We need this for the sake of scoped_ptr
|
2003-04-23 18:47:21 +00:00
|
|
|
|
Messages::~Messages()
|
2003-04-24 22:09:46 +00:00
|
|
|
|
{}
|
2003-04-23 18:47:21 +00:00
|
|
|
|
|
|
|
|
|
|
2006-09-09 11:16:28 +00:00
|
|
|
|
docstring const Messages::get(string const & msg) const
|
2003-04-23 18:47:21 +00:00
|
|
|
|
{
|
2003-04-24 22:09:46 +00:00
|
|
|
|
return pimpl_->get(msg);
|
2003-04-23 18:47:21 +00:00
|
|
|
|
}
|