Changeset 19666


Ignore:
Timestamp:
Dec 30, 2012, 9:35:09 PM (12 years ago)
Author:
julien1311
Message:

pdf2tab integration

Location:
extensions
Files:
3 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • extensions/File_Uploader/admin/admin_configuration.tpl

    r19472 r19666  
    77                <legend>{'Configuration'|@translate}</legend>
    88                <p>
    9                         <label><input type="checkbox" name="file_uploader_checkbox[new_tab]" value="1" {$file_uploader_checked.new_tab}> {'Open pdf in a new tab'|@translate}</label>
     9                        <label><input type="checkbox" name="file_uploader_checkbox[new_tab]" value="1" {$file_uploader_checked.new_tab}> {'Open files in a new tab'|@translate}</label>
    1010                </p>
    1111                <p>
  • extensions/File_Uploader/admin/admin_help.tpl

    r19544 r19666  
    77</p>
    88        <ul>
    9                 <li>{'Open pdf in a new tab'|@translate}{': Check to open pdf files in a new tab instead of downloading them.'|@translate}</li>
     9                <li>{'Open files in a new tab'|@translate}{': Check to open files in a new tab or download them depending on the extension.'|@translate}</li>
    1010                <li>{'Overwrite files without notice'|@translate}{': Check to overwrite files during upload if a file with the same name already exists.'|@translate}</li>
    1111        </ul>
  • extensions/File_Uploader/language/da_DK/plugin.lang.php

    r19531 r19666  
    2525$lang['You can use this plugin with the plugin <a href="http://fr.piwigo.org/ext/extension_view.php?eid=654">Media Icon</a> to add an icon to your "non picture" files.'] = 'Du kan anvende denne plugin sammen med plugin\'en <a href="http://fr.piwigo.org/ext/extension_view.php?eid=654">Media Icon</a> til at tilføje ikonen til din mappe med filer, der ikke er billeder.';
    2626$lang['No file to upload'] = 'Der er ingen fil at uploade';
    27 $lang['Open pdf in a new tab'] = 'Åbn PDF i et nyt faneblad';
     27$lang['Open files in a new tab'] = 'Åbn filer i et nyt faneblad';
    2828$lang['Open the file in a new tab'] = 'Åbn filen i et nyt faneblad';
    2929$lang['Overwrite files without notice'] = 'Overskriv filer uden advarsel';
     
    4444$lang['You can use a personnal image or convert your file to an image using a desktop program or a web service such as'] = 'Du kan anvende et personligt billede eller konvertere din fil til et billede ved hjælp af et program på din computer eller via en webtjeneste så som';
    4545$lang['... or '] = '... eller';
    46 $lang[': Check to open pdf files in a new tab instead of downloading them.'] = ': Sæt flueben for at åbne PDF-filer i et nyt faneblad i stedet for at downloade dem.';
    4746$lang[': Check to overwrite files during upload if a file with the same name already exists.'] = ': Sæt flueben for at overskrive filer ved upload, hvis en fil med det samme navn allerede findes.';
    4847$lang['Album:'] = 'Album:';
  • extensions/File_Uploader/language/de_DE/plugin.lang.php

    r19609 r19666  
    2323$lang['create a new album'] = 'Erstelle ein neues Album';
    2424$lang['No file to upload'] = 'Keine Datei zum hochladen';
    25 $lang['Open pdf in a new tab'] = 'Öffne PDF in neuem TAB';
     25$lang['Open files in a new tab'] = 'Öffne Datei in neuem TAB';
    2626$lang['Open the file in a new tab'] = 'Öffne die Datei in einem neuen TAB';
    2727$lang['Overwrite files without notice'] = 'Überschreibe Datei ohne Warnhinweis';
     
    4343$lang['You can use this plugin with the plugin <a href="http://fr.piwigo.org/ext/extension_view.php?eid=654">Media Icon</a> to add an icon to your "non picture" files.'] = 'Du kannst mit dem Plugin <a href="http://fr.piwigo.org/ext/extension_view.php?eid=654">Media Icon</a> ein Symbol zu deinen Dateien hinzuzufügen, die keine Bilddateien sind.';
    4444$lang['... or '] = '... oder';
    45 $lang[': Check to open pdf files in a new tab instead of downloading them.'] = ': Auswählen um PDF\'s in einem neuen TAB zu öffnen anstelle sie herunter zu laden.';
    4645$lang[': Check to overwrite files during upload if a file with the same name already exists.'] = ': Auswählen um Dateien zu überschreiben falls sie schon mit gleichen Namen existieren.';
    4746$lang['Album:'] = 'Album:';
  • extensions/File_Uploader/language/el_GR/plugin.lang.php

    r19569 r19666  
    3232$lang['Overwrite files without notice'] = 'Αντικατάσταση αρχείων χωρίς προειδοποίηση';
    3333$lang['Open the file in a new tab'] = 'Ανοίξτε το αρχείο σε μια νέα καρτέλα';
    34 $lang['Open pdf in a new tab'] = 'Ανοίξτε το pdf σε μια νέα καρτέλα';
     34$lang['Open files in a new tab'] = 'Ανοίξτε το αρχεία σε μια νέα καρτέλα';
    3535$lang['No file to upload'] = 'Δεν υπάρχει αρχείο για να φορτώσετε';
    3636$lang['Missing a temporary folder'] = 'Λείπει ένας προσωρινός φάκελος';
     
    5151$lang['Album:'] = 'Λεύκωμα: ';
    5252$lang[': Check to overwrite files during upload if a file with the same name already exists.'] = ': Ελέγξτε να αντικαταστήσετε τα αρχεία κατά τη διάρκεια της αποστολής, αν ένα αρχείο με το ίδιο όνομα υπάρχει ήδη.';
    53 $lang[': Check to open pdf files in a new tab instead of downloading them.'] = ': Δοκιμάστε να ανοίξετε τα αρχεία pdf σε μια νέα καρτέλα αντί για τη λήψη τους.';
    5453$lang['... or '] = '.. ή';
    5554$lang['create a new album'] = 'δημιουργήσετε ένα νέο λεύκωμα';
  • extensions/File_Uploader/language/en_UK/plugin.lang.php

    r19489 r19666  
    3939
    4040//admin_configuration.tpl
    41 $lang['Open pdf in a new tab'] = 'Open pdf in a new tab';
     41$lang['Open files in a new tab'] = 'Open files in a new tab';
    4242$lang['Overwrite files without notice'] = 'Overwrite files without notice';
    4343
     
    4545$lang['The Upload tab allows you to upload "non picture" files to your gallerie. Fill in the form to upload and synchronize your file.'] = 'The Upload tab allows you to upload "non picture" files to your gallerie. Fill in the form to upload and synchronize your file.';
    4646$lang['The Configuration tab allows you to customize the plugin in two ways:'] = 'The Configuration tab allows you to customize the plugin in two ways:';
    47 $lang[': Check to open pdf files in a new tab instead of downloading them.'] = ': Check to open pdf files in a new tab instead of downloading them.';
     47$lang[': Check to open files in a new tab or download them depending on the extension.'] = ': Check to open files in a new tab or download them depending on the extension.';
    4848$lang[': Check to overwrite files during upload if a file with the same name already exists.'] = ': Check to overwrite files during upload if a file with the same name already exists.';
    4949$lang['You can use this plugin with the plugin <a href="http://fr.piwigo.org/ext/extension_view.php?eid=654">Media Icon</a> to add an icon to your "non picture" files.'] = 'You can use this plugin with the plugin <a href="http://fr.piwigo.org/ext/extension_view.php?eid=654">Media Icon</a> to add an icon to your "non picture" files.';
  • extensions/File_Uploader/language/es_ES/plugin.lang.php

    r19562 r19666  
    2525$lang['Missing a temporary folder'] = 'Falta una carpeta temporal';
    2626$lang['No file to upload'] = 'Ningun archivo para subir';
    27 $lang['Open pdf in a new tab'] = 'Abrir pdf en una nueva pestaña';
     27$lang['Open files in a new tab'] = 'Abrir archivos en una nueva pestaña';
    2828$lang['Open the file in a new tab'] = 'Abrir archivo en una nueva pestaña';
    2929$lang['Overwrite files without notice'] = 'Sobrescribir archivos sin notificarlo';
     
    4444$lang['You can use a personnal image or convert your file to an image using a desktop program or a web service such as'] = 'Puede usar una imagen personal o convertir su archivo en imagen usando un programa de escritorio o un servicio web como';
    4545$lang['... or '] = '...o';
    46 $lang[': Check to open pdf files in a new tab instead of downloading them.'] = ': Marca para abrir pdf en una pestaña nueva en vez de descargándolos.';
    4746$lang[': Check to overwrite files during upload if a file with the same name already exists.'] = ': marca para sobrescribir los archivos durante la subida si un archivo con el mismo nombre ya existe.';
    4847$lang['Album:'] = 'Album';
  • extensions/File_Uploader/language/fr_FR/plugin.lang.php

    r19489 r19666  
    3939
    4040//admin_configuration.tpl
    41 $lang['Open pdf in a new tab'] = 'Ouvrir les pdf dans un nouvel onglet';
     41$lang['Open files in a new tab'] = 'Ouvrir les fichiers dans un nouvel onglet';
    4242$lang['Overwrite files without notice'] = 'Remplacer les fichiers sans avertissement';
    4343
     
    4545$lang['The Upload tab allows you to upload "non picture" files to your gallerie. Fill in the form to upload and synchronize your file.'] = 'L\'onglet Ajouter permet de transférer des fichier "non images" vers votre galerie. Remplissez le formulaire pour transférer et synchroniser votre fichier.';
    4646$lang['The Configuration tab allows you to customize the plugin in two ways:'] = 'L\'onglet configuration permet de personnaliser l\'extension de deux manières :';
    47 $lang[': Check to open pdf files in a new tab instead of downloading them.'] = ' : Cocher pour ouvrir les fichiers pdf dans un nouvel onglet au lieu de les télécharger.';
     47$lang[': Check to open files in a new tab or download them depending on the extension.'] = ' : Cocher pour ouvrir les fichiers dans un nouvel onglet ou les télécharger en fonction de l\'extension.';
    4848$lang[': Check to overwrite files during upload if a file with the same name already exists.'] = ' : Cocher pour remplacer les fichiers pendant le transfert si un fichier avec le même nom existe déjà.';
    4949$lang['You can use this plugin with the plugin <a href="http://fr.piwigo.org/ext/extension_view.php?eid=654">Media Icon</a> to add an icon to your "non picture" files.'] = 'Vous pouvez utiliser ce plugin avec le plugin <a href="http://fr.piwigo.org/ext/extension_view.php?eid=654">Media Icon</a> pour ajouter une icône aux fichiers "non images".';
  • extensions/File_Uploader/main.inc.php

    r19652 r19666  
    1616define('FILE_UPLOADER_PATH' , PHPWG_PLUGINS_PATH.FILE_UPLOADER_DIR.'/');
    1717define('FILE_UPLOADER_ADMIN',   get_root_url() . 'admin.php?page=plugin-'.FILE_UPLOADER_DIR);
    18 define('FILE_UPLOADER_PDF2TAB_PATH' , FILE_UPLOADER_PATH.'pdf2tab/');
     18define('FILE_UPLOADER_PDF2TAB_ABSOLUTE_PATH' , dirname(__FILE__).'/pdf2tab/');
    1919
    2020/* +-----------------------------------------------------------------------+
     
    4141if ($conf_file_uploader['new_tab'] == 1) {
    4242        load_language('plugin.lang', FILE_UPLOADER_PATH);
    43         include_once(FILE_UPLOADER_PDF2TAB_PATH.'thumbnails.php');
    44         include_once(FILE_UPLOADER_PDF2TAB_PATH.'picture.php');
     43        include_once(FILE_UPLOADER_PDF2TAB_ABSOLUTE_PATH.'include/thumbnails.inc.php');
     44        include_once(FILE_UPLOADER_PDF2TAB_ABSOLUTE_PATH.'include/picture.inc.php');
    4545}
    4646
  • extensions/pdf2tab/include/thumbnails.inc.php

    r19665 r19666  
    1111       
    1212        $template->assign('pdf2tab_supported_extensions', $supported_extensions);
    13         $template->set_filename('pdf2tab_template_thumbnails', PDF2TAB_ABSOLUTE_PATH.'template/thumbnails.tpl');
     13        $template->set_filename('pdf2tab_template_thumbnails', FILE_UPLOADER_PDF2TAB_ABSOLUTE_PATH.'template/thumbnails.tpl');
    1414        $template->concat('PLUGIN_INDEX_CONTENT_END', $template->parse('pdf2tab_template_thumbnails', true));
    1515       
Note: See TracChangeset for help on using the changeset viewer.