[Znote AAC] Change months language

Discussion in 'Website Applications' started by Glombers, Dec 29, 2016.

  1. Glombers

    Glombers Die

    Joined:
    May 14, 2016
    Messages:
    89
    Special thanks to @Znote for help
    PHP:
    function getClock($time false$format false$adjust true) {
        if (
    $time === false$time time();
        
    // Date string representation
        
    $date "d F Y (H:i)"// 15 July 2013 (13:50)
        
    if ($adjust$adjust = (3600); // Adjust to fit your timezone.
        
    else $adjust 0;
        if (
    $format) {
            
    $EnglishMonth date("F"$time+$adjust);
            
    // Will be translated to polish in switch statement
            
    $PolishMonth $EnglishMonth;
            switch (
    $EnglishMonth) {
                case 
    'January':
                    
    $Polishmonth "PolishJanuary";
                    break;
                case 
    'February':
                    
    $Polishmonth "PolishFebruary";
                    break;
                
    // And so on....
                
    case 'December':
                    
    $Polishmonth "PolishDecember";
                    break;
            }
            return 
    str_replace($EnglishMonth$Polishmonthdate($date$time+$adjust));
        }
        else {
            return 
    $time+$adjust;
        }
    }
     
  2. StreamSide

    StreamSide Joseluis Gonzalez

    Joined:
    Aug 31, 2007
    Messages:
    2,517
  3. Glombers

    Glombers Die

    Joined:
    May 14, 2016
    Messages:
    89
    what you have entered will not work here
     
  4. StreamSide

    StreamSide Joseluis Gonzalez

    Joined:
    Aug 31, 2007
    Messages:
    2,517
    lmao gl with it, btw it should work, but you do no effort
     
    Glombers likes this.
  5. a1020

    a1020 Banned User

    Joined:
    Jan 9, 2017
    Messages:
    4
    where i can put the filed
     
  6. a1020

    a1020 Banned User

    Joined:
    Jan 9, 2017
    Messages:
    4
    where i can put this filed in www?
     
  7. Glombers

    Glombers Die

    Joined:
    May 14, 2016
    Messages:
    89

Share This Page