Spelling, grammar, and style improvements

This commit is contained in:
Adam Niederer 2017-03-11 21:35:00 -05:00
parent 6d279f0ee1
commit 867e2d69d4
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ Translations will be send back to us regularly and will eventually appear in the
Each translation consists of a key (the id of the string that is to be translated) and the translated string. Terms in curly braces must not be touched but left as they are, since they represent a dynamically changing part of the string like a variable. Imagine a message welcoming a user: `Welcome, {{userName}}!` would be translated as `Ahoy, {{userName}}!` in pirate.
### Client-side
We use a `language` cookie to save your language settings if you change them. If you don't, we autodetect your locale using information from your browser. Now, that we know your preferred language this information is fed into a very nice library called [html10n.js](https://github.com/marcelklehr/html10n.js), which loads the appropriate translations and applies them to our templates, providing translation params, pluralization, include rules and even a nice javascript API along the way.
We use a `language` cookie to save your language settings if you change them. If you don't, we autodetect your locale using information from your browser. Then, the preferred language is fed into a library called [html10n.js](https://github.com/marcelklehr/html10n.js), which loads the appropriate translations and applies them to our templates. Its features include translation params, pluralization, include rules and a nice javascript API.
@ -79,7 +79,7 @@ alert(window._('pad.chat'));
}
```
Everytime the http server is started, it will auto-detect your messages and merge them automatically with the core messages.
Every time the http server is started, it will auto-detect your messages and merge them automatically with the core messages.
### Overwrite core messages