allowing urls translation into german using .po files
This commit is contained in:
		
					parent
					
						
							
								50a973c28d
							
						
					
				
			
			
				commit
				
					
						0e65c1e717
					
				
			
		
					 5 changed files with 56 additions and 23 deletions
				
			
		| 
						 | 
				
			
			@ -1,12 +1,13 @@
 | 
			
		|||
from django.conf.urls import url
 | 
			
		||||
 | 
			
		||||
from django.utils.translation import ugettext_lazy as _
 | 
			
		||||
from . import views
 | 
			
		||||
from .views import ContactView
 | 
			
		||||
 | 
			
		||||
urlpatterns = [
 | 
			
		||||
    url(r'contact/?$', ContactView.as_view(), name='contact'),
 | 
			
		||||
    url(r'supporters/?$', views.supporters, name='supporters'),
 | 
			
		||||
    url(r'support-us/?$', views.support, name='support'),    # url(r'', views.index, name='index'),
 | 
			
		||||
    url(_(r'contact/?$'), ContactView.as_view(), name='contact'),
 | 
			
		||||
    url(_(r'supporters/?$'), views.supporters, name='supporters'),
 | 
			
		||||
    url(_(r'support-us/?$'), views.support, name='support'),
 | 
			
		||||
    url(r'blog/',views.blog,name='blog'),
 | 
			
		||||
    url(r'^blog/(?P<slug>\w[-\w]*)/$', views.blog_detail, name='blog-detail'),
 | 
			
		||||
]
 | 
			
		||||
]
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue