Hi, everyone, today I want to talk about some things about the localization of the Rust standard library. The localization of the Rust standard library was first proposed in 2019.The relevant link is here: https://internals.rust-lang.org/t/translating-the-stdlib-docs/10384.
The Rust standard library localization has the following benefits:
- Make Rust more popular and easy to use
- Enrich Rust related ecology
- It is more conducive to Rust beginners to get started, and Rust development can be carried out with a small amount of foundation
At present, the Chinese version of the Rust standard library is in the preview stage. The project address is: https://github.com/wtklbm/rust-library-i18n. In this warehouse, machine translation is used and simple manual proofreading has been carried out.
These are all done through files in JSON format。
After the user downloads the translated file, the localized document can be displayed directly in the IDE tool。
In addition to the source code translation, you can also generate HTML static documents, the effect please see the picture:
The translated document first goes through a program called
Cmtor , which will extract the documents in the source code. When the documents are extracted, the documents will be further filtered and processed, the sentences in the documents will be rearranged, and the documents will be The translated content is translated by machine translation and saved in a JSON file。
After the translated content is saved to the JSON file, we can do manual proofreading at this time to find errors and correct them in time.When the document is modified, we can put the modified document back into the source file.Using machine translation can reduce the workload of manual translation。
There is no problem with document extraction and construction. The main problem lies in document proofreading.Need more people to participate。
Does the Rust team have any plans? Are you willing to support the creation and release of localized documents in an official form? Organize more people to proofread and organize documents?