# Path: easymode/utils/languagecode.py
# def get_language_codes_as_disjunction():
#     """
#     return a pattern that matches any language defined in ``settings.LANGUAGES``
#     
#     >>> from django.conf import settings
#     >>> settings.USE_SHORT_LANGUAGE_CODES = False
#     >>> settings.LANGUAGES = (('en-us','English'),('de','German'),('nl-be','Belgium dutch'),('fr-be','Belgium french'),)
#     >>> get_language_codes_as_disjunction()
#     'de|en-us|nl-be|fr-be'
#     
#     usage::
#         
#         languages = get_language_codes_as_disjunction()
#         urlpatterns = patterns('',
#             url(r'^(%{languages})/admin/' % locals(), include(admin.site.urls), name="language-admin"),
#         )
#         
#     """
#     language_codes = map(get_shorthand_from_language_code, get_language_codes())
#     languages = "|".join(language_codes)
#     return languages


    from django.conf.urls.defaults import *
    from django.conf.urls import *
from easymode.utils.languagecode import get_language_codes_as_disjunction
"""
When ``get_absolute_url`` is defined on a model, django will place a
*view on site* link in the ``change_view`` of the model. 

If you are using easymode's multilanguage features and especially 
:class:`~easymode.middleware.LocaleFromUrlMiddleWare` and
:class:`~easymode.middleware.LocaliseUrlsMiddleware` you will find that the
*view on site* link will not point to the correct (current) language.

The routes specified here will override the default admin routes and
make the *view on site* link take the current language into account.

include the urls in your urlconf like this::

    (r'^', include('easymode.urls')),

"""
try:
    # before 1.6
except:
    # 1.6 and later



# Path: easymode/utils/languagecode.py
# def get_language_codes_as_disjunction():
#     """
#     return a pattern that matches any language defined in ``settings.LANGUAGES``
#     
#     >>> from django.conf import settings
#     >>> settings.USE_SHORT_LANGUAGE_CODES = False
#     >>> settings.LANGUAGES = (('en-us','English'),('de','German'),('nl-be','Belgium dutch'),('fr-be','Belgium french'),)
#     >>> get_language_codes_as_disjunction()
#     'de|en-us|nl-be|fr-be'
#     
#     usage::
#         
#         languages = get_language_codes_as_disjunction()
#         urlpatterns = patterns('',
#             url(r'^(%{languages})/admin/' % locals(), include(admin.site.urls), name="language-admin"),
#         )
#         
#     """
#     language_codes = map(get_shorthand_from_language_code, get_language_codes())
#     languages = "|".join(language_codes)
#     return languages


# Path: easymode/urls.py
    from django.conf.urls.defaults import *
    from django.conf.urls import *
from easymode.utils.languagecode import get_language_codes_as_disjunction

"""
When ``get_absolute_url`` is defined on a model, django will place a
*view on site* link in the ``change_view`` of the model. 

If you are using easymode's multilanguage features and especially 
:class:`~easymode.middleware.LocaleFromUrlMiddleWare` and
:class:`~easymode.middleware.LocaliseUrlsMiddleware` you will find that the
*view on site* link will not point to the correct (current) language.

The routes specified here will override the default admin routes and
make the *view on site* link take the current language into account.

include the urls in your urlconf like this::

    (r'^', include('easymode.urls')),

"""
try:
    # before 1.6
except:
    # 1.6 and later



languages = get_language_codes_as_disjunction()