myxlib/examples/qt/01_translators/translators.cpp

20 lines
370 B
C++
Raw Normal View History

#include <myx/qt/translators.hpp>
#include <QCoreApplication>
#include <QDebug>
namespace MQ = myx::qt;
int main( int argc, char** argv )
{
QCoreApplication app( argc, argv );
MQ::QTranslatorsList tl;
qDebug() << QObject::tr( "Yes" );
MQ::append_translators( tl, QStringLiteral( "example-qt-translators" ) );
qDebug() << QObject::tr( "Yes" );
return( 0 );
}