aboutsummaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre.alapetite@alexandra.dk> 2017-03-03 11:55:58 +0100
committerGravatar Alexandre Alapetite <alexandre.alapetite@alexandra.dk> 2017-03-03 11:55:58 +0100
commitc544f510d26377684aefe8a27b484ee22bbd4f69 (patch)
tree6accc4700b9b2944caf8d97de1db37ca89f184b8 /cli
parentae1bf1f56fcfa920db3d5092cb18dced4cbcb434 (diff)
CLI: install language
https://github.com/FreshRSS/FreshRSS/issues/1445#issuecomment-283908468
Diffstat (limited to 'cli')
-rw-r--r--cli/README.md3
-rwxr-xr-xcli/reconfigure.php1
2 files changed, 3 insertions, 1 deletions
diff --git a/cli/README.md b/cli/README.md
index 5662e2d83..cbab699dc 100644
--- a/cli/README.md
+++ b/cli/README.md
@@ -32,10 +32,11 @@ Options in parenthesis are optional.
```sh
cd /usr/share/FreshRSS
-./cli/do-install.php --default_user admin ( --auth_type form --environment production --base_url https://rss.example.net/ --title FreshRSS --allow_anonymous --api_enabled --db-type mysql --db-host localhost:3306 --db-user freshrss --db-password dbPassword123 --db-base freshrss --db-prefix freshrss )
+./cli/do-install.php --default_user admin ( --auth_type form --environment production --base_url https://rss.example.net/ --language en --title FreshRSS --allow_anonymous --api_enabled --db-type mysql --db-host localhost:3306 --db-user freshrss --db-password dbPassword123 --db-base freshrss --db-prefix freshrss )
# --auth_type can be: 'form' (default), 'http_auth' (using the Web server access control), 'none' (dangerous)
# --db-type can be: 'sqlite' (default), 'mysql' (MySQL or MariaDB), 'pgsql' (PostgreSQL)
# --environment can be: 'production' (default), 'development' (for additional log messages)
+# --language can be: 'en' (default), 'fr', or one of the [supported languages](../app/i18n/)
# --db-prefix is an optional prefix in front of the names of the tables. We suggest using 'freshrss_'
# This command does not create the default user. Do that with ./cli/create-user.php
diff --git a/cli/reconfigure.php b/cli/reconfigure.php
index da451b3ef..c6902da67 100755
--- a/cli/reconfigure.php
+++ b/cli/reconfigure.php
@@ -5,6 +5,7 @@ require('_cli.php');
$params = array(
'environment:',
'base_url:',
+ 'language:',
'title:',
'default_user:',
'allow_anonymous',