How does one translate a popup (lightbox)?

TalkTranslating LibraryThing? (General Talk)

Join LibraryThing to post.

How does one translate a popup (lightbox)?

This topic is currently marked as "dormant"—the last message is more than 90 days old. You can revive it by posting a reply.

1brightcopy
Feb 25, 2013, 9:57 pm

I don't do a lot of translating, so I'm wondering if I'm missing something there. I was trying to translate the cover information popup that you get when you click a cover here:
http://www.librarything.es/work/6999/covers/93909400

You can't click the translate link when the popup is open. And when the popup is closed, the translate link takes you to a page without the yellow text from the popup.

The only way I could figure out to do it was a javascript hack. I'm not sure what the "normal" method is supposed to be.

2AnnieMod
Feb 25, 2013, 10:02 pm

You find it in the list of "all non-translated" and translate it from there.

3brightcopy
Feb 25, 2013, 11:00 pm

Huh, okay. It's weird that they don't just stick a translate link on the site. It worked perfectly well when I hacked it in.

Thanks.

4AnnieMod
Feb 26, 2013, 2:08 am

It is based on pages - the smaller things are just in general pages :)

5brightcopy
Feb 26, 2013, 12:21 pm

Yeah, but I'm saying it'd make things easier to translate because it's nice to be able to work through everything on one "page" rather than having to look at the entirety of the site all at once.

Here's how I hacked it:

* Go to http://www.librarything.es/work/6999/covers/93909400
* Right-click on the translate link at the top-right and copy think url/link location
* Click a cover to get a cover popup
* Paste the copied url into the location box and hit enter (caveat: Recent versions of Firefox don't let you run javascript urls from the location bar unless you have something like NoScript installed. I'm not sure about other browsers.)

That takes me here:
http://www.librarything.es/translate.php?page=1272544190

This is the same URL as you get when you click on the translate button, but I assume it passes extra params via POST that cause it to also have the stuff on the popup.