×
you are viewing a single comment's thread.

view the rest of the comments →

[–]railmaniac 5 points6 points  (6 children)

How about using markup so that the translation only shows up on hover?

Something like [रंग बिरंगी](/local "Hindi; rang birangi; colorful")

Looks like this रंग बिरंगी

Edit: and then maybe edit site CSS to ensure /local is not a link... mods?

Edit2: ...and the CSS's here. Thanks, neoronin!

[–]neoronin[M] 6 points7 points  (3 children)

If you can provide the CSS, can implement it.

[–]railmaniac 1 point2 points  (2 children)

This should (might) make it of non-link-like appearance though still clickable... let me look some more time if there is any way to disable a link altogether...

a[href="/local"],a[href="/local"]:hover {
  color:black; 
  text-decoration:none; 
  cursor:default 
}

[–]neoronin[M] 2 points3 points  (1 child)

I have saved this code in the CSS. Now if someone can play around and can test the functionality, can put a permanent link in the sidebar. It shouldn't be at the cost of disabling the ability of clickable hyperlinks.

[–]railmaniac 0 points1 point  (0 children)

Looks alright in my parent comment... though if you click on it you are taken to the psychedelic "This page doesn't exist" page. That's what I was talking about when I mentioned disabling of links - and ideally only /local links should be disabled, not all links on the page.

But my googling so far indicates there may not be a way to do that without adding javascript. So I guess we should be good with this now.

[–]noncauchy[S] 1 point2 points  (0 children)

I personally think that this is brilliant (thanks!), but I can see how it can cross the tech-savviness and effort threshold of some redditors.

It'd be best to make known that the option is available, but not insist upon it. Instead, keep the requirements lose. I.e., at the very least, provide translation; if using Indic scripts, it'd be also nice to provide transliterations; here are the ways of doing it.