mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-20 06:49:56 +00:00
Remove dummy gettext.cpp from tex2lyx source and use a dummy message
object instead. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30505 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
dbf1f87bd7
commit
d9e4ced1d4
@ -595,7 +595,6 @@ src_tex2lyx_files = Split('''
|
||||
boost.cpp
|
||||
Context.cpp
|
||||
Font.cpp
|
||||
gettext.cpp
|
||||
math.cpp
|
||||
Parser.cpp
|
||||
preamble.cpp
|
||||
|
@ -58,7 +58,6 @@ tex2lyx_SOURCES = \
|
||||
Context.h \
|
||||
Font.cpp \
|
||||
Font.h \
|
||||
gettext.cpp \
|
||||
Parser.cpp \
|
||||
Parser.h \
|
||||
tex2lyx.cpp \
|
||||
@ -70,6 +69,6 @@ tex2lyx_SOURCES = \
|
||||
|
||||
tex2lyx_LDADD = \
|
||||
$(top_builddir)/src/support/liblyxsupport.a \
|
||||
$(LIBICONV) $(BOOST_LIBS) \
|
||||
$(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) \
|
||||
$(QT4_LIB) $(QT4_LDFLAGS) \
|
||||
@LIBS@ $(LIBSHLWAPI) $(LIBPSAPI)
|
||||
|
@ -1,32 +0,0 @@
|
||||
/**
|
||||
* \file tex2lyx/gettext.cpp
|
||||
* This file is part of LyX, the document processor.
|
||||
* Licence details can be found in the file COPYING.
|
||||
*
|
||||
* \author Lars Gullik Bjønnes
|
||||
* \author Jean-Marc Lasgouttes
|
||||
*
|
||||
* Full author contact details are available in file CREDITS.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "support/gettext.h"
|
||||
#include "../support/docstring.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
||||
docstring const _(string const & str)
|
||||
{
|
||||
return from_ascii(str);
|
||||
}
|
||||
|
||||
|
||||
void locale_init()
|
||||
{}
|
||||
|
||||
|
||||
} // namespace lyx
|
@ -25,6 +25,7 @@
|
||||
#include "support/filetools.h"
|
||||
#include "support/lassert.h"
|
||||
#include "support/lstrings.h"
|
||||
#include "support/Messages.h"
|
||||
#include "support/os.h"
|
||||
#include "support/Package.h"
|
||||
|
||||
@ -41,6 +42,20 @@ using namespace lyx::support::os;
|
||||
|
||||
namespace lyx {
|
||||
|
||||
// Dummy translation support
|
||||
Messages messages_;
|
||||
Messages & getMessages(std::string const &)
|
||||
{
|
||||
return messages_;
|
||||
}
|
||||
|
||||
|
||||
Messages & getGuiMessages()
|
||||
{
|
||||
return messages_;
|
||||
}
|
||||
|
||||
|
||||
string const trim(string const & a, char const * p)
|
||||
{
|
||||
// LASSERT(p, /**/);
|
||||
|
Loading…
Reference in New Issue
Block a user