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

not all compiling message in native language #668

Open
anbangli opened this issue Jan 29, 2024 · 1 comment
Open

not all compiling message in native language #668

anbangli opened this issue Jan 29, 2024 · 1 comment

Comments

@anbangli
Copy link

anbangli commented Jan 29, 2024

My friends had learnt to build MinGW-w64 with --enalbe-nls option, and I spent several weeks to translate all entries in gcc.po of zh_CN version. Then I put gcc.mo in the corresponding path of MinGW64 ("MinGW64\share\locale\zh_CN\LC_MESSAGES" and "MinGW64\libexec\gcc\x86_64-w64-mingw32\share\locale\zh_CN\LC_MESSAGES"), expecting all compiling message will be in Chinese. However, some message are in Chinese, but some are still in English, as you can see in the attached screenshot.

msg-en-cn

In the attached screenshot, he compiling message is as following (one in Chinese, two in English):
hello.cpp|2|error: invalid preprocessing directive #include1; did you mean #include?|
hello.cpp|5|error: 'int1' 在此作用域中尚未声明; 您是否想要 'int' ?|
hello.cpp|7|error: expected ';' before 'return'|

I looked for "invalid preprocessing directive" in gcc.po, no result.
Then I found that there is an entry of "invalid preprocessing directive #%s" and "invalid preprocessing directive #%s; did you mean #%s?" in libcpp.po. I translated the entries, and put libcpp.mo in corresponding path. But the compiling message is still in English.

What can I do, in order to make all compiling message in my native language?

@niXman
Copy link
Owner

niXman commented Sep 3, 2024

hmm... im sorry but I have no ideas how to fix it.

I think you should write to gcc mailing list: gcc-help@gcc.gnu.org
you should subscribe first: https://gcc.gnu.org/mailman/listinfo/gcc-help

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

No branches or pull requests

2 participants