You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
514 B
C
24 lines
514 B
C
|
3 weeks ago
|
#ifndef NMTRANSLATIONMANAGER_H
|
||
|
|
#define NMTRANSLATIONMANAGER_H
|
||
|
|
|
||
|
|
#include <QMap>
|
||
|
|
#include <QString>
|
||
|
|
#include "nmData_global.h"
|
||
|
|
#include <QObject>
|
||
|
|
|
||
|
|
class NM_DATA_EXPORT nmTranslationManager : public QObject
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
public:
|
||
|
|
// 初始化翻译映射
|
||
|
|
static void initTranslations();
|
||
|
|
|
||
|
|
// 英文 → 中文(仅用于界面显示)
|
||
|
|
static QString mapToChinese(const QString& sEnglishText);
|
||
|
|
|
||
|
|
private:
|
||
|
|
static QMap<QString, QString> m_mapEnToZh; // 英文到中文映射
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // NMTRANSLATIONMANAGER_H
|