From a8744a9c28376d25b5147cedbfa2d14ebfd277fb Mon Sep 17 00:00:00 2001 From: Giorgio Bonvicini Date: Tue, 2 Oct 2018 00:05:32 +0200 Subject: [PATCH] Fixed formatting and markdown linting errors. --- .github/CONTRIBUTING.md | 2 ++ .github/ISSUE_TEMPLATE.md | 4 +++- docs/translation-guide.md | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 065b90a..46507aa 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -100,9 +100,11 @@ Before submitting a PR: - If you've updated translation strings, please check that you have used the same format as the other entries, for example: + ```javascript 'You can find the latest one here': 'Puoi trovare l\'ultima qui', ``` + - Both the "from" and "to" parts of each entry are surrounded by single-quotes (`'aa'`) - Any single-quotes within the "from" or "to" are escaped with a backslash diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index d417f72..5bed1b3 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -24,7 +24,7 @@ What action or series of actions is the cause of the issue? ### Expected behavior - What should happen? +What should happen? ### Current behavior @@ -34,9 +34,11 @@ What happens instead? - Version of the script: x.x.x - look for a line near the top of the code which reads: + ```javascript version: 'w.x.y-z', ``` + - Any other details which might be related to the context; ### Extended description diff --git a/docs/translation-guide.md b/docs/translation-guide.md index 61c61a7..93e01fd 100644 --- a/docs/translation-guide.md +++ b/docs/translation-guide.md @@ -37,7 +37,9 @@ To add a new language: 'You can find the latest one here': 'Puoi trovare l\'ultima qui', }, ``` + - Paste it just below itself, like this: + ```javascript 'it': { 'Age': 'Età', @@ -50,6 +52,7 @@ To add a new language: 'You can find the latest one here': 'Puoi trovare l\'ultima qui', }, ``` + - Replace the language code of your translation with your language code and proceed to translate every item in the list, leaving the string on the left of the `:` unchanged and translating the one on the right, like this: @@ -66,6 +69,7 @@ To add a new language: 'You can find the latest one here': 'Die aktuelle Version findest du hier', }, ``` + - These are some things you have to keep in mind to do this correctly: 1. Remember to put a comma at the end of each line except after the open curly bracket.