I think this is a bug so I post it in this category,
It happened to me several times, with different languages :
I translate my solutions from one language to another to get the achievements, say Perl -> PHP for example.
I copy-paste my code from Perl to PHP and begin the translation.
Once it's done, I run it and see that I have an execution error, so I think I've probably made a mistake during the translation, and I need to see my original code in Perl.
I go back to Perl in the IDE : my code was deleted ! Everything's back to the default code. I just lose all my work in this language.
Please do something for this, I'm tired of rewriting my solutions each time...