A_I18N_Displayed_Gallery_Translation

Class A_I18N_Displayed_Gallery_Translation.

Defined (1)

The class is defined in the following location(s).

/products/photocrati_nextgen/modules/i18n/package.module.i18n.php  
  1. class A_I18N_Displayed_Gallery_Translation extends Mixin 
  2. public function _get_image_entities($source_obj, $limit, $offset, $id_only, $returns) 
  3. $results = $this->call_parent('_get_image_entities', $source_obj, $limit, $offset, $id_only, $returns); 
  4. if (!is_admin() && in_array('image', $source_obj->returns)) { 
  5. foreach ($results as $entity) { 
  6. if (!empty($entity->description)) { 
  7. $entity->description = M_I18N::translate($entity->description, 'pic_' . $entity->pid . '_description'); 
  8. if (!empty($entity->alttext)) { 
  9. $entity->alttext = M_I18N::translate($entity->alttext, 'pic_' . $entity->pid . '_alttext'); 
  10. return $results;