--enable-nls doesn't work as expected

LIU Hao lh_mouse@126.com
Fri Jan 5 12:24:42 GMT 2024


在 2024/1/5 19:19, Jonathan Wakely via Gcc-help 写道:
> That should work fine. The zh_CN.po file contains translations for
> "error" and "%qD was not declared in this scope" so if the first
> command uses the translated strings, then the second one should too.
> 
> It works perfectly for me using a native linux compiler:

Do you know where cc1plus looks for .mo files?

On Windows there are no unified absolute paths, so I suspect gettext looks by relative path. For 
gcc, messages can be found in '../share/locales/zh_CN/LC_MESSAGES/', but for cc1plus this won't be 
correct.

-- 
Best regards,
LIU Hao

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20240105/807ae9ba/attachment.sig>


More information about the Gcc-help mailing list