use translated base_path in galleries, fix #1158