                     else
                         div = document.createElement 'div'
                         div.className = 'printed-unit-name'
-                        div.textContent = marker.unit.attributes.name.fi
+                        div.textContent = marker.unit.attributes.name[p13n.getLanguage()]
                         markerLegend.appendChild div
                     listOfUnits.appendChild(markerLegend)
             leafletImage map, (err, canvas) =>

define [
    'cs!app/base',
    'i18next',
    'leaflet-image',
    'leaflet-image-ie',
    'cs!app/draw'
],(
    sm
    i18n,
    leafletImage,
    leafletImageIe,
    draw

                    getClusteredUnits = (markerCluster) ->
                        unitNames = []
                        for own mid, mm of markerCluster._markers
                            unitNames.push mm.unit.attributes.name[p13n.getLanguage()]
                        for own mcid, mc of markerCluster._childClusters
                            unitNames = unitNames.concat getClusteredUnits(mc)
                        unitNames
