2014-10-18 21:13:57 +04:00
|
|
|
#ifndef __openscad_qtgettext_h__
|
|
|
|
#define __openscad_qtgettext_h__
|
|
|
|
|
|
|
|
// see doc/translation.txt
|
|
|
|
|
2014-10-18 21:21:45 +04:00
|
|
|
// MinGW defines sprintf to libintl_sprintf which breaks usage of the
|
|
|
|
// Qt sprintf in QString. This is skipped if sprintf and _GL_STDIO_H
|
|
|
|
// is already defined, so the workaround defines sprintf as itself.
|
|
|
|
#ifdef __MINGW32__
|
|
|
|
#define _GL_STDIO_H
|
|
|
|
#define sprintf sprintf
|
|
|
|
#endif
|
|
|
|
|
2014-10-18 21:13:57 +04:00
|
|
|
#include <QString>
|
2014-10-18 21:21:45 +04:00
|
|
|
#include "printutils.h"
|
2014-10-18 21:13:57 +04:00
|
|
|
|
2014-10-19 02:38:56 +04:00
|
|
|
#define N_(String) String
|
|
|
|
|
2014-10-18 21:13:57 +04:00
|
|
|
inline QString _( const char *msgid, int category )
|
|
|
|
{
|
|
|
|
Q_UNUSED( category );
|
|
|
|
return QString::fromUtf8( _( msgid ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|