help in transtalion

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?

Comments

  • acrylian Administrator, Developer
    Actually that should work, as long as the zenphoto folder is below Poedit in the folder hierachy.
  • rumba Member
    I have the same problem.
  • acrylian Administrator, Developer
    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: <harddrive>/Applications/MAMP/htdocs/zenphoto (Macs don't have a c:/)
    Poedit: <harddrive>/Applications/Poedit

    Also working for me is:
    Zenphoto install: <harddrive>/Applications/zenphoto
    Poedit: <harddrive>/Applications/Poedit

    I hope that helps. I will add that details to the tutorial.
  • rumba Member
    It didnt work for me.
    I have poedit on: C:\Program Files\poEdit
    I have zenphoto on: C:\Program Files\zenphoto

    I try to use relative path: \zenphoto\zp-core\locale\he_IL\LC_MESSAGES\
    and got the same error
  • acrylian Administrator, Developer
    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.
  • rumba Member
    Is it possible to get the empty mo/po files? Without the German translation?
  • acrylian Administrator, Developer
    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.
  • rumba Member
    It's not the reason Im asking for a blank pot file. I can't see the % of lines that are already translated and the poedit can't separate the none-translated lines.
  • acrylian Administrator, Developer
    I understand what why you want the empty .po-file, but as a I said above that does not really elp solve the issue. It must work somehow to parse zenphoto and it does for some people.
  • 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.
  • rumba Member
    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
  • acrylian Administrator, Developer
    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!
  • rumba Member
    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.
  • acrylian Administrator, Developer
    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.
  • acrylian Administrator, Developer
    Do you still have Poedit and the zenphoto folder within the same folder? I think I got that error when I had Poedit within a subfolder and the zenphoto folder was outside of that.
  • rumba Member
    Yes, Poedit is in C:\Program Files\
  • acrylian Administrator, Developer
    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.
  • rumba Member
    Like I wrote here before, I have zenphoto under Program Files

    poedit on: C:\Program Files\poEdit
    zenphoto on: C:\Program Files\zenphoto

    Thanks for the help, I will try to find solution on the Google translation group.
  • acrylian Administrator, Developer
    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.
  • How do you manage the arabic letters in the filenames?
  • acrylian Administrator, Developer
    Zenphoto should support everything that is withn UTF-8 spectrum and additionally of course your server must be setup to handle those characters in filenames and folders, too. The most servers I know don't even like german umlauts and the like.
  • tried everything too to get the right path in poedit, nothing, really nothing seems to work with my XP. I just can't update from source.
  • acrylian Administrator, Developer
    You probably did not enter the paths correctly. I supposed you read our theming tutorial?
    Btw, what language are you trying to do? Please check if we have it or someone already working on it. You could also consider to join the translation google group (link is on our home page).
Sign In or Register to comment.