HI
i'm interesting to translate the zinphoto gallery to arabic langauge
i have tray to do all setup but i have problemes
i give you all wat i have do
1/i have download wamp and was installed
2/i have download and install poedit
3/ i have put the zenphoto folder in c:/wamp/www/ path
4/i open poedit and to the instruction in 6 setp and i havn't any solution
is the setup i do is write or i should install znphoto?
Actually you don't need to have a localhost server with a running install, what of course helps testing the translation.
The base path for poedit in step 6 should be in this case "/wamp/www/path/" and the other field should contain simply "zenphoto".
Poedit must always be located on the same level or above the folders to parse, since the paths are relative.So in this example Poedit must be located and run from "c:/poedit".
To illustrate it in more detail: The windows version might be different but on Mac it works this way:
Zenphoto install: /Applications/MAMP/htdocs/zenphoto (Macs don't have a c:/)
Poedit: /Applications/Poedit
Also working for me is:
Zenphoto install: /Applications/zenphoto
Poedit: /Applications/Poedit
I hope that helps. I will add that details to the tutorial.
What error exactly do you get?
Sorry, actually that should work. This might be a specific Windows problem though, I have only a Mac, so I can't test it. I will see that one of my fellows using Windows dev will try it too.
Btw, you never need to link to the LC_Messages folder, you link to the folde(s) to parse.
I could generate them, but you always would have to start from scratch for every new version of zenphoto if you want to maintain your language. Regarding updates it's recommended to do frequent update with the nightlies / svn version to not have to do them all at once. We change quite a lot around. Sure Poedit seems to have the ability to join files, but more convenient would be to parse yourself.
Anyway, this would be an escape from the problem. Would you mind to sign to our google translators group and ask there? For someone it actually seems to work somehow on none-Macs. If you don't want to, I can of course ask there, too.
What's the exact problem you've got with poedit?
This is how i configured it:
"C:\Users\Vincent\Desktop\zenphoto-2008-06-19-trunk\" as the base path
and then add "zenphoto" as a new relative path.
I'm working on windows (vista) and it works like a charm without stuff like wamp.
The error is:
Can not enumerate files in directory 'zenphoto' (error 3: the system cannot fined the path specified.)
no files found in: zenphoto
printscreen of the error message:
http://www.joomlive.com/zenphoto-error.png
using all kind of paths like:
C:\Program Files\zenphoto\zp-core\locale\he_IL\LC_MESSAGES
C:\Program Files\zenphoto
C:\Program Files\
\Program Files\zenphoto\
\Program Files\zenphoto\zp-core\locale\he_IL\LC_MESSAGES
...
I have used all the combinations of paths there is and still getting this error.
windows XP
You never should link to the LC_MESSAGES folder or the po/mo files, there is of course nothing to parse, so this won't work.
I know that error, this means that the path is simply not set right and Poedit does not find the files to parse.
Just to be sure, did you enter that all only into the base path field? That would be wrong, you need to split the path into a base path and the relative path.
Base path: C:\Program Files\
path below "zenphoto\"
This makes a huge difference, otherwise it does not work!
OK... now i get it!
So I need to split the base path and the relative path.
I did that and I think that helped (!), only now I'm getting a differnt error:
21:23:48: Execution of command 'dxgettext --so "C:\DOCUME~1\erez\LOCALS~1\Temp\poeE33.tmp" "zenphoto/zp-core/lib-gettext/gettext.inc"' failed (error 2: the system cannot find the file specified.)
21:23:48: Cannot execute program: dxgettext
21:23:48: Entries in the catalog are probably incorrect.
Ok, I will add that with the base path and the relative one to the tutorial to make that really clear.
You get that error when you are trying to parse the files? This Poedit error I have never seen. I have no idea, that file does not need to be parsed at all and it never did cause any errors for me.
Then please try putting the zenphoto folder to C:\Program Files\zenphoto. At least this is what fixes it for me on the Mac. I had a hard time to figure that out. Even if its working for Vincent above and one of my fellow developers.
Be sure that Poedit is configured to use the standard gettext() function (should be default, but well).
Also if you haven't yet, please sign into the google translation group. Most likely someone can help you there.
Sorry, I forgot to reread the beginning of the thread. It must work since one of our developer did try it successfully on windows just yesterday. Maybe something else is somehow not configured right in Poedit, even if hte defaults should work fine. See you on the group.