Member
Member
Jefff   31-10-2008, 19:54
#1

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?

Administrator
Administrator
acrylian   31-10-2008, 20:43
#2

I am sorry Zenphoto requires gettext support for translations. Maybe try to ask your host if they can install it for you.

Member
Member
Jefff   31-10-2008, 21:01
#3

It's posible translate the script manually? What the archive?

Member
Member
Jefff   31-10-2008, 21:03
#4

I need translate no more that the basic: comments (comentários, comentar), rating (votar), see galleries (ver galerias), etc...

Member
Member
flu   31-10-2008, 21:09
#5

Another trick if you have no other solutions :
paste in your theme :
`

`
adapt it with your locales settings.

Administrator
Administrator
acrylian   31-10-2008, 21:21
#6

Of course you can also translate the terms you need in your theme directly.

Member
Member
Jefff   31-10-2008, 22:07
#7

acrylian,

I did translate all my theme, but I don't find the terms "Rating (Total Votes)". Where I find it?

Member
Member
sbillard   31-10-2008, 22:16
#8

There is much more text to be translated than just the strings in your theme files. If you are using plugins, each plugin may need to be translated. Also template functions used may need translation.

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.

Member
Member
Jefff   31-10-2008, 22:54
#9

Yes, sbillard, I agree with you. No questions. I'll resolve this problem in my next step. But in this moment my site is stopped and I need translate the necessary for the moment. You may understand: "all my theme translated", like "all necessary translated".


"Rating" is not translatable?

Please, help me!

Member
Member
sbillard   01-11-2008, 00:44
#10

line 171, image_album_statistics.php.

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.

Member
Member
Jefff   02-11-2008, 15:03
#11

sbillard,

The rating don't change and no more works.

What I did:


        }
        echo "".sprintf(gettext('Votação: %1$u (Votos: %2$u )'),$rating,$tempalbum->get("total_votes"))."";
    }
    if($showstatistic === "hitcounter" OR $showstatistic === "rating+hitcounter") {
        $hitcounter = $tempalbum->get("hitcounter");
        if(empty($hitcounter)) { $hitcounter = "0"; }
        echo "".sprintf(gettext("Vizualizações: %u"),$hitcounter)."";
    }
    if($showdesc) {
        echo "".my_truncate_string($tempalbum->getDesc(), $desclength)."";
    }
    echo "";

}

Member
Member
sbillard   02-11-2008, 18:47
#12

Don't use the gettext() function. That is there to allow the text to be translated from the English.
echo "".sprintf('Votação: %1$u (Votos: %2$u )',$rating,$tempalbum->get("total_votes"))." ";

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.