mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 11:44:02 +00:00
Update API key section in TRANSLATION.md
The API key was moved to the OSEM_TRANSIFEX_APIKEY variable in .env.development
This commit is contained in:
parent
69a0d12793
commit
3db1d5f9cf
1 changed files with 4 additions and 11 deletions
|
|
@ -41,19 +41,12 @@ Eg. Assuming you have signed up yourself as a translator for OSEM, to translate
|
|||
You can view OSEM in other languages by selecting the language you want from the language selector icon (bottom right corner).
|
||||
|
||||
## 4. API key
|
||||
When you run your own instance of OSEM, if you want to have the translations available you need to add the necessary [code] (http://docs.transifex.com/live/webmasters/#api) from Transifex:
|
||||
```
|
||||
:javascript
|
||||
window.liveSettings = {
|
||||
api_key: "cf866a61277842b39c897c5a0b5ec075",
|
||||
picker: "bottom-right",
|
||||
detectlang: true,
|
||||
autocollect: true
|
||||
};
|
||||
```
|
||||
When you run your own instance of OSEM, if you want to have the translations available you need to add the api key in the `.env.development` file:
|
||||
|
||||
`OSEM_TRANSIFEX_APIKEY="cf866a61277842b39c897c5a0b5ec075"`
|
||||
|
||||
## 5. Strings with dynamic contents
|
||||
|
||||
Strings containing dynamic content should be tagged in the haml file with "notranslate" classes as described in:
|
||||
|
||||
http://docs.transifex.com/live/webmasters/#how-to-handle-inline-block-variables
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue