Changeset 6701


Ignore:
Timestamp:
Jul 24, 2010, 5:17:50 PM (14 years ago)
Author:
grum
Message:

Version 1.2.3, features:1439,1690

Location:
extensions/lmt
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • extensions/lmt/admin/plugin_admin_config.tpl

    r4396 r6701  
    2020    if($("#ilicence_logo").val()=="text")
    2121    {
    22       $("#logodefault").get(0).innerHTML=get_licence_text($("#ilicence_default").val(), true);
     22      $("#logodefault").html(get_licence_text($("#ilicence_default").val(), true));
    2323    }
    2424    else
    2525    {
    26       $("#logodefault").get(0).innerHTML="<img src='{/literal}{$datas.img_directory}{literal}"+
     26      $("#logodefault").html("<img src='{/literal}{$datas.img_directory}{literal}"+
    2727            $("#ilicence_default").val().toLowerCase()+"_"+
    28             $("#ilicence_logo").val()+".png'>";
     28            $("#ilicence_logo").val()+".png'>");
    2929    }
    3030    change_example();
     
    136136    str = str.replace(re, txt);
    137137
    138     $("#textexample").attr("innerHTML",str);
     138    $("#textexample").html(str);
    139139  }
    140140
  • extensions/lmt/admin/plugin_admin_list.tpl

    r5802 r6701  
    33  function loadpage(pagenum)
    44  {
    5     tmp=$.ajax({
    6       type: "POST",
    7       url: "{/literal}{$datas.LMT_AJAX_URL_LIST}{literal}"+pagenum+"&filter="+$("#filter").val(),
    8       async: false,
    9      }).responseText;
     5    $("#list").html("<br><img src='./plugins/GrumPluginClasses/icons/processing.gif'>");
    106
    11     $("#nbphotos").attr("innerHTML", tmp.substr(0,tmp.indexOf("#")));
    12     $("#list").attr("innerHTML", tmp.substr(tmp.indexOf("#")+1));
    13     //$("#filter").attr("innerHTML", tmp.substr(tmp.indexOf("#")+1));
     7    $.ajax(
     8      {
     9        type: "POST",
     10        datas:
     11          {
     12            filter:$("#filter").val()
     13          },
     14        url: "{/literal}{$datas.LMT_AJAX_URL_LIST}{literal}"+pagenum,
     15        async: true,
     16        success: function(msg)
     17        {
     18          $("#nbphotos").html(msg.substr(0,msg.indexOf("#")));
     19          $("#list").html(msg.substr(msg.indexOf("#")+1));
     20          //$("#filter").attr("innerHTML", msg.substr(msg.indexOf("#")+1));
     21        }
     22      }
     23    );
    1424  }
    1525{/literal}
  • extensions/lmt/admin/plugin_admin_listitems.tpl

    r3666 r6701  
    1313        <span>
    1414          <br/><div class="is_on" id="imgfi{$data.id}" onclick="swap_state('fi{$data.id}');">&nbsp;</div>
    15           [ <a href="{$data.imglink}">{$data.file}</a> ]<br/>
     15          [ {$data.file} ]<br/>
    1616          ---<br/>
    1717          {foreach from=$data.cat key=catname item=catdata}
  • extensions/lmt/admin/plugin_admin_manage.tpl

    r5548 r6701  
    1010  function loadpage(pagenum)
    1111  {
    12     tmp=$.ajax({
    13       type: "POST",
    14       url: "{/literal}{$datas.LMT_AJAX_URL_LIST}{literal}"+pagenum,
    15       async: false,
    16      }).responseText;
     12    $("#list").html("<br><img src='./plugins/GrumPluginClasses/icons/processing.gif'>");
    1713
    18     $("#nbphotos").attr("innerHTML", tmp.substr(0,tmp.indexOf("#")));
    19     $("#list").attr("innerHTML", tmp.substr(tmp.indexOf("#")+1));
     14    $.ajax(
     15      {
     16        type: "POST",
     17        url: "{/literal}{$datas.LMT_AJAX_URL_LIST}{literal}"+pagenum,
     18        async: true,
     19        success: function (msg)
     20          {
     21            $("#nbphotos").html(msg.substr(0,msg.indexOf("#")));
     22            $("#list").html(msg.substr(msg.indexOf("#")+1));
     23          }
     24      }
     25    );
    2026  }
    2127
  • extensions/lmt/admin/plugin_admin_manageitems.tpl

    r3666 r6701  
    1515        <span>
    1616          <br/><div class="is_on" id="imgfi{$data.id}" onclick="swap_state('fi{$data.id}');">&nbsp;</div>
    17           [ <a href="{$data.imglink}">{$data.file}</a> ]<br/>
     17          [ {$data.file} ]<br/>
    1818          ---<br/>
    1919          {foreach from=$data.cat key=catname item=catdata}
  • extensions/lmt/language/en_UK/plugin.lang.php

    r5873 r6701  
    2828$lang['lmt_add_licence_ko'] = 'The license count not be applied to the selected items';
    2929$lang['lmt_add_licence_ok'] = 'The license has been applied to the selected items';
    30 $lang['lmt_add_to_caddie'] = 'Add the items to the basket';
     30$lang['lmt_add_to_caddie'] = 'Add the items in the caddie';
    3131$lang['lmt_apply'] = 'Apply';
    32 $lang['lmt_apply_do_clear'] = 'Apply the licence and empty the basket';
    33 $lang['lmt_apply_do_clear_selected'] = 'Apply the licence and clear the selected items in the basket';
    34 $lang['lmt_apply_do_nothing'] = 'Apply the licence and don\'t modify the basket';
     32$lang['lmt_apply_do_clear'] = 'Apply the licence and empty the caddie';
     33$lang['lmt_apply_do_clear_selected'] = 'Apply the licence and clear the selected items in the caddie';
     34$lang['lmt_apply_do_nothing'] = 'Apply the licence and don\'t modify the caddie';
    3535$lang['lmt_author'] = 'Author';
    3636$lang['lmt_author_added'] = 'The author was added';
     
    4949$lang['lmt_caddie_items'] = 'Items in caddie';
    5050$lang['lmt_caddie_not_updated'] = 'The basket could not be updated';
    51 $lang['lmt_caddie_updated'] = 'The basket has been updated';
     51$lang['lmt_caddie_updated'] = 'The caddie has been updated';
    5252$lang['lmt_cancel'] = 'Cancel';
    5353$lang['lmt_cannot_add_author'] = 'The author could not be added';
     
    6666$lang['lmt_cfg_warning_link'] = 'Enable redirect';
    6767$lang['lmt_cfg_warning_texts'] = 'Footer text';
    68 $lang['lmt_cfg_warning_visible'] = 'Show the license applied by default in the bottom of the page';
     68$lang['lmt_cfg_warning_visible'] = 'View the license applied by default in the bottom of the page';
    6969$lang['lmt_choose_select'] = '&lt;Select&gt;';
    70 $lang['lmt_clear_caddie_ko'] = 'Basket could not be purged';
    71 $lang['lmt_clear_caddie_ok'] = 'Basket has been purged';
    72 $lang['lmt_clear_si_caddie_ko'] = 'Selected items could not be purged from the basket';
    73 $lang['lmt_clear_si_caddie_ok'] = 'Selected items have been purged from the basket';
     70$lang['lmt_clear_caddie_ko'] = 'Caddie could not be purged';
     71$lang['lmt_clear_caddie_ok'] = 'Caddie has been purged';
     72$lang['lmt_clear_si_caddie_ko'] = 'Selected items could not be purged from the caddie';
     73$lang['lmt_clear_si_caddie_ok'] = 'Selected items have been purged from the caddie';
    7474$lang['lmt_config'] = 'Settings';
    7575$lang['lmt_def_--'] = 'The work may be freely used, provided the award to its author by quoting his name';
     
    8686$lang['lmt_general_text'] = '[logo=80x15]The media of this website are subject to copyright and, unless otherwise indicated, distributed under Creative Commons Licence [text=logo]';
    8787$lang['lmt_help'] = 'Help';
    88 $lang['lmt_help_config'][1] = 'Depending on the number of elements with a specific licence or the number of items in your basket, size of the display area will change. An oversized display area can reduce the comfort of reading the page. <br> This parameter is used to force the maximum height of the display area.';
    89 $lang['lmt_help_config'][2] = 'Activates or deactivates license management. Compared to completely disable the plugin, this option allows to disable the license management on the public part of the site while retaining the administration of the plugin actived.';
     88$lang['lmt_help_config'][1] = 'Depending on the number of elements with a licence number or the number of items in your caddie, size of the display area will change. A display area too bogger can reduce the comfort of reading the page. <br> This parameter is used to force the maximum height of the display area.';
     89$lang['lmt_help_config'][2] = 'Selects whether or not the management of licenses. Compared to completely disable the plugin, this option allows to disable the license management on the public part of the site while retaining the administration of the plugin actived.';
    9090$lang['lmt_help_config'][3] = 'This option will always display the licence of the element, even if the licence by default it is assigned. <br> If this option is not activated, the licence will be displayed only for elements with a particular licence.';
    91 $lang['lmt_help_config'][4] = 'This option allows you to select the licence, which will be applied by default to elements to which no licence has been assigned.';
     91$lang['lmt_help_config'][4] = 'This option allows you to select the licence will be applied by default to the elements for which no licence has been affected.';
    9292$lang['lmt_help_config'][5] = 'This option allows you to choose whether to display or not the licence by default on all pages (will be shown on the footer).';
    9393$lang['lmt_help_config'][6] = 'If enabled, the logo indicating the licence is a hyperlink redirecting the user to a page explaining in more detail the operating conditions of the item.';
    94 $lang['lmt_help_config'][7] = 'The license text displayed at the bottom of the page is changed according to your needs. <br> It is possible to display the corresponding license as: <br> <b>[logo=80x15]</b> the 80x15 logo <br> <b>[logo=88x31]</b> the 88x31 logo <br> <b>[logo=text]</b> the text only';
     94$lang['lmt_help_config'][7] = 'The license text displayed at the bottom of the page is changed according to your needs. <br> It is possible to view items in automatically: <br> <b>[logo=80x15]</b> insert the 80x15 logo of the default licence <br> <b>[logo=88x31]</b> insert the 88x31 logo of the default licence<br> <b>[logo=text]</b>insert the text of the default licence';
    9595$lang['lmt_help_config'][8] = 'This option allows you to select the author who will be assigned to the licence used by default.';
    9696$lang['lmt_help_config'][9] = 'This option allows you to choose the number of items displayed per page.';
     
    146146$lang['lmt_nb_authors'] = 'authors set';
    147147$lang['lmt_no_author'] = '&lt;No author&gt;';
    148 $lang['lmt_no_element_selected'] = 'There are no selected items !';
     148$lang['lmt_no_element_selected'] = 'There is no selected items !';
    149149$lang['lmt_no_text'] = 'No text is filled !';
    150150$lang['lmt_nofilter'] = 'All licences';
     
    153153$lang['lmt_redirect_urls'] = 'URL redirects';
    154154$lang['lmt_release'] = 'r';
    155 $lang['lmt_replace_caddie'] = 'Purge basket and add the elements';
     155$lang['lmt_replace_caddie'] = 'Purge caddie and add the elements';
    156156$lang['lmt_save_config'] = 'Configuration saved';
    157157$lang['lmt_select_all'] = 'All';
  • extensions/lmt/language/es_ES/plugin.lang.php

    r6029 r6701  
    2525$lang['lmt_official_website'] = 'El sitio oficial de Creative Commons';
    2626$lang['lmt_whatisit'] = 'Qué <i>Creative Commons</i> ?';
    27 $lang['lmt_whatisit_def1'] = 'Creative Commons es una organización sin ánimo de lucro que propone gratuitamente contratos flexibles de derecho de autor para difundir sus creaciones. Aplicados sobre sus fotos (u otros medios de comunicación que usted pone en línea) estos contratos les permiten a quienquiera explotarles sin tener que solicitarles sistemáticamente para obtener una autorización.';
     27$lang['lmt_whatisit_def1'] = 'Creative Commons es una organización sin ánimo de lucro que propone gratuitamente contratos flexibles de derecho de autor para difundir sus creaciones. Aplicados sobre sus fotos (u otros medios de comunicación que usted pone en línea) estos contratos les permiten a quienquiera explotarles sin tener solicitarle sistemáticamente para obtener una autorización.';
    2828$lang['lmt_whatisit_def2'] = 'Existen 6 licencias que se articulan alrededor de 4 principios y que definen las condiciones de utilización.';
    2929$lang['lmt_four_way'] = 'Los 4 principios';
     
    3333$lang['lmt_way_nd'] = 'Ninguna Modificación';
    3434$lang['lmt_way_nc'] = 'Ninguna Utilización Comercial';
    35 $lang['lmt_way_sa'] = 'Compartir Condiciones Iniciales a la Idéntica ';
     35$lang['lmt_way_sa'] = 'Reparto a la Idéntica de las Condiciones Iniciales';
    3636
    3737$lang['lmt_cc-all'] = 'Toda licencia';
     
    4141$lang['lmt_lbl_cc-by-nc-nd'] = 'Paternidad, ninguna Utilización Comercial, ninguna Modificación';
    4242$lang['lmt_lbl_cc-by-nc-sa'] = 'Paternidad, ninguna Utilización Comercial, Comparte Condiciones Iniciales a la Idéntica';
    43 $lang['lmt_lbl_cc-by-sa'] = 'Paternidad, compartir condiciones Iniciales a la Idéntica';
     43$lang['lmt_lbl_cc-by-sa'] = 'Paternidad, Reparto Condiciones Iniciales al Idéntico';
    4444$lang['lmt_lbl_cc-cright'] = 'Copyright';
    4545$lang['lmt_lbl_cc-cleft'] = 'Copyleft';
     
    6969$lang['lmt_nofilter'] = 'Toda licencia';
    7070
    71 $lang['lmt_def_--'] = 'La obra puede libremente ser utilizada, citando a su autor por su nombre';
    72 $lang['lmt_def_nc'] = 'El titular de los derechos puede autorizar todos los tipos de utilización o al contrario restringir las utilizaciones no comerciales (las utilizaciones comerciales quedan sometidas a su autorización).';
    73 $lang['lmt_def_nd'] = 'El titular de los derechos puede continuar reservandose la facultad de realizar obras derivadas o al contrario autorizar de antemano las modificaciones, las traducciones...';
    74 $lang['lmt_def_sa'] = 'A la posibilidad de autorizar de antemano las modificaciones puede sobreponerse la obligación para dichas obras  derivadas de ser propuestas al público con las mismas libertades (bajo la mismas opción Creative Commons) que la obra original.';
     71$lang['lmt_def_--'] = 'La obra puede libremente ser utilizada, atribuirle a sonido el autor citando su nombre';
     72$lang['lmt_def_nc'] = 'El titular derechos puede autorizar todos los tipos de utilización o al contrario restringir las utilizaciones no comerciales (las utilizaciones comerciales que quedan sometidas a su autorización).';
     73$lang['lmt_def_nd'] = 'El titular de derechos puede continuar reservando la facultad para realizar obras derivadas de tipo o al contrario autorizar de antemano las modificaciones, las traducciones...';
     74$lang['lmt_def_sa'] = 'A la posibilidad de autorizar de antemano las modificaciones puede sobreponerse la obligación para las obras dichas derivadas de serle propuestas al público con las mismas libertades (bajo la mismas opción Creative Commons) que la obra originaria.';
    7575
    76 $lang['lmt_general_text'] = "[logo=80x15]Los medios de comunicación de este sitio están sometidos al derecho de autor y, salvo indicaciones contrarias, estan difundidos bajo licencia Creative Commons [logo=text]";
     76$lang['lmt_general_text'] = "[logo=80x15]Los medios de comunicación de este sitio están sometidos al derecho de autor y, salvo indicaciones contrarias, han difundido bajo licencia Creative Commons [logo=text]";
    7777
    78 $lang['lmt_lst_default_licence'] = "Las fotos por defecto estan publicadas bajo la licencia siguiente";
    79 $lang['lmt_lst_special_licence'] = "Las fotos siguientes estan publicadas con una licencia particular";
     78$lang['lmt_lst_default_licence'] = "Las fotos por defecto han publicado bajo la licencia siguiente";
     79$lang['lmt_lst_special_licence'] = "Las fotos siguientes son publicadas con una licencia particular";
    8080$lang['lmt_lst_apply_filter'] = 'Filtrar';
    8181$lang['lmt_lst_nb_photos'] = 'Fotos';
     
    9494$lang['lmt_select_invert'] = "Invertir";
    9595$lang['lmt_licence_to_apply'] = "Elección de la licencia";
    96 $lang['lmt_no_element_selected'] = "No hay ningún elemento seleccionado !";
     96$lang['lmt_no_element_selected'] = "No hay ningún elemento de seleccionado !";
    9797
    9898$lang["lmt_add_licence_ok"] = "La licencia ha sido aplicada sobre los elementos seleccionado";
     
    102102$lang["lmt_clear_si_caddie_ok"] = "Los elementos seleccionados han sido purgados de la cesta";
    103103$lang["lmt_clear_si_caddie_ko"] = "Los elementos seleccionados no pudieron ser purgados de la cesta";
    104 $lang["lmt_caddie_not_updated"] = "La cesta no pudo ser actualizada";
    105 $lang["lmt_caddie_updated"] = "La cesta ha sido actualizada";
    106 $lang["lmt_add_to_caddie"] = "Añadir los elementos a la cesta";
    107 $lang["lmt_replace_caddie"] = "Purgar la cesta y añadirle los elementos";
     104$lang["lmt_caddie_not_updated"] = "La cesta no pudo ser puesta al día";
     105$lang["lmt_caddie_updated"] = "La cesta ha sido puesta al día";
     106$lang["lmt_add_to_caddie"] = "Añadir los elementos en la cesta";
     107$lang["lmt_replace_caddie"] = "Purgar la cesta y añadir a eso los elementos";
    108108$lang["lmt_caddie_is_empty_please_fill_it"] = "La aplicación de una licencia se efectúa sobre el contenido de la cesta. Desgraciadamente éste está vacío...";
    109109
    110 $lang["lmt_redirect_config"] = "Redirecciónes";
     110$lang["lmt_redirect_config"] = "Redirections";
    111111$lang["lmt_general_config"] = "Opciones generales";
    112 $lang['lmt_display_config'] = "Opciones de visualización";
     112$lang['lmt_display_config'] = "Opciones de fijación";
    113113$lang['lmt_cfg_list_maxheight'] = "Altura máxima de las listas";
    114 $lang['lmt_cfg_list_maxitems'] = "Número máximo de elementos visualizados";
     114$lang['lmt_cfg_list_maxitems'] = "Número máximo de elementos fijados";
    115115$lang['lmt_licence_config'] = "Gestión de las licencias";
    116 $lang["lmt_cfg_licence_activated"] = "Activar la gestión de las licencias";
    117 $lang["lmt_cfg_licence_visible"] = "La licencia siempre es visualizada, hasta si se trata de una licencia por defecto";
    118 $lang["lmt_cfg_licence_logo"] = "Tipo de logo visualizado";
     116$lang["lmt_cfg_licence_activated"] = "Acelerar la gestión de las licencias";
     117$lang["lmt_cfg_licence_visible"] = "La licencia siempre es fijada, hasta si se trata de una licencia por defecto";
     118$lang["lmt_cfg_licence_logo"] = "Tipo de logo fijado";
    119119$lang["lmt_warning_config"] = "Gestión del texto de pie de página";
    120 $lang["lmt_cfg_warning_visible"] = "Visualizar la licencia aplicada por defecto abajo de la página";
    121 $lang["lmt_cfg_warning_link"] = "Activar la redirección";
     120$lang["lmt_cfg_warning_visible"] = "Fijar la licencia aplicada por defecto abajo página";
     121$lang["lmt_cfg_warning_link"] = "Acelerar el redirection";
    122122$lang["lmt_cfg_warning_texts"] = "Texto de pie de página";
    123123$lang["lmt_do_save"] = "Registrar la configuración";
     
    132132$lang["lmt_icon_88x31"] = "Icono 88x31";
    133133$lang["lmt_icon_text"] = "Texto";
    134 $lang['example'] = "Ejemplo de la visualización";
     134$lang['example'] = "Ejemplo de la fijación";
    135135$lang['lmt_warning_texts_help'] = "";
    136136
    137 $lang["lmt_help_config"][1] = "En foncción del numero de elementos disponiendo de una licencia particular o del numero de elementos presente en su cesta, la zona de visualización sera mas o menos grande. Una zona de visualizacion demasiado grande puede reducir la comodidad de lectura de la pagina.<br/>Este parametro permite adaptar la altura maximal de la zona de visualización.";
    138 $lang["lmt_help_config"][2] = "Permite activar o no la gestión de las licencias. Con relación a una desactivación completa del plugin, esta opción permite desactivar la gestión de las licencias en el lado público del sitio conservando la administración del plugin activo.";
    139 $lang["lmt_help_config"][3] = "Esta opción permite visualizar sistemáticamente la licencia del elemento, aunque la licencia por defecto le es afectada. <br /> Si esta opción no es activada, la licencia será visializada sólo para los elementos que dispondrán de una licencia particular.";
    140 $lang["lmt_help_config"][4] = "Esta opción permite seleccionar la licencia que será aplicada por defecto sobre los elementos para los cuales ninguna licencia particular habrá sido afectado.";
    141 $lang["lmt_help_config"][5] = "Esta opción permite escoger si hay que visualizar o no la licencia por defecto sobre todas las páginas (será visualizada abajo de la página).";
    142 $lang["lmt_help_config"][6] = "Si esta activado, el logotipo que indica la licencia es un hiperenlaces que redirige al usuario sobre una página que explica más detalladamente las condiciones de explotación del elemento.";
    143 $lang["lmt_help_config"][7] = "El texto de licencia visualizado abajo de la página es modificable según sus necesidades. <br /> es posible visualizar los elementos automáticamente: <br /> <b> [logo=80x15] </b> inserta el logotipo 80x15 de la licencia por defecto <br /> <b> [logo=88x31] </b> inserta el logotipo 88x31 de la licencia por defecto <br /> <b> [logo=text] </b> inserta el texto de la licencia por defecto";
     137$lang["lmt_help_config"][1] = "Con arreglo al número de elementos que dispone de una licencia particular o de un número del número de elementos presentes en su cesta, de la zona de fijación vaya a ser más o menos grande. Una zona demasiado grande de fijación puede reducir la comodidad de lectura de la página. <br /> Este parámetro permite forzar la altura máxima de la zona de fijación.";
     138$lang["lmt_help_config"][2] = "Permite acelerar o no la gestión de las licencias. Con relación a una desactivación completa del plugin, esta opción permite desactivar la gestión de las licencias sobre la partida pública del sitio conservando la administración del plugin activo.";
     139$lang["lmt_help_config"][3] = "Esta opción permite fijar sistemáticamente la licencia del elemento, aunque la licencia por defecto le es afectada. <br /> Si esta opción no es acelerada, la licencia será fijada sólo para los elementos que dispondrán de una licencia particular.";
     140$lang["lmt_help_config"][4] = "Esta opción permite seleccionar la licencia que será aplicada por defecto sobre los elementos para los cuales ninguna licencia particular habrá estado afectado.";
     141$lang["lmt_help_config"][5] = "Esta opción permite escoger si hay que fijar o no la licencia por defecto sobre todas las páginas (será fijado abajo página).";
     142$lang["lmt_help_config"][6] = "Si acelerado, el logotipo que indica la licencia es un hiperenlaces que redirigeant al usuario sobre una página que explica más detalladamente las condiciones de explotación del elemento.";
     143$lang["lmt_help_config"][7] = "El texto de licencia fijado abajo página es modificable según sus necesidades. <br /> es posible fijar elementos en automático: <br /> <b> [logo=80x15] </b> inserta el logotipo 80x15 de la licencia por defecto <br /> <b> [logo=88x31] </b> inserta el logotipo 88x31 de la licencia por defecto <br /> <b> [logo=text] </b> inserta el texto de la licencia por defecto";
    144144$lang["lmt_help_config"][8] = "Esta opción permite seleccionar al autor que será afectado para la licencia aplicada por defecto.";
    145 $lang["lmt_help_config"][9] = "Esta opción permite escoger el número de elementos visualizados por página.";
     145$lang["lmt_help_config"][9] = "Esta opción permite escoger el número de elementos fijados por página.";
    146146
    147 $lang["lmt_author_nfo"] = "Cuando el logotipo de una licencia es visializado en la página de un elemento hecho visible, es posible precisar al autor que detiene los derechos.";
     147$lang["lmt_author_nfo"] = "Cuando el logotipo de una licencia es fijado sobre la página de un elemento hecho visible, es posible precisar al autor que detiene los derechos.";
    148148$lang["lmt_author_title"] = "Lista autores";
    149 $lang["lmt_nb_author_zero"] = "No hay ningún autor con parámetros definidos";
    150 $lang["lmt_nb_author_one"] = "1 autor con parámetros definidos";
    151 $lang["lmt_nb_authors"] = "Autores con parámetros definidos";
    152 $lang["lmt_add_author"] = "Añadir un autor";
     149$lang["lmt_nb_author_zero"] = "No hay ningún autor de definido parámetros";
     150$lang["lmt_nb_author_one"] = "1 autor de definido parámetros";
     151$lang["lmt_nb_authors"] = "Autores de definidos parámetros";
     152$lang["lmt_add_author"] = "Añadir a un autor";
    153153$lang["lmt_author_txt1"] = "Texto 1";
    154154$lang["lmt_author_txt2"] = "Texto 2";
    155155$lang["lmt_action"] = "Acciones";
    156 $lang["lmt_authoradd_title"] = "Añadir un autor";
    157 $lang["lmt_authormodify_title"] = "Modificar un autor";
     156$lang["lmt_authoradd_title"] = "Añadir a un autor";
     157$lang["lmt_authormodify_title"] = "Modificar a un autor";
    158158$lang["lmt_add"] = "Añadir";
    159159$lang["lmt_delete"] = "Suprimir";
     
    165165$lang["lmt_author_deleted"] = "El autor ha sido suprimido";
    166166$lang["lmt_cannot_delete_author"] = "El autor no pudo ser suprimido";
    167 $lang["lmt_error_on_image_author"] = "Problema en el momento de la actualización de los elementos relacionados al autor suprimido";
    168 $lang["lmt_author_one_image_updated"] = "Una imagen relacionada con este autor ha sido actualizada";
    169 $lang["lmt_author_nb_images_updated"] = "Imágenes relacionadas con este autor han sido actualizadas";
     167$lang["lmt_error_on_image_author"] = "Problema en el momento de la puesta al día de los elementos relacionados con autor suprimido";
     168$lang["lmt_author_one_image_updated"] = "Una imagen relacionada con este autor ha sido puesta al día";
     169$lang["lmt_author_nb_images_updated"] = "Imágenes relacionadas con este autor han sido puestas al día";
    170170$lang["lmt_author_modified"] = "El autor ha sido modificado";
    171171$lang["lmt_cannot_modify_author"] = "El autor no pudo ser modificado";
    172172$lang['lmt_no_author'] = "< Ningún autor>";
    173 $lang['lmt_redirect_urls'] = "URLs de redirecciones";
     173$lang['lmt_redirect_urls'] = "URLs de redirections";
    174174/*ici*/
    175175$lang["lmt_nav_first"] = "Primero";
    176 $lang["lmt_nav_prev"] = "Precedente";
     176$lang["lmt_nav_prev"] = "El precedente";
    177177$lang["lmt_nav_next"] = "Siguiente";
    178 $lang["lmt_nav_last"] = "Último";
     178$lang["lmt_nav_last"] = "El último";
    179179
    180180//1.1.0
    181 $lang["lmt_help_config"][10] = "Si activa, la apertura de la página hacia la cual apunta el hiperenlace se abrira en una nueva ventana.";
     181$lang["lmt_help_config"][10] = "Si acelerado, la apertura de la página hacia la cual despunta el hiperenlaces será efectuada en una nueva ventana.";
    182182$lang["lmt_cfg_warning_target"] = "Forzar la apertura en una nueva ventana"
    183183
    184 // 1.2.0
    185 $lang['To install this plugin, you need to install Grum Plugin Classes %s before'] = 'Para instalar este plugin, usted debe previamente, instalar el plugin Grum Plugin Classes %s';
     184
    186185
    187186?>
  • extensions/lmt/lmt_aip.class.inc.php

    r6272 r6701  
    619619      if($result)
    620620      {
    621         if(pwg_db_changes()==1)
     621        if(pwg_db_changes($result)==1)
    622622        {
    623623          $this->displayResult(l10n("lmt_author_deleted"), true);
     
    628628          if($result)
    629629          {
    630             $nbimages=pwg_db_changes();
     630            $nbimages=pwg_db_changes($result);
    631631            if($nbimages>0)
    632632            {
     
    795795  }
    796796
    797   protected function make_image_data($tmp)
     797  protected function make_image_data($tmp, $imageId)
    798798  {
    799799    $tmp2=array();
    800     for($i=0;$i<count($tmp['id']);$i++)
     800    foreach($tmp['id'] as $key=>$val)
    801801    {
    802802      $tmp2[]=array(
    803         'id' => $tmp['id'][$i],
    804         'name' => $tmp['name'][$i],
    805         'type' => $tmp['type'][$i],
    806         'plinks' => $tmp['plinks'][$i],
    807         'link'=> make_index_url(
    808                           array(
    809                             'category' => array(
    810                               'id' => $tmp['id'][$i],
    811                               'name' => $tmp['name'][$i],
    812                               'permalink' => $tmp['plinks'][$i])
    813                           )
    814                         )
     803        'id' => $tmp['id'][$key],
     804        'name' => $tmp['name'][$key],
     805        'type' => $tmp['type'][$key],
     806        'plinks' => $tmp['plinks'][$key],
     807        'link'=> make_picture_url(
     808                  array(
     809                    'image_id' => $imageId,
     810                    'category' => array
     811                      (
     812                        'id' => $tmp['id'][$key],
     813                        'name' => $tmp['name'][$key],
     814                        'permalink' => $tmp['plinks'][$key]
     815                      )
     816                  )
     817                )
    815818      );
    816819    }
     
    895898              'link'=>array()
    896899            );
    897         $tmpcat=$this->make_image_data($tmp);
     900        $tmpcat=$this->make_image_data($tmp, $row['image_id']);
    898901
    899902        $img_ids[]=$row['image_id'];
     
    906909          'file' => $row['file'],
    907910          'cat' => $tmpcat,
    908           'imglink' => make_picture_url(
    909                           array(
    910                             'image_id' => $row['image_id'],
    911                             'category' => array(
    912                               'id' => $tmp['id'][0],
    913                               'name' => $tmp['name'][0],
    914                               'permalink' => $tmp['plinks'][0])
    915                           )
    916                         ),
    917911          'thumb' => $filenfo["dirname"]."/thumbnail/".$conf["prefix_thumbnail"].$filenfo["filename"].".".$row["tn_ext"]
    918912        );
     
    998992              'link'=>array()
    999993            );
    1000         $tmpcat=$this->make_image_data($tmp);
     994        $tmpcat=$this->make_image_data($tmp, $row['image_id']);
    1001995
    1002996        $img_liste[]=array(
     
    10081002          'file' => $row['file'],
    10091003          'cat' => $tmpcat,
    1010           'imglink' => make_picture_url(
    1011                           array(
    1012                             'image_id' => $row['image_id'],
    1013                             'category' => array(
    1014                               'id' => $tmp['id'][0],
    1015                               'name' => $tmp['name'][0],
    1016                               'permalink' => $tmp['plinks'][0])
    1017                           )
    1018                         ),
    10191004          'thumb' => $filenfo["dirname"]."/thumbnail/".$conf["prefix_thumbnail"].$filenfo["filename"].".".$row["tn_ext"]
    10201005        );
  • extensions/lmt/lmt_pip.class.inc.php

    r5548 r6701  
    100100    }
    101101
     102    $alternateText=" alt='".htmlspecialchars(l10n('lmt_lbl_cc_s-'.strtolower($licence['licence'])), ENT_QUOTES)."'
     103      title='".htmlspecialchars(
     104        l10n('lmt_lbl_under-'.strtolower($licence['licence'])).' '.
     105        l10n('lmt_lbl_cc_s-'.strtolower($licence['licence'])).' : '.
     106        l10n('lmt_lbl_cc-'.strtolower($licence['licence'])),ENT_QUOTES
     107    )."' ";
     108
    102109    $style="";
    103110    $text="";
     
    108115        if($url!="")
    109116        {
    110           $text = "<br/><a href='".$url."'".$target."><img class='logo80x15' src='". LMT_PATH."img/".strToLower($licence['licence'])."_80x15.png'></a>".$licence['aut_text1']." ".$licence['aut_text2'];
     117          $text = "<br/><a href='".$url."'".$target."><img $alternateText class='logo80x15' src='". LMT_PATH."img/".strToLower($licence['licence'])."_80x15.png'></a>".$licence['aut_text1']." ".$licence['aut_text2'];
    111118        }
    112119        else
    113120        {
    114           $text = "<br/><img class='logo80x15' src='". LMT_PATH."img/".strToLower($licence['licence'])."_80x15.png'>".$licence['aut_text1']." ".$licence['aut_text2'];
     121          $text = "<br/><img $alternateText class='logo80x15' src='". LMT_PATH."img/".strToLower($licence['licence'])."_80x15.png'>".$licence['aut_text1']." ".$licence['aut_text2'];
    115122        }
    116123      break;
     
    119126        if($url!="")
    120127        {
    121           $text = "<table style='margin:auto;'><tr><td><a href='".$url."'".$target."><img class='logo88x31' style='top:-4px;' src='". LMT_PATH."img/".strToLower($licence['licence'])."_88x31.png'></a></td><td>".$licence['aut_text1']."<br/>".$licence['aut_text2']."</td></tr></table>";
     128          $text = "<table style='margin:auto;'><tr><td><a href='".$url."'".$target."><img $alternateText class='logo88x31' style='top:-4px;' src='". LMT_PATH."img/".strToLower($licence['licence'])."_88x31.png'></a></td><td>".$licence['aut_text1']."<br/>".$licence['aut_text2']."</td></tr></table>";
    122129        }
    123130        else
    124131        {
    125           $text = "<table style='margin:auto;'><tr><td><img class='logo88x31' style='top:-4px;' src='". LMT_PATH."img/".strToLower($licence['licence'])."_88x31.png'></td><td>".$licence['aut_text1']."<br/>".$licence['aut_text2']."</td></tr></table>";
     132          $text = "<table style='margin:auto;'><tr><td><img $alternateText class='logo88x31' style='top:-4px;' src='". LMT_PATH."img/".strToLower($licence['licence'])."_88x31.png'></td><td>".$licence['aut_text1']."<br/>".$licence['aut_text2']."</td></tr></table>";
    126133        }
    127134        break;
     
    155162    }
    156163
     164    $alternateText=" alt='".htmlspecialchars(l10n('lmt_lbl_cc_s-'.strtolower($this->config['lmt_licence_default'])), ENT_QUOTES)."'
     165      title='".htmlspecialchars(
     166        l10n('lmt_lbl_under-'.strtolower($this->config['lmt_licence_default'])).' '.
     167        l10n('lmt_lbl_cc_s-'.strtolower($this->config['lmt_licence_default'])).' : '.
     168        l10n('lmt_lbl_cc-'.strtolower($this->config['lmt_licence_default'])),ENT_QUOTES
     169    )."' ";
     170
    157171    $patterns = array('/\[logo=80x15\]/i', '/\[logo=88x31\]/i', '/\[logo=text\]/i');
    158172    $replacements = array(
    159       "<img class='logo80x15' src='". LMT_PATH."img/".strToLower($this->config['lmt_licence_default'])."_80x15.png'>",
    160       "<img class='logo88x31' src='". LMT_PATH."img/".strToLower($this->config['lmt_licence_default'])."_88x31.png'>",
     173      "<img $alternateText class='logo80x15' src='". LMT_PATH."img/".strToLower($this->config['lmt_licence_default'])."_80x15.png'>",
     174      "<img $alternateText class='logo88x31' src='". LMT_PATH."img/".strToLower($this->config['lmt_licence_default'])."_88x31.png'>",
    161175      l10n("lmt_lbl_cc_s-".strToLower($this->config['lmt_licence_default']))
    162176    );
  • extensions/lmt/lmt_version.inc.php

    r6272 r6701  
    1515  if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    1616
    17   define('LMT_VERSION',  '1.2.2');
    18   define('LMT_VERSION2', '01.02.02');
     17  define('LMT_VERSION',  '1.2.3');
     18  define('LMT_VERSION2', '01.02.03');
    1919?>
  • extensions/lmt/main.inc.php

    r6272 r6701  
    22/*
    33Plugin Name: LMT
    4 Version: 1.2.2
     4Version: 1.2.3
    55Description: Appliquer une licence sur ses photos / Apply a licence on photos
    66Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=282
     
    5555|         |            |     on line 720
    5656|         |            |
     57| 1.2.3   | 2010/07/24 | * mantis : feature 1439
     58|         |            |   . Add an "ALT" property to the licence picture
     59|         |            |     => the "TITLE" property was also added
     60|         |            | * mantis : feature 1690
     61|         |            |   . Improve performances in admin page
     62|         |            |
     63|         |            |
     64|         |            |
     65|         |            |
     66|         |            |
    5767|         |            |
    5868|         |            |
Note: See TracChangeset for help on using the changeset viewer.