# -*- coding: utf-8 -*-
from translator.util import get_translation_for_key


class Translator(object):

    def __init__(self, request):
        self.request = request

    def __getattr__(self, item):
        return get_translation_for_key(item)


def translator(request):
    return {
        'translator':Translator(request)
    }

66cbbd358d89cfe7744e3bad6fbbab8e2dfceb9b
<mask token>


class Translator(object):
    <mask token>

    def __getattr__(self, item):
        return get_translation_for_key(item)


<mask token>

<mask token>


class Translator(object):

    def __init__(self, request):
        self.request = request

    def __getattr__(self, item):
        return get_translation_for_key(item)


<mask token>

<mask token>


class Translator(object):

    def __init__(self, request):
        self.request = request

    def __getattr__(self, item):
        return get_translation_for_key(item)


def translator(request):
    return {'translator': Translator(request)}

from translator.util import get_translation_for_key


class Translator(object):

    def __init__(self, request):
        self.request = request

    def __getattr__(self, item):
        return get_translation_for_key(item)


def translator(request):
    return {'translator': Translator(request)}

# -*- coding: utf-8 -*-
from translator.util import get_translation_for_key


class Translator(object):

    def __init__(self, request):
        self.request = request

    def __getattr__(self, item):
        return get_translation_for_key(item)


def translator(request):
    return {
        'translator':Translator(request)
    }
