From ea6915305be8c4b767e57f1047d1d635c13dedbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Susanna=20Bj=C3=B6rverud?= Date: Fri, 13 Mar 2009 10:56:00 +0100 Subject: [PATCH] Split up unwieldy welcome screen msgstring into parts that actually needs translating. --- ankiqt/ui/view.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/ankiqt/ui/view.py b/ankiqt/ui/view.py index 6a1802dd5..1a08e1956 100644 --- a/ankiqt/ui/view.py +++ b/ankiqt/ui/view.py @@ -252,8 +252,8 @@ class View(object): ########################################################################## def drawWelcomeMessage(self): - self.main.mainWin.welcomeText.setText(_("""\ -

Welcome to Anki!

+ self.main.mainWin.welcomeText.setText("""\ +

%(welcome)s

@@ -261,8 +261,8 @@ class View(object): - +

Add material

-Start adding your own material.

%(add)s

+%(start)s
@@ -274,24 +274,26 @@ Start adding your own material. -

Open Local Deck

+

%(local)s

-

Download Shared Deck

+

%(dl_shared)s

-

Download Personal Deck

+

%(dl_personal)s

-""")) +""" % \ + {"welcome":_("Welcome to Anki!"), "add":_("Add material"), "start":_("Start adding your own material."), \ +"local":_("Open Local Deck"), "dl_shared":_("Download Shared Deck"), "dl_personal":_("Download Personal Deck")}) def drawDeckFinishedMessage(self): "Tell the user the deck is finished."