-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[优化国际化和代码可读性]: 更新了项目的国际化实现和代码结构,提高了代码的可维护性和翻译的便捷性。
- 在`README.md`中增加了国际化实时翻译的更新命令,并修正了参考链接,确保指向最新的QT实用小技巧。 - `cmake/qt_utils.cmake`中为翻译添加了`-no-obsolete`选项,避免更新过时的翻译项。 - `messbox.cpp`中将翻译调用从`QCoreApplication::translate`更改为类特定的`MessBox::tr`,以提高翻译调用的准确性。 - `mainwindow.cpp`中更新了信号连接的写法,使用`q_ptr->connect`代替`QObject::connect`,以确保信号连接的正确性。 - `hashwidget.cc`中更新了翻译调用,并优化了翻译文本,以确保翻译的准确性和一致性。 - `utils.cpp`和`utilstr.h`中调整了翻译相关的结构和命名空间,以适应代码结构的变更。 - `translations/qt-app_zh_CN.ts`中更新了翻译文件,移除了过时的上下文,并添加了新的上下文以匹配源代码的更改。
- Loading branch information
Showing
8 changed files
with
95 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters