Issue #1807776 follow-up by plach: Minor fixes for Support both simple and editorial workflows for translating entities.
parent
4ccedfb04e
commit
008b9e69f8
|
@ -462,7 +462,7 @@ abstract class WebTestBase extends TestBase {
|
||||||
* @param array $permissions
|
* @param array $permissions
|
||||||
* Array of permission names to assign to user. Note that the user always
|
* Array of permission names to assign to user. Note that the user always
|
||||||
* has the default permissions derived from the "authenticated users" role.
|
* has the default permissions derived from the "authenticated users" role.
|
||||||
* @param $name
|
* @param string $name
|
||||||
* The user name.
|
* The user name.
|
||||||
*
|
*
|
||||||
* @return object|false
|
* @return object|false
|
||||||
|
|
|
@ -559,7 +559,7 @@ function translation_entity_permission() {
|
||||||
case 'bundle':
|
case 'bundle':
|
||||||
foreach (entity_get_bundles($entity_type) as $bundle => $bundle_info) {
|
foreach (entity_get_bundles($entity_type) as $bundle => $bundle_info) {
|
||||||
if (translation_entity_enabled($entity_type, $bundle)) {
|
if (translation_entity_enabled($entity_type, $bundle)) {
|
||||||
$t_args['%bundle_label'] = isset($info['bundles'][$bundle]['label']) ? $info['bundles'][$bundle]['label'] : $bundle;
|
$t_args['%bundle_label'] = isset($bundle_info['label']) ? $bundle_info['label'] : $bundle;
|
||||||
$permission["translate $bundle $entity_type"] = array(
|
$permission["translate $bundle $entity_type"] = array(
|
||||||
'title' => t('Translate %bundle_label @entity_label', $t_args),
|
'title' => t('Translate %bundle_label @entity_label', $t_args),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue