Patch: 63_update_default_server_language.patch Author: László 'GCS' Böszörményi Get the default language from the config file, and do not use the hardcoded English. Index: bin/update =================================================================== --- bin/update.orig 2006-08-15 15:14:30.000000000 +0800 +++ bin/update 2006-08-15 15:14:46.000000000 +0800 @@ -121,7 +121,7 @@ # # First, get rid of any lists/ template or lists//en template # that is identical to the global templates/* default. - for gtemplate in os.listdir(os.path.join(mm_cfg.TEMPLATE_DIR, 'en')): + for gtemplate in os.listdir(os.path.join(mm_cfg.TEMPLATE_DIR, mm_cfg.DEFAULT_SERVER_LANGUAGE)): # BAW: get rid of old templates, e.g. admlogin.txt and # handle_opts.html try: @@ -155,14 +155,14 @@ os.unlink(os.path.join(mlist.fullpath(), gtemplate + '.prev')) # Match against the lists//en/* templates try: - fp = open(os.path.join(mlist.fullpath(), 'en', gtemplate)) + fp = open(os.path.join(mlist.fullpath(), mm_cfg.DEFAULT_SERVER_LANGUAGE, gtemplate)) except IOError, e: if e.errno <> errno.ENOENT: raise else: tcksum = md5.new(fp.read()).digest() fp.close() if gcksum == tcksum: - os.unlink(os.path.join(mlist.fullpath(), 'en', gtemplate)) + os.unlink(os.path.join(mlist.fullpath(), mm_cfg.DEFAULT_SERVER_LANGUAGE, gtemplate)) # Match against the templates/* template try: fp = open(os.path.join(mm_cfg.TEMPLATE_DIR, gtemplate))