A_I18N_Gallery_Translation

Class A_I18N_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_Gallery_Translation extends Mixin 
  2. function set_defaults($entity) 
  3. $this->call_parent('set_defaults', $entity); 
  4. if (!is_admin()) { 
  5. if (!empty($entity->title)) { 
  6. $entity->title = M_I18N::translate($entity->title, 'gallery_' . $entity->{$entity->id_field} . '_name'); 
  7. if (!empty($entity->galdesc)) { 
  8. $entity->galdesc = M_I18N::translate($entity->galdesc, 'gallery_' . $entity->{$entity->id_field} . '_description');