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.
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?
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.
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?