Skip to content
This repository has been archived by the owner on Sep 18, 2018. It is now read-only.

Getting Started

kemitche edited this page Dec 26, 2011 · 10 revisions

This guide will show how to make changes using Github in order to translate strings for Reddit.

Signup for a free account on GitHub.

First, you'll need to fork Reddit language repository. You can either setup a local repo or make changes using the web interface. Since you're probably only gonna change one or a few files I'm going to use the web interface for this guide. Go to the Reddit i18n repo and click the fork button. You now have access to the code in your account via your repositories page (https://github.com/YourUsername/repositories) to make your changes.

Browse to reddit_i18n/ and find the language you're going to translate.

Open the LC_MESSAGES/ folder and click on the r2.po file. You should now see the content of the file which contains all strings used on reddit.

Click the "Edit this File" button (Top right section above the code)

Edit the file adding or modifying strings (see syntax below) where msgid is the english string and msgstr the translated string.

#: r2/controllers/api.py:598
msgid "your email has been updated" <-- English string
msgstr "votre email a été modifié" <-- Translated string

Once you are done, click the "Commit Changes" button (bottom right)

Next and final step is to send a pull request. Simply click the Pull Request button, add a title (eg. Updates to French translation) and add a comment if you want. Finally, click the green "Send Pull Request" button (bottom right). Finally, post to /r/i18n that you've got a translation ready for review.

That's it! If you have any questions please ask on the i18n subreddit

Clone this wiki locally