# -*- coding: UTF-8 -*-
#various configuration for html rendering

html_root_rel2generator =  '../'
html_root_rel2html =  '../'  #multilanguage version would require "../../"
html_root = html_root_rel2html;
win_installs_rel2generator = '../../../Programos/';
win_installs_rel2launchexe = '/../Programos/';
#lch_start_node_installs = '..\\Programos\\'; # launcheriui reikia paduoti tik ..\\Programos , nes jis skaiciuoja nuo \bin\ katalogo
##lch_start_node_html = '../autorun/html/'; # launcheriui reikia paduoti tik ..\\Programos , nes jis skaiciuoja nuo \bin\ katalogo
lch_root_rel2generator = html_root_rel2generator + "lch/";
img_root_rel2generator = html_root_rel2generator + "images/"
lch_root = html_root_rel2html + "lch/";
img_root = html_root_rel2html + "images/"


install_labels = { 'exe':u'Įdiegti', 'zip':u'Išpakuoti', 'jar':u'Instaliuoti (java start)', 'rundirectly':u'Tiesiogiai paleisti',  'portableinstall':u'Įdiegti nešiojamą versiją (portable)',  '':u'Instaliacijos failas nerastas', 'diropen':u'Atverti katalogą'}
install_icons = { 'exe':'install.png', 'zip':'install_zip.png', 'jar':'install_jar.png', 'rundirectly':'rundirectly.png', 'portableinstall':'portableinstall.png', '':'', 'diropen':'diropen.png'}
for key, value in install_icons.iteritems(): install_icons[key] = img_root + 'functions/' + value;


file_mask = r'.*\.(msi|exe|bat|zip|7z|jar)'
img_mask = r'.*\.(png|gif|jpg)'

####    fields_str ="os, technology, importance, licence, usefor, catname, progname, linuxrun,  installfname, windirectrun, eninstallfname, progwww, enprogwww, downloadwww, endownloadwww, lessonswww, enlessonswww, localised, about, moreinfo, morehtml, comments, shortcommings, targetgroup, firststeps, enabout " \

data_fields_str =    "lang, os, importance, localised, licence, usefor, agegroup, catname, progname, linpackagename, linrecommends, linsuggests, linuxrun,  wininstall, wininstalldependson, winportableinstall, windirectrun, progwww, downloadwww, lindownloadwww, lessonswww, keywords, about, moreabout, techremarks, intro_instructions, shortcommings,  enabout" # + "keywords/tags" (for indexlist)
data_fields = data_fields_str.split(', ') 

## wininstall allways means "namefragment"
## changed:
##add lang , wininstalldepends
## installfname --> wininstallname
## moreinfo, morehtml --> moreabout
## comments --> techremarks
## targetgroup --> agegroup
## firststeps --> intro_instructions

## may be more sense:
## usefor --> applicationarea


targetos = 'w' #'l' #windows / linux #TODO uncomment ;)
if targetos == 'w': targetbrowser = 'kmeleon'
elif targetos == 'l': targetbrowser = 'welcomecenter'
else : targetbrowser = 'firefox'

oslabels = {'w':'Windows', 'l':'Linux', 'i':'www-info'}
oshtmldirs = {'w':'_win/', 'l':'_lin/', 'i':'_www/'}
ospic = {'w':'win.png', 'l':'lin.png',  'i':'www-info.png', 'wine':'wine.png'}
for key, value in ospic.iteritems(): ospic[key] = img_root + 'functions/' + value;
##print "targetbrowser = %s" % targetbrowser

importance_level = 6  #minimum level limit - programs only with higher mark will be included


langs = ['lt', 'en'][:1]
maintitles = {'lt':u'Laisvos programos mokslui 2008', 'en':'Free software 2008'} #<!--for Science and Education-->
default_lang = 'lt'
if not (default_lang): default_lang = langs[0]

menus = {}

# Naudojimo sritis 
##pages = [  't', 'm',  'kl', 'bv', 'p', 's', '-']  ##  pages  to generate (according to codes)   ##Naudojimo sritis (mokymuisi+tyrimams, programavimui,, kūrybai+linksmybėms, Biurui/verslui,  spec)
pages = [  'r', 'e',  'cf', 'ob', 'p', 't', '-'] 
pagenames = ['research', 'education', 'creation-fun', 'office-business', 'programming', 'tools',  'about']
##  maybe: science --> research
menus['lt'] = u'Mokslui <br>(tyrimams), Mokymui(si),  Kūrybai ir<br> pramogoms, Biurui, Programavimui, Sistemos<br> įrankiai,  Apie'.split(', ') ##Kitos,
menus['en'] = 'Research, Education, Creativity <br> and fun, Office, Programing, System<br> tools,  About'.split(', ') ##

titles = {}
titles['lt'] = [title.replace('<br>', '').replace('<br />', '') for title in menus['lt'] ]
titles['en'] = [title.replace('<br>', '').replace('<br />', '') for title in menus['en'] ]



