Final i18n process fixes

This commit is contained in:
Andrew Williams
2009-01-17 23:41:29 +00:00
parent c2eddc3a6c
commit d9cf55c3a5
5 changed files with 105 additions and 23 deletions

View File

@@ -39,7 +39,7 @@ class OpenboxLogout():
# Start logger and gettext/i18n
self.logger = logging.getLogger('OpenboxLogout')
gettext.install('cb-openbox-logout', '%s/locale' % self.determine_path(), unicode=1)
gettext.install('openboxlogout', '%s/locale' % self.determine_path(), unicode=1)
# Start dbus interface
bus = dbus.SystemBus()
@@ -189,6 +189,7 @@ class OpenboxLogout():
# Load and parse button list
validbuttons = ['cancel', 'logout', 'restart', 'shutdown', 'suspend', 'hibernate', 'safesuspend', 'lock', 'switch']
buttonname = [_('cancel'), _('logout'), _('restart'), _('shutdown'), _('suspend'), _('hibernate'), _('safesuspend'), _('lock'), _('switch')]
try:
blist = self.parser.get("looks", "buttons")