Open killua-eu opened 5 years ago
jazyk browseru je posilany v promenne: $_SERVER['HTTP_ACCEPT_LANGUAGE'] browser posila preferovane nebo nejcasteji pouzivane jazyky, v retezci ktery ma tvar: "cs,sk;q=0.8,en-US;q=0.5,en;q=0.3" php ma funkci locale_accept_from_http(), ktera z toho umi vytahnout prvni jazyk. v tomto pripade funkce vytahla jazyk s kodem "cs"
jazyk pridavam jako novy sloupecek c_language char 2 do tabulky t_users, s defaultni hodnotou "en", pro nove zalozene uzivatele
dale k bodu 4, language detection plugin nainstaluju composerem a vytvorim api kteremu se posle text a on vrati jazyk. bud tim language detection, nebo tim default nastavenym uzivatele. toto api se bude volat primo z rozepsaneho formulare, pred odeslanim.
add a not required element to schema:
the simplified vector for worklog will have:
autofilled & hidden from user:
filled out by user
the ui will look like this:
People can have to set two of the three (dt_start | dt_end | duration): the third will be autocalcullated.
summary is the stuff that you'll fill in. show work as
Use something like https://yaireo.github.io/tagify/ to support @ prefix to tag users and # to tag vectors (autosuggest). Once we got this working, also parse the summary (and description) text to look for this data and autofill some tables.