From 53aabb771b2ea27f7e8b1868e8016ee6282cbc2b Mon Sep 17 00:00:00 2001 From: OldHawk Date: Thu, 9 Nov 2017 18:29:38 +0800 Subject: [PATCH] doc(readme): update readme.md --- README.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 04e19fc2..dd25dbe6 100644 --- a/README.md +++ b/README.md @@ -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