Support other languages than English

DiscussãoHacking LibraryThing

Aderi ao LibraryThing para poder publicar.

Support other languages than English

Este tópico está presentemente marcado como "adormecido"—a última mensagem tem mais de 90 dias. Pode acordar o tópico publicando uma resposta.

Jan 16, 2010, 8:46pm

It occurred to me that I'm needlessly limiting my scripts to only the English version of LibraryThing. For most scripts, it doesn't matter which language the site is in. While the display text is localized, things like the the ids and classes and such are still the same. The only scripts that shouldn't be applied to all of the LT sites are ones where you depends on the actual text being displayed to the user.

True, the text that I might add to the screen or menu items I might add to the Greasemonkey menu are still going to be in English. But at least this way, other users get the opportunity to easily try out the scripts.

So instead of telling Greasemonkey your script applies to*, you tell it to apply to http://*.librarything.*/talk*

I've updated all my scripts and I encourage others to do so.

Jan 16, 2010, 9:42pm

I think I'll make any scripts I write, work only on the Pirate version of the site (

Jan 18, 2010, 10:07am

Done. All my scripts now work for http://*.librarything.*

What's next? http*://*.librarything.*?

Jan 18, 2010, 10:48am

Funny you should mention that. I tried and it works... sorta. It doesn't seem to be getting a lot of the scripting and styling that it's supposed to. I wonder if it's something they worked on for a bit but then abandoned. I'm pretty surprised they don't take it down or have a redirect.