I want to translate the string 'If you leave, your work will be lost.' in osqa.main.js.

I executed manage.py makemessages but that string didn't show in the .po file.

Should I directly edit the .js file or is there a better way to do this?

In case the translation should be included inside the .js file, here are the spanish strings:

osqa.main.js

'If you leave, your work will be lost.'
'Si navegas fuera de la página se perderá lo que has escrito.'

"Are you sure you want to leave?  Your work will be lost."
"¿Estás seguro que quieres salir? Se perderá lo que has escrito."

osqa.ask.js

>No questions like this have been found.<
>No se encontraron preguntas similares.<

asked 31 Aug '10, 01:50

Carlos%20Gutierrez's gravatar image

Carlos Gutie...
1064712
accept rate: 50%

1

any hope to get this fixed?

(13 Oct '10, 13:17) omat

It seems that we forgot to make those translatable. I'll push a fix for that today. Thanks for noticing.

link

answered 31 Aug '10, 05:55

Hernani%20Cerqueira's gravatar image

Hernani Cerq... ♦♦
16.8k65975
accept rate: 52%

Did you had a chance to push this fix? Thanks!

(02 Sep '10, 11:05) Carlos Gutie...
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×10
×6
×1

Asked: 31 Aug '10, 01:50

Seen: 676 times

Last updated: 13 Oct '10, 13:17

powered by OSQA