03-08-2012 06:05 AM
<#macro renderLocaleImage field>
<#if field.dataType == "mltext">
<#assign localeshort=locale>
<#switch localeshort>
<#case "sv">
<#assign localeshort="sv-se">
<#break>
<#case "ch">
<#assign localeshort="ch-cn">
<#break>
<#case "ar">
<#assign localeshort="ar-eg">
<#break>
<#case "en">
<#assign localeshort="en-GB">
<#break>
<#case "nb">
<#assign localeshort="no-no">
<#break>
<#case "nn">
<#assign localeshort="no-no">
<#break>
<#case "smj">
<#assign localeshort="no-no">
<#break>
<#case "sma">
<#assign localeshort="no-no">
<#break>
<#case "smn">
<#assign localeshort="fi-fi">
<#break>
<#case "sms">
<#assign localeshort="fi-fi">
<#break>
<#case "da">
<#assign localeshort="da-dk">
<#break>
</#switch>
<#assign localeshort = localeshort?left_pad(5)?substring(3,5)?lower_case >
<img src="${url.context}/res/components/images/flags/${localeshort}.png" width="16px" height="11px" tabindex="0"/>
</#if>
</#macro>
You may need to add additional language/country codes.
03-08-2012 06:17 AM
03-08-2012 06:26 AM
03-08-2012 06:38 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.