2012-09-01 12:15:08 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Update function for the translation module.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Rename the translate content permission.
|
|
|
|
*/
|
|
|
|
function translation_update_8000() {
|
2013-06-24 16:38:32 +00:00
|
|
|
update_replace_permissions(array(
|
|
|
|
'translate content' => array('translate all content'),
|
|
|
|
));
|
2012-09-01 12:15:08 +00:00
|
|
|
}
|
2012-11-06 13:46:54 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Moves "translation_language_type" from variable to config.
|
|
|
|
*
|
|
|
|
* @ingroup config_upgrade
|
|
|
|
*/
|
|
|
|
function translation_update_8001() {
|
|
|
|
update_variables_to_config('translation.settings', array(
|
|
|
|
'translation_language_type' => 'language_type',
|
|
|
|
));
|
|
|
|
}
|