<filename>metashare/repository/templatetags/get_guidelines.py
from django import template
from django.conf import settings
import logging


LOG = logging.getLogger(__name__)


register = template.Library()


@register.assignment_tag
def get_guidelines(lang):
    """Returns a localized url for the download of the user_guidelines.
    """
    elri_guidelines='metashare/ELRI_user_guidelines_'+lang+'.pdf'
    return elri_guidelines
    

<filename>metashare/repository/templatetags/get_guidelines.py
from django import template
from django.conf import settings
import logging


LOG = logging.getLogger(__name__)


register = template.Library()


@register.assignment_tag
def get_guidelines(lang):
    """Returns a localized url for the download of the user_guidelines.
    """
    elri_guidelines='metashare/ELRI_user_guidelines_'+lang+'.pdf'
    return elri_guidelines
    

Returns a localized url for the download of the user_guidelines.