home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyo (Python 2.6)
-
- import sys
- from config import platformName
- tabnames = [
- ('accounts', _('Accounts')),
- ('general_profile', _('General & Profile')),
- ('appearance', _('Skins')),
- ('contact_list', _('Buddy List')),
- ('text_conversations', _('Conversations')),
- ('files', _('File Transfers')),
- ('status', _('Status')),
- ('privacy', _('Privacy')),
- ('notifications', _('Notifications')),
- ('widgets', _('Widgets')),
- ('research', _('Research Module'))]
- if platformName != 'mac':
- tabnames.extend([])
-
- if getattr(sys, 'DEV', False):
- from path import path
- location = path(__file__)
- pg_dev_loc = location.parent / 'pg_dev.py'
- if pg_dev_loc.isfile():
- tabnames.extend([
- ('dev', _('Developer'))])
-
-
- from gui.pref.prefsearchable import *
-
- class StringStorage(dict):
-
- def __call__(self, s):
-
- try:
- return self[s]
- except KeyError:
- return s
-
-
-
- L = locals()
- for module, nice_name in tabnames:
-
- try:
- strs = L[module]
- L[module] = StringStorage((lambda .0: for s in .0:
- (s, _(s)))(strs))
- continue
- except KeyError:
- continue
-
-
-
- all = dict((lambda .0: for module, nice_name in .0:
- if module in L:
- (module, L[module])continue)(tabnames))
-