Reviewed: https://reviews.mahara.org/6983 Committed: https://git.mahara.org/mahara/mahara/commit/6b7d7f79d4ebf15b9bfcfa4b3e0c6ba54f4b9762 Submitter: Robert Lyon (<email address hidden>) Branch: master
commit 6b7d7f79d4ebf15b9bfcfa4b3e0c6ba54f4b9762 Author: Robert Lyon <email address hidden> Date: Fri Sep 16 14:24:12 2016 +1200
Bug 1625863: Adding cli for langpacks
This cli does:
1) Install / update langpacks by listing the languages by their code, eg de = German, fr = French like so
sudo -u www-data php admin/cli/sync_langpacks.php -l=de,fr
This will make a backup of the existing language (if exists) into the dataroot langpacks_backup directory.
2) If you don't want to make backups then add the -b=false flag, eg
sudo -u www-data php admin/cli/sync_langpacks.php -l=de,fr -b=false
3) If you need to rollback the backups you can use the -r=true flag, eg
sudo -u www-data php admin/cli/sync_langpacks.php -l=de,fr -r=true
It will ignore trying to update the 'en' language as that is set within the Mahara system itself
behatnotneeded
Change-Id: I4ec773126cc45a87fc78dec658e97856eec05338 Signed-off-by: Robert Lyon <email address hidden>
Reviewed: https:/ /reviews. mahara. org/6983 /git.mahara. org/mahara/ mahara/ commit/ 6b7d7f79d4ebf15 b9bfcfa4b3e0c6b a54f4b9762
Committed: https:/
Submitter: Robert Lyon (<email address hidden>)
Branch: master
commit 6b7d7f79d4ebf15 b9bfcfa4b3e0c6b a54f4b9762
Author: Robert Lyon <email address hidden>
Date: Fri Sep 16 14:24:12 2016 +1200
Bug 1625863: Adding cli for langpacks
This cli does:
1) Install / update langpacks by listing the languages by their code,
eg de = German, fr = French like so
sudo -u www-data php admin/cli/ sync_langpacks. php -l=de,fr
This will make a backup of the existing language (if exists) into the
dataroot langpacks_backup directory.
2) If you don't want to make backups then add the -b=false flag, eg
sudo -u www-data php admin/cli/ sync_langpacks. php -l=de,fr -b=false
3) If you need to rollback the backups you can use the -r=true flag, eg
sudo -u www-data php admin/cli/ sync_langpacks. php -l=de,fr -r=true
It will ignore trying to update the 'en' language as that is set
within the Mahara system itself
behatnotneeded
Change-Id: I4ec773126cc45a 87fc78dec658e97 856eec05338
Signed-off-by: Robert Lyon <email address hidden>