Browse Source

Convert existing 0.5.x language string to new style AND write back to INI file.

Plush now needs a default color ("gold").
tags/0.6.0
ShyPike 15 years ago
parent
commit
e724ebaba0
  1. 5
      sabnzbd/__init__.py
  2. 2
      sabnzbd/constants.py

5
sabnzbd/__init__.py

@ -222,9 +222,12 @@ def initialize(pause_downloader = False, clean_up = False, evalSched=False, repa
### Set cache limit
ArticleCache.do.new_limit(cfg.cache_limit.get_int())
### Handle language upgrade from 0.5.x to 0.6.x
cfg.language.set(LANG_MAP.get(cfg.language(), 'en'))
### Set language files
lang.set_locale_info('SABnzbd', DIR_LANGUAGE)
lang.set_language(LANG_MAP.get(cfg.language(), cfg.language()))
lang.set_language(cfg.language())
sabnzbd.api.cache_skin_trans()
### Check for old queue (when a new queue is not present)

2
sabnzbd/constants.py

@ -80,7 +80,7 @@ DEF_INTERFACES = 'interfaces'
DEF_INT_LANGUAGE = 'locale'
DEF_EMAIL_TMPL = 'email'
DEF_STDINTF = 'smpl'
DEF_SKIN_COLORS = {'smpl':'white', 'classic':'darkblue', 'mobile':'light'}
DEF_SKIN_COLORS = {'smpl':'white', 'classic':'darkblue', 'mobile':'light', 'plush' : 'gold'}
DEF_MAIN_TMPL = 'templates/main.tmpl'
DEF_INI_FILE = 'sabnzbd.ini'
DEF_HOST = 'localhost'

Loading…
Cancel
Save