ℹ️
Welcome to the archive of the old FlatPress support forum. Browse more than a decade of FlatPress wisdom! Login is disabled.

The current FlatPress support forum is available here: forum.flatpress.org
Errore visualizzazione data
  • Ciao a tutti, complimenti per l'ottimo progetto! Avrei un problema nella visualizzazione della data nel senso che anche se ho impostato la lingua italiana, quando aggiungo un commento mi compare
    commented on 2009-12-07

    invece di
    commentato il 07-12-2009

    anche se nell'area amministrazione ho impostato
    %d-%m-%Y

Grazie in anticipo!
  • la maggior parte delle stringhe dei temi non sono localizzate; per tradurle puoi modificare a tuo piacimento i file del tema
  • Grazie 1000, non sapevo proprio dove andare a trovare il file da modificare. Io uso il tema LIGERO e il file che devo modificare
  • il plugin del calendario non supporta la traduzione (
  • Posted By: maccio...
    Sun Mon Tue Wed Thu Fri Sat

    che file devo modificare per portarli in italiano?

    I'm not sure, because I don't understand the italian language, but if you only want to change the month- and daynames, then open in the plugin directory the file "plugin.calendar.php" with an UTF-8 Editor. Add this lines after the line 31 $title = str_replace("January", "it jan", $title); ... $title = str_replace("December", "it dez", $title); Please use your month names for "it jan" and so on... The next add a new line after line 40 and insert this: $italian_days = array ( 'it mo', ... 'it so' ); And change this line from foreach($day_names as $d) to this foreach($italian_days as $d) If you want to change the chars (two instead of three like "mo" instead of "mon"), change from $calendar .= ''.htmlentities($day_name_length < 4 ? substr($d,0,$day_name_length) : $d).''; to this $calendar .= ''.htmlentities($day_name_length < 4 ? substr($d,0,2) : $d).''; Replace the "$day_name_length" with "2" or "3". It works for my german calendar fine.
  • see if this version http://flatpress.svn.sf.net/viewvc/flatpress/trunk/flatpress/fp-plugins/calendar/plugin.calendar.php?revision=306 makes you happy (guarda se questa versione ti piace)
  • SVN306 look good, but in my calendar plugin the first day of week is Monday. I changed this lines too: line 25 from for($n=0,$t=(3+$first_day)*86400; $n<7; $n++,$t+=86400) #January 4, 1970 was a Sunday changed to for($n=0,$t=(4+$first_day)*86400; $n<7; $n++,$t+=86400) #January 4, 1970 was a Sunday and in line 29 from $weekday = ($weekday + 7 - $first_day) % 7; #adjust for $first_day changed to $weekday = ($weekday + 6 - $first_day) % 7; #adjust for $first_day I tried 3 years to test and it works. Monday is the first weekday and Sunday the last, like my working week :) And I do a little more, so I have a red box around the current day in current monh and see which day is today. But this I can'T post here, because I do add many "beginner hacks" in many lines to get it working in this plugin.
  • Grazie! Thanks!
  • This discussion has been closed.
    All Discussions
    Start a New Discussion

    Howdy, Stranger!

    It looks like you're new here. If you want to get involved, click one of these buttons!

    Categories

    In this Discussion