skiars / SerialTool

A cross platform Serial-Port/TCP/UDP debugging tool.
GNU General Public License v3.0
691 stars 245 forks source link

语言不能切换 #3

Closed 932432866 closed 5 years ago

932432866 commented 5 years ago

编译显示英文,想设置为中文,结果不行,求指教

932432866 commented 5 years ago

Starting E:\TEST-JOKEY\qt\build-SerialTool-Desktop_Qt_5_7_0_MinGW_32bit-Debug\debug\SerialTool.exe... edit: editing failed QIODevice::read (QFile, "themes\default\style.css"): device not open windows10平台下,编译完后运行,有如下两条警告。语言不能选择,css文件也不能读取。

skiars commented 5 years ago

你好,切换语言需要在运行目录下有language文件夹,你看看我的安装包解包后的文件。language文件夹存放翻译文件。主题是需要themes文件夹,这个文件夹下面存放主题文件。这两个文件夹需要与可执行文件在同一目录。如果你是用Qt Creator编译运行的话,就需要把这两个文件夹放到build-SerialTool-xxx这个编译输出文件夹下面。

932432866 commented 5 years ago

哦,这样啊,太感谢了!

skiars commented 5 years ago

没事没事