How does one translate a popup (lightbox)?
Talk Translating LibraryThing? (General Talk)
Join LibraryThing to post.
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
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.
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.
3brightcopy
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.
Thanks.
5brightcopy
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.
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.

