Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation .qm files not built by default #31

Closed
hosiet opened this issue Jul 23, 2017 · 3 comments
Closed

Translation .qm files not built by default #31

hosiet opened this issue Jul 23, 2017 · 3 comments
Assignees
Labels

Comments

@hosiet
Copy link
Contributor

hosiet commented Jul 23, 2017

qmake .
make

在 Linux 系统下,如此操作将不会从 .ts 文件构建 .qm 文件,需要调查原因。

不是很熟悉 QMake, src/src.pro 中有 i18n{} 这一段,但不知为何貌似没起作用。

@Harinlen Harinlen self-assigned this Jul 23, 2017
@Harinlen
Copy link
Member

只是因为目前没有在config里加入i18n,在正式发布的时候会带上的。现在在手动测试一个翻译文件。

@frantic1048
Copy link
Member

可以在 qmake 中传入 release 选项,这样构建就会有 i18n 部分了。类似这样:

qmake "CONFIG+=release" PATH_TO/mu.pro
make

参见:https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=kreogist-mu#n47

@Harinlen
Copy link
Member

Harinlen commented Aug 4, 2017

其实只是之前在Qt Creator调试的时候顺手给注释了……

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants