from django.utils.translation import ugettext_lazy as _

from cms.app_base import CMSApp
from cms.apphook_pool import apphook_pool

from .conf import settings


class AldrynSearchApphook(CMSApp):
    name = _("aldryn search")

    def get_urls(self, *args, **kwargs):
        return ['aldryn_search.urls']


if settings.ALDRYN_SEARCH_REGISTER_APPHOOK:
    apphook_pool.register(AldrynSearchApphook)

[(10, 'django.utils.translation.ugettext_lazy', '_', True, 'from django.utils.translation import ugettext_lazy as _\n'), (17, 'cms.apphook_pool.apphook_pool.register', 'apphook_pool.register', False, 'from cms.apphook_pool import apphook_pool\n')]