        import gettext
        import os
        home_directory = os.popen("echo $HOME").readline()[0:-1]
        config_directory = home_directory + '/.superkaramba/lwp'
        path_file = open(config_directory + '/theme_path','r')
        theme_path = path_file.readlines()
        print theme_path
        for i in range(len(theme_path)):
            theme_path[i] = theme_path[i].replace('\n','')
        path_file.close()
        if theme_path[2] == 'no_lang':
            language = ''
        else:
            language = theme_path[2]
        print language
        if theme_path[1] == '1' and theme_path[2] != 'no_lang':
            import zipfile
            zip_file = zipfile.ZipFile(theme_path[0])
            mo_file = zip_file.read('locale/' + language + '/LC_MESSAGES/liquid_weather.mo')
            try:
                os.makedirs(home_directory + '/.superkaramba/lwp/locale/' + language + '/LC_MESSAGES')
            except(OSError):
                pass
            try:
                os.mknod(home_directory + '/.superkaramba/lwp/locale/' + language + '/LC_MESSAGES/liquid_weather.mo')
            except(OSError):
                pass
            mo_temp = open(home_directory + '/.superkaramba/lwp/locale/' + language + '/LC_MESSAGES/liquid_weather.mo','w')
            print >> mo_temp, mo_file
            mo_temp.close()
            locale_path = home_directory + '/.superkaramba/lwp/locale'
            log_file = open(home_directory + '/.superkaramba/lwp/log_file', 'w')
            log_file.write(locale_path)
            log_file.close()
        else:
            locale_path = theme_path[0] + 'locale'
        try:
            trans = gettext.translation('liquid_weather', locale_path, languages=[language])
            _ = trans.ugettext
        except:
            _ = lambda(x): x
