[1.5.x] Allow build of translated documentation

Backport of 6a092f24e from master.