Hi,
I did install Zenphoto in my site, but my host don't have the gettex support and, now, the brazilian portugueses translation (1.1.6) and the Portugal portuguese translation (1.2), don't works in my Zenphoto. Or better: no one translation works in my site. I did read the Zenphoto translation manual and I did everything write there, but didn't help me. What can I do?
Comments
paste in your theme :
`
<?php switch (getOption('locale')) {
default:
case 'en_US':
echo 'comments';
break;
case 'es_LA':
echo 'comentar';
}?>
`
adapt it with your locales settings.
I did translate all my theme, but I don't find the terms "Rating (Total Votes)". Where I find it?
You really should try to convince your ISP to add gettext support to your PHP. If they will not I would seriously consider changing to a better ISP.
-----------------------------------------
"Rating" is not translatable?
Please, help me!
I would recommend you invest in a good tool to let you search for these strings in the zenphoto source. You will most likely need it.
The rating don't change and no more works.
What I did:
------------------------------------------
}
echo "<p>".sprintf(gettext('Votação: %1$u (Votos: %2$u )'),$rating,$tempalbum->get("total_votes"))."</p>";
}
if($showstatistic === "hitcounter" OR $showstatistic === "rating+hitcounter") {
$hitcounter = $tempalbum->get("hitcounter");
if(empty($hitcounter)) { $hitcounter = "0"; }
echo "<p>".sprintf(gettext("Vizualizações: %u"),$hitcounter)."</p>";
}
if($showdesc) {
echo "<p>".my_truncate_string($tempalbum->getDesc(), $desclength)."</p>";
}
echo "";
}
`echo "
".sprintf('Votação: %1$u (Votos: %2$u )',$rating,$tempalbum->get("total_votes"))."
";`