1

5

Is there some way how to localization StackExchange right now?

It's not duplicate, look to my answer.


I created project on code google for localization javascript.

stackexchange-localization

flag

5 Answers

3

You could do some crude localizing using jquery. Here is some javascript to add to the head section that replaces the main navigation button text (for mesadeayuda.org). There is probably a more elegant way of doing it but this might work for a single language localization. (translation is by google)

<script>
$(document).ready(function(){
 $('.nav > ul > li > a:eq(0)').text("Cuestiones");
 $('.nav > ul > li > a:eq(1)').text("Etiquetas");
 $('.nav > ul > li > a:eq(2)').text("Usuarios");
 $('.nav > ul > li > a:eq(3)').text("Placas");
 $('.nav > ul > li > a:eq(4)').text("Sin respuesta");
 $('.nav > ul > li > a:eq(5)').text("Preguntar");
  });
</script>
link|flag
Warning - This is the only thing I've ever written for jquery. It might be insane. – David Smith Oct 11 at 21:00
1

To say that requiring your users, all of them, to use Firefox and Greasemonkey is not perfect, well, that has to be the understatement of the year!

EDIT: The above was written in response to the poster's original self-penned answer, suggesting precisely that. Good to see that you've now hit upon the much better solution of using Javascript, rather than requiring your users to take specific steps.

link|flag
0

I am localizing everything that is editable at mesadeayuda.org. It is not perfect, but I hope it helps. Joel already said that is something that is planned but not top priority now.

link|flag
0

Second solution - better - Thanks to Michael Pryor and David Smith

You can create JavaScript, which replacing text on whole site and put them into HEAD section.

Better result and easy development if you use jQuery.

First solution - isn't good

If your users want localization, they need

  • Firefox
  • Greasemonkey - web
  • Script for replacing text - web
    • just modifying for your language

It's not perfect, but I think it's sufficient for now.

Other browsers

link|flag
1 
You don't need greasemonkey. If you're going to write some javascript, have the admin stick it in the HEAD section of the page. – Michael Pryor Oct 11 at 14:56
@Michael Pryor: Thanks, I forge this option. – MicTech Oct 11 at 15:39
0

I created project on code google for localization javascript.

stackexchange-localization

Anyone can contribute.

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.