![]() |
|
ZP doesn't read my theme locale - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Translating (https://forum.zenphoto.org/forum-8.html) +--- Thread: ZP doesn't read my theme locale (/thread-3773.html) Pages:
1
2
|
ZP doesn't read my theme locale - DrSlony - 2008-09-18 sbillard I am not talking about the pricelist items anymore! The screenshot with the lines shows the things that are NOT part of the price list. They are normal gettext items in zenPaypal.php I no longer need help since I solved this myself, but I'm still repeating this so that you can understand the problem and make zenphoto better for others. So once again, the problem: So now I had a problem: if I wanted to use a pp.po file for my own gettext calls, then zenphoto ignored the other translations in zenphoto.po! If at the beginning of image.php I add this: then zenphoto doesnt read zenphoto.po, which means that only half of my things are translated! So I asked several times how can I make my theme use several po files, is that possible? Well I wasn't getting an answer for half of my questions, so I tried something: since I couldn't get ZenPhoto to read 2 po files, I copied zenPaypal.php to the other theme files in my Poedit dir and then I created all required translations in pp.po ZP doesn't read my theme locale - DrSlony - 2008-09-18 ps. I think there is one too much in zenPaypal.php, line 212 ZP doesn't read my theme locale - sbillard - 2008-09-18 I don't have a line 212 in my copy of zenPaypal.php. Looks to me like there are two divs opened and closed first for $id and the second for $dataid. ZP doesn't read my theme locale - acrylian - 2008-09-18 DrSlony, sorry that you didn't get answers on half of your questions. It is not possible to have a theme use two translation files currently. You actually should only need the the main translation file for all included plugins, themes, etc and the one for your theme's special additions via setThemeDomain(). I have made some test and indeed I can reproduce it. I never noticed it with the zenpage theme that uses theme translation as well, probably because I didn't use that much other plugins for it. We will investigate that, but to be honest I have no clue currently. |