I have this source:
File stringconstant.h
#include <QString>
#include <QStringList>
class StringConstant
: public QObject{
Q_OBJECT
public:
};
#include <QString>
#include <QStringList>
class StringConstant : public QObject
{
Q_OBJECT
public:
static const QStringList EXAMPLE_LIST;
};
To copy to clipboard, switch view to plain text mode
File stringconstant.cpp
#include "stringconstant.h"
#include <QStringList>
<< QT_TR_NOOP("Mother")
<< QT_TR_NOOP("Father");
#include "stringconstant.h"
#include <QStringList>
const QStringList StringConstant::EXAMPLE_LIST = QStringList() << QT_TR_NOOP("Hello")
<< QT_TR_NOOP("Mother")
<< QT_TR_NOOP("Father");
To copy to clipboard, switch view to plain text mode
Problem is: when I run lupdate, the .ts file created, but it have nothing.
How can I fix this ?
Bookmarks