-
Notifications
You must be signed in to change notification settings - Fork 23
Translator instructions
Wiki ▸ Documentation ▸ Translator instructions
Buoy's code is fully internationalized and is ready to be localized into many different human languages. () This page provides guidance for Buoy project contributors who want to translate Buoy into their native language, or offer suggestions and improvements to other existing translations for the languages they speak.
The Buoy project uses Transifex, a translations management website, to coordinate volunteer efforts to translate the user interface of Buoy from English to myriad other human languages. To become a translation volunteer, you will need to sign up for a Transifex user account. Transifex user accounts are free (i.e., you do not need to give them your credit card or other payment information).
To learn how to use Transifex,
- go to their getting started as a translator page.
- Once you've signed up and know how to use the site, go to the Buoy project's Transifex page.
- Once logged in and on dashboard click on Languages.
- Click on the link with language name and new page will open (titled Languages -> name_of_the_language)
- After clicking on link (
better-angels.pot
) pop-up window will appear with several options including "Download file to translate". - To edit file you'll need an Gettext translation editor (for example Poedit).
- After editing file locally, click on the link from step 3 and in the pop-up window choose "Upload file"
- Often there is only one person handling the translation for a given language, so the Transifex roles of Translator and Reviewer are overkill. However, if working within Transifex, ideally each string should get two passes.
- After initial translation of a string, come back at a different time to review your work for typos or mistakes (or if you're so lucky, have another speaker of the language review it). Choose REVIEW as a confirmation of the translation. This will show on the language summary page as two blue lines, light blue for translation progress, dark blue for 'review' progress. It will show on the string by showing two checkmarks (confirmed) as opposed to one checkmark (translated).
- The translations for many terms will depend on their context within the plugin, so it's best to become familiar with account setup and plugin use prior to beginning translation work. If you have not used Buoy previously, review the links within this wiki for Configuring Buoy, Assembling a crisis response team, Sending an alert with Buoy and Using Buoy during an incident first.
- Download the translation file from Transifex (from a language dashboard, click the resource, then click "Download for use" or "Download only reviewed translations" depending on your team's workflow)
- Copy the downloaded file(s) into Buoy's
/langauges/
directory.
- Ensure the downloaded file matches the format
buoy-$LANG.po
, where$LANG
is the language code. For instance:cd $PATH_TO_BUOY; cp ~/Downloads/for_use*-es.po languages/buoy-es.po
for Spanish.
- Compile the
.po
file(s) into a binary withmsgfmt(1)
. For instance, using Bash:
for i in buoy-*.po; do msgfmt -o ${i%%.po}.mo $i; done;
- Commit the updated translations as per normal.
Questions? Double-check the Frequently Asked Questions. Otherwise, if you want help from other users, try the Buoy Support Forum. To contact the developers, open a new issue.