News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

How to fix the translation error of zh_CN

Started by Cubestone.Wang, November 27, 2025, 10:05:20 AM

Previous topic - Next topic

Cubestone.Wang

When I use 25.03 version in zh_CN, there is a "!" before the content, see the following image:

After using "msgunfmt zh_CN.mo -o zh_CN.po", I confirm it:

And then, I search something, but in source code, no zh_CN file, in Nightly builds, no zh_CN file, in translate website, the current content is translated just in 2006-07-17:




So where is the question, in building process?
I post the message in this forums, and wait someone could fix it. Or maybe post it in "https://sourceforge.net/p/codeblocks/tickets/"?

Miguel Gimenez

The launchpad page you saw is obsolete, please use this

gd_on

More, from this page you can also download the .po file (source) and/or the .mo file. If you have still problems, you can try to use poedit on the .po file to correct it and produce your own .mo file. You can also correct some bad or not correct translations on launchpad and submit them (you just need to have already a launchpad account or create one).
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Cubestone.Wang

First, thank you for answer. I just finished to change it for myself.

And then, I see the new website and download it, the content translation is right ( translated on 2019-06-21, reviewed on 2024-03-27)



So, the question: I download software package (version 25.03) from "https://www.codeblocks.org/downloads/binaries/#imagesoswindows48pnglogo-microsoft-windows". And the zh_CN file just is built-in (2025-03-31). When you use "msgunfmt zh_CN.mo -o zh_CN.po" to check it, just see "!" in content (just like what I said). Anyone who interested in it could do these step for check.




Thus, what's happened? May in CI/CD process, it is not get ".po" file from the new translate website?

gd_on

Effectively, in zh_CN.mo as distributed on C::b web site (at least in the nosetup.zip version), there is this error (but I can't correct that). Probably, this zh_CN had a problem or was not updated as it should. The last version on launchpad, .po and .mo are OK and more, has been regularly updated (last contribution by Grit Clef: 2025-10-01)
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).