Translating: added table of contents

This commit is contained in:
Koala Yeung 2017-05-06 22:22:32 +08:00
parent 6ce0243213
commit 554ee2d4d6
1 changed files with 14 additions and 0 deletions

View File

@ -3,6 +3,20 @@ Translating
If you want to localize Mastodon into your language, here is how.
* [Overview](#overview)
* [Procedures](#procedures)
* [Obtain the Source Code](#obtain-the-source-code)
* [Translating](#translating)
* [Declaring the language](#declaring-the-language)
* [Sending the translation](#sending-the-translation)
* [Testing the translation](#testing-the-translation)
* [Updating the translation](#updating-the-translation)
* [Appendix](#appendix)
* [Appendix A. Plural handling](appendix-a-plural-handling)
* [Appendix B. Command Tools](appendix-b-command-tools)
---
## Overview
There are two parts to Mastodon, the server and the web client. The translations for the web client are in [`app/javascript/mastodon/locales`](https://github.com/tootsuite/mastodon/tree/master/app/javascript/mastodon/locales). For the server-side, the translations live in [`config/locales`](https://github.com/tootsuite/mastodon/tree/master/config/locales) and are divided into different files. In addition, email templates for the server are found in [`app/views/user_mailer`](https://github.com/tootsuite/mastodon/tree/master/app/views/user_mailer). Here are all the files youll need to translate: