From 4c7788a0ea788ffc000bdbe5869b31c52305bc32 Mon Sep 17 00:00:00 2001 From: "martin@mahner.org" Date: Fri, 8 Aug 2008 22:53:57 +0000 Subject: [PATCH] Unicode Fix git-svn-id: http://django-paste.googlecode.com/svn/trunk/dpaste@17 1e28be48-2e37-0410-b882-833e1ed5e216 --- forms.py | 3 +-- locale/de/LC_MESSAGES/django.mo | Bin 2881 -> 2835 bytes locale/de/LC_MESSAGES/django.po | 6 +++--- models.py | 2 +- views.py | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/forms.py b/forms.py index 0dd72f6..1668841 100644 --- a/forms.py +++ b/forms.py @@ -1,7 +1,6 @@ from django import forms from django.conf import settings -#from django.utils.translation import gettext_lazy as _ -from django.utils.translation import gettext as _ +from django.utils.translation import ugettext_lazy as _ from dpaste.models import Snippet from dpaste.highlight import LEXER_LIST_ALL, LEXER_LIST, LEXER_DEFAULT diff --git a/locale/de/LC_MESSAGES/django.mo b/locale/de/LC_MESSAGES/django.mo index 058a66edcc76a21b9cdd2779b5a05e3ffcbc7d8a..f5bbec9fe748a6b9271b3e2d92e964b70f8103f1 100644 GIT binary patch delta 323 zcmXZWy-Px26vy%3_5I$^5cB$maNS(e!J31DAPARS8}HDd33*3x$U!hLxX@m+LU9+@ zz^yr({SR8*`aTdmoX>O4;W^LwbVK+3#F{vkv`tELNxPJEhW)hU;0h0LjkL7EYy83t zmI+yGU;*1`-d$i0yI8_oC*Px# delta 366 zcmXZWJxc>Y5P;#iL}PM(p~0vGE&K>_eHC-Vu|zzMJ_~SWJqKKuh7PK z9L6t9;WsM$!8Dc#qo^>8duaMJj^Qaz<2lkI*T`3Li)QX!S~^l8dE#Ogt<2xxJkC+i z|JNlPr&eeN?c)p{q8WIG%h<&vKH?NUBS+o{ef-1;d|*rS{%W&cf#idWMNG1m*?cLk zCh`M?sI{=u40KcvT8-waQ`uF@*>Y>1v*y*@s@inR)MyU=c6=c diff --git a/locale/de/LC_MESSAGES/django.po b/locale/de/LC_MESSAGES/django.po index 6848d38..2524167 100644 --- a/locale/de/LC_MESSAGES/django.po +++ b/locale/de/LC_MESSAGES/django.po @@ -10,7 +10,7 @@ msgstr "" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2008-08-08 23:42+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" + "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -162,11 +162,11 @@ msgstr "" #: templates/dpaste/snippet_new.html:3 templates/dpaste/snippet_new.html:7 #, fuzzy msgid "New snippet" -msgstr "Neuer Schnipsel" +msgstr "Neues Snippet" #: templates/dpaste/snippet_new.html:4 msgid "Paste a new snippet" -msgstr "Schreibe einen neuen Schnipsel" +msgstr "Schreibe ein neues Snippet" #: templates/dpaste/snippet_new.html:20 msgid "WHAT_IS_THIS_TITLE" diff --git a/models.py b/models.py index 18e2711..9518787 100644 --- a/models.py +++ b/models.py @@ -2,7 +2,7 @@ from django.db import models from django.db.models import permalink -from django.utils.translation import gettext as _ +from django.utils.translation import ugettext_lazy as _ import mptt from dpaste.highlight import LEXER_DEFAULT, pygmentize diff --git a/views.py b/views.py index 64c80b9..a89125e 100644 --- a/views.py +++ b/views.py @@ -3,7 +3,7 @@ from django.http import HttpResponseRedirect, HttpResponseBadRequest from django.conf import settings from django.core.exceptions import ObjectDoesNotExist -from django.utils.translation import gettext_lazy as _ +from django.utils.translation import ugettext_lazy as _ from dpaste.forms import SnippetForm, UserSettingsForm from dpaste.models import Snippet from dpaste.highlight import pygmentize