hello,
I found this information on adsence support forum:
Code:
You can simply place your ad code on a page in one of our supported languages. Our crawlers will recognise the language and serve targeted ads in the correct language.
the if statement in your code looks good - but the results will be avaliable on translated pages now (after if) and on not translated page (after else).
As I see - you have the same code in this two statements.
Google should translate adds according your site language automaticly, so please check your adsence settings.