Exemplo n.º 1
0
def _init_locale():
    locale.setlocale(locale.LC_ALL, "")
    set_wrap_on_whitespace("True")
    BaseScreen.set_default_quit_text("Confirm: Quit?",
                                     "Do you really want to quit?",
                                     "Cancel",
                                     "Quit")
Exemplo n.º 2
0
def init_locale():

    locale.setlocale(locale.LC_ALL, "")
    gettext.install("textinstall", "/usr/share/locale", unicode=True)
    set_wrap_on_whitespace(
        _("DONT_TRANSLATE_BUT_REPLACE_msgstr_WITH_True_"
          "OR_False: Should wrap text on whitespace in"
          " this language"))
    BaseScreen.set_default_quit_text(_("Confirm: Quit the Installer?"),
                                     _("Do you want to quit the Installer?"),
                                     _("Cancel"), _("Quit"))
def init_locale():

    locale.setlocale(locale.LC_ALL, "")
    gettext.install("textinstall", "/usr/share/locale", unicode=True)
    set_wrap_on_whitespace(_("DONT_TRANSLATE_BUT_REPLACE_msgstr_WITH_True_"
                             "OR_False: Should wrap text on whitespace in"
                             " this language"))
    BaseScreen.set_default_quit_text(_("Confirm: Quit the Installer?"),
                                     _("Do you want to quit the Installer?"),
                                     _("Cancel"),
                                     _("Quit"))
Exemplo n.º 4
0
def _init_locale():
    '''Initializes the locale'''
    try:
        locale.setlocale(locale.LC_ALL, "")
    except locale.Error:
        print _("System configured with invalid locale(5), "
                 "falling back to C.")
        locale.setlocale(locale.LC_ALL, "C")

    gettext.install("sysconfig", "/usr/share/locale", unicode=True)
    set_wrap_on_whitespace(_("DONT_TRANSLATE_BUT_REPLACE_msgstr_WITH_True_"
                             "OR_False: Should wrap text on whitespace in"
                             " this language"))
    BaseScreen.set_default_quit_text(_("Confirm: Quit?"),
                                     _("Do you really want to quit?"),
                                     _("Cancel"),
                                     _("Quit"))
def _init_locale():
    '''Initializes the locale'''
    try:
        locale.setlocale(locale.LC_ALL, "")
    except locale.Error:
        print _("System configured with invalid locale(5), "
                 "falling back to C.")
        locale.setlocale(locale.LC_ALL, "C")

    gettext.install("sysconfig", "/usr/share/locale", unicode=True)
    set_wrap_on_whitespace(_("DONT_TRANSLATE_BUT_REPLACE_msgstr_WITH_True_"
                             "OR_False: Should wrap text on whitespace in"
                             " this language"))
    BaseScreen.set_default_quit_text(_("Confirm: Quit?"),
                                     _("Do you really want to quit?"),
                                     _("Cancel"),
                                     _("Quit"))