This does not work for me.
I’ve put the code in my template’s functions.php and changed ‘store’ to ‘TNG’.
If you change language to English on my website (http://www.decalonne.nl), and then open “Genealogy | Family Tree”, you can see the plugin still works. I’m not an expert, but at least, I think it does, because the ‘lang=en’ suffix is visible in the URL.
EDIT: disregard abovementioned question. I’m using qTranslate-X instead of qTranslate now. I’ve put my question in the qTranslate-X support forums: https://ww.wp.xz.cn/support/topic/disable-qtranslate-x-for-internal-links-to-a-specific-directory?replies=1