Support other languages than English

DiscussionsHacking LibraryThing

Rejoignez LibraryThing pour poster.

Support other languages than English

Ce sujet est actuellement indiqué comme "en sommeil"—le dernier message date de plus de 90 jours. Vous pouvez le réveiller en postant une réponse.

1brightcopy
Jan 16, 2010, 8:46 pm

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 http://www.librarything.com/talk*, you tell it to apply to http://*.librarything.*/talk*

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

2AndrewB
Jan 16, 2010, 9:42 pm

I think I'll make any scripts I write, work only on the Pirate version of the site (http://pir.librarything.com).

3aethercowboy
Jan 18, 2010, 10:07 am

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

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

4brightcopy
Jan 18, 2010, 10:48 am

Funny you should mention that. I tried https://www.librarything.com 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.