Changeset 2265
- Timestamp:
- Mar 8, 2008, 2:38:37 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/calendar_monthly.class.php
r2231 r2265 481 481 ) 482 482 ); 483 $alt = $wday_labels[$dow] . ' ' . $day.484 ' ('.sprintf("%d ".l10n('pictures'), $items[$day]['nb_images']).')';485 483 486 484 $tpl_crt_week[] = 487 485 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'], 493 493 ); 494 494 } -
trunk/include/functions.inc.php
r2252 r2265 1085 1085 if ($conf['debug_l10n'] and !isset($lang[$key]) and !empty($key)) 1086 1086 { 1087 echo '[l10n] language key "'.$key.'" is not defined<br />';1087 trigger_error('[l10n] language key "'.$key.'" is not defined', E_USER_NOTICE); 1088 1088 } 1089 1089 -
trunk/include/functions_category.inc.php
r2223 r2265 467 467 468 468 //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); 470 470 471 471 if ($cat_count_categories == 0 or $cat_nb_images == $cat_count_images) -
trunk/include/functions_html.inc.php
r2201 r2265 27 27 function get_icon($date, $is_child_date = false) 28 28 { 29 global $page, $user , $lang;29 global $page, $user; 30 30 31 31 if (empty($date)) … … 55 55 { 56 56 $icons = array(false => 'recent', true => 'recent_by_child' ); 57 $title = l10n('recent_image').' '.$user['recent_period'] 58 .' '.l10n('days'); 57 $title = sprintf( 58 l10n('elements posted during the last %d days'), 59 $user['recent_period'] 60 ); 59 61 foreach ($icons as $key => $icon) 60 62 { … … 79 81 ) 80 82 { 81 global $ lang, $conf;83 global $conf; 82 84 83 85 $pages_around = $conf['paginate_pages_around']; … … 375 377 function get_html_menu_category($categories, $selected_category) 376 378 { 377 global $lang;378 379 379 $ref_level = 0; 380 380 $level = 0; … … 559 559 function access_denied() 560 560 { 561 global $user , $lang;561 global $user; 562 562 563 563 $login_url = … … 650 650 ) 651 651 .'" title="' 652 .l10n('See pictures linked to this tag only')652 .l10n('See elements linked to this tag only') 653 653 .'">' 654 654 .$page['tags'][$i]['name'] -
trunk/language/en_UK/admin.lang.php
r2251 r2265 35 35 $lang['%d category moved'] = '%d category moved'; 36 36 $lang['%d categories moved'] = '%d categories moved'; 37 $lang['%d element'] = '%d element';38 $lang['%d elements'] = '%d elements';39 37 $lang['%d group'] = '%d group'; 40 38 $lang['%d groups'] = '%d groups'; … … 80 78 $lang['Comments for all'] = 'Comments for all'; 81 79 $lang['Controversy'] = 'Controversy'; 82 $lang['Creation date'] = 'Creation date';83 80 $lang['Current name'] = 'Current name'; 84 81 $lang['Database'] = 'Database'; … … 134 131 $lang['New tag'] = 'New tag'; 135 132 $lang['No tag defined. Use Administration>Pictures>Tags'] = 'No tag defined. Use Administration>Pictures>Tags'; 136 $lang['No'] = 'No';137 133 $lang['Number of comments per page'] = 'Number of comments per page'; 138 134 $lang['Number of rates'] = 'Number of rates'; … … 183 179 $lang['Statistics'] = 'Statistics'; 184 180 $lang['Storage category'] = 'Storage category'; 185 $lang['Submit'] = 'Submit';186 181 $lang['Sum of rates'] = 'Sum of rates'; 187 182 $lang['Tag "%s" already exists'] = 'Tag "%s" already exists'; … … 204 199 $lang['Virtual category name'] = 'Virtual category name'; 205 200 $lang['Webmaster cannot be deleted'] = 'Webmaster cannot be deleted'; 206 $lang['Yes'] = 'Yes';207 201 $lang['You are running on development sources, no check possible.'] = 'You are running on development sources, no check possible.'; 208 202 $lang['You are running the latest version of PhpWebGallery.'] = 'You are running the latest version of PhpWebGallery.'; … … 401 395 $lang['site_synchronize'] = 'synchronize'; 402 396 $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';416 397 $lang['status'] = 'status'; 417 398 $lang['storage'] = 'Directory'; -
trunk/language/en_UK/common.lang.php
r2251 r2265 44 44 $lang['%d hit'] = '%d hit'; 45 45 $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'; 48 48 $lang['%d new user'] = '%d new user'; 49 49 $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';52 50 $lang['%d waiting element'] = '%d waiting element'; 53 51 $lang['%d waiting elements'] = '%d waiting elements'; … … 119 117 $lang['Search'] = 'Search'; 120 118 $lang['See available tags'] = 'See available tags'; 121 $lang['See pictures linked to this tag only'] = 'See pictures linked to this tag only';122 119 $lang['Send new password'] = 'Send new password'; 123 120 $lang['Since'] = 'Since'; … … 136 133 $lang['access_forbiden'] = 'You are not authorized to access the requested page'; 137 134 $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'; 140 136 $lang['admin'] = 'Administration'; 141 137 $lang['adviser_mode_enabled'] = 'Adviser mode enabled'; … … 184 180 $lang['day'][5] = 'Friday'; 185 181 $lang['day'][6] = 'Saturday'; 186 $lang['days'] = 'days';187 182 $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'; 190 184 $lang['delete'] = 'Delete'; 191 185 $lang['descending'] = 'descending'; … … 211 205 $lang['home'] = 'Home'; 212 206 $lang['home_hint'] = 'Back to the home page'; 213 $lang['ident_title'] = 'ident_title';214 207 $lang['identification'] = 'Identification'; 215 $lang['image_available'] = '%d image';216 $lang['images_available'] = '%d images';217 208 $lang['images_available_cpl'] = 'in this category'; 218 209 $lang['images_available_cat'] = 'in %d sub-category'; … … 257 248 $lang['new_rate'] = 'Rate this picture'; 258 249 $lang['next_page'] = 'Next'; 259 $lang['no'] = 'No';250 /* DEPRECATED TO REMOVE AFTER ALL TEMPLATE CHANGE USE 'No' */ $lang['no'] = 'no'; 260 251 $lang['no_category'] = 'Home'; 261 252 $lang['no_rate'] = 'no rate'; 262 $lang['note_filter_day'] = 'Only displays elements posted within the last % sday.';263 $lang['note_filter_days'] = 'Only displays elements posted within the last % sdays.';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.'; 264 255 $lang['password updated'] = 'password updated'; 265 256 $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'; 267 258 $lang['picture_high'] = 'Click on the picture to see it in high definition'; 268 259 $lang['picture_show_metadata'] = 'Show file metadata'; 269 $lang['pictures'] = 'pictures';270 260 $lang['powered_by'] = 'Powered by'; 271 261 $lang['preferences'] = 'Preferences'; … … 275 265 $lang['recent_cats_cat'] = 'Recent categories'; 276 266 $lang['recent_cats_cat_hint'] = 'displays recently updated categories'; 277 $lang['recent_image'] = 'Images within the';278 267 $lang['recent_period'] = 'Recent period'; 279 268 $lang['recent_pics_cat'] = 'Recent pictures'; … … 292 281 $lang['remove this tag'] = 'remove this tag from the list'; 293 282 $lang['representative'] = 'representative'; 294 $lang['reset'] = 'Reset';283 /* DEPRECATED TO REMOVE AFTER ALL TEMPLATE CHANGE USE 'Reset' */ $lang['reset'] = 'reset'; 295 284 $lang['return to homepage'] = 'return to homepage'; 296 285 $lang['search'] = 'Search'; … … 318 307 $lang['special_categories'] = 'Specials'; 319 308 $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'; 323 312 $lang['the beginning'] = 'the beginning'; 324 313 $lang['theme'] = 'Interface theme'; … … 328 317 $lang['title_send_mail'] = 'A comment on your site'; 329 318 $lang['today'] = 'today'; 330 $lang['total'] = 'images';331 319 $lang['update_rate'] = 'Update your rating'; 332 320 $lang['update_wrong_dirname'] = 'wrong filename'; … … 339 327 $lang['upload_author'] = 'Author (eg "Pierrick LE GALL")'; 340 328 $lang['upload_cannot_upload'] = 'can\'t upload the picture on the server'; 341 $lang['upload_creation_date'] = 'Creation date (DD/MM/YYYY)';342 329 $lang['upload_err_username'] = 'the username must be given'; 343 330 $lang['upload_file_exists'] = 'A picture\'s name already used'; … … 348 335 $lang['upload_successful'] = 'Picture uploaded with success, an administrator will validate it as soon as possible'; 349 336 $lang['upload_title'] = 'Upload a picture'; 350 $lang['upload_username'] = 'Username';351 337 $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'; 354 339 $lang['page_end'] = 'Page bottom'; 355 340 $lang['qsearch'] = 'Quick search'; … … 385 370 $lang['inc_period'] = 'Increase waiting between pictures'; 386 371 $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'; 388 381 ?> -
trunk/language/es_ES/admin.lang.php
r2251 r2265 35 35 $lang['%d category moved'] = '%d categoría trasladada'; 36 36 $lang['%d categories moved'] = '%d categorías trasladadas'; 37 $lang['%d element'] = '%d elemento';38 $lang['%d elements'] = '%d elementos';39 37 $lang['%d group'] = '%d grupo'; 40 38 $lang['%d groups'] = '%d grupos'; … … 79 77 $lang['Comments for all'] = 'Comentarios para todos'; 80 78 $lang['Controversy'] = 'Controversia'; 81 $lang['Creation date'] = 'Fecha de creación';82 79 $lang['Current name'] = 'Nombre corriente'; 83 80 $lang['Database'] = 'Base de datos'; … … 133 130 $lang['New tag'] = 'Nuevo tag'; 134 131 $lang['No tag defined. Use Administration>Pictures>Tags'] = 'Ninguna tag definida. Utilizar la pantalla Adminstration> Imágenes> tags'; 135 $lang['No'] = 'No';136 132 $lang['Number of comments per page'] = 'Número de comentarios por página'; 137 133 $lang['Number of rates'] = 'Número de notas'; … … 182 178 $lang['Statistics'] = 'Estadísticas'; 183 179 $lang['Storage category'] = 'Categoría de almacenamiento'; 184 $lang['Submit'] = 'Validar';185 180 $lang['Sum of rates'] = 'Suma notas'; 186 181 $lang['Tag "%s" already exists'] = 'El tag "%s" ya existe'; … … 203 198 $lang['Virtual category name'] = 'Nombre de la categoría virtual'; 204 199 $lang['Webmaster cannot be deleted'] = 'El webmestre no puede ser suprimido'; 205 $lang['Yes'] = 'Si';206 200 $lang['You are running on development sources, no check possible.'] = 'Usted trabaja con las fuentes de desarrollo, imposible verificar la última versión.'; 207 201 $lang['You are running the latest version of PhpWebGallery.'] = 'Usted utiliza la última versión de PhpWebGallery.'; … … 401 395 $lang['site_synchronize'] = 'Sincronizar'; 402 396 $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';416 397 $lang['status'] = 'Estatuto'; 417 398 $lang['storage'] = 'Repertorio'; -
trunk/language/es_ES/common.lang.php
r2251 r2265 48 48 $lang['%d new user'] = '%d nuevo usuario'; 49 49 $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';52 50 $lang['%d waiting element'] = '%d elemento en espera'; 53 51 $lang['%d waiting elements'] = '%d elementos en espera'; … … 119 117 $lang['Search'] = 'Buscar'; 120 118 $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';122 119 $lang['Send new password'] = 'Enviar una nueva contraseña'; 123 120 $lang['Since'] = 'Desde'; … … 136 133 $lang['access_forbiden'] = 'Usted no esta autorizado a ver la pagina pedida'; 137 134 $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'; 140 136 $lang['admin'] = 'Administración'; 141 137 $lang['adviser_mode_enabled'] = 'Modo consejero activo'; … … 184 180 $lang['day'][5] = 'Viernes'; 185 181 $lang['day'][6] = 'Sábado'; 186 $lang['days'] = 'días';187 182 $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'; 190 184 $lang['delete'] = 'Suprimir'; 191 185 $lang['descending'] = 'Descendiente'; … … 211 205 $lang['home'] = 'Inicio'; 212 206 $lang['home_hint'] = 'Volver a la página de inicio'; 213 $lang['ident_title'] = 'Identificación (FIXME)';214 207 $lang['identification'] = 'Identificación'; 215 $lang['image_available'] = '%d Imágen';216 $lang['images_available'] = '%d Imágenes';217 208 $lang['images_available_cpl'] = 'en esta categoría'; 218 209 $lang['images_available_cat'] = 'en %d subcategoría'; … … 267 258 $lang['picture_high'] = 'Pulse sobre la imagen para ver en alta resolución'; 268 259 $lang['picture_show_metadata'] = 'Muestre los meta-datos del fichero'; 269 $lang['pictures'] = 'imágenes';270 260 $lang['powered_by'] = 'Distribuido por'; 271 261 $lang['preferences'] = 'Preferencias'; … … 275 265 $lang['recent_cats_cat'] = 'Últimas categorías'; 276 266 $lang['recent_cats_cat_hint'] = 'mostrar las categorías recientement actualizadas o creadas'; 277 $lang['recent_image'] = 'Esta imagen tiene menos de';278 267 $lang['recent_period'] = 'Período reciente'; 279 268 $lang['recent_pics_cat'] = 'Últimas imágenes'; … … 328 317 $lang['title_send_mail'] = 'Una opinión sobre esta pagina'; 329 318 $lang['today'] = 'hoy'; 330 $lang['total'] = 'imágenes';331 319 $lang['update_rate'] = 'Actualizar nota'; 332 320 $lang['update_wrong_dirname'] = 'Mal nombre de repertorio'; … … 339 327 $lang['upload_author'] = 'Autor'; 340 328 $lang['upload_cannot_upload'] = 'Imposible trasladar el fichero sobre el camarero(servidor)'; 341 $lang['upload_creation_date'] = 'Fecha de creación (DD/MM/AAAA)';342 329 $lang['upload_err_username'] = 'Falta el nombre de usuario'; 343 330 $lang['upload_file_exists'] = 'este fichero ya existe'; … … 348 335 $lang['upload_successful'] = 'Imagen agregada , un administrador la debe controlar para que esta sea visible'; 349 336 $lang['upload_title'] = 'Agregar una imagen'; 350 $lang['upload_username'] = 'Nombre de usuario';351 337 $lang['useful when password forgotten'] = 'Útil en caso de perdida de contraseña'; 352 $lang['w_month'] = 'Mes';353 338 $lang['yes'] = 'Si'; 354 339 $lang['page_end'] = 'Por la bajura de página'; … … 385 370 /* TODO */ $lang['inc_period'] = 'Increase waiting between pictures'; 386 371 /* 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'; 388 381 ?> -
trunk/language/fr_FR/admin.lang.php
r2251 r2265 35 35 $lang['%d category moved'] = '%d catégorie déplacée'; 36 36 $lang['%d categories moved'] = '%d catégories déplacées'; 37 $lang['%d element'] = '%d élément';38 $lang['%d elements'] = '%d éléments';39 37 $lang['%d group'] = '%d groupe'; 40 38 $lang['%d groups'] = '%d groupes'; … … 80 78 $lang['Comments for all'] = 'Commentaires pour tous'; 81 79 $lang['Controversy'] = 'Controverse'; 82 $lang['Creation date'] = 'Date de création';83 80 $lang['Current name'] = 'Nom courant'; 84 81 $lang['Database'] = 'Base de données'; … … 134 131 $lang['New tag'] = 'Nouveau tag'; 135 132 $lang['No tag defined. Use Administration>Pictures>Tags'] = 'Aucun tag défini. Utiliser l\'écran Adminstration>Images>Tags'; 136 $lang['No'] = 'Non';137 133 $lang['Number of comments per page'] = 'Nombre de commentaires par page'; 138 134 $lang['Number of rates'] = 'Nombre de notes'; … … 183 179 $lang['Statistics'] = 'Statistiques'; 184 180 $lang['Storage category'] = 'Catégorie de stockage'; 185 $lang['Submit'] = 'Valider';186 181 $lang['Sum of rates'] = 'Somme des notes'; 187 182 $lang['Tag "%s" already exists'] = 'Le tag "%s" existe déjà'; … … 204 199 $lang['Virtual category name'] = 'Nom de la catégorie virtuelle'; 205 200 $lang['Webmaster cannot be deleted'] = 'Le webmestre ne peut pas être supprimé'; 206 $lang['Yes'] = 'Oui';207 201 $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.'; 208 202 $lang['You are running the latest version of PhpWebGallery.'] = 'Vous utilisez la dernière version de PhpWebGallery.'; … … 401 395 $lang['site_synchronize'] = 'synchroniser'; 402 396 $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';416 397 $lang['status'] = 'statut'; 417 398 $lang['storage'] = 'Répertoire'; -
trunk/language/fr_FR/common.lang.php
r2251 r2265 44 44 $lang['%d hit'] = 'vue %d fois'; 45 45 $lang['%d hits'] = 'vue %d fois'; 46 $lang['%d new element'] = '%d nouvel élément';47 $lang['%d new elements'] = '%d nouve aux éléments';46 $lang['%d new element'] = '%d nouvelle image'; 47 $lang['%d new elements'] = '%d nouvelles images'; 48 48 $lang['%d new user'] = '%d nouvel utilisateur'; 49 49 $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';52 50 $lang['%d waiting element'] = '%d élément en attente'; 53 51 $lang['%d waiting elements'] = '%d éléments en attente'; … … 119 117 $lang['Search'] = 'Rechercher'; 120 118 $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';122 119 $lang['Send new password'] = 'Envoyer le nouveau mot de passe'; 123 120 $lang['Since'] = 'Depuis'; … … 136 133 $lang['access_forbiden'] = 'Vous n\'êtes pas autorisé sur la page demandée'; 137 134 $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'; 140 136 $lang['admin'] = 'Administration'; 141 137 $lang['adviser_mode_enabled'] = 'Mode conseiller actif'; … … 184 180 $lang['day'][5] = 'Vendredi'; 185 181 $lang['day'][6] = 'Samedi'; 186 $lang['days'] = 'jours';187 182 $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'; 190 184 $lang['delete'] = 'Supprimer'; 191 185 $lang['descending'] = 'décroissant'; … … 211 205 $lang['home'] = 'Accueil'; 212 206 $lang['home_hint'] = 'Retour à la page d\'accueil'; 213 $lang['ident_title'] = 'Identification (FIXME)';214 207 $lang['identification'] = 'Identification'; 215 $lang['image_available'] = '%d image';216 $lang['images_available'] = '%d images';217 208 $lang['images_available_cpl'] = 'dans cette catégorie'; 218 209 $lang['images_available_cat'] = 'dans %d sous-catégorie'; … … 267 258 $lang['picture_high'] = 'Cliquer sur l\'image pour la visualiser en haute définition'; 268 259 $lang['picture_show_metadata'] = 'Montrer les méta-données du fichier'; 269 $lang['pictures'] = 'images';270 260 $lang['powered_by'] = 'Propulsé par'; 271 261 $lang['preferences'] = 'Préférences'; … … 275 265 $lang['recent_cats_cat'] = 'Catégories récentes'; 276 266 $lang['recent_cats_cat_hint'] = 'afficher les catégories récemment mises à jour ou créées'; 277 $lang['recent_image'] = 'Images de moins de';278 267 $lang['recent_period'] = 'Période récente'; 279 268 $lang['recent_pics_cat'] = 'Images récentes'; … … 328 317 $lang['title_send_mail'] = 'Un commentaire sur le site'; 329 318 $lang['today'] = 'aujourd\'hui'; 330 $lang['total'] = 'images';331 319 $lang['update_rate'] = 'Mettre à jour votre note'; 332 320 $lang['update_wrong_dirname'] = 'mauvais nom de répertoire'; … … 339 327 $lang['upload_author'] = 'Auteur'; 340 328 $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)';342 329 $lang['upload_err_username'] = 'nom d\'utilisateur manquant'; 343 330 $lang['upload_file_exists'] = 'ce fichier existe déjà'; … … 348 335 $lang['upload_successful'] = 'Image ajoutée avec succès, un administrateur doit valider l\'ajout pour le rendre visible'; 349 336 $lang['upload_title'] = 'Ajouter une image'; 350 $lang['upload_username'] = 'Nom d\'utilisateur';351 337 $lang['useful when password forgotten'] = 'utile en cas d\'oubli de mot de passe'; 352 $lang['w_month'] = 'Mois';353 338 $lang['yes'] = 'Oui'; 354 339 $lang['page_end'] = 'Bas de page'; … … 385 370 $lang['inc_period'] = 'Augmenter l\'attente entre les images'; 386 371 $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'; 388 381 ?> -
trunk/language/nl_NL/admin.lang.php
r2251 r2265 36 36 $lang['%d category moved'] = '%d categorie verplaatst'; 37 37 $lang['%d categories moved'] = '%d categorieën verplaatst'; 38 $lang['%d element'] = '%d element';39 $lang['%d elements'] = '%d elementen';40 38 $lang['%d group'] = '%d groep'; 41 39 $lang['%d groups'] = '%d groepen'; … … 80 78 $lang['Comments for all'] = 'Commentaar voor alles'; 81 79 $lang['Controversy'] = 'Controversieel'; 82 $lang['Creation date'] = 'Aanmaak datum';83 80 $lang['Current name'] = 'Huidige naam'; 84 81 $lang['Database'] = 'Database'; … … 134 131 $lang['New tag'] = 'Nieuwe tag'; 135 132 $lang['No tag defined. Use Administration>Pictures>Tags'] = 'Geen tag gedefineerd. Gebruik beheer>afbeeldingen>Tags'; 136 $lang['No'] = 'Nee';137 133 $lang['Number of comments per page'] = 'Aantal commentaren per pagina'; 138 134 $lang['Number of rates'] = 'Aantal beoordelingen'; … … 183 179 $lang['Statistics'] = 'Statistieken'; 184 180 $lang['Storage category'] = 'Storage category'; 185 $lang['Submit'] = 'Bevestig';186 181 $lang['Sum of rates'] = 'Eind oordeel'; 187 182 $lang['Tag "%s" already exists'] = 'Tag "%s" bestaat al'; … … 204 199 $lang['Virtual category name'] = 'Virtuele categorie naam'; 205 200 $lang['Webmaster cannot be deleted'] = 'Webmaster kan niet verwijderd worden'; 206 $lang['Yes'] = 'Ja';207 201 $lang['You are running on development sources, no check possible.'] = 'Je werkt op basis van ontwikkelins bronnen, geen controle mogelijk.'; 208 202 $lang['You are running the latest version of PhpWebGallery.'] = 'Je hebt de laatste versie van PhpWebGallery.'; … … 402 396 $lang['site_synchronize'] = 'synchronizeer'; 403 397 $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';417 398 $lang['status'] = 'status'; 418 399 $lang['storage'] = 'Map'; … … 636 617 $lang['c13y_user_created'] = 'Gebruiker "%s" gemaakt met wachtwoord "%s" '; 637 618 $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'; 638 620 // --------- Starting below: New or revised $lang ---- from Butterfly (1.8) 639 621 $lang['no_display_thumbnail'] = 'Geen weergave'; -
trunk/language/nl_NL/common.lang.php
r2251 r2265 48 48 $lang['%d new user'] = '%d nieuwe gebruiker'; 49 49 $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';52 50 $lang['%d waiting element'] = '%d wachtende element'; 53 51 $lang['%d waiting elements'] = '%d wachtende elementen'; … … 119 117 $lang['Search'] = 'Zoeken'; 120 118 $lang['See available tags'] = 'Toon beschikbare tags'; 121 $lang['See pictures linked to this tag only'] = 'Toon afbeelding gelinkt met deze tag';122 119 $lang['Send new password'] = 'Stuur nieuw wachtwoord'; 123 120 $lang['Since'] = 'Sinds'; … … 136 133 $lang['access_forbiden'] = 'Je hebt geen rechten tot de opgevraagde pagina'; 137 134 $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'; 140 136 $lang['admin'] = 'Beheer'; 141 137 $lang['adviser_mode_enabled'] = 'Advies mode geactiveerd'; … … 184 180 $lang['day'][5] = 'Vrijdag'; 185 181 $lang['day'][6] = 'Zaterdag'; 186 $lang['days'] = 'dagen';187 182 $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'; 190 184 $lang['delete'] = 'Verwijderen'; 191 185 $lang['descending'] = 'descending'; … … 211 205 $lang['home'] = 'Home'; 212 206 $lang['home_hint'] = 'Terug naar de home page'; 213 $lang['ident_title'] = 'ident_title';214 207 $lang['identification'] = 'Identificatie'; 215 $lang['image_available'] = '%d afbeeldingen';216 $lang['images_available'] = '%d afbeelding(en)';217 208 $lang['images_available_cpl'] = 'in deze categorie'; 218 209 $lang['images_available_cat'] = 'in %d sub-categorie'; … … 267 258 $lang['picture_high'] = 'Klik op de afbeelding om het te bekijken in een groter formaat'; 268 259 $lang['picture_show_metadata'] = 'Toon bestands metadata'; 269 $lang['pictures'] = 'afbeelding';270 260 $lang['powered_by'] = 'Powered by'; 271 261 $lang['preferences'] = 'Voorkeuren'; … … 275 265 $lang['recent_cats_cat'] = 'Recente categorieën'; 276 266 $lang['recent_cats_cat_hint'] = 'toon recentelijk bijgewerkte categorieën'; 277 $lang['recent_image'] = 'afbeelding binnen de';278 267 $lang['recent_period'] = 'Recente periode'; 279 268 $lang['recent_pics_cat'] = 'Recente afbeelding'; … … 328 317 $lang['title_send_mail'] = 'commentaar op je site'; 329 318 $lang['today'] = 'vandaag'; 330 $lang['total'] = 'afbeelding';331 319 $lang['update_rate'] = 'Werk je beoordeling bij'; 332 320 $lang['update_wrong_dirname'] = 'verkeerde bestandsnaam'; … … 339 327 $lang['upload_author'] = 'Auteur (eg "Pierrick LE GALL")'; 340 328 $lang['upload_cannot_upload'] = 'kan de afbeelding niet op de server plaatsen'; 341 $lang['upload_creation_date'] = 'Aanmaak datum (DD/MM/YYYY)';342 329 $lang['upload_err_username'] = 'de gebruikersnaam moet ingevuld zijn'; 343 330 $lang['upload_file_exists'] = 'De naam is al in gebruik'; … … 348 335 $lang['upload_successful'] = 'Afbeelding met succes ge-upload, een beheerder moet de afbeelding valideren, dit gebeurd zsm.'; 349 336 $lang['upload_title'] = 'Upload een afbeelding'; 350 $lang['upload_username'] = 'Gebruikersnaam';351 337 $lang['useful when password forgotten'] = 'handig bij het vergeten van je wachtwoord'; 352 $lang['w_month'] = 'Maand';353 338 $lang['yes'] = 'Ja'; 354 339 $lang['page_end'] = 'Pagina eind'; … … 373 358 // --------- Starting below: New or revised $lang ---- from version 1.7.1 374 359 $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';376 360 // --------- Starting below: New or revised $lang ---- from Butterfly (1.8) 377 361 $lang['Administrator, webmaster and special user cannot use this method'] = 'Administrator, webmaster en speciale gebruiker kunnen deze methode niet gebruiken'; … … 386 370 /* TODO */ $lang['inc_period'] = 'Increase waiting between pictures'; 387 371 /* 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'; 389 381 ?> -
trunk/picture.php
r2227 r2265 673 673 get_root_url().get_themeconf('icon_dir').'/favorite.png', 674 674 'FAVORITE_HINT' => l10n('add_favorites_hint'), 675 'FAVORITE_ALT' => l10n('add_favorites_alt'),676 675 'U_FAVORITE' => add_url_params( 677 676 $url_self, … … 689 688 get_root_url().get_themeconf('icon_dir').'/del_favorite.png', 690 689 'FAVORITE_HINT' => l10n('del_favorites_hint'), 691 'FAVORITE_ALT' => l10n('del_favorites_alt'),692 690 'U_FAVORITE' => add_url_params( 693 691 $url_self, -
trunk/template/yoga/menubar.tpl
r2231 r2265 37 37 </li></ul> 38 38 {/if} 39 <p class="totalImages">{$ NB_PICTURE} {'total'|@translate}</p>39 <p class="totalImages">{$pwg->l10n_dec('%d element', '%d elements', $NB_PICTURE)}</p> 40 40 </dd> 41 41 </dl> … … 51 51 {if !empty($tag.add) } 52 52 <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)}" 54 54 rel="nofollow"> 55 55 <img src="{$ROOT_URL}{$themeconf.icon_dir}/add_tag.png" alt="+" /> 56 56 </a> 57 57 {/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> 59 59 </li> 60 60 {/foreach} … … 147 147 {/if} 148 148 <p> 149 <input class="submit" type="submit" name="login" value="{' submit'|@translate}">149 <input class="submit" type="submit" name="login" value="{'Submit'|@translate}"> 150 150 </p> 151 151 -
trunk/template/yoga/month_calendar.tpl
r2231 r2265 47 47 <div class="calImg" style="width:{$chronology_calendar.month_view.CELL_WIDTH}px;height:{$chronology_calendar.month_view.CELL_HEIGHT}px;"> 48 48 <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)}" /> 50 50 </a> 51 51 </div> -
trunk/template/yoga/picture.tpl
r2257 r2265 46 46 {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} 47 47 {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> 49 49 {/if} 50 50 {if !empty($U_SET_AS_REPRESENTATIVE) } … … 52 52 {/if} 53 53 {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> 55 55 {/if} 56 56 {if isset($U_CADDIE) } … … 221 221 <label>{'comment'|@translate}<textarea name="content" rows="5" cols="80">{$comment_add.CONTENT}</textarea></label> 222 222 <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}"> 224 224 </fieldset> 225 225 </form> -
trunk/template/yoga/upload.tpl
r2222 r2265 1 <!-- DEV TAG: not smarty migrated --> 1 {* $Id$ *} 2 2 3 <div id="content"> 3 4 4 5 <div class="titrePage"> 5 6 <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> 7 8 </ul> 8 <h2>{ lang:upload_title}</h2>9 <h2>{'upload_title'|@translate}</h2> 9 10 </div> 10 11 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}"> 13 24 <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 -->27 25 <tr> 28 26 <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)} 30 29 <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} 34 33 </ul> 34 {/if} 35 35 </td> 36 36 </tr> … … 40 40 </td> 41 41 </tr> 42 <!-- BEGIN fields -->42 {if isset($SHOW_FORM_FIELDS) and $SHOW_FORM_FIELDS} 43 43 <!-- username --> 44 44 <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> 46 46 <td align="left" style="padding:10px;"> 47 <input name="username" type="text" value="{ NAME}" />47 <input name="username" type="text" value="{$NAME}" /> 48 48 </td> 49 49 </tr> 50 50 <!-- mail address --> 51 51 <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> 53 53 <td align="left" style="padding:10px;"> 54 <input name="mail_address" type="text" value="{ EMAIL}" />54 <input name="mail_address" type="text" value="{$EMAIL}" /> 55 55 </td> 56 56 </tr> 57 57 <!-- name of the picture --> 58 58 <tr> 59 <td class="menu">{ lang:upload_name}</td>59 <td class="menu">{'upload_name'|@translate}</td> 60 60 <td align="left" style="padding:10px;"> 61 <input name="name" type="text" value="{ NAME_IMG}" />61 <input name="name" type="text" value="{$NAME_IMG}" /> 62 62 </td> 63 63 </tr> 64 64 <!-- author --> 65 65 <tr> 66 <td class="menu">{ lang:upload_author}</td>66 <td class="menu">{'upload_author'|@translate}</td> 67 67 <td align="left" style="padding:10px;"> 68 <input name="author" type="text" value="{ AUTHOR_IMG}" />68 <input name="author" type="text" value="{$AUTHOR_IMG}" /> 69 69 </td> 70 70 </tr> 71 71 <!-- date of creation --> 72 72 <tr> 73 <td class="menu">{ lang:upload_creation_date}</td>73 <td class="menu">{'Creation date'|@translate} (DD/MM/YYYY)</td> 74 74 <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}" /> 76 76 </td> 77 77 </tr> 78 78 <!-- comment --> 79 79 <tr> 80 <td class="menu">{ lang:comment}</td>80 <td class="menu">{'comment'|@translate}</td> 81 81 <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> 83 83 </td> 84 84 </tr> 85 <!-- END fields -->85 {/if} 86 86 <tr> 87 87 <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}" /> 89 89 </td> 90 90 </tr> 91 91 </table> 92 92 </form> 93 <!-- END upload_not_successful --> 94 <!-- BEGIN upload_successful --> 95 {lang:upload_successful}<br /> 93 {else} 94 {'upload_successful'|@translate}<br /> 96 95 <div style="text-align:center;"> 97 <a href="{ U_RETURN}">[ {lang:home} ]</a>96 <a href="{$U_RETURN}">[ {'home'|@translate} ]</a> 98 97 </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} 103 103 </div> <!-- content --> -
trunk/upload.php
r2033 r2265 3 3 // | PhpWebGallery - a PHP based picture gallery | 4 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-200 7PhpWebGallery Team - http://phpwebgallery.net |5 // | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | file : $Id$ … … 104 104 case 3 : $result['type'] = 'png'; break; 105 105 default : 106 array_push( $result['error'], l10n('upload_advise_filetype') ); 106 array_push( $result['error'], l10n('upload_advise_filetype') ); 107 107 } 108 108 } … … 135 135 $category = get_cat_info( $page['category'] ); 136 136 $category['cat_dir'] = get_complete_dir( $page['category'] ); 137 137 138 138 if (url_is_remote($category['cat_dir']) or !$category['uploadable']) 139 139 { 140 die('Fatal: you take a wrong way, bye bye');140 page_forbidden('upload not allowed'); 141 141 } 142 142 } 143 143 else { // $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'); 145 145 } 146 146 … … 174 174 array_push( $error, l10n('upload_err_username') ); 175 175 } 176 176 177 177 $date_creation = ''; 178 178 if ( !empty($_POST['date_creation']) ) … … 203 203 array_push( $error, l10n('update_wrong_dirname') ); 204 204 } 205 205 206 206 if ( sizeof( $error ) == 0 ) 207 207 { … … 316 316 } 317 317 318 $template->assign _vars(318 $template->assign( 319 319 array( 320 'U_HOME' => make_index_url(),321 322 320 'ADVISE_TITLE' => $advise_title, 323 321 'NAME' => $username, … … 333 331 ) 334 332 ); 335 333 334 $template->assign('errors', $error); 335 $template->assign('UPLOAD_SUCCESSFUL', $page['upload_successful'] ); 336 336 337 if ( !$page['upload_successful'] ) 337 338 { 338 $template->assign_block_vars('upload_not_successful',array());339 //-------------------------------------------------------------- errors display340 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 349 339 //--------------------------------------------------------------------- advises 350 340 if ( !empty($conf['upload_maxfilesize']) ) … … 352 342 $content = l10n('upload_advise_filesize'); 353 343 $content.= $conf['upload_maxfilesize'].' KB'; 354 $template->a ssign_block_vars('upload_not_successful.advise',array('ADVISE'=>$content));344 $template->append('advises', $content); 355 345 } 356 346 … … 361 351 $content = l10n('upload_advise_width'); 362 352 $content.= $conf['upload_maxwidth_thumbnail'].' px'; 363 $template->a ssign_block_vars('upload_not_successful.advise',array('ADVISE'=>$content));353 $template->append('advises', $content); 364 354 } 365 355 if ( $conf['upload_maxheight_thumbnail'] != '' ) … … 367 357 $content = l10n('upload_advise_height'); 368 358 $content.= $conf['upload_maxheight_thumbnail'].' px'; 369 $template->a ssign_block_vars('upload_not_successful.advise',array('ADVISE'=>$content));359 $template->append('advises', $content); 370 360 } 371 361 } … … 376 366 $content = l10n('upload_advise_width'); 377 367 $content.= $conf['upload_maxwidth'].' px'; 378 $template->a ssign_block_vars('upload_not_successful.advise',array('ADVISE'=>$content));368 $template->append('advises', $content); 379 369 } 380 370 if ( $conf['upload_maxheight'] != '' ) … … 382 372 $content = l10n('upload_advise_height'); 383 373 $content.= $conf['upload_maxheight'].' px'; 384 $template->a ssign_block_vars('upload_not_successful.advise',array('ADVISE'=>$content));385 } 386 } 387 $template->a ssign_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 389 379 //----------------------------------------- optionnal username and mail address 390 380 if ( !isset( $page['waiting_id'] ) ) 391 381 { 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 } 399 384 } 400 385
Note: See TracChangeset
for help on using the changeset viewer.