diff --git a/lang/yuvviewer_en_US.ts b/lang/yuvviewer_en_US.ts index 72aeae8..4fa4d40 100644 --- a/lang/yuvviewer_en_US.ts +++ b/lang/yuvviewer_en_US.ts @@ -1,6 +1,17 @@ + + ImgExport + + + + + + Save File + + + ImgExportWindow diff --git a/lang/yuvviewer_ja_JP.ts b/lang/yuvviewer_ja_JP.ts index 232f418..6265107 100644 --- a/lang/yuvviewer_ja_JP.ts +++ b/lang/yuvviewer_ja_JP.ts @@ -1,6 +1,17 @@ + + ImgExport + + + + + + Save File + ファイルを保存する + + ImgExportWindow diff --git a/lang/yuvviewer_zh_CN.ts b/lang/yuvviewer_zh_CN.ts index b281c0e..4cfd377 100644 --- a/lang/yuvviewer_zh_CN.ts +++ b/lang/yuvviewer_zh_CN.ts @@ -1,6 +1,17 @@ + + ImgExport + + + + + + Save File + 保存文件 + + ImgExportWindow diff --git a/src/ImgExport.cpp b/src/ImgExport.cpp index 5cf75ff..37e3171 100644 --- a/src/ImgExport.cpp +++ b/src/ImgExport.cpp @@ -127,7 +127,7 @@ void ImgExport::buttonBoxRejected(void) void ImgExport::export_png(QImage *Img, const QString &name) { - QString savefile_name = FileDialog::getSaveFileName(this, "保存文件", name + "-png" + ".png", "Image files(*.png)"); + QString savefile_name = FileDialog::getSaveFileName(this, tr("Save File"), name + "-png" + ".png", "Image files(*.png)"); if(savefile_name != nullptr) { Img->save(savefile_name); } @@ -135,7 +135,7 @@ void ImgExport::export_png(QImage *Img, const QString &name) void ImgExport::export_yuv(QImage *Img, const QString &sequence, const QString &name) { - QString savefile_name = FileDialog::getSaveFileName(this, "保存文件", name + "-" + sequence + ".yuv", "YUV files(*.yuv)"); + QString savefile_name = FileDialog::getSaveFileName(this, tr("Save File"), name + "-" + sequence + ".yuv", "YUV files(*.yuv)"); if(savefile_name != nullptr) { QFile save(savefile_name); if (save.open(QIODevice::WriteOnly)) { @@ -240,7 +240,7 @@ void ImgExport::export_yuv(QImage *Img, const QString &sequence, const QString & void ImgExport::export_rgb(QImage *Img, const QString &sequence, const QString &name) { - QString savefile_name = FileDialog::getSaveFileName(this, "保存文件", name + "-" + sequence + ".data", "Data files(*.data)"); + QString savefile_name = FileDialog::getSaveFileName(this, tr("Save File"), name + "-" + sequence + ".data", "Data files(*.data)"); if(savefile_name != nullptr) { QFile save(savefile_name); if (save.open(QIODevice::WriteOnly)) { @@ -289,7 +289,7 @@ void ImgExport::export_bayer(QImage *Img, const QString &sequence,int bit, const QMessageBox::warning(this, "Warning", "导出此格式将通过模拟抽样的方式,图像信息将会出现损失!", QMessageBox::StandardButtons(QMessageBox::Ok)); - QString savefile_name = FileDialog::getSaveFileName(this, "保存文件", name + "-bayer" + sequence + QString::number(bit) +".raw", "RAW files(*.raw)"); + QString savefile_name = FileDialog::getSaveFileName(this, tr("Save File"), name + "-bayer" + sequence + QString::number(bit) +".raw", "RAW files(*.raw)"); if(savefile_name != nullptr) { QFile save(savefile_name); if (save.open(QIODevice::WriteOnly)) {