Hi Dajan,

Currently we only generate lagpack tarballs for the _STABLE of a branch,
see http://langpacks.mahara.org/

This means if one is upgrading from say 15.10.1 to 15.10.2 but the
latest branch version is 15.10.6 they would get the 15.10.6 specific
langpack and there could be changes in the language strings that cause
problems, eg in 15.10.2 we might have a string 'copymodule' but in
15.10.6 it might be 'copymodule1' so the expected translation string
will be missing.

Eventually we would want something like what Moodle has - but before we
can do that we need to generate langpacks for each version of each
branch.

So the current plan is an interim measure - allowing for admins /
deployment scripts the ability to run this manually and to roll back if
the update of the languages causes problems.

Cheers

Robert

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1625863

Title:
  Adding cli for langpacks

Status in Mahara:
  In Progress

Bug description:
  When Mahara is being updated to a new minor or major version, admins
  need to remember to pull language packs separately as they are not
  part of the core distribution. This cli script will make that easier.

  This 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

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1625863/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to