diff options
author | Matt Wilson <msw@redhat.com> | 2001-07-09 02:06:52 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-07-09 02:06:52 +0000 |
commit | 32f2d230c8caad905afb137e0521ca5683f08347 (patch) | |
tree | 94e7bd721d9452e578449696edeaf15a514aea35 /textw/complete_text.py | |
parent | ddc96989d08b26fe5c42655cebef67013a4b7d4f (diff) | |
download | anaconda-32f2d230c8caad905afb137e0521ca5683f08347.tar.gz anaconda-32f2d230c8caad905afb137e0521ca5683f08347.tar.xz anaconda-32f2d230c8caad905afb137e0521ca5683f08347.zip |
1) copyright
2) calculate and center the text ourselves, translators will NEVER get this
right
3) merged all of the existing translations back into the non-padded english
msgid
Diffstat (limited to 'textw/complete_text.py')
-rw-r--r-- | textw/complete_text.py | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/textw/complete_text.py b/textw/complete_text.py index c4ea81c30..791108a03 100644 --- a/textw/complete_text.py +++ b/textw/complete_text.py @@ -1,12 +1,26 @@ +# +# complete_text.py: text mode congratulations windows +# +# Copyright 2001 Red Hat, Inc. +# +# This software may be freely redistributed under the terms of the GNU +# library public license. +# +# You should have received a copy of the GNU Library Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# + from snack import * from constants_text import * from translate import _ class FinishedWindow: def __call__ (self, screen): - - - screen.pushHelpLine (_(" <Return> to reboot ")) + msg = _("<Return> to reboot") + padding = " " * ((screen.width - len(msg)) / 2) + text = "%s%s%s" % (padding, msg, padding) + screen.pushHelpLine (text) rc = ButtonChoiceWindow (screen, _("Complete"), _("Congratulations, your Red Hat Linux installation is " @@ -27,8 +41,10 @@ class FinishedWindow: class ReconfigFinishedWindow: def __call__ (self, screen): - - screen.pushHelpLine (_(" <Return> to exit ")) + msg = _("<Return> to exit") + padding = " " * ((screen.width - len(msg)) / 2) + text = "%s%s%s" % (padding, msg, padding) + screen.pushHelpLine (text) rc = ButtonChoiceWindow (screen, _("Complete"), _("Congratulations, configuration is complete.\n\n" |