Ignore:
Timestamp:
May 29, 2013, 6:54:11 PM (11 years ago)
Author:
Chillexistence
Message:

Adding language

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Crop_Image/admin.php

    r22847 r22939  
    22/*
    33Plugin Name: Crop Image
    4 Version: 2.5.c
     4Version: 2.5.d
    55Description: Enables to Crop Images already uploaded to the gallery, basic functionality.  Tested with v2.5.1, v2.4.6
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=700
     
    3838// | Process form                                                          |
    3939// +-----------------------------------------------------------------------+
     40load_language('plugin.lang', PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
    4041
    4142// cancel crop
     
    8081        sync_metadata(array($row['id']));
    8182       
    82         //list($width, $height) = getimagesize($banner['PATH']);
    83   //$filesize = floor(filesize($banner['PATH'])/1024);
    84 
    8583        $query = 'UPDATE '.IMAGES_TABLE .'
    8684                                  SET coi=NULL
     
    9088  delete_element_derivatives($row);
    9189 
    92   $_SESSION['page_infos'][] = l10n('Photo Cropped');
     90  $_SESSION['page_infos'][] = l10n('Photo')." ".l10n('Cropped');
    9391  redirect($admin_photo_base_url);
    9492}
     
    106104// |                             template init                             |
    107105// +-----------------------------------------------------------------------+
     106
    108107
    109108$template->set_filenames(
     
    131130  if (!pwg_db_num_rows($result))
    132131  {
    133     array_push($page['errors'], l10n('Unknown Photo ID'));
     132    array_push($page['errors'], l10n('Unknown').' '. l10n('Photo'));
    134133  }
    135134  else
Note: See TracChangeset for help on using the changeset viewer.