Commit eaf43adc by 刘帅

适配繁体中文

编译说明:
1. pro文件中检查是否添加 DEFINES += CHINESE_TRADITIONAL
2. 用 res_Chinese_Simplified或者res_Chinese_Traditional目录文件覆盖res目录下文件
parent a804409d
......@@ -69,10 +69,10 @@ bool readStorid(QString &storid)
xml.clear();
file.close();
if( StoreLegacyId != StoreId){
QMessageBox::information(NULL, QString("err"), "StoreLegacyId和StoreId不配,请联系it人员!");
}
// hk版本不进行检查 2019-03-27
// if( StoreLegacyId != StoreId){
// QMessageBox::information(NULL, QString("err"), "StoreLegacyId和StoreId不配,请联系it人员!");
// }
storid = StoreId;
......
#include "inputdialog.h"
#include "inputdialog.h"
#include "ui_inputdialog.h"
#include <windows.h>
......@@ -6,6 +6,7 @@
#pragma execution_character_set("utf-8")
#endif
InputDialog::InputDialog(QWidget *parent) :
LcMyDialog(parent),
ui(new Ui::InputDialog)
......@@ -31,6 +32,11 @@ InputDialog::InputDialog(QWidget *parent) :
//setAttribute(Qt::WA_TranslucentBackground);
//this->installEventFilter( this);
#ifdef CHINESE_TRADITIONAL
ui->btnClear->setText("清空");
ui->btnOk->setText("確定");
ui->btnCanle->setText("取消");
#endif
checkTopTimer.setInterval( 1000);
connect( &checkTopTimer, &QTimer::timeout, this, &InputDialog::timeOut);
......
#-------------------------------------------------
#
# Project created by 孙长2016-01-11T12:58:22
# Project created by 孙长2016-01-11T12:58:22
# Copyright (C) 2016 上海非码网络科技有限公司
# All rights reserved
#-------------------------------------------------
......@@ -14,6 +14,7 @@ TEMPLATE = app
INCLUDEPATH += $$PWD/../qMcdCode/widget
DEFINES += CHINESE_TRADITIONAL
CONFIG(debug, debug|release){
DESTDIR = $$PWD/bin/debug
......
qMcdCode/res/bg_exchange.png

47 KB | W: | H:

qMcdCode/res/bg_exchange.png

47.2 KB | W: | H:

qMcdCode/res/bg_exchange.png
qMcdCode/res/bg_exchange.png
qMcdCode/res/bg_exchange.png
qMcdCode/res/bg_exchange.png
  • 2-up
  • Swipe
  • Onion skin
qMcdCode/res/bg_invalid_code.png

12.7 KB | W: | H:

qMcdCode/res/bg_invalid_code.png

14.6 KB | W: | H:

qMcdCode/res/bg_invalid_code.png
qMcdCode/res/bg_invalid_code.png
qMcdCode/res/bg_invalid_code.png
qMcdCode/res/bg_invalid_code.png
  • 2-up
  • Swipe
  • Onion skin
qMcdCode/res/bg_no_exchange.png

47.2 KB | W: | H:

qMcdCode/res/bg_no_exchange.png

47.1 KB | W: | H:

qMcdCode/res/bg_no_exchange.png
qMcdCode/res/bg_no_exchange.png
qMcdCode/res/bg_no_exchange.png
qMcdCode/res/bg_no_exchange.png
  • 2-up
  • Swipe
  • Onion skin
qMcdCode/res/bg_sanning.png

62.9 KB | W: | H:

qMcdCode/res/bg_sanning.png

28.6 KB | W: | H:

qMcdCode/res/bg_sanning.png
qMcdCode/res/bg_sanning.png
qMcdCode/res/bg_sanning.png
qMcdCode/res/bg_sanning.png
  • 2-up
  • Swipe
  • Onion skin
qMcdCode/res/btnInput.png

4.48 KB | W: | H:

qMcdCode/res/btnInput.png

10 KB | W: | H:

qMcdCode/res/btnInput.png
qMcdCode/res/btnInput.png
qMcdCode/res/btnInput.png
qMcdCode/res/btnInput.png
  • 2-up
  • Swipe
  • Onion skin
qMcdCode/res/btn_canel.png

2.93 KB | W: | H:

qMcdCode/res/btn_canel.png

2.97 KB | W: | H:

qMcdCode/res/btn_canel.png
qMcdCode/res/btn_canel.png
qMcdCode/res/btn_canel.png
qMcdCode/res/btn_canel.png
  • 2-up
  • Swipe
  • Onion skin
qMcdCode/res/btn_consumption.png

4.83 KB | W: | H:

qMcdCode/res/btn_consumption.png

5.01 KB | W: | H:

qMcdCode/res/btn_consumption.png
qMcdCode/res/btn_consumption.png
qMcdCode/res/btn_consumption.png
qMcdCode/res/btn_consumption.png
  • 2-up
  • Swipe
  • Onion skin
qMcdCode/res/consumption_ok.png

5.95 KB | W: | H:

qMcdCode/res/consumption_ok.png

6.69 KB | W: | H:

qMcdCode/res/consumption_ok.png
qMcdCode/res/consumption_ok.png
qMcdCode/res/consumption_ok.png
qMcdCode/res/consumption_ok.png
  • 2-up
  • Swipe
  • Onion skin
qMcdCode/res/top.png

4.04 KB | W: | H:

qMcdCode/res/top.png

8.86 KB | W: | H:

qMcdCode/res/top.png
qMcdCode/res/top.png
qMcdCode/res/top.png
qMcdCode/res/top.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -36,8 +36,14 @@ WorkWidget::WorkWidget(QWidget *parent) :
void WorkWidget::timeout()
{
pointTime = (pointTime + 1)%7;
#ifdef CHINESE_TRADITIONAL
QString str = "驗證中";
QString str2 = "退貨中";
#else
QString str = "验证中";
QString str2 = "退货中";
#endif
for( int i = 0; i < pointTime; i ++){
str.append(".");
str2.append(".");
......@@ -297,7 +303,11 @@ void WorkWidget::error(int socketError, const QString message)
{
this->hide();
QString mess;
#ifdef CHINESE_TRADITIONAL
mess.append("errcode:").append( QString::number( socketError)).append("! ").append( message).append("!請稍後重試,仍然失敗的話請聯系it人員!");
#else
mess.append("errcode:").append( QString::number( socketError)).append("! ").append( message).append("!请稍后重试,仍然失败的话请联系it人员!");
#endif
QMessageBox::about( this, "err message", mess);
exit(0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment