From 6a7164639f7a620373a045176ad27261715f03b4 Mon Sep 17 00:00:00 2001 From: nicolas Date: Fri, 25 Nov 2016 14:54:42 +0100 Subject: [PATCH] =?UTF-8?q?#=20=E2=86=92=20##?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Translating.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Translating.md b/Translating.md index 76ac213..a117459 100644 --- a/Translating.md +++ b/Translating.md @@ -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 language’s 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 you’re finished with the updates, you can submit a new pull request. \ No newline at end of file