Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Translating PHD2 into different languages is a simple process.
Starting a new translation
To translate PHD2 into a new language:
- Download the messages template file from the phd2 source repository: messages.pot.
- In Poedit, select "Start a new translation", and open the
messages.potfile you just downloaded.
- Save your work as
Updating an existing translation
- Get the
messages.pofile for your language from the phd2 source repository in the locale folder. Browse to the language sub-folder for your language and click on
messages.po. Use the Raw button on the top right side of the page to save
messages.poto your computer.
- Open the
messages.pofile in Poedit
Viewing the translation in PHD2
When you save
messages.po, Poedit will create
messages.mo in the same folder. Copy
messages.mo to your phd2 install folder
Then, restart phd2 to see the updated translation.
Publishing the translation
messages.po file to
email@example.com, or post a message on the google group with
messages.po as an attachment. We will commit the file to the PHD2 source repository, and the updated translation will become available in the next development build of PHD2.
Notes for developers
If you make a change that affects translatable strings (strings added, removed, or modified), please run
build/locales_update.sh to update the
messages.po files for translators.
After receiving an updated
messages.po file from translators, run
build/locales_compile.sh to update the