Pairing pages with the multilingual menu

Thanks Ahmad! I am a bit of a novice when it comes to adding code. Do I copy this code on top of the existing code or underneath? Thanks in advance