diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7dcb7c4d..ef7f6383 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -11,9 +11,7 @@ Things to remember: ## Languages -You **must not** write plain-English into the code, rather into the `app/lang/en/` language files (where appropriate). We can then push out the changes to our translators. - -The only place where it is advisable to write English text into the code (as opposed to the language file) is for the API. +When needing to add labels, placeholders or general text, you **must not** write directly into the source file, rather make use of the `./app/lang/` directory. Always provide the English translation and copy your English string to all other languages - making sure that the indentation and alignment of the arrays are updated. ## Coding Standards @@ -30,35 +28,42 @@ class Foo extends Bar { public function baz() { - if ($condition) - { + if ($condition) { } } } ``` -- At least one newline seperating `namespace`, `use`, and `class` declarations +- At least one newline separating `namespace`, `use`, `function` and `class` declarations. - Spaces around operators, loops, conditions and control blocks: ```php - if ($condition === (10 + 2)) - { +