Support other languages than English

CharlasHacking LibraryThing

Únete a LibraryThing para publicar.

Support other languages than English

Este tema está marcado actualmente como "inactivo"—el último mensaje es de hace más de 90 días. Puedes reactivarlo escribiendo una respuesta.

1brightcopy
Ene 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
Ene 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
Ene 18, 2010, 10:07 am

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

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

4brightcopy
Ene 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.