old_contents: """Defaults urls for the Zinnia project"""
  from django.conf.urls import url
  from django.conf.urls import include
  from django.conf.urls import patterns
  
  from django.utils.translation import ugettext_lazy
  
  from zinnia.settings import TRANSLATED_URLS
  
  
  def i18n_url(url, translate=TRANSLATED_URLS):
      """
      Translate or not an URL part.
      """
      if translate:
          return ugettext_lazy(url)
      return url
  
  _ = i18n_url
  
  urlpatterns = patterns(
      '',
      url(_(r'^feeds/'), include('zinnia.urls.feeds')),
      url(_(r'^tags/'), include('zinnia.urls.tags',)),
      url(_(r'^authors/'), include('zinnia.urls.authors')),
      url(_(r'^categories/'), include('zinnia.urls.categories')),
      url(_(r'^search/'), include('zinnia.urls.search')),
      url(_(r'^random/'), include('zinnia.urls.random')),
      url(_(r'^sitemap/'), include('zinnia.urls.sitemap')),
      url(_(r'^trackback/'), include('zinnia.urls.trackback')),
      url(_(r'^comments/'), include('zinnia.urls.comments')),
      url(r'^', include('zinnia.urls.entries')),
      url(r'^', include('zinnia.urls.archives')),
      url(r'^', include('zinnia.urls.shortlink')),
      url(r'^', include('zinnia.urls.quick_entry')),
      url(r'^', include('zinnia.urls.capabilities')),
  )
  
new_contents: """Defaults urls for the Zinnia project"""
  from django.conf.urls import url
  from django.conf.urls import patterns
  from django.conf.urls import include as default_include
  
  from django.utils.translation import ugettext_lazy
  
  from zinnia.settings import TRANSLATED_URLS
  
  
  def i18n_url(url, translate=TRANSLATED_URLS):
      """
      Translate or not an URL part.
      """
      if translate:
          return ugettext_lazy(url)
      return url
  
  _ = i18n_url
  
  
  def namespace_include(patterns, namespace='zinnia', app_name='zinnia'):
      """
      Include urlpatterns under the default 'zinnia'
      instance and application namespaces.
      """
      return default_include(patterns, namespace=namespace, app_name=app_name)
  
  include = namespace_include
  
  urlpatterns = patterns(
      '',
      url(_(r'^feeds/'), include('zinnia.urls.feeds')),
      url(_(r'^tags/'), include('zinnia.urls.tags',)),
      url(_(r'^authors/'), include('zinnia.urls.authors')),
      url(_(r'^categories/'), include('zinnia.urls.categories')),
      url(_(r'^search/'), include('zinnia.urls.search')),
      url(_(r'^random/'), include('zinnia.urls.random')),
      url(_(r'^sitemap/'), include('zinnia.urls.sitemap')),
      url(_(r'^trackback/'), include('zinnia.urls.trackback')),
      url(_(r'^comments/'), include('zinnia.urls.comments')),
      url(r'^', include('zinnia.urls.entries')),
      url(r'^', include('zinnia.urls.archives')),
      url(r'^', include('zinnia.urls.shortlink')),
      url(r'^', include('zinnia.urls.quick_entry')),
      url(r'^', include('zinnia.urls.capabilities')),
  )
  
subject: Include the URLs of Zinnia under "zinnia" application and instance namespace by default to prevent backward compatibility