Changeset 2265


Ignore:
Timestamp:
Mar 8, 2008, 2:38:37 AM (16 years ago)
Author:
rvelices
Message:
  • upload.tpl goes smarty
  • start some language cleanup and a small attempt to standardize a bit ...
  • debug_language now calls trigger_error instead of echo when missing language key
Location:
trunk
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/calendar_monthly.class.php

    r2231 r2265  
    481481            )
    482482          );
    483         $alt = $wday_labels[$dow] . ' ' . $day.
    484                ' ('.sprintf("%d ".l10n('pictures'), $items[$day]['nb_images']).')';
    485483
    486484        $tpl_crt_week[]   =
    487485          array(
    488               'DAY' => $day,
    489               'IMAGE'     => $items[$day]['tn_url'],
    490               'U_IMG_LINK'=> $url,
    491               'IMAGE_STYLE'     => $css_style,
    492               'IMAGE_ALT' => $alt,
     486              'DAY'         => $day,
     487              'DOW'         => $dow,
     488              'NB_ELEMENTS' => $items[$day]['nb_images'],
     489              'IMAGE'       => $items[$day]['tn_url'],
     490              'U_IMG_LINK'  => $url,
     491              'IMAGE_STYLE' => $css_style,
     492              'IMAGE_ALT'   => $items[$day]['file'],
    493493            );
    494494      }
  • trunk/include/functions.inc.php

    r2252 r2265  
    10851085  if ($conf['debug_l10n'] and !isset($lang[$key]) and !empty($key))
    10861086  {
    1087     echo '[l10n] language key "'.$key.'" is not defined<br />';
     1087    trigger_error('[l10n] language key "'.$key.'" is not defined', E_USER_NOTICE);
    10881088  }
    10891089
  • trunk/include/functions_category.inc.php

    r2223 r2265  
    467467
    468468    //at least one image direct or indirect
    469     $display_text.= l10n_dec('image_available', 'images_available', $cat_count_images);
     469    $display_text.= l10n_dec('%d element', '%d elements', $cat_count_images);
    470470
    471471    if ($cat_count_categories == 0 or $cat_nb_images == $cat_count_images)
  • trunk/include/functions_html.inc.php

    r2201 r2265  
    2727function get_icon($date, $is_child_date = false)
    2828{
    29   global $page, $user, $lang;
     29  global $page, $user;
    3030
    3131  if (empty($date))
     
    5555    {
    5656      $icons = array(false => 'recent', true => 'recent_by_child' );
    57       $title = l10n('recent_image').'&nbsp;'.$user['recent_period']
    58           .'&nbsp;'.l10n('days');
     57      $title = sprintf(
     58        l10n('elements posted during the last %d days'),
     59        $user['recent_period']
     60        );
    5961      foreach ($icons as $key => $icon)
    6062      {
     
    7981  )
    8082{
    81   global $lang, $conf;
     83  global $conf;
    8284
    8385  $pages_around = $conf['paginate_pages_around'];
     
    375377function get_html_menu_category($categories, $selected_category)
    376378{
    377   global $lang;
    378 
    379379  $ref_level = 0;
    380380  $level = 0;
     
    559559function access_denied()
    560560{
    561   global $user, $lang;
     561  global $user;
    562562
    563563  $login_url =
     
    650650        )
    651651      .'" title="'
    652       .l10n('See pictures linked to this tag only')
     652      .l10n('See elements linked to this tag only')
    653653      .'">'
    654654      .$page['tags'][$i]['name']
  • trunk/language/en_UK/admin.lang.php

    r2251 r2265  
    3535$lang['%d category moved'] = '%d category moved';
    3636$lang['%d categories moved'] = '%d categories moved';
    37 $lang['%d element'] = '%d element';
    38 $lang['%d elements'] = '%d elements';
    3937$lang['%d group'] = '%d group';
    4038$lang['%d groups'] = '%d groups';
     
    8078$lang['Comments for all'] = 'Comments for all';
    8179$lang['Controversy'] = 'Controversy';
    82 $lang['Creation date'] = 'Creation date';
    8380$lang['Current name'] = 'Current name';
    8481$lang['Database'] = 'Database';
     
    134131$lang['New tag'] = 'New tag';
    135132$lang['No tag defined. Use Administration>Pictures>Tags'] = 'No tag defined. Use Administration>Pictures>Tags';
    136 $lang['No'] = 'No';
    137133$lang['Number of comments per page'] = 'Number of comments per page';
    138134$lang['Number of rates'] = 'Number of rates';
     
    183179$lang['Statistics'] = 'Statistics';
    184180$lang['Storage category'] = 'Storage category';
    185 $lang['Submit'] = 'Submit';
    186181$lang['Sum of rates'] = 'Sum of rates';
    187182$lang['Tag "%s" already exists'] = 'Tag "%s" already exists';
     
    204199$lang['Virtual category name'] = 'Virtual category name';
    205200$lang['Webmaster cannot be deleted'] = 'Webmaster cannot be deleted';
    206 $lang['Yes'] = 'Yes';
    207201$lang['You are running on development sources, no check possible.'] = 'You are running on development sources, no check possible.';
    208202$lang['You are running the latest version of PhpWebGallery.'] = 'You are running the latest version of PhpWebGallery.';
     
    401395$lang['site_synchronize'] = 'synchronize';
    402396$lang['site_synchronize_hint'] = 'update the database from files';
    403 $lang['stats_addr'] = 'IP Address';
    404 $lang['stats_category'] = 'Category';
    405 $lang['stats_daily_graph_title'] = 'Pages seen by hour';
    406 $lang['stats_day_title'] = 'Daily statistics';
    407 $lang['stats_file'] = 'File';
    408 $lang['stats_global_graph_title'] = 'Pages seen by month';
    409 $lang['stats_hour'] = 'Hour';
    410 $lang['stats_login'] = 'Login';
    411 $lang['stats_month_title'] = 'Monthly statistics';
    412 $lang['stats_monthly_graph_title'] = 'Pages seen by day';
    413 $lang['stats_pages_seen'] = 'Pages seen';
    414 $lang['stats_picture'] = 'Picture';
    415 $lang['stats_title'] = 'Last year statistics';
    416397$lang['status'] = 'status';
    417398$lang['storage'] = 'Directory';
  • trunk/language/en_UK/common.lang.php

    r2251 r2265  
    4444$lang['%d hit'] = '%d hit';
    4545$lang['%d hits'] = '%d hits';
    46 $lang['%d new element'] = '%d new element';
    47 $lang['%d new elements'] = '%d new elements';
     46$lang['%d new element'] = '%d new image';
     47$lang['%d new elements'] = '%d new images';
    4848$lang['%d new user'] = '%d new user';
    4949$lang['%d new users'] = '%d new users';
    50 $lang['%d picture are also linked to current tags'] = '%d picture is also linked to current tags';
    51 $lang['%d pictures are also linked to current tags'] = '%d pictures are also linked to current tags';
    5250$lang['%d waiting element'] = '%d waiting element';
    5351$lang['%d waiting elements'] = '%d waiting elements';
     
    119117$lang['Search'] = 'Search';
    120118$lang['See available tags'] = 'See available tags';
    121 $lang['See pictures linked to this tag only'] = 'See pictures linked to this tag only';
    122119$lang['Send new password'] = 'Send new password';
    123120$lang['Since'] = 'Since';
     
    136133$lang['access_forbiden'] = 'You are not authorized to access the requested page';
    137134$lang['add to caddie'] = 'add to caddie';
    138 $lang['add_favorites_alt'] = 'Add to favorites';
    139 $lang['add_favorites_hint'] = 'Add this picture to your favorites';
     135$lang['add_favorites_hint'] = 'add this image to your favorites';
    140136$lang['admin'] = 'Administration';
    141137$lang['adviser_mode_enabled'] = 'Adviser mode enabled';
     
    184180$lang['day'][5] = 'Friday';
    185181$lang['day'][6] = 'Saturday';
    186 $lang['days'] = 'days';
    187182$lang['default_sort'] = 'Default';
    188 $lang['del_favorites_alt'] = 'Delete from favorites';
    189 $lang['del_favorites_hint'] = 'Delete this picture from your favorites';
     183$lang['del_favorites_hint'] = 'delete this image from your favorites';
    190184$lang['delete'] = 'Delete';
    191185$lang['descending'] = 'descending';
     
    211205$lang['home'] = 'Home';
    212206$lang['home_hint'] = 'Back to the home page';
    213 $lang['ident_title'] = 'ident_title';
    214207$lang['identification'] = 'Identification';
    215 $lang['image_available'] = '%d image';
    216 $lang['images_available'] = '%d images';
    217208$lang['images_available_cpl'] = 'in this category';
    218209$lang['images_available_cat'] = 'in %d sub-category';
     
    257248$lang['new_rate'] = 'Rate this picture';
    258249$lang['next_page'] = 'Next';
    259 $lang['no'] = 'No';
     250/* DEPRECATED TO REMOVE AFTER ALL TEMPLATE CHANGE USE 'No' */ $lang['no'] = 'no';
    260251$lang['no_category'] = 'Home';
    261252$lang['no_rate'] = 'no rate';
    262 $lang['note_filter_day'] = 'Only displays elements posted within the last %s day.';
    263 $lang['note_filter_days'] = 'Only displays elements posted within the last %s days.';
     253$lang['note_filter_day'] = 'Only displays elements posted within the last %d day.';
     254$lang['note_filter_days'] = 'Only displays elements posted within the last %d days.';
    264255$lang['password updated'] = 'password updated';
    265256$lang['periods_error'] = 'Recent period must be a positive integer value';
    266 $lang['picture'] = 'picture';
     257/* DEPRECATED USED IN comments.php FOR image_id ? */ $lang['picture'] = 'picture';
    267258$lang['picture_high'] = 'Click on the picture to see it in high definition';
    268259$lang['picture_show_metadata'] = 'Show file metadata';
    269 $lang['pictures'] = 'pictures';
    270260$lang['powered_by'] = 'Powered by';
    271261$lang['preferences'] = 'Preferences';
     
    275265$lang['recent_cats_cat'] = 'Recent categories';
    276266$lang['recent_cats_cat_hint'] = 'displays recently updated categories';
    277 $lang['recent_image'] = 'Images within the';
    278267$lang['recent_period'] = 'Recent period';
    279268$lang['recent_pics_cat'] = 'Recent pictures';
     
    292281$lang['remove this tag'] = 'remove this tag from the list';
    293282$lang['representative'] = 'representative';
    294 $lang['reset'] = 'Reset';
     283/* DEPRECATED TO REMOVE AFTER ALL TEMPLATE CHANGE USE 'Reset' */ $lang['reset'] = 'reset';
    295284$lang['return to homepage'] = 'return to homepage';
    296285$lang['search'] = 'Search';
     
    318307$lang['special_categories'] = 'Specials';
    319308$lang['sql_queries_in'] = 'SQL queries in';
    320 $lang['start_filter_hint'] = 'displays only recently posted elements';
    321 $lang['stop_filter_hint'] = 'return to the display of all elements';
    322 $lang['submit'] = 'Submit';
     309$lang['start_filter_hint'] = 'displays only recently posted images';
     310$lang['stop_filter_hint'] = 'return to the display of all images';
     311/* DEPRECATED TO REMOVE AFTER ALL TEMPLATE CHANGE USE 'Submit' */ $lang['submit'] = 'submit';
    323312$lang['the beginning'] = 'the beginning';
    324313$lang['theme'] = 'Interface theme';
     
    328317$lang['title_send_mail'] = 'A comment on your site';
    329318$lang['today'] = 'today';
    330 $lang['total'] = 'images';
    331319$lang['update_rate'] = 'Update your rating';
    332320$lang['update_wrong_dirname'] = 'wrong filename';
     
    339327$lang['upload_author'] = 'Author (eg "Pierrick LE GALL")';
    340328$lang['upload_cannot_upload'] = 'can\'t upload the picture on the server';
    341 $lang['upload_creation_date'] = 'Creation date (DD/MM/YYYY)';
    342329$lang['upload_err_username'] = 'the username must be given';
    343330$lang['upload_file_exists'] = 'A picture\'s name already used';
     
    348335$lang['upload_successful'] = 'Picture uploaded with success, an administrator will validate it as soon as possible';
    349336$lang['upload_title'] = 'Upload a picture';
    350 $lang['upload_username'] = 'Username';
    351337$lang['useful when password forgotten'] = 'useful when password forgotten';
    352 $lang['w_month'] = 'Month';
    353 $lang['yes'] = 'Yes';
     338/* DEPRECATED TO REMOVE AFTER ALL TEMPLATE CHANGE USE 'Yes' */ $lang['yes'] = 'yes';
    354339$lang['page_end'] = 'Page bottom';
    355340$lang['qsearch'] = 'Quick search';
     
    385370$lang['inc_period'] = 'Increase waiting between pictures';
    386371$lang['dec_period'] = 'Decrease waiting between pictures';
    387 
     372$lang['Submit'] = 'Submit';
     373$lang['Yes'] = 'Yes';
     374$lang['No'] = 'No';
     375$lang['%d element']='%d image';
     376$lang['%d elements']='%d images';
     377$lang['%d element are also linked to current tags'] = '%d image is also linked to current tags';
     378$lang['%d elements are also linked to current tags'] = '%d images are also linked to current tags';
     379$lang['See elements linked to this tag only'] = 'See images linked to this tag only';
     380$lang['elements posted during the last %d days'] = 'images posted during the last %d days';
    388381?>
  • trunk/language/es_ES/admin.lang.php

    r2251 r2265  
    3535$lang['%d category moved'] = '%d categoría trasladada';
    3636$lang['%d categories moved'] = '%d categorías trasladadas';
    37 $lang['%d element'] = '%d elemento';
    38 $lang['%d elements'] = '%d elementos';
    3937$lang['%d group'] = '%d grupo';
    4038$lang['%d groups'] = '%d grupos';
     
    7977$lang['Comments for all'] = 'Comentarios para todos';
    8078$lang['Controversy'] = 'Controversia';
    81 $lang['Creation date'] = 'Fecha de creación';
    8279$lang['Current name'] = 'Nombre corriente';
    8380$lang['Database'] = 'Base de datos';
     
    133130$lang['New tag'] = 'Nuevo tag';
    134131$lang['No tag defined. Use Administration>Pictures>Tags'] = 'Ninguna tag definida. Utilizar la pantalla Adminstration> Imágenes> tags';
    135 $lang['No'] = 'No';
    136132$lang['Number of comments per page'] = 'Número de comentarios por página';
    137133$lang['Number of rates'] = 'Número de notas';
     
    182178$lang['Statistics'] = 'Estadísticas';
    183179$lang['Storage category'] = 'Categoría de almacenamiento';
    184 $lang['Submit'] = 'Validar';
    185180$lang['Sum of rates'] = 'Suma notas';
    186181$lang['Tag "%s" already exists'] = 'El tag "%s" ya existe';
     
    203198$lang['Virtual category name'] = 'Nombre de la categoría virtual';
    204199$lang['Webmaster cannot be deleted'] = 'El webmestre no puede ser suprimido';
    205 $lang['Yes'] = 'Si';
    206200$lang['You are running on development sources, no check possible.'] = 'Usted trabaja con las fuentes de desarrollo, imposible verificar la última versión.';
    207201$lang['You are running the latest version of PhpWebGallery.'] = 'Usted utiliza la última versión de PhpWebGallery.';
     
    401395$lang['site_synchronize'] = 'Sincronizar';
    402396$lang['site_synchronize_hint'] = 'pone al día la base de datos a partir de los ficheros';
    403 $lang['stats_addr'] = 'Envía a IP';
    404 $lang['stats_category'] = 'Categoría';
    405 $lang['stats_daily_graph_title'] = 'Páginas vistas por hora';
    406 $lang['stats_day_title'] = 'Estadísticas diarias';
    407 $lang['stats_file'] = 'Fichero';
    408 $lang['stats_global_graph_title'] = 'Páginas vistas este mes';
    409 $lang['stats_hour'] = 'Hora';
    410 $lang['stats_login'] = 'Identificando';
    411 $lang['stats_month_title'] = 'Estadísticas mensuales';
    412 $lang['stats_monthly_graph_title'] = 'Páginas vistas este día';
    413 $lang['stats_pages_seen'] = 'Páginas vistas';
    414 $lang['stats_picture'] = 'Imagen';
    415 $lang['stats_title'] = 'Estadísticas del último año';
    416397$lang['status'] = 'Estatuto';
    417398$lang['storage'] = 'Repertorio';
  • trunk/language/es_ES/common.lang.php

    r2251 r2265  
    4848$lang['%d new user'] = '%d nuevo usuario';
    4949$lang['%d new users'] = '%d nuevos usuarios';
    50 $lang['%d picture are also linked to current tags'] = '%d imagen es también vinculada a los tags corrientes';
    51 $lang['%d pictures are also linked to current tags'] = '%d imagenes son igualmente vinculadas a los tags corrientes';
    5250$lang['%d waiting element'] = '%d elemento en espera';
    5351$lang['%d waiting elements'] = '%d elementos en espera';
     
    119117$lang['Search'] = 'Buscar';
    120118$lang['See available tags'] = 'Ver los tags disponibles';
    121 $lang['See pictures linked to this tag only'] = 'Ver las imágenes relacionadas únicamente a este tag';
    122119$lang['Send new password'] = 'Enviar una nueva contraseña';
    123120$lang['Since'] = 'Desde';
     
    136133$lang['access_forbiden'] = 'Usted no esta autorizado a ver la pagina pedida';
    137134$lang['add to caddie'] = 'Agregar al carrito';
    138 $lang['add_favorites_alt'] = 'Agregar en los favoritos';
    139 $lang['add_favorites_hint'] = 'Agregar esta imagen en sus favoritos';
     135$lang['add_favorites_hint'] = 'agregar esta imagen en sus favoritos';
    140136$lang['admin'] = 'Administración';
    141137$lang['adviser_mode_enabled'] = 'Modo consejero activo';
     
    184180$lang['day'][5] = 'Viernes';
    185181$lang['day'][6] = 'Sábado';
    186 $lang['days'] = 'días';
    187182$lang['default_sort'] = 'Por defecto';
    188 $lang['del_favorites_alt'] = 'Borrar favoritos';
    189 $lang['del_favorites_hint'] = 'Borrar esta imágen de sus favoritos';
     183$lang['del_favorites_hint'] = 'borrar esta imágen de sus favoritos';
    190184$lang['delete'] = 'Suprimir';
    191185$lang['descending'] = 'Descendiente';
     
    211205$lang['home'] = 'Inicio';
    212206$lang['home_hint'] = 'Volver a la página de inicio';
    213 $lang['ident_title'] = 'Identificación (FIXME)';
    214207$lang['identification'] = 'Identificación';
    215 $lang['image_available'] = '%d Imágen';
    216 $lang['images_available'] = '%d Imágenes';
    217208$lang['images_available_cpl'] = 'en esta categoría';
    218209$lang['images_available_cat'] = 'en %d subcategoría';
     
    267258$lang['picture_high'] = 'Pulse sobre la imagen para ver en alta resolución';
    268259$lang['picture_show_metadata'] = 'Muestre los meta-datos del fichero';
    269 $lang['pictures'] = 'imágenes';
    270260$lang['powered_by'] = 'Distribuido por';
    271261$lang['preferences'] = 'Preferencias';
     
    275265$lang['recent_cats_cat'] = 'Últimas categorías';
    276266$lang['recent_cats_cat_hint'] = 'mostrar las categorías recientement actualizadas o creadas';
    277 $lang['recent_image'] = 'Esta imagen tiene menos de';
    278267$lang['recent_period'] = 'Período reciente';
    279268$lang['recent_pics_cat'] = 'Últimas imágenes';
     
    328317$lang['title_send_mail'] = 'Una opinión sobre esta pagina';
    329318$lang['today'] = 'hoy';
    330 $lang['total'] = 'imágenes';
    331319$lang['update_rate'] = 'Actualizar nota';
    332320$lang['update_wrong_dirname'] = 'Mal nombre de repertorio';
     
    339327$lang['upload_author'] = 'Autor';
    340328$lang['upload_cannot_upload'] = 'Imposible trasladar el fichero sobre el camarero(servidor)';
    341 $lang['upload_creation_date'] = 'Fecha de creación (DD/MM/AAAA)';
    342329$lang['upload_err_username'] = 'Falta el nombre de usuario';
    343330$lang['upload_file_exists'] = 'este fichero ya existe';
     
    348335$lang['upload_successful'] = 'Imagen agregada , un administrador la debe controlar para que esta sea visible';
    349336$lang['upload_title'] = 'Agregar una imagen';
    350 $lang['upload_username'] = 'Nombre de usuario';
    351337$lang['useful when password forgotten'] = 'Útil en caso de perdida de contraseña';
    352 $lang['w_month'] = 'Mes';
    353338$lang['yes'] = 'Si';
    354339$lang['page_end'] = 'Por la bajura de página';
     
    385370/* TODO */ $lang['inc_period'] = 'Increase waiting between pictures';
    386371/* TODO */ $lang['dec_period'] = 'Decrease waiting between pictures';
    387 
     372$lang['Submit'] = 'Validar';
     373$lang['Yes'] = 'Si';
     374$lang['No'] = 'No';
     375$lang['%d element']='%d imágen';
     376$lang['%d elements']='%d imágenes';
     377$lang['%d element are also linked to current tags'] = '%d imagen es también vinculada a los tags corrientes';
     378$lang['%d elements are also linked to current tags'] = '%d imagenes son igualmente vinculadas a los tags corrientes';
     379$lang['See elements linked to this tag only'] = 'Ver las imágenes relacionadas únicamente a este tag';
     380$lang['elements posted during the last %d days'] = 'esta imagen tiene menos de %d dias';
    388381?>
  • trunk/language/fr_FR/admin.lang.php

    r2251 r2265  
    3535$lang['%d category moved'] = '%d catégorie déplacée';
    3636$lang['%d categories moved'] = '%d catégories déplacées';
    37 $lang['%d element'] = '%d élément';
    38 $lang['%d elements'] = '%d éléments';
    3937$lang['%d group'] = '%d groupe';
    4038$lang['%d groups'] = '%d groupes';
     
    8078$lang['Comments for all'] = 'Commentaires pour tous';
    8179$lang['Controversy'] = 'Controverse';
    82 $lang['Creation date'] = 'Date de création';
    8380$lang['Current name'] = 'Nom courant';
    8481$lang['Database'] = 'Base de données';
     
    134131$lang['New tag'] = 'Nouveau tag';
    135132$lang['No tag defined. Use Administration>Pictures>Tags'] = 'Aucun tag défini. Utiliser l\'écran Adminstration>Images>Tags';
    136 $lang['No'] = 'Non';
    137133$lang['Number of comments per page'] = 'Nombre de commentaires par page';
    138134$lang['Number of rates'] = 'Nombre de notes';
     
    183179$lang['Statistics'] = 'Statistiques';
    184180$lang['Storage category'] = 'Catégorie de stockage';
    185 $lang['Submit'] = 'Valider';
    186181$lang['Sum of rates'] = 'Somme des notes';
    187182$lang['Tag "%s" already exists'] = 'Le tag "%s" existe déjà';
     
    204199$lang['Virtual category name'] = 'Nom de la catégorie virtuelle';
    205200$lang['Webmaster cannot be deleted'] = 'Le webmestre ne peut pas être supprimé';
    206 $lang['Yes'] = 'Oui';
    207201$lang['You are running on development sources, no check possible.'] = 'Vous travaillez avec les sources de développement, impossible de vérifier la dernière version.';
    208202$lang['You are running the latest version of PhpWebGallery.'] = 'Vous utilisez la dernière version de PhpWebGallery.';
     
    401395$lang['site_synchronize'] = 'synchroniser';
    402396$lang['site_synchronize_hint'] = 'met à jour la base de données à partir des fichiers';
    403 $lang['stats_addr'] = 'Adresse IP';
    404 $lang['stats_category'] = 'Catégorie';
    405 $lang['stats_daily_graph_title'] = 'Pages vues par heure';
    406 $lang['stats_day_title'] = 'Statistiques journalières';
    407 $lang['stats_file'] = 'Fichier';
    408 $lang['stats_global_graph_title'] = 'Pages vues par mois';
    409 $lang['stats_hour'] = 'Heure';
    410 $lang['stats_login'] = 'Identifiant';
    411 $lang['stats_month_title'] = 'Statistiques mensuelles';
    412 $lang['stats_monthly_graph_title'] = 'Pages vues par jour';
    413 $lang['stats_pages_seen'] = 'Pages vues';
    414 $lang['stats_picture'] = 'Image';
    415 $lang['stats_title'] = 'Statistiques de la dernière année';
    416397$lang['status'] = 'statut';
    417398$lang['storage'] = 'Répertoire';
  • trunk/language/fr_FR/common.lang.php

    r2251 r2265  
    4444$lang['%d hit'] = 'vue %d fois';
    4545$lang['%d hits'] = 'vue %d fois';
    46 $lang['%d new element'] = '%d nouvel élément';
    47 $lang['%d new elements'] = '%d nouveaux éléments';
     46$lang['%d new element'] = '%d nouvelle image';
     47$lang['%d new elements'] = '%d nouvelles images';
    4848$lang['%d new user'] = '%d nouvel utilisateur';
    4949$lang['%d new users'] = '%d nouveaux utilisateurs';
    50 $lang['%d picture are also linked to current tags'] = '%d image est également liée aux tags courants';
    51 $lang['%d pictures are also linked to current tags'] = '%d images sont également liées aux tags courants';
    5250$lang['%d waiting element'] = '%d élément en attente';
    5351$lang['%d waiting elements'] = '%d éléments en attente';
     
    119117$lang['Search'] = 'Rechercher';
    120118$lang['See available tags'] = 'Voir les tags disponibles';
    121 $lang['See pictures linked to this tag only'] = 'Voir les images liées uniquement à ce tag';
    122119$lang['Send new password'] = 'Envoyer le nouveau mot de passe';
    123120$lang['Since'] = 'Depuis';
     
    136133$lang['access_forbiden'] = 'Vous n\'êtes pas autorisé sur la page demandée';
    137134$lang['add to caddie'] = 'ajouter au panier';
    138 $lang['add_favorites_alt'] = 'Ajouter aux favoris';
    139 $lang['add_favorites_hint'] = 'Ajouter cette image à vos favoris';
     135$lang['add_favorites_hint'] = 'ajouter cette image à vos favoris';
    140136$lang['admin'] = 'Administration';
    141137$lang['adviser_mode_enabled'] = 'Mode conseiller actif';
     
    184180$lang['day'][5] = 'Vendredi';
    185181$lang['day'][6] = 'Samedi';
    186 $lang['days'] = 'jours';
    187182$lang['default_sort'] = 'Par défaut';
    188 $lang['del_favorites_alt'] = 'Supprimer des favoris';
    189 $lang['del_favorites_hint'] = 'Supprimer cette image de vos favoris';
     183$lang['del_favorites_hint'] = 'supprimer cette image de vos favoris';
    190184$lang['delete'] = 'Supprimer';
    191185$lang['descending'] = 'décroissant';
     
    211205$lang['home'] = 'Accueil';
    212206$lang['home_hint'] = 'Retour à la page d\'accueil';
    213 $lang['ident_title'] = 'Identification (FIXME)';
    214207$lang['identification'] = 'Identification';
    215 $lang['image_available'] = '%d image';
    216 $lang['images_available'] = '%d images';
    217208$lang['images_available_cpl'] = 'dans cette catégorie';
    218209$lang['images_available_cat'] = 'dans %d sous-catégorie';
     
    267258$lang['picture_high'] = 'Cliquer sur l\'image pour la visualiser en haute définition';
    268259$lang['picture_show_metadata'] = 'Montrer les méta-données du fichier';
    269 $lang['pictures'] = 'images';
    270260$lang['powered_by'] = 'Propulsé par';
    271261$lang['preferences'] = 'Préférences';
     
    275265$lang['recent_cats_cat'] = 'Catégories récentes';
    276266$lang['recent_cats_cat_hint'] = 'afficher les catégories récemment mises à jour ou créées';
    277 $lang['recent_image'] = 'Images de moins de';
    278267$lang['recent_period'] = 'Période récente';
    279268$lang['recent_pics_cat'] = 'Images récentes';
     
    328317$lang['title_send_mail'] = 'Un commentaire sur le site';
    329318$lang['today'] = 'aujourd\'hui';
    330 $lang['total'] = 'images';
    331319$lang['update_rate'] = 'Mettre à jour votre note';
    332320$lang['update_wrong_dirname'] = 'mauvais nom de répertoire';
     
    339327$lang['upload_author'] = 'Auteur';
    340328$lang['upload_cannot_upload'] = 'impossible de transférer le fichier sur le serveur';
    341 $lang['upload_creation_date'] = 'Date de création (JJ/MM/AAAA)';
    342329$lang['upload_err_username'] = 'nom d\'utilisateur manquant';
    343330$lang['upload_file_exists'] = 'ce fichier existe déjà';
     
    348335$lang['upload_successful'] = 'Image ajoutée avec succès, un administrateur doit valider l\'ajout pour le rendre visible';
    349336$lang['upload_title'] = 'Ajouter une image';
    350 $lang['upload_username'] = 'Nom d\'utilisateur';
    351337$lang['useful when password forgotten'] = 'utile en cas d\'oubli de mot de passe';
    352 $lang['w_month'] = 'Mois';
    353338$lang['yes'] = 'Oui';
    354339$lang['page_end'] = 'Bas de page';
     
    385370$lang['inc_period'] = 'Augmenter l\'attente entre les images';
    386371$lang['dec_period'] = 'Diminuer l\'attente entre les images';
    387 
     372$lang['Submit'] = 'Valider';
     373$lang['Yes'] = 'Oui';
     374$lang['No'] = 'Non';
     375$lang['%d element']='%d image';
     376$lang['%d elements']='%d images';
     377$lang['%d element are also linked to current tags'] = '%d image est également liée aux tags courants';
     378$lang['%d elements are also linked to current tags'] = '%d images sont également liées aux tags courants';
     379$lang['See elements linked to this tag only'] = 'Voir les images liées uniquement à ce tag';
     380$lang['elements posted during the last %d days'] = 'images ajoutées au cours de %d derniers jours';
    388381?>
  • trunk/language/nl_NL/admin.lang.php

    r2251 r2265  
    3636$lang['%d category moved'] = '%d categorie verplaatst';
    3737$lang['%d categories moved'] = '%d categorieën verplaatst';
    38 $lang['%d element'] = '%d element';
    39 $lang['%d elements'] = '%d elementen';
    4038$lang['%d group'] = '%d groep';
    4139$lang['%d groups'] = '%d groepen';
     
    8078$lang['Comments for all'] = 'Commentaar voor alles';
    8179$lang['Controversy'] = 'Controversieel';
    82 $lang['Creation date'] = 'Aanmaak datum';
    8380$lang['Current name'] = 'Huidige naam';
    8481$lang['Database'] = 'Database';
     
    134131$lang['New tag'] = 'Nieuwe tag';
    135132$lang['No tag defined. Use Administration>Pictures>Tags'] = 'Geen tag gedefineerd. Gebruik beheer>afbeeldingen>Tags';
    136 $lang['No'] = 'Nee';
    137133$lang['Number of comments per page'] = 'Aantal commentaren per pagina';
    138134$lang['Number of rates'] = 'Aantal beoordelingen';
     
    183179$lang['Statistics'] = 'Statistieken';
    184180$lang['Storage category'] = 'Storage category';
    185 $lang['Submit'] = 'Bevestig';
    186181$lang['Sum of rates'] = 'Eind oordeel';
    187182$lang['Tag "%s" already exists'] = 'Tag "%s" bestaat al';
     
    204199$lang['Virtual category name'] = 'Virtuele categorie naam';
    205200$lang['Webmaster cannot be deleted'] = 'Webmaster kan niet verwijderd worden';
    206 $lang['Yes'] = 'Ja';
    207201$lang['You are running on development sources, no check possible.'] = 'Je werkt op basis van ontwikkelins bronnen, geen controle mogelijk.';
    208202$lang['You are running the latest version of PhpWebGallery.'] = 'Je hebt de laatste versie van PhpWebGallery.';
     
    402396$lang['site_synchronize'] = 'synchronizeer';
    403397$lang['site_synchronize_hint'] = 'werk de database bij vanuit bestanden';
    404 $lang['stats_addr'] = 'IP Adres';
    405 $lang['stats_category'] = 'Categorie';
    406 $lang['stats_daily_graph_title'] = 'Pagina\'s bekeken per uur';
    407 $lang['stats_day_title'] = 'Dagelijkse statistieken';
    408 $lang['stats_file'] = 'Bestand';
    409 $lang['stats_global_graph_title'] = 'Pagina\'s bekeken per maand';
    410 $lang['stats_hour'] = 'Uur';
    411 $lang['stats_login'] = 'Login';
    412 $lang['stats_month_title'] = 'Maandelijkse statistieken';
    413 $lang['stats_monthly_graph_title'] = 'Pagina\'s bekeken per dag';
    414 $lang['stats_pages_seen'] = 'Pagina\'s bekeken';
    415 $lang['stats_picture'] = 'afbeeldingen';
    416 $lang['stats_title'] = 'Afgelopen jaar statistieken';
    417398$lang['status'] = 'status';
    418399$lang['storage'] = 'Map';
     
    636617$lang['c13y_user_created'] = 'Gebruiker "%s" gemaakt met wachtwoord "%s" ';
    637618$lang['c13y_user_status_updated'] = 'Status van de gebruiker "%s" is bijgewerkt';
     619$lang['add new elements to caddie'] = 'Voeg nieuwe elementen toe ann caddie';
    638620// --------- Starting below: New or revised $lang ---- from Butterfly (1.8)
    639621$lang['no_display_thumbnail'] = 'Geen weergave';
  • trunk/language/nl_NL/common.lang.php

    r2251 r2265  
    4848$lang['%d new user'] = '%d nieuwe gebruiker';
    4949$lang['%d new users'] = '%d nieuwe gebruikers';
    50 $lang['%d picture are also linked to current tags'] = '%d picture are also linked to current tags';
    51 $lang['%d pictures are also linked to current tags'] = '%d pictures are also linked to current tags';
    5250$lang['%d waiting element'] = '%d wachtende element';
    5351$lang['%d waiting elements'] = '%d wachtende elementen';
     
    119117$lang['Search'] = 'Zoeken';
    120118$lang['See available tags'] = 'Toon beschikbare tags';
    121 $lang['See pictures linked to this tag only'] = 'Toon afbeelding gelinkt met deze tag';
    122119$lang['Send new password'] = 'Stuur nieuw wachtwoord';
    123120$lang['Since'] = 'Sinds';
     
    136133$lang['access_forbiden'] = 'Je hebt geen rechten tot de opgevraagde pagina';
    137134$lang['add to caddie'] = 'Toevoegen aan caddie';
    138 $lang['add_favorites_alt'] = 'Toevoegen aan favorieten';
    139 $lang['add_favorites_hint'] = 'Voeg deze afbeelding toe aan jou favorieten';
     135$lang['add_favorites_hint'] = 'voeg deze afbeelding toe aan jou favorieten';
    140136$lang['admin'] = 'Beheer';
    141137$lang['adviser_mode_enabled'] = 'Advies mode geactiveerd';
     
    184180$lang['day'][5] = 'Vrijdag';
    185181$lang['day'][6] = 'Zaterdag';
    186 $lang['days'] = 'dagen';
    187182$lang['default_sort'] = 'Standaard';
    188 $lang['del_favorites_alt'] = 'Verwijderen uit de favorieten';
    189 $lang['del_favorites_hint'] = 'Verwijder deze foto van je favorieten';
     183$lang['del_favorites_hint'] = 'verwijder deze foto van je favorieten';
    190184$lang['delete'] = 'Verwijderen';
    191185$lang['descending'] = 'descending';
     
    211205$lang['home'] = 'Home';
    212206$lang['home_hint'] = 'Terug naar de home page';
    213 $lang['ident_title'] = 'ident_title';
    214207$lang['identification'] = 'Identificatie';
    215 $lang['image_available'] = '%d afbeeldingen';
    216 $lang['images_available'] = '%d afbeelding(en)';
    217208$lang['images_available_cpl'] = 'in deze categorie';
    218209$lang['images_available_cat'] = 'in %d sub-categorie';
     
    267258$lang['picture_high'] = 'Klik op de afbeelding om het te bekijken in een groter formaat';
    268259$lang['picture_show_metadata'] = 'Toon bestands metadata';
    269 $lang['pictures'] = 'afbeelding';
    270260$lang['powered_by'] = 'Powered by';
    271261$lang['preferences'] = 'Voorkeuren';
     
    275265$lang['recent_cats_cat'] = 'Recente categorieën';
    276266$lang['recent_cats_cat_hint'] = 'toon recentelijk bijgewerkte categorieën';
    277 $lang['recent_image'] = 'afbeelding binnen de';
    278267$lang['recent_period'] = 'Recente periode';
    279268$lang['recent_pics_cat'] = 'Recente afbeelding';
     
    328317$lang['title_send_mail'] = 'commentaar op je site';
    329318$lang['today'] = 'vandaag';
    330 $lang['total'] = 'afbeelding';
    331319$lang['update_rate'] = 'Werk je beoordeling bij';
    332320$lang['update_wrong_dirname'] = 'verkeerde bestandsnaam';
     
    339327$lang['upload_author'] = 'Auteur (eg "Pierrick LE GALL")';
    340328$lang['upload_cannot_upload'] = 'kan de afbeelding niet op de server plaatsen';
    341 $lang['upload_creation_date'] = 'Aanmaak datum (DD/MM/YYYY)';
    342329$lang['upload_err_username'] = 'de gebruikersnaam moet ingevuld zijn';
    343330$lang['upload_file_exists'] = 'De naam is al in gebruik';
     
    348335$lang['upload_successful'] = 'Afbeelding met succes ge-upload, een beheerder moet de afbeelding valideren, dit gebeurd zsm.';
    349336$lang['upload_title'] = 'Upload een afbeelding';
    350 $lang['upload_username'] = 'Gebruikersnaam';
    351337$lang['useful when password forgotten'] = 'handig bij het vergeten van je wachtwoord';
    352 $lang['w_month'] = 'Maand';
    353338$lang['yes'] = 'Ja';
    354339$lang['page_end'] = 'Pagina eind';
     
    373358// --------- Starting below: New or revised $lang ---- from version 1.7.1
    374359$lang['guest_must_be_guest'] = 'Foutieve status voor gebruiker "guest", gebruik standaard status. Waarschuw de webmaster.';
    375 $lang['add new elements to caddie'] = 'Voeg nieuwe elementen toe ann caddie';
    376360// --------- Starting below: New or revised $lang ---- from Butterfly (1.8)
    377361$lang['Administrator, webmaster and special user cannot use this method'] = 'Administrator, webmaster en speciale gebruiker kunnen deze methode niet gebruiken';
     
    386370/* TODO */ $lang['inc_period'] = 'Increase waiting between pictures';
    387371/* TODO */ $lang['dec_period'] = 'Decrease waiting between pictures';
    388 
     372$lang['Submit'] = 'Bevestig';
     373$lang['Yes'] = 'Ja';
     374$lang['No'] = 'Nee';
     375$lang['%d element']='%d afbeelding';
     376$lang['%d elements']='%d afbeeldingen';
     377$lang['%d element are also linked to current tags'] = '%d image are also linked to current tags';
     378$lang['%d elements are also linked to current tags'] = '%d images are also linked to current tags';
     379$lang['See elements linked to this tag only'] = 'Toon afbeelding gelinkt met deze tag';
     380$lang['elements posted during the last %d days'] = 'afbeelding binnen de %d dagen';
    389381?>
  • trunk/picture.php

    r2227 r2265  
    673673          get_root_url().get_themeconf('icon_dir').'/favorite.png',
    674674        'FAVORITE_HINT' => l10n('add_favorites_hint'),
    675         'FAVORITE_ALT'  => l10n('add_favorites_alt'),
    676675        'U_FAVORITE'    => add_url_params(
    677676          $url_self,
     
    689688          get_root_url().get_themeconf('icon_dir').'/del_favorite.png',
    690689        'FAVORITE_HINT' => l10n('del_favorites_hint'),
    691         'FAVORITE_ALT'  => l10n('del_favorites_alt'),
    692690        'U_FAVORITE'    => add_url_params(
    693691          $url_self,
  • trunk/template/yoga/menubar.tpl

    r2231 r2265  
    3737  </li></ul>
    3838  {/if}
    39                 <p class="totalImages">{$NB_PICTURE} {'total'|@translate}</p>
     39                <p class="totalImages">{$pwg->l10n_dec('%d element', '%d elements', $NB_PICTURE)}</p>
    4040  </dd>
    4141</dl>
     
    5151                {if !empty($tag.add) }
    5252                        <a href="{$tag.add.URL}"
    53                                 title="{$pwg->l10n_dec('%d picture are also linked to current tags', '%d pictures are also linked to current tags', $tag.add.COUNTER)}"
     53                                title="{$pwg->l10n_dec('%d element are also linked to current tags', '%d elements are also linked to current tags', $tag.add.COUNTER)}"
    5454                                rel="nofollow">
    5555                                <img src="{$ROOT_URL}{$themeconf.icon_dir}/add_tag.png" alt="+" />
    5656                        </a>
    5757                {/if}
    58                 <a href="{$tag.U_TAG}" class="{$tag.CLASS}" title="{'See pictures linked to this tag only'|@translate}">{$tag.NAME}</a>
     58                <a href="{$tag.U_TAG}" class="{$tag.CLASS}" title="{'See elements linked to this tag only'|@translate}">{$tag.NAME}</a>
    5959                </li>
    6060                {/foreach}
     
    147147                {/if}
    148148                <p>
    149                  <input class="submit" type="submit" name="login" value="{'submit'|@translate}">
     149                 <input class="submit" type="submit" name="login" value="{'Submit'|@translate}">
    150150                </p>
    151151               
  • trunk/template/yoga/month_calendar.tpl

    r2231 r2265  
    4747                                <div class="calImg" style="width:{$chronology_calendar.month_view.CELL_WIDTH}px;height:{$chronology_calendar.month_view.CELL_HEIGHT}px;">
    4848                                        <a href="{$day.U_IMG_LINK}">
    49                                                 <img style="{$day.IMAGE_STYLE}" src="{$day.IMAGE}" alt="{$day.IMAGE_ALT}" title="{$day.IMAGE_ALT}" />
     49                                                <img style="{$day.IMAGE_STYLE}" src="{$day.IMAGE}" alt="{$day.IMAGE_ALT}" title="{$pwg->l10n_dec('%d element','%d elements', $day.NB_ELEMENTS)}" />
    5050                                        </a>
    5151                                </div>
  • trunk/template/yoga/picture.tpl

    r2257 r2265  
    4646    {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if}
    4747    {if isset($favorite) }
    48       <a href="{$favorite.U_FAVORITE}" title="{$favorite.FAVORITE_HINT}"><img src="{$favorite.FAVORITE_IMG}" class="button" alt="{$favorite.FAVORITE_ALT}"></a>
     48      <a href="{$favorite.U_FAVORITE}" title="{$favorite.FAVORITE_HINT}"><img src="{$favorite.FAVORITE_IMG}" class="button" alt="favorite" title="{$favorite.FAVORITE_HINT}"></a>
    4949    {/if}
    5050    {if !empty($U_SET_AS_REPRESENTATIVE) }
     
    5252    {/if}
    5353    {if isset($U_ADMIN) }
    54       <a href="{$U_ADMIN}" title="{'link_info_image'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/preferences.png" class="button" alt="{'link_info_image'|@translate}"></a>
     54      <a href="{$U_ADMIN}" title="{'link_info_image'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/preferences.png" class="button" alt="{'edit'|@translate}"></a>
    5555    {/if}
    5656    {if isset($U_CADDIE) }
     
    221221      <label>{'comment'|@translate}<textarea name="content" rows="5" cols="80">{$comment_add.CONTENT}</textarea></label>
    222222      <input type="hidden" name="key" value="{$comment_add.KEY}" />
    223       <input class="submit" type="submit" value="{'submit'|@translate}">
     223      <input class="submit" type="submit" value="{'Submit'|@translate}">
    224224    </fieldset>
    225225  </form>
  • trunk/template/yoga/upload.tpl

    r2222 r2265  
    1 <!-- DEV TAG: not smarty migrated -->
     1{* $Id$ *}
     2
    23<div id="content">
    34
    45  <div class="titrePage">
    56    <ul class="categoryActions">
    6       <li><a href="{U_HOME}" title="{lang:return to homepage}"><img src="{themeconf:icon_dir}/home.png" class="button" alt="{lang:home}"/></a></li>
     7      <li><a href="{$U_HOME}" title="{'return to homepage'|@translate}"><img src="{$themeconf.icon_dir}/home.png" class="button" alt="{'home'|@translate}"/></a></li>
    78    </ul>
    8     <h2>{lang:upload_title}</h2>
     9    <h2>{'upload_title'|@translate}</h2>
    910  </div>
    1011
    11   <!-- BEGIN upload_not_successful -->
    12   <form enctype="multipart/form-data" method="post" action="{F_ACTION}">
     12  {if !empty($errors)}
     13  <div class="errors">
     14    <ul>
     15      {foreach from=$errors item=error}
     16      <li>{$error}</li>
     17      {/foreach}
     18    </ul>
     19  </div>
     20  {/if}
     21
     22  {if not $UPLOAD_SUCCESSFUL }
     23  <form enctype="multipart/form-data" method="post" action="{$F_ACTION}">
    1324    <table style="width:80%;margin-left:auto;margin-right:auto;">
    14     <!-- BEGIN errors -->
    15         <tr>
    16         <td colspan="2">
    17           <div class="errors">
    18           <ul>
    19             <!-- BEGIN error -->
    20             <li>{upload_not_successful.errors.error.ERROR}</li>
    21             <!-- END error -->
    22           </ul>
    23           </div>
    24         </td>
    25         </tr>
    26     <!-- END errors -->
    2725    <tr>
    2826      <td colspan="2" class="menu">
    29       <div style="text-align:center;">{ADVISE_TITLE}</div>
     27      <div style="text-align:center;">{$ADVISE_TITLE}</div>
     28      {if not empty($advises)}
    3029      <ul>
    31         <!-- BEGIN advise -->
    32         <li>{upload_not_successful.advise.ADVISE}</li>
    33         <!-- END advise -->
     30        {foreach from=$advises item=advise}
     31        <li>{$advise}</li>
     32        {/foreach}
    3433      </ul>
     34      {/if}
    3535      </td>
    3636    </tr>
     
    4040      </td>
    4141    </tr>
    42     <!-- BEGIN fields -->
     42    {if isset($SHOW_FORM_FIELDS) and $SHOW_FORM_FIELDS}
    4343    <!-- username  -->
    4444    <tr>
    45       <td class="menu">{lang:upload_username} <span style="color:red;">*</span></td>
     45      <td class="menu">{'Username'|@translate} <span style="color:red;">*</span></td>
    4646      <td align="left" style="padding:10px;">
    47       <input name="username" type="text" value="{NAME}" />
     47      <input name="username" type="text" value="{$NAME}" />
    4848      </td>
    4949    </tr>
    5050    <!-- mail address  -->
    5151    <tr>
    52       <td class="menu">{lang:mail_address} <span style="color:red;">*</span></td>
     52      <td class="menu">{'mail_address'|@translate} <span style="color:red;">*</span></td>
    5353      <td align="left" style="padding:10px;">
    54       <input name="mail_address" type="text" value="{EMAIL}" />
     54      <input name="mail_address" type="text" value="{$EMAIL}" />
    5555      </td>
    5656    </tr>
    5757    <!-- name of the picture  -->
    5858    <tr>
    59       <td class="menu">{lang:upload_name}</td>
     59      <td class="menu">{'upload_name'|@translate}</td>
    6060      <td align="left" style="padding:10px;">
    61       <input name="name" type="text" value="{NAME_IMG}" />
     61      <input name="name" type="text" value="{$NAME_IMG}" />
    6262      </td>
    6363    </tr>
    6464    <!-- author  -->
    6565    <tr>
    66       <td class="menu">{lang:upload_author}</td>
     66      <td class="menu">{'upload_author'|@translate}</td>
    6767      <td align="left" style="padding:10px;">
    68       <input name="author" type="text" value="{AUTHOR_IMG}" />
     68      <input name="author" type="text" value="{$AUTHOR_IMG}" />
    6969      </td>
    7070    </tr>
    7171    <!-- date of creation  -->
    7272    <tr>
    73       <td class="menu">{lang:upload_creation_date}</td>
     73      <td class="menu">{'Creation date'|@translate} (DD/MM/YYYY)</td>
    7474      <td align="left" style="padding:10px;">
    75       <input name="date_creation" type="text" value="{DATE_IMG}" />
     75      <input name="date_creation" type="text" value="{$DATE_IMG}" />
    7676      </td>
    7777    </tr>
    7878    <!-- comment  -->
    7979    <tr>
    80       <td class="menu">{lang:comment}</td>
     80      <td class="menu">{'comment'|@translate}</td>
    8181      <td align="left" style="padding:10px;">
    82        <textarea name="comment" rows="3" cols="40" style="overflow:auto">{COMMENT_IMG}</textarea>
     82       <textarea name="comment" rows="3" cols="40" style="overflow:auto">{$COMMENT_IMG}</textarea>
    8383      </td>
    8484    </tr>
    85     <!-- END fields -->
     85    {/if}
    8686    <tr>
    8787      <td colspan="2" align="center">
    88       <input class="submit" name="submit" type="submit" value="{lang:submit}" />
     88      <input class="submit" name="submit" type="submit" value="{'Submit'|@translate}" />
    8989      </td>
    9090    </tr>
    9191    </table>
    9292  </form>
    93   <!-- END upload_not_successful -->
    94   <!-- BEGIN upload_successful -->
    95   {lang:upload_successful}<br />
     93  {else}
     94  {'upload_successful'|@translate}<br />
    9695  <div style="text-align:center;">
    97     <a href="{U_RETURN}">[ {lang:home} ]</a>
     96    <a href="{$U_RETURN}">[ {'home'|@translate} ]</a>
    9897  </div>
    99   <!-- END upload_successful -->
    100   <!-- BEGIN note -->
    101   <div style="text-align:left;"><span style="color:red;">*</span> : {lang:mandatory}</div>
    102   <!-- END note -->
     98  {/if}
     99 
     100  {if isset($SHOW_FORM_FIELDS) and $SHOW_FORM_FIELDS}
     101  <div style="text-align:left;"><span style="color:red;">*</span> : {'mandatory'|@translate}</div>
     102  {/if}
    103103</div> <!-- content -->
  • trunk/upload.php

    r2033 r2265  
    33// | PhpWebGallery - a PHP based picture gallery                           |
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
     5// | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net |
    66// +-----------------------------------------------------------------------+
    77// | file          : $Id$
     
    104104      case 3 : $result['type'] = 'png'; break;
    105105      default :
    106         array_push( $result['error'], l10n('upload_advise_filetype') ); 
     106        array_push( $result['error'], l10n('upload_advise_filetype') );
    107107      }
    108108    }
     
    135135  $category = get_cat_info( $page['category'] );
    136136  $category['cat_dir'] = get_complete_dir( $page['category'] );
    137  
     137
    138138  if (url_is_remote($category['cat_dir']) or !$category['uploadable'])
    139139  {
    140     die('Fatal: you take a wrong way, bye bye');
     140    page_forbidden('upload not allowed');
    141141  }
    142142}
    143143else { // $page['category'] may be set by a futur plugin but without it
    144   die('Fatal: you take a wrong way, bye bye');
     144  bad_request('invalid parameters');
    145145}
    146146
     
    174174    array_push( $error, l10n('upload_err_username') );
    175175  }
    176  
     176
    177177  $date_creation = '';
    178178  if ( !empty($_POST['date_creation']) )
     
    203203    array_push( $error, l10n('update_wrong_dirname') );
    204204  }
    205  
     205
    206206  if ( sizeof( $error ) == 0 )
    207207  {
     
    316316}
    317317
    318 $template->assign_vars(
     318$template->assign(
    319319  array(
    320     'U_HOME' => make_index_url(),
    321 
    322320    'ADVISE_TITLE' => $advise_title,
    323321    'NAME' => $username,
     
    333331    )
    334332  );
    335  
     333
     334$template->assign('errors', $error);
     335$template->assign('UPLOAD_SUCCESSFUL', $page['upload_successful'] );
     336
    336337if ( !$page['upload_successful'] )
    337338{
    338   $template->assign_block_vars('upload_not_successful',array());
    339 //-------------------------------------------------------------- errors display
    340 if ( sizeof( $error ) != 0 )
    341 {
    342   $template->assign_block_vars('upload_not_successful.errors',array());
    343   for ( $i = 0; $i < sizeof( $error ); $i++ )
    344   {
    345     $template->assign_block_vars('upload_not_successful.errors.error',array('ERROR'=>$error[$i]));
    346   }
    347 }
    348 
    349339//--------------------------------------------------------------------- advises
    350340  if ( !empty($conf['upload_maxfilesize']) )
     
    352342    $content = l10n('upload_advise_filesize');
    353343    $content.= $conf['upload_maxfilesize'].' KB';
    354     $template->assign_block_vars('upload_not_successful.advise',array('ADVISE'=>$content));
     344    $template->append('advises', $content);
    355345  }
    356346
     
    361351      $content = l10n('upload_advise_width');
    362352      $content.= $conf['upload_maxwidth_thumbnail'].' px';
    363       $template->assign_block_vars('upload_not_successful.advise',array('ADVISE'=>$content));
     353      $template->append('advises', $content);
    364354    }
    365355    if ( $conf['upload_maxheight_thumbnail'] != '' )
     
    367357      $content = l10n('upload_advise_height');
    368358      $content.= $conf['upload_maxheight_thumbnail'].' px';
    369       $template->assign_block_vars('upload_not_successful.advise',array('ADVISE'=>$content));
     359      $template->append('advises', $content);
    370360    }
    371361  }
     
    376366      $content = l10n('upload_advise_width');
    377367      $content.= $conf['upload_maxwidth'].' px';
    378       $template->assign_block_vars('upload_not_successful.advise',array('ADVISE'=>$content));
     368      $template->append('advises', $content);
    379369    }
    380370    if ( $conf['upload_maxheight'] != '' )
     
    382372      $content = l10n('upload_advise_height');
    383373      $content.= $conf['upload_maxheight'].' px';
    384       $template->assign_block_vars('upload_not_successful.advise',array('ADVISE'=>$content));
    385     }
    386   }
    387   $template->assign_block_vars('upload_not_successful.advise',array('ADVISE'=>l10n('upload_advise_filetype')));
    388  
     374      $template->append('advises', $content);
     375    }
     376  }
     377  $template->append('advises', l10n('upload_advise_filetype'));
     378
    389379//----------------------------------------- optionnal username and mail address
    390380  if ( !isset( $page['waiting_id'] ) )
    391381  {
    392     $template->assign_block_vars('upload_not_successful.fields',array());
    393     $template->assign_block_vars('note',array());
    394   }
    395 }
    396 else
    397 {
    398   $template->assign_block_vars('upload_successful',array());
     382    $template->assign('SHOW_FORM_FIELDS', true);
     383  }
    399384}
    400385
Note: See TracChangeset for help on using the changeset viewer.