multiple languages

I run a bilingual site, and I would like to have the gallery (album and image descriptions, comment buttons, paypal integration) in two different languages. Is something like this possible without installing zenphoto twice using two different mysql databases?

Comments

  • jackdaw Member
    I don't think so without two database installations. But with two installations you do can point to one and the same album folder. But this is just my guess, I didn't write the program... ;)

    But why don't you just add two titles / descriptions next to each other or beneath each other?
    Title would be: Ein kleines Pferd / A small horse
    and the descriptions can be seperated by a horizontal line...
  • acrylian Administrator, Developer
    Zenphoto does not support more than one language, so jackdaw's idea would be the way to go.

    But with two installations you do can point to one and the same album folder. But this is just my guess, I didn't write the program... ;)
    That would be an experiment. That has never been done, so if you want to try that...
  • jackdaw Member
    That would be an experiment. That has never been done, so if you want to try that...

    I just thought, change the 'external album location' in the zp-config file of one of those installations to point to the /album of the other installation. But perhaps that was too easy thinking... ;)
  • acrylian Administrator, Developer
    I could imagine that it could work with two separate installs and two databases (even in one if prefixed), since zenphoto is filesystem based. But some volunteer would need to try that..:-)

    But I don't know how convinient it would be to maintain two installs of the same content. I think I would follow your idea if I had to.
  • jackdaw Member
    Me too :) I always try to keep things in one place and not make things too complicated.
    I should follow my own advice more often :(....
  • DrSlony Member
    I might try the two databases as soon as i finalise the settings and theme im working on. Using two languages visible at the same time is not a visually nice solution.
  • flu Member
    Hi,
    maybe there's another quick and dirty solution :
    -use the empty field of your images description (for exemple "credit" if you don't you use it) to fill it with the title of your alternative language
    -display it in your theme using css :
    <span class="myalternativelanguage"><?php echo getImageCredit(); ?></span>
    -create a style switcher
    -create another css, using display:none for the language you don't want to display

    Sorry, am I clear ?
  • There is actually a "custom" field that you could use for this.
  • flu Member
    Yes, of course, you can use it for the alternative language "description", "title" or whatever you want in the same way.
  • I have some thoughts about how we might enable multiple language support for zenphoto. However, before I complete the design I would like to know how you would determine which language to display. My thought is that there could be a way for the viewer to selecte the language he wishes.
  • jackdaw Member
    My thought is that there could be a way for the viewer to selecte the language he wishes.

    Is there another way :=) ? Ofcourse, it could be done from within the admin, but it's the choice of the viewer.

    Would be a great addition!
  • Well, I doubt that doing it from Admin would be a good solution. You would have to give each viewer access to that. If there is an way to tell what language to use with out user input that would be nice. Otherwise there would have to be a selection form on the index page.
Sign In or Register to comment.