From e5dcf4321267b7c406f3d036db42284968778ce2 Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Sun, 11 Apr 2010 17:32:23 +0000 Subject: [PATCH] All strings in unicode. svn: r15087 --- src/DateHandler/_Date_sv.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/DateHandler/_Date_sv.py b/src/DateHandler/_Date_sv.py index c1192e9ed..689b0debf 100644 --- a/src/DateHandler/_Date_sv.py +++ b/src/DateHandler/_Date_sv.py @@ -64,7 +64,7 @@ class DateParserSv(DateParser): u'c:a' : Date.MOD_ABOUT } - bce = ["f Kr"] + bce = [u"f Kr"] calendar_to_int = { u'gregoriansk ' : Date.CAL_GREGORIAN, @@ -128,20 +128,20 @@ class DateDisplaySv(DateDisplay): ) calendar = ( - "", - " (juliansk)", - " (hebreisk)", - " (fransk republikansk)", - " (persisk)", - " (islamisk)", - " (svensk)" + u"", + u" (juliansk)", + u" (hebreisk)", + u" (fransk republikansk)", + u" (persisk)", + u" (islamisk)", + u" (svensk)" ) - _mod_str = ("", u"före ", u"efter ", u"c:a ", "", "", "") + _mod_str = (u"", u"före ", u"efter ", u"c:a ", u"", u"", u"") - _qual_str = ("", u"uppskattat ", u"beräknat ") + _qual_str = (u"", u"uppskattat ", u"beräknat ") - _bce_str = "%s f Kr" + _bce_str = u"%s f Kr" def display(self, date): """