mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
Updated details and attribution for translators
This commit is contained in:
parent
1bcb24a921
commit
701d105b9e
13
.github/ISSUE_TEMPLATE/language_request.md
vendored
Normal file
13
.github/ISSUE_TEMPLATE/language_request.md
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
name: Language Request
|
||||||
|
about: Request a new language to be added to Crowdin for you to translate
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Language To Add
|
||||||
|
|
||||||
|
_Specify here the language you want to add._
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
_This issue template is to request a new language be added to our [Crowdin translation management project](https://crowdin.com/project/bookstack). Please don't use this template to simple request a new language that you are not prepared to provide translations for._
|
19
readme.md
19
readme.md
@ -107,22 +107,11 @@ The docker-compose setup runs an instance of [MailHog](https://github.com/mailho
|
|||||||
|
|
||||||
## 🌎 Translations
|
## 🌎 Translations
|
||||||
|
|
||||||
All text strings can be found in the `resources/lang` folder where each language option has its own folder. To add a new language you should copy the `en` folder to an new folder (eg. `fr` for french) then go through and translate all text strings in those files, leaving the keys and file-names intact. If a language string is missing then the `en` translation will be used. To show the language option in the user preferences language drop-down you will need to add your language to the options found at the bottom of the `resources/lang/en/settings.php` file. A system-wide language can also be set in the `.env` file like so: `APP_LANG=en`.
|
Translations for text within BookStack is managed through the [BookStack project on Crowdin](https://crowdin.com/project/bookstack). Some strings have colon-prefixed variables in such as `:userName`. Leave these values as they are as they will be replaced at run-time. Crowdin is the preferred way to provide translations, otherwise the raw translations files can be found within the `resources/lang` path.
|
||||||
|
|
||||||
You will also need to add the language to the `locales` array in the `config/app.php` file.
|
If you'd like a new language to be added to Crowdin, for you to be able to provide translations for, please [open a new issue here](https://github.com/BookStackApp/BookStack/issues/new?template=language_request.md).
|
||||||
|
|
||||||
There is a script available which compares translation content to `en` files to see what items are missing or redundant. This can be ran like so from your BookStack install folder:
|
Please note, translations in BookStack are provided to the "Crowdin Global Translation Memory" which helps BookStack and other projects with finding translations. If you are not happy with contributing to this then providing translations to BookStack, even manually via GitHub, is not advised.
|
||||||
|
|
||||||
```bash
|
|
||||||
# Syntax
|
|
||||||
php resources/lang/check.php <lang>
|
|
||||||
|
|
||||||
# Examples
|
|
||||||
php resources/lang/check.php fr
|
|
||||||
php resources/lang/check.php pt_BR
|
|
||||||
```
|
|
||||||
|
|
||||||
Some strings have colon-prefixed variables in such as `:userName`. Leave these values as they are as they will be replaced at run-time.
|
|
||||||
|
|
||||||
## 🎁 Contributing, Issues & Pull Requests
|
## 🎁 Contributing, Issues & Pull Requests
|
||||||
|
|
||||||
@ -156,6 +145,8 @@ The BookStack source is provided under the MIT License. The libraries used by, a
|
|||||||
|
|
||||||
The great people that have worked to build and improve BookStack can [be seen here](https://github.com/BookStackApp/BookStack/graphs/contributors).
|
The great people that have worked to build and improve BookStack can [be seen here](https://github.com/BookStackApp/BookStack/graphs/contributors).
|
||||||
|
|
||||||
|
The wonderful people that have provided translations, either through GitHub or via Crowdin [can be seen here](https://github.com/BookStackApp/BookStack/blob/master/.github/translators.txt).
|
||||||
|
|
||||||
These are the great open-source projects used to help build BookStack:
|
These are the great open-source projects used to help build BookStack:
|
||||||
|
|
||||||
* [Laravel](http://laravel.com/)
|
* [Laravel](http://laravel.com/)
|
||||||
|
Loading…
Reference in New Issue
Block a user