Much thanks It works with the custom example. So I will make it work for my implementation. Thank you.
Now I found what the problem was because it was working for the norwegian but not for the french! THe translation said:
restoreTitle : 'Cliquer pour fermer l'image, cliquer et faire glisser pour d├®placer, utiliser les touches fl├¿ches droite et gauche pour suivant et pr├®c├®dent.'
The apostrophe in the " l'image" creates the problem! Bizarre that nobody had the problem : I was doing a copy and paste without thinking! May be this will help somebody else....