Added translation support for ungleich contact page,
This commit is contained in:
		
					parent
					
						
							
								2f9fa9f8fb
							
						
					
				
			
			
				commit
				
					
						c5e5640e8d
					
				
			
		
					 6 changed files with 41 additions and 6 deletions
				
			
		|  | @ -323,9 +323,6 @@ footer .copyright { | |||
|   color: #0085a1; | ||||
| } | ||||
| 
 | ||||
| .form-group{ | ||||
|   font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; | ||||
| } | ||||
| 
 | ||||
| form .row:first-child .floating-label-form-group { | ||||
|   border-top: 1px solid #eeeeee; | ||||
|  |  | |||
|  | @ -4,10 +4,11 @@ from django.shortcuts import get_object_or_404, render | |||
| from django.forms import ModelForm | ||||
| from django.http import HttpResponseRedirect | ||||
| from django.core.urlresolvers import reverse_lazy | ||||
| from django.utils.translation import ugettext_lazy as _ | ||||
| 
 | ||||
| from django.utils.translation import get_language | ||||
| from djangocms_blog.models import Post | ||||
| from django.contrib import messages | ||||
| from django.utils.translation import ugettext as _ | ||||
| 
 | ||||
| 
 | ||||
| from .models import Supporter | ||||
|  |  | |||
							
								
								
									
										
											BIN
										
									
								
								ungleich_page/locale/de/LC_MESSAGES/django.mo
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								ungleich_page/locale/de/LC_MESSAGES/django.mo
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										35
									
								
								ungleich_page/locale/de/LC_MESSAGES/django.po
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								ungleich_page/locale/de/LC_MESSAGES/django.po
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,35 @@ | |||
| # SOME DESCRIPTIVE TITLE. | ||||
| # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | ||||
| # This file is distributed under the same license as the PACKAGE package. | ||||
| # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||||
| # | ||||
| #, fuzzy | ||||
| msgid "" | ||||
| msgstr "" | ||||
| "Project-Id-Version: PACKAGE VERSION\n" | ||||
| "Report-Msgid-Bugs-To: \n" | ||||
| "POT-Creation-Date: 2016-04-11 21:02-0500\n" | ||||
| "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||||
| "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||||
| "Language-Team: LANGUAGE <LL@li.org>\n" | ||||
| "Language: \n" | ||||
| "MIME-Version: 1.0\n" | ||||
| "Content-Type: text/plain; charset=UTF-8\n" | ||||
| "Content-Transfer-Encoding: 8bit\n" | ||||
| "Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||||
| 
 | ||||
| #: urls.py:7 | ||||
| msgid "contact/?$" | ||||
| msgstr "" | ||||
| 
 | ||||
| #: views.py:13 | ||||
| msgid "Message Successfully Sent" | ||||
| msgstr "" | ||||
| 
 | ||||
| #: views.py:23 | ||||
| msgid "Contact Us" | ||||
| msgstr "Kontaktiere Uns" | ||||
| 
 | ||||
| #: views.py:24 | ||||
| msgid "If you have any question, just send us an email." | ||||
| msgstr "Wenn Sie irgendwelche Fragen haben, schicken Sie uns einfach eine E-Mail." | ||||
|  | @ -1,6 +1,8 @@ | |||
| from django.conf.urls import url | ||||
| from .views import ContactView | ||||
| from django.utils.translation import ugettext_lazy as _ | ||||
| 
 | ||||
| 
 | ||||
| urlpatterns = [ | ||||
|     url(r'contact/?$', ContactView.as_view(), name='contact'), | ||||
|     url(_(r'contact/?$'), ContactView.as_view(), name='contact'), | ||||
| ] | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| from django.contrib import messages | ||||
| 
 | ||||
| from django.views.generic.edit import FormView | ||||
| from django.utils.translation import ugettext as _ | ||||
| from django.utils.translation import ugettext_lazy as _ | ||||
| from django.core.urlresolvers import reverse_lazy | ||||
| from utils.forms import ContactUsForm | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue