# → ##

nicolas 2016-11-25 14:54:42 +01:00
parent 1e6c61cb44
commit 6a7164639f

@ -10,7 +10,7 @@ There are two parts to Mastodon, the server and the web client. The translations
| [`devise.en.yml`](/Gargron/mastodon/tree/master/config/locales/devise.en.yml) | `config/locales/devise.en.yml` | Generic strings for Devise |
| [`doorkeeper.en.yml`](/Gargron/mastodon/tree/master/config/locales/doorkeeper.en.yml) | `config/locales/doorkeeper.en.yml` | Generic strings for Doorkeeper |
# Translating
## Translating
If you use Github, first clone the Mastodon repository to your account.
@ -21,7 +21,7 @@ If you use Github, first clone the Mastodon repository to your account.
Since Devise and Doorkeeper are popular libraries, there may already be translation files for your language available on the Internet.
# Declaring the language
## Declaring the language
The locales are mentioned in several other files. To activate your translation, add your language code to the different lists present in these files:
@ -32,14 +32,14 @@ The locales are mentioned in several other files. To activate your translation,
| [`settings_helper.rb`](/Gargron/mastodon/tree/master/app/helpers/settings_helper.rb) | `app/helpers/settings_helper.rb` | 1 line to add + your languages name |
| [`application.rb`](/Gargron/mastodon/tree/master/config/application.rb) | `config/application.rb` | 1 list to complete |
# Sending the translation
## Sending the translation
You can then push the files to git and submit a pull request.
# Testing the translation
## Testing the translation
Once the pull request is accepted, wait for the code to be deployed on a Mastodon instance. Log-in with your account there, and change the locale in the settings. Browse and use the website. See if everything makes sense in context and if anything seems out of place or breaks the layout. Invite other Mastodon users speaking your language to try it and give feedback. Make changes accordingly and update the translation.
# Updating the translation
## Updating the translation
Keep an eye on the original English files in `app/assets/javascripts/components/locales` and `config/locales`. When they are updated, pass on the changes to your language files. For new strings, add the new lines to the same position and translate them. Once youre finished with the updates, you can submit a new pull request.