niXman / mingw-builds

Scripts for building the 32 and 64-bit MinGW-W64 compilers for Windows
Other
282 stars 107 forks source link

not all compiling message in native language #668

Open anbangli opened 7 months ago

anbangli commented 7 months ago

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 commented 3 days ago

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