Joomla.it Forum
Joomla! 1.5.x (versione con supporto terminato) => Joomla! 1.5 => I Template di Joomla 1.5.x => : giusep 27 Dec 2010, 21:39:37
-
Carissimi del forum,
ho il calendario degli articoli nella index che mi visualizza i mesi abbreviati in inglese.
Come devo fare per tradurli in italiano?
Ho controllato nel Linguage IT, ma lì sembra tutto in ordine.
Potete vedere quì http://www.incontraregesu.it/nsito/
Grazie per la vostra attenzione e aiuto.
Tanti saluti.
-
ciao
quel template fa un override del' html di joomla
guarda nel template avrai una cartella che si chiama html, nel suo interno hai com_content con al suo interno article dovrebbe essere lei che ti fa la formattazione della data,devi modificare quel file.
-
gent.mo conti1,
grazie per la tua risposta, ma niente da fare...
ho provato anche a togliere la cartella ARTICLE (che ha il file default.php), che ho aggiunto in secondo tempo, qualche giorno fa, ma niente.
Non so proprio dove mettere le mani.
Ci potresti dare tu un'occhiata al file?
<?php // no direct access
defined('_JEXEC') or die('Restricted access');
$canEdit = ($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own'));
?>
<?php if ($this->params->get('show_page_title', 1) && $this->params->get('page_title') != $this->article->title) : ?>
<div class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
<?php echo $this->escape($this->params->get('page_title')); ?>
</div>
<?php endif; ?>
<?php if ($canEdit || $this->params->get('show_title') || $this->params->get('show_pdf_icon') || $this->params->get('show_print_icon') || $this->params->get('show_email_icon')) : ?>
<table class="contentpaneopen<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
<tr>
<?php if ($this->params->get('show_title')) : ?>
<td class="contentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>" width="100%">
<h1 class="contentheading<?php echo $this->params->get( 'pageclass_sfx' ); ?>" >
<?php if ($this->params->get('link_titles') && $this->article->readmore_link != '') : ?>
<a href="<?php echo $this->article->readmore_link; ?>" class="contentpagetitle<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
<?php echo $this->escape($this->article->title); ?></a>
<?php else : ?>
<?php echo $this->escape($this->article->title); ?>
<?php endif; ?>
</h1></td>
<?php endif; ?>
<?php if (!$this->print) : ?>
<?php if ($this->params->get('show_pdf_icon')) : ?>
<td align="right" width="100%" class="buttonheading">
<?php echo JHTML::_('icon.pdf', $this->article, $this->params, $this->access); ?>
</td>
<?php endif; ?>
<?php if ( $this->params->get( 'show_print_icon' )) : ?>
<td align="right" width="100%" class="buttonheading">
<?php echo JHTML::_('icon.print_popup', $this->article, $this->params, $this->access); ?>
</td>
<?php endif; ?>
<?php if ($this->params->get('show_email_icon')) : ?>
<td align="right" width="100%" class="buttonheading">
<?php echo JHTML::_('icon.email', $this->article, $this->params, $this->access); ?>
</td>
<?php endif; ?>
<?php if ($canEdit) : ?>
<td align="right" width="100%" class="buttonheading">
<?php echo JHTML::_('icon.edit', $this->article, $this->params, $this->access); ?>
</td>
<?php endif; ?>
<?php else : ?>
<td align="right" width="100%" class="buttonheading">
<?php echo JHTML::_('icon.print_screen', $this->article, $this->params, $this->access); ?>
</td>
<?php endif; ?>
</tr>
</table>
<?php endif; ?>
<?php if (!$this->params->get('show_intro')) :
echo $this->article->event->afterDisplayTitle;
endif; ?>
<?php echo $this->article->event->beforeDisplayContent; ?>
<table class="contentpaneopen<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
<?php if (($this->params->get('show_section') && $this->article->sectionid) || ($this->params->get('show_category') && $this->article->catid)) : ?>
<tr>
<td>
<?php if ($this->params->get('show_section') && $this->article->sectionid && isset($this->article->section)) : ?>
<span>
<?php if ($this->params->get('link_section')) : ?>
<?php echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->article->sectionid)).'">'; ?>
<?php endif; ?>
<?php echo $this->escape($this->article->section); ?>
<?php if ($this->params->get('link_section')) : ?>
<?php echo '</a>'; ?>
<?php endif; ?>
<?php if ($this->params->get('show_category')) : ?>
<?php echo ' - '; ?>
<?php endif; ?>
</span>
<?php endif; ?>
<?php if ($this->params->get('show_category') && $this->article->catid) : ?>
<span>
<?php if ($this->params->get('link_category')) : ?>
<?php echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->article->catslug, $this->article->sectionid)).'">'; ?>
<?php endif; ?>
<?php echo $this->escape($this->article->category); ?>
<?php if ($this->params->get('link_category')) : ?>
<?php echo '</a>'; ?>
<?php endif; ?>
</span>
<?php endif; ?>
</td>
</tr>
<?php endif; ?>
<?php if (($this->params->get('show_author')) && ($this->article->author != "")) : ?>
<tr>
<td valign="top">
<span class="small">
<?php JText::printf( 'Written by', ($this->escape($this->article->created_by_alias) ? $this->escape($this->article->created_by_alias) : $this->escape($this->article->author)) ); ?>
</span>
</td>
</tr>
<?php endif; ?>
<?php if ($this->params->get('show_create_date')) : ?>
<tr>
<td valign="top" class="createdate">
<?php echo JHTML::_('date', $this->article->created, JText::_('DATE_FORMAT_LC2')) ?>
</td>
</tr>
<?php endif; ?>
<?php if ($this->params->get('show_url') && $this->article->urls) : ?>
<tr>
<td valign="top">
<a href="http://<?php echo $this->article->urls ; ?>" target="_blank">
<?php echo $this->escape($this->article->urls); ?></a>
</td>
</tr>
<?php endif; ?>
<tr>
<td valign="top">
<?php if (isset ($this->article->toc)) : ?>
<?php echo $this->article->toc; ?>
<?php endif; ?>
<?php echo $this->article->text; ?>
</td>
</tr>
<?php if ( intval($this->article->modified) !=0 && $this->params->get('show_modify_date')) : ?>
<tr>
<td class="modifydate">
<?php echo JText::sprintf('LAST_UPDATED2', JHTML::_('date', $this->article->modified, JText::_('DATE_FORMAT_LC2'))); ?>
</td>
</tr>
<?php endif; ?>
</table>
<span class="article_separator"> </span>
<?php echo $this->article->event->afterDisplayContent; ?>
Grazie ancora e tanti saluti.
-
... allora niente?
Neanche un piccolo acceno....
:'(
-
ciao
prova con quello che trovi nel frontpage
default_item.php
questa e la parte che ti formatta in inglese
<?php if ($this->item->params->get('show_create_date')) : ?>
<td align="left" valign="top" class="calendar" width="60" height="50">
<?php if ($day_first) : ?>
<span class="day"><?php echo $day; ?>
<span class="month"><?php echo JText::_($month); ?></span></span>
<?php else : ?>
<div class="month"><?php echo JText::_($month); ?>
<div class="day"><?php echo $day; ?></div></div>
<?php endif; ?>
devi modificare quella parte x far tradurre il tutto in italiano.
mi sa che dovrai fare pure un script x far si che vadi prendere il nese in italiano.
se oh detto una cagata correggetemi .
-
Gent.mo conti1...
come non detto...
non scrivo php e non so proprio cosa devo modificare.
Si vede che i comandi sono tutti in inglese, ma questo, credo, non ha niente a che fare con dove agiscono...
Speriamo che c'è qualche buon samaritano in giro per il forum.
Saluti
-
Ho bisogno ancora del vostro aiuto:
per risolvere il problema del calendario in inglese ho provato a copiare sopra il defaul_item.php di FRONTPAGE del template altri default_item.php,
ebbene, non trovando niente di interessante ho cercato di ricopiare il file originale (tramite FTP), alchè mi da una pagina bianca come home page, come se non lo leggesse.
La cosa strana è che provando con gli altri file default_item.php di altri template la pagina si vede.
Ovviamente molte misure sono sballate.
Come posso risolvere questo inconveniente?
Ho provato a ricopiare il file originale direttamente dal backup, ma niente lo stesso.
Grazie per la vostra attenzione e tanti saluti.
-
L'ultimo problema risolto con questo tread
http://forum.joomla.it/index.php/topic,117434.msg520197.html#msg520197
Grazie lo stesso...
resto per l'altro problema.
Notte. ;)
-
vediamo un po sta data, segui i passi come dico.
cerca questo css e lo metti come questo
tdefaut.css (riga 635)
.calendar .month {
background: none repeat scroll 0 0 transparent;
color: #4D433C;
font-size: 15px;
font-weight: bold;
line-height: 0;
margin: 0 auto;
position: relative;
text-align: left;
top: -5px;
width: 30px !important;
}
uguale fai qui
ps: se qualche mese esce dallo sfondo agisci qui width: 71px;
tdefaut.css (riga 611)
.calendar {
background: none repeat scroll 0 0 #F1EEDE;
border-bottom: 2px solid #26211E;
display: block;
font-size: 15px;
height: 30px;
margin: 0 auto;
padding: 11px 0 0 10px;
text-align: center;
width: 71px;
}
ora nel default_item.php
questo e quello originale
<?php if ($this->item->params->get('show_create_date')) : ?>
<td align="left" valign="top" class="calendar" width="60" height="50">
<?php if ($day_first) : ?>
<span class="day"><?php echo $day; ?>
<span class="month"><?php echo JText::_($month); ?></span></span>
<?php else : ?>
<div class="month"><?php echo JText::_($month); ?>
<div class="day"><?php echo $day; ?></div></div>
<?php endif; ?>
lo fai diventare come vedisotto
<?php if ($this->item->params->get('show_create_date')) : ?>
<td align="left" valign="top" class="calendar" width="60" height="50">
<?php if ($day_first) : ?>
<span class="month"><?php echo JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC5')); ?></span>
<?php else : ?>
<?php endif; ?>
ora vai in
language>it-IT> e con un editor apri questo file it-IT.ini
e cerchi questo pezzo
# Date format
DATE_FORMAT_LC=%A %d %B %Y
DATE_FORMAT_LC1=%A %d %B %Y
DATE_FORMAT_LC2=%A %d %B %Y %H:%M
DATE_FORMAT_LC3=%d %B %Y
DATE_FORMAT_LC4=%d.%m.%y
DATE_FORMAT_LC5=%d %B <<<<< aggiungi questo
DATE_FORMAT_JS1=y-m-d
%Y-%M-%D=%Y-%m-%d
%A, %B %E=%A, %B %e
se esegui tutto alla lettera questo e il risultato
http://www.webconti.altervista.org/
-
Grandissimo conti1 ;) ;) ;)
Tutto sistemato...
sei stato chiarissimo e con questo tuo suggerimento ho appreso nuove cose...
Un grazie infinito.
Salute.
-
x il Gent.mo conti1,
un'ultima cosa:
L5 inserisce i dati INTERI, cioè il mese intero.
Come posso fare per farlo abbreviato?
Grazie ancora.
-
Sistemato anche questo:
ho agito nel codice LC
Grazie ancora, buon lavoro e tanti saluti.
-
ciao
vedo che hai gia sistemato il mese
hai canbiato da
DATE_FORMAT_LC5=%d %B
in
DATE_FORMAT_LC5=%d %b
giusto