(Resolvido) Como posso traduzir a data do template themza ??

Mais
13 anos 8 meses atrás #63348 por artepagebr
artepagebr replied the topic: Re: Como posso traduzir a data do template themza ??

walisson3d escreveu: Bom dia dexter,

Faça a seguinte alteração:

1 - Retirar o código echo date('l dS \of F Y');

2 - Acrescentar no lugar dele o código:

class data
{
var $data;
function dataHora ()
{
setlocale (LC_ALL, 'pt_BR');
$this->data = strftime ("%A, %d %B %Y.");
return $this->data;
}
}
$mostraHora = new data;
echo $mostraHora->dataHora('l, d \de F Y');

É só isso. <!-- s:ugeek: --><img src="{SMILIES_PATH}/icon_e_ugeek.gif" alt=":ugeek:" title="Uber Geek" /><!-- s:ugeek: -->

Até mais

Wálisson

Muito bom, parabens

Please Entrar ou Registrar to join the conversation.

Mais
13 anos 4 meses atrás #72600 por jeanbioman
jeanbioman replied the topic: Re: (Resolvido) Como posso traduzir a data do template themza ??
Fazendo isso se perde o layout da data e hora

Please Entrar ou Registrar to join the conversation.

Mais
13 anos 4 meses atrás #72603 por jeanbioman
jeanbioman replied the topic: Re: (Resolvido) Como posso traduzir a data do template themza ??
Descobri a solução:

<div class="ja-day">
<?php
setlocale(LC_TIME, "pt_br");
echo "<span>".strftime ('%A')."</span>";
echo " <div>".strftime ('%d.').strftime ('%b')." ".strftime ('%Y').strftime (' ')."</div>";
?>
</div>

Please Entrar ou Registrar to join the conversation.