Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Problème à afficher les dates en français  (Read 2922 times)

0 Members and 1 Guest are viewing this topic.

claude258

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 150
    • Album photos Brière
Problème à afficher les dates en français
« on: February 19, 2006, 03:56:48 pm »

Bonjour,

J'utilise la version cpg 1.4.3 depuis peu de temps (upgrade de 1.3.5) mais j'ai un problème d'affichage de date. Le theme que j'utilise est Eyeball.

Les dates des sections suivantes les dates s'affichent:

Derniers ajouts: 10 Feb 2006,
Derniers commentaires: 14/02/06 à 09:22,
Dernières vues:  Sat 18 Feb 2006 à 15:04,

La dercription des album est correct: 12 photos, la dernière a été ajoutée le 14 Jan 2006

Est-ce possible d'avoir les dates en français partout?

Merci.
 
Logged

François Keller

  • Moderator
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Problème à afficher les dates en français
« Reply #1 on: February 19, 2006, 06:25:11 pm »

Bonjour,

effectivement c'est bizarre. Dans le fichier langue la transformation en date française est bien faite, mais au niveau des vignettes ça ne marche pas ?
Il va falloir se plonger dans le code et trouver ou se passe l'affichage (ce n'est pas lié au theme, on a le même problème avec le theme classic)
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

François Keller

  • Moderator
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Problème à afficher les dates en français
« Reply #2 on: February 19, 2006, 06:30:34 pm »

Nibbler a donné la solution dans le forum anglophone:

Quote
include/langfallback.inc.php

changez

Code: [Select]

// Day of weeks and months
$lang_day_of_week_en = cpg_get_default_lang_var('lang_day_of_week','english');
$lang_day_of_week = array_merge($lang_day_of_week_en, $lang_day_of_week);

$lang_month_en = cpg_get_default_lang_var('lang_month','english');
$lang_month = array_merge($lang_month_en, $lang_month

pour

Code: [Select]

// Day of weeks and months
if (!isset($lang_day_of_week)) $lang_day_of_week = cpg_get_default_lang_var('lang_day_of_week','english');
if (!isset($lang_month)) $lang_month = cpg_get_default_lang_var('lang_month','english');

Merci Nibbler
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.