home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 February / maximum-cd-2011-02.iso / DiscContents / digsby_setup85.exe / lib / gui / pref / prefstrings.pyo (.txt) < prev   
Encoding:
Python Compiled Bytecode  |  2010-11-24  |  2.0 KB  |  59 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.6)
  3.  
  4. import sys
  5. from config import platformName
  6. tabnames = [
  7.     ('accounts', _('Accounts')),
  8.     ('general_profile', _('General & Profile')),
  9.     ('appearance', _('Skins')),
  10.     ('contact_list', _('Buddy List')),
  11.     ('text_conversations', _('Conversations')),
  12.     ('files', _('File Transfers')),
  13.     ('status', _('Status')),
  14.     ('privacy', _('Privacy')),
  15.     ('notifications', _('Notifications')),
  16.     ('widgets', _('Widgets')),
  17.     ('research', _('Research Module'))]
  18. if platformName != 'mac':
  19.     tabnames.extend([])
  20.  
  21. if getattr(sys, 'DEV', False):
  22.     from path import path
  23.     location = path(__file__)
  24.     pg_dev_loc = location.parent / 'pg_dev.py'
  25.     if pg_dev_loc.isfile():
  26.         tabnames.extend([
  27.             ('dev', _('Developer'))])
  28.     
  29.  
  30. from gui.pref.prefsearchable import *
  31.  
  32. class StringStorage(dict):
  33.     
  34.     def __call__(self, s):
  35.         
  36.         try:
  37.             return self[s]
  38.         except KeyError:
  39.             return s
  40.  
  41.  
  42.  
  43. L = locals()
  44. for module, nice_name in tabnames:
  45.     
  46.     try:
  47.         strs = L[module]
  48.         L[module] = StringStorage((lambda .0: for s in .0:
  49. (s, _(s)))(strs))
  50.     continue
  51.     except KeyError:
  52.         continue
  53.     
  54.  
  55.  
  56. all = dict((lambda .0: for module, nice_name in .0:
  57. if module in L:
  58. (module, L[module])continue)(tabnames))
  59.