Start translation
Typecho's internationalization mechanism is based on standard gettext
Function, you can use any software that supports this standard to complete the translation work.
Our multilingual translation project is also hosted on Github, so you are required to have some knowledge of this platform.
Participate in translation on Github
Step 1: Language translation project on Fork Github
The Github project address of Typecho language translation project is: https://github.com/typecho/languages
Click the Fork
Button to set the item Fork
Go to your own code base. This can ensure that multiple development plans do not interfere with each other.
Step 2: Check out the code from your Fork project
In your project repo
Just found in the list Fork
Of languages
Project. There is a small forked from typecho/languages
A word indicating that it is derived from typecho/languages
Issued by Zhongfen.
Use Git software to check out the latest version from the git address of the above project.
git clone https://github.com/typecho/languages.git
Step 3: Download the PO editing software and start the translation
We recommend using the Poedit software for translation http://www.poedit.net/download.php
The same software options are
Translate from POT file
Open the Poedit software and select File → New From POT/PO File
Locate the project directory you just checked out from git and find messages.pot
File and open it
At this time, the program will automatically load the entry to be translated. Please select a language item you want to translate in the pop-up language selection box to start the translation
After translation, click Save, and your translation will be saved with a suffix named po
Files, such as en_US.po
.
Submit the translation results to the community
So far, your translation files are only for your personal use. We encourage you to share the spirit of open source and make your achievements available to more people.
It's easy to accomplish this goal
Step 1: Synchronize your PO file to PUSH on Github
This can be done using any Git client software. At this time, you can see the PO file just submitted in your Fork project. But it only exists in your own project at present, and we need to push it to typecho/languages
In the main line.
Step 2: submit your results to typecho/languages
Enter your Github project home page, and you can find one on the right Pull Requests
Link, click it and enter. You will see a big New pull request Button.
Click this button to send a push request to typecho/languages, select the code you just modified, write comments, and click Submit.
After the administrator reviews and confirms your submission, your code will be merged into typecho/languages
The main line is in.