# -*- coding: utf-8 -*-
from .i18n import (get_language_name,
                   get_language,
                   get_fallback_language,
                   build_localized_field_name,
                   build_localized_verbose_name)

from .models import load_class, get_model_string
from .template import select_template_name
from .views import get_language_parameter, get_language_tabs

__all__ = [
    'get_language_name',
    'get_language',
    'get_fallback_language',
    'build_localized_field_name',
    'build_localized_verbose_name',
    'load_class',
    'get_model_string',
    'select_template_name',
    'get_language_parameter',
    'get_language_tabs',
    'chunks',
]


def chunks(l, n):
    """
    Yields successive n-sized chunks from l.
    """
    for i in xrange(0, len(l), n):
        yield l[i:i + n]

# -*- coding: utf-8 -*-
from .i18n import (get_language_name,
                   get_language,
                   get_fallback_language,
                   get_real_field_name,
                   get_fallback_field_name,
                   build_localized_field_name,
                   build_localized_verbose_name)

from .models import load_class, get_model_string
from .template import select_template_name
from .views import get_language_parameter, get_language_tabs

__all__ = [
    'get_language_name',
    'get_language',
    'get_fallback_language',
    'build_localized_field_name',
    'build_localized_verbose_name',
    'load_class',
    'get_model_string',
    'select_template_name',
    'get_language_parameter',
    'get_language_tabs',
    'chunks',
]


def chunks(l, n):
    """
    Yields successive n-sized chunks from l.
    """
    for i in xrange(0, len(l), n):
        yield l[i:i + n]

Fix new i18n utils imports.
Fix new i18n utils imports.
