A_I18N_Image_Translation

Class A_I18N_Image_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_Image_Translation extends Mixin 
  2. function set_defaults($entity) 
  3. $this->call_parent('set_defaults', $entity); 
  4. if (!is_admin()) { 
  5. if (!empty($entity->description)) { 
  6. $entity->description = M_I18N::translate($entity->description, 'pic_' . $entity->{$entity->id_field} . '_description'); 
  7. if (!empty($entity->alttext)) { 
  8. $entity->alttext = M_I18N::translate($entity->alttext, 'pic_' . $entity->{$entity->id_field} . '_alttext');