Changeset 22939


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

Adding language

Location:
extensions/Crop_Image
Files:
5 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
  • extensions/Crop_Image/crop.class.php

    r22848 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
     
    3232      'height'=> $height,
    3333      'crop' => array(
    34         'width' => $width,//$x2-$x,
    35         'height' => $height,//$y2-$y,
     34        'width' => $width,
     35        'height' => $height,
    3636        'x' => $x,
    3737        'y' => $y,
  • extensions/Crop_Image/crop_image.tpl

    r22849 r22939  
    4141<form method="post" action="">
    4242<fieldset>
    43   <legend>Crop Photo</legend>
    44   {'Choose the part of the photo you want to keep.'|@translate}<br>
     43  <legend>{'Crop'|@translate} {'Photo'|@translate}</legend>
     44  {'Choose the part of the photo you want to keep'|@translate}<br>
    4545  <img id="jcrop" src="{$picture.banner_src}?{1|rand:200}" width="{$crop.display_width}" height="{$crop.display_height}">
    4646 
  • extensions/Crop_Image/functions.inc.php

    r22853 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
  • extensions/Crop_Image/main.inc.php

    r22856 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
     
    1919function crop_image_add_tab($sheets, $id)
    2020
     21        global $lang;
     22        load_language('plugin.lang', dirname(__FILE__).'/');
     23         
    2124        $image_id = isset($_GET['image_id'])? $_GET['image_id'] : '';
    2225 
     
    4750function cropImage_set_prefilter_add_to_pic_info()
    4851{
    49         global $template, $conf, $user, $page;
     52        global $template, $conf, $user, $page, $lang;
     53        load_language('plugin.lang', dirname(__FILE__).'/');
    5054       
    5155        $url_admin =
     
    9599       
    96100        $replacement = '
    97         <a class="pwg-state-default pwg-button" href="{$U_CROPIMAGE}" title="Crop Image" rel="nofollow">
    98          <span class="ci-icon ci-icon-cropimage-{$U_CROPIMAGE_THEME}"> </span><span class="pwg-button-text">Crop Image</span>
     101        <a class="pwg-state-default pwg-button" href="{$U_CROPIMAGE}" title="{\'Crop\'|@translate} {\'Photo\'|@translate}" rel="nofollow">
     102         <span class="ci-icon ci-icon-cropimage-{$U_CROPIMAGE_THEME}"> </span><span class="pwg-button-text">{\'Crop\'|@translate} {\'Photo\'|@translate}</span>
    99103  </a>
    100104        ' . $search;
Note: See TracChangeset for help on using the changeset viewer.