doc(readme): update readme.md

This commit is contained in:
OldHawk
2017-11-09 18:29:38 +08:00
parent 9de571352d
commit 53aabb771b

View File

@@ -248,7 +248,7 @@ Because meanTorrent autoload the movie info from [TMDB](https://www.themoviedb.o
],
```
Multilingual support, if you add a new translate string file, please add configuration here. The `name` is value of [ISO_639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes),
The class is used origin [flag-icon-css](https://github.com/lipis/flag-icon-css), you can find flag icon at `/public/lib/flag-icon-css/flags`.
The class is used origin [flag-icon-css](https://github.com/lipis/flag-icon-css), you can find flag icon at `/public/lib/flag-icon-css/flags/`.
```javascript
clientBlackList: [
@@ -364,10 +364,19 @@ meanTorrent used module `nodemailer`, if you have any config question you can fi
```
Note: the `name` is value of [ISO_639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes),
The class is used origin [flag-icon-css](https://github.com/lipis/flag-icon-css),
you can find flag icon at `/public/lib/flag-icon-css/flags`.
you can find flag icon at `/public/lib/flag-icon-css/flags/`.
3. Of course, you can also delete unnecessary translate configure language item.
4. Copy and translate all the .md files in `modules/*/client/templates/*.md`, notice the naming rules of files please.
3. Copy and translate all the .md files in `modules/*/client/templates/*.md`, notice the naming rules of files please.
4. meanTorrent used richtext box of [bootstrap-markdown](http://www.codingdrama.com/bootstrap-markdown/), It has already translated some
language, you can find them at `/public/lib/bootstrap-markdown/locale/`, then inset into config file `/config/assets/default.js` and `/config/assets/production.js`,
such as:
```javascript
//bootstrap-markdown
'public/lib/bootstrap-markdown/js/bootstrap-markdown.js',
'public/lib/bootstrap-markdown/locale/bootstrap-markdown.zh.js',
'public/lib/bootstrap-markdown/locale/bootstrap-markdown.fr.js', // this is added new line
```
Note: If you can not find you wanted language file, you can copy and translate and config it.
5. Restart meanTorrent.
## Deploying to PAAS