Translate to Finnish
This commit is contained in:
parent
aa327b7a4b
commit
f81cc8a5fe
@ -154,6 +154,7 @@ instance Yesod App where
|
||||
|]
|
||||
addScript $ StaticR js_bootstrap_min_js
|
||||
addScript $ StaticR js_bootstrap_datepicker_min_js
|
||||
addScript $ StaticR js_locales_bootstrap_datepicker_fi_min_js
|
||||
addScript $ StaticR js_jquery_url_js
|
||||
addScript $ StaticR js_jquery_cookie_js
|
||||
addScript $ StaticR js_jquery_hotkeys_js
|
||||
|
||||
@ -31,7 +31,7 @@ postAddR :: Handler ()
|
||||
postAddR = do
|
||||
checkServerSideUiEnabled
|
||||
VD{caps, j, today} <- getViewData
|
||||
when (CapAdd `notElem` caps) (permissionDenied "Missing the 'add' capability")
|
||||
when (CapAdd `notElem` caps) (permissionDenied "Ei oikeutta lisätä kirjauksia ('add')")
|
||||
|
||||
((res, view), enctype) <- runFormPost $ addForm j today
|
||||
case res of
|
||||
@ -40,7 +40,7 @@ postAddR = do
|
||||
liftIO $ do
|
||||
ensureJournalFileExists f
|
||||
appendToJournalFileOrStdout f (showTransaction t')
|
||||
setMessage "Transaction added."
|
||||
setMessage "Kirjaus lisätty."
|
||||
redirect JournalR
|
||||
FormMissing -> showForm view enctype
|
||||
FormFailure errs -> do
|
||||
@ -49,7 +49,7 @@ postAddR = do
|
||||
where
|
||||
showForm view enctype =
|
||||
sendResponse =<< defaultLayout [whamlet|
|
||||
<h2>Add transaction
|
||||
<h2>Uusi kirjaus
|
||||
<div .row style="margin-top:1em">
|
||||
<form#addform.form.col-xs-12.col-sm-11 method=post enctype=#{enctype}>
|
||||
^{view}
|
||||
@ -60,7 +60,7 @@ postAddR = do
|
||||
putAddR :: Handler RepJson
|
||||
putAddR = do
|
||||
VD{caps, j, opts} <- getViewData
|
||||
when (CapAdd `notElem` caps) (permissionDenied "Missing the 'add' capability")
|
||||
when (CapAdd `notElem` caps) (permissionDenied "Ei oikeutta lisätä kirjauksia ('add')")
|
||||
|
||||
(r :: Result Transaction) <- parseCheckJsonBody
|
||||
case r of
|
||||
|
||||
@ -32,20 +32,20 @@ postEditR :: FilePath -> Handler ()
|
||||
postEditR f = do
|
||||
checkServerSideUiEnabled
|
||||
VD {caps, j} <- getViewData
|
||||
when (CapManage `notElem` caps) (permissionDenied "Missing the 'manage' capability")
|
||||
when (CapManage `notElem` caps) (permissionDenied "Ei oikeutta muokata kirjanpitoa ('manage')")
|
||||
|
||||
(f', txt) <- journalFile404 f j
|
||||
((res, view), enctype) <- runFormPost (editForm f' txt)
|
||||
newtxt <- fromFormSuccess (showForm view enctype) res
|
||||
runExceptT (writeJournalTextIfValidAndChanged f newtxt) >>= \case
|
||||
Left e -> do
|
||||
setMessage $ "Failed to load journal: " <> toHtml e
|
||||
setMessage $ "Kirjanpidon lataaminen epäonnistui: " <> toHtml e
|
||||
showForm view enctype
|
||||
Right () -> do
|
||||
setMessage $ "Saved journal " <> toHtml f <> "\n"
|
||||
setMessage $ "Kirjanpito tallennettu tiedostoon " <> toHtml f <> "\n"
|
||||
redirect JournalR
|
||||
where
|
||||
showForm view enctype =
|
||||
sendResponse <=< defaultLayout $ do
|
||||
setTitle "Edit journal"
|
||||
setTitle "Muokkaa kirjanpitoa"
|
||||
[whamlet|<form method=post enctype=#{enctype}>^{view}|]
|
||||
|
||||
@ -21,16 +21,16 @@ getJournalR :: Handler Html
|
||||
getJournalR = do
|
||||
checkServerSideUiEnabled
|
||||
VD{caps, j, m, opts, q, qopts, today} <- getViewData
|
||||
when (CapView `notElem` caps) (permissionDenied "Missing the 'view' capability")
|
||||
when (CapView `notElem` caps) (permissionDenied "Ei oikeutta katsella kirjanpitoa ('view')")
|
||||
let title = case inAccount qopts of
|
||||
Nothing -> "General Journal"
|
||||
Just (a, inclsubs) -> "Transactions in " <> a <> if inclsubs then "" else " (excluding subaccounts)"
|
||||
title' = title <> if m /= Any then ", filtered" else ""
|
||||
Nothing -> "Kaikki kirjaukset"
|
||||
Just (a, inclsubs) -> "Tapahtumat tilillä " <> a <> if inclsubs then "" else " (poislukien alatilit)"
|
||||
title' = title <> if m /= Any then ", suodatettu" else ""
|
||||
acctlink a = (RegisterR, [("q", replaceInacct q $ accountQuery a)])
|
||||
rspec = (reportspec_ $ cliopts_ opts){_rsQuery = m}
|
||||
items = reverse $ entriesReport rspec j
|
||||
transactionFrag = transactionFragment j
|
||||
|
||||
defaultLayout $ do
|
||||
setTitle "journal - hledger-web"
|
||||
setTitle "päiväkirja - hledger-web"
|
||||
$(widgetFile "journal")
|
||||
|
||||
@ -39,16 +39,16 @@ getManageR :: Handler Html
|
||||
getManageR = do
|
||||
checkServerSideUiEnabled
|
||||
VD{caps, j} <- getViewData
|
||||
when (CapManage `notElem` caps) (permissionDenied "Missing the 'manage' capability")
|
||||
when (CapManage `notElem` caps) (permissionDenied "Ei oikeutta muokata kirjanpitoa ('manage')")
|
||||
defaultLayout $ do
|
||||
setTitle "Manage journal"
|
||||
setTitle "Muokkaa kirjanpitoa"
|
||||
$(widgetFile "manage")
|
||||
|
||||
getDownloadR :: FilePath -> Handler TypedContent
|
||||
getDownloadR f = do
|
||||
checkServerSideUiEnabled
|
||||
VD{caps, j} <- getViewData
|
||||
when (CapManage `notElem` caps) (permissionDenied "Missing the 'manage' capability")
|
||||
when (CapManage `notElem` caps) (permissionDenied "Ei oikeutta muokata kirjanpitoa ('manage')")
|
||||
(f', txt) <- journalFile404 f j
|
||||
addHeader "Content-Disposition" ("attachment; filename=\"" <> T.pack f' <> "\"")
|
||||
sendResponse ("text/plain" :: ByteString, toContent txt)
|
||||
@ -58,49 +58,49 @@ getDownloadR f = do
|
||||
getVersionR :: Handler TypedContent
|
||||
getVersionR = do
|
||||
VD{caps} <- getViewData
|
||||
when (CapView `notElem` caps) (permissionDenied "Missing the 'view' capability")
|
||||
when (CapView `notElem` caps) (permissionDenied "Ei oikeutta katsella kirjanpitoa ('view')")
|
||||
selectRep $ do
|
||||
provideJson $ packageversion
|
||||
|
||||
getAccountnamesR :: Handler TypedContent
|
||||
getAccountnamesR = do
|
||||
VD{caps, j} <- getViewData
|
||||
when (CapView `notElem` caps) (permissionDenied "Missing the 'view' capability")
|
||||
when (CapView `notElem` caps) (permissionDenied "Ei oikeutta katsella kirjanpitoa ('view')")
|
||||
selectRep $ do
|
||||
provideJson $ journalAccountNames j
|
||||
|
||||
getTransactionsR :: Handler TypedContent
|
||||
getTransactionsR = do
|
||||
VD{caps, j} <- getViewData
|
||||
when (CapView `notElem` caps) (permissionDenied "Missing the 'view' capability")
|
||||
when (CapView `notElem` caps) (permissionDenied "Ei oikeutta katsella kirjanpitoa ('view')")
|
||||
selectRep $ do
|
||||
provideJson $ jtxns j
|
||||
|
||||
getPricesR :: Handler TypedContent
|
||||
getPricesR = do
|
||||
VD{caps, j} <- getViewData
|
||||
when (CapView `notElem` caps) (permissionDenied "Missing the 'view' capability")
|
||||
when (CapView `notElem` caps) (permissionDenied "Ei oikeutta katsella kirjanpitoa ('view')")
|
||||
selectRep $ do
|
||||
provideJson $ map priceDirectiveToMarketPrice $ jpricedirectives j
|
||||
|
||||
getCommoditiesR :: Handler TypedContent
|
||||
getCommoditiesR = do
|
||||
VD{caps, j} <- getViewData
|
||||
when (CapView `notElem` caps) (permissionDenied "Missing the 'view' capability")
|
||||
when (CapView `notElem` caps) (permissionDenied "Ei oikeutta katsella kirjanpitoa ('view')")
|
||||
selectRep $ do
|
||||
provideJson $ (M.keys . jinferredcommodities) j
|
||||
|
||||
getAccountsR :: Handler TypedContent
|
||||
getAccountsR = do
|
||||
VD{caps, j} <- getViewData
|
||||
when (CapView `notElem` caps) (permissionDenied "Missing the 'view' capability")
|
||||
when (CapView `notElem` caps) (permissionDenied "Ei oikeutta katsella kirjanpitoa ('view')")
|
||||
selectRep $ do
|
||||
provideJson $ laccounts $ ledgerFromJournal Any j
|
||||
|
||||
getAccounttransactionsR :: Text -> Handler TypedContent
|
||||
getAccounttransactionsR a = do
|
||||
VD{caps, j} <- getViewData
|
||||
when (CapView `notElem` caps) (permissionDenied "Missing the 'view' capability")
|
||||
when (CapView `notElem` caps) (permissionDenied "Ei oikeutta katsella kirjanpitoa ('view')")
|
||||
let
|
||||
rspec = defreportspec
|
||||
thisacctq = Acct $ accountNameToAccountRegex a -- includes subs
|
||||
|
||||
@ -27,11 +27,11 @@ getRegisterR :: Handler Html
|
||||
getRegisterR = do
|
||||
checkServerSideUiEnabled
|
||||
VD{caps, j, m, opts, q, qopts, today} <- getViewData
|
||||
when (CapView `notElem` caps) (permissionDenied "Missing the 'view' capability")
|
||||
when (CapView `notElem` caps) (permissionDenied "Ei oikeutta katsella kirjanpitoa ('view')")
|
||||
|
||||
let (a,inclsubs) = fromMaybe ("all accounts",True) $ inAccount qopts
|
||||
s1 = if inclsubs then "" else " (excluding subaccounts)"
|
||||
s2 = if m /= Any then ", filtered" else ""
|
||||
let (a,inclsubs) = fromMaybe ("kaikki tilit",True) $ inAccount qopts
|
||||
s1 = if inclsubs then "" else " (poislukien alitilit)"
|
||||
s2 = if m /= Any then ", suodatettu" else ""
|
||||
header = a <> s1 <> s2
|
||||
|
||||
let rspec = reportspec_ (cliopts_ opts)
|
||||
@ -47,12 +47,12 @@ getRegisterR = do
|
||||
tail $ (", "<$xs) ++ [""]
|
||||
items = accountTransactionsReport rspec{_rsQuery=m} j acctQuery
|
||||
balancelabel
|
||||
| isJust (inAccount qopts), balanceaccum_ (_rsReportOpts rspec) == Historical = "Historical Total"
|
||||
| isJust (inAccount qopts) = "Period Total"
|
||||
| otherwise = "Total"
|
||||
| isJust (inAccount qopts), balanceaccum_ (_rsReportOpts rspec) == Historical = "Historiallinen saldo"
|
||||
| isJust (inAccount qopts) = "Kauden saldo"
|
||||
| otherwise = "Saldo"
|
||||
transactionFrag = transactionFragment j
|
||||
defaultLayout $ do
|
||||
setTitle "register - hledger-web"
|
||||
setTitle "kirjaukset - hledger-web"
|
||||
$(widgetFile "register")
|
||||
|
||||
-- cf. Hledger.Reports.AccountTransactionsReport.accountTransactionsReportItems
|
||||
|
||||
@ -36,7 +36,7 @@ postUploadR :: FilePath -> Handler ()
|
||||
postUploadR f = do
|
||||
checkServerSideUiEnabled
|
||||
VD {caps, j} <- getViewData
|
||||
when (CapManage `notElem` caps) (permissionDenied "Missing the 'manage' capability")
|
||||
when (CapManage `notElem` caps) (permissionDenied "Ei oikeutta muokata kirjanpitoa ('manage')")
|
||||
|
||||
(f', _) <- journalFile404 f j
|
||||
((res, view), enctype) <- runFormPost (uploadForm f')
|
||||
@ -48,20 +48,20 @@ postUploadR f = do
|
||||
newtxt <- case TE.decodeUtf8' lbs of
|
||||
Left e -> do
|
||||
setMessage $
|
||||
"Encoding error: '" <> toHtml (show e) <> "'. " <>
|
||||
"If your file is not UTF-8 encoded, try the 'edit form', " <>
|
||||
"where the transcoding should be handled by the browser."
|
||||
"Merkistövirhe: '" <> toHtml (show e) <> "'. " <>
|
||||
"Jos tiedostosi ei käytä UTF-8 merkistöä, kokeile 'muokkaa'-sivua," <>
|
||||
"jolla selaimesi pitäisi huolehtia merkistön muuntamisesta puolestasi."
|
||||
showForm view enctype
|
||||
Right newtxt -> return newtxt
|
||||
runExceptT (writeJournalTextIfValidAndChanged f newtxt) >>= \case
|
||||
Left e -> do
|
||||
setMessage $ "Failed to load journal: " <> toHtml e
|
||||
setMessage $ "Kirjanpidon lataaminen epäonnistui: " <> toHtml e
|
||||
showForm view enctype
|
||||
Right () -> do
|
||||
setMessage $ "File " <> toHtml f <> " uploaded successfully"
|
||||
setMessage $ "Tiedoston " <> toHtml f <> " lataaminen onnistui!"
|
||||
redirect JournalR
|
||||
where
|
||||
showForm view enctype =
|
||||
sendResponse <=< defaultLayout $ do
|
||||
setTitle "Upload journal"
|
||||
setTitle "Korvaa tiedosto"
|
||||
[whamlet|<form method=post enctype=#{enctype}>^{view}|]
|
||||
|
||||
@ -38,7 +38,7 @@ addModal addR j today = do
|
||||
<div .modal-content>
|
||||
<div .modal-header>
|
||||
<button type="button" .close data-dismiss="modal" aria-hidden="true">×
|
||||
<h3 .modal-title #addLabel>Add a transaction
|
||||
<h3 .modal-title #addLabel>Uusi kirjaus
|
||||
<div .modal-body>
|
||||
<form#addform.form action=@{addR} method=POST enctype=#{addEnctype}>
|
||||
^{addView}
|
||||
@ -80,8 +80,8 @@ addForm j today = identifyForm "add" $ \extra -> do
|
||||
| f `elem` fs = Right f
|
||||
| otherwise = Left $ MsgInputNotFound $ T.pack f
|
||||
-- field settings
|
||||
dateSettings = FieldSettings "date" Nothing Nothing (Just "date") [("class", "form-control input-lg"), ("placeholder", "Date")]
|
||||
descSettings = FieldSettings "desc" Nothing Nothing (Just "description") [("class", "form-control input-lg typeahead"), ("placeholder", "Description"), ("size", "40")]
|
||||
dateSettings = FieldSettings "date" Nothing Nothing (Just "date") [("class", "form-control input-lg"), ("placeholder", "Päiväys")]
|
||||
descSettings = FieldSettings "desc" Nothing Nothing (Just "description") [("class", "form-control input-lg typeahead"), ("placeholder", "Selite"), ("size", "40")]
|
||||
acctSettings = FieldSettings "account" Nothing Nothing (Just "account") []
|
||||
amtSettings = FieldSettings "amount" Nothing Nothing (Just "amount") []
|
||||
fileSettings = FieldSettings "file" Nothing Nothing (Just "file") [("class", "form-control input-lg")]
|
||||
|
||||
@ -92,6 +92,7 @@ extra-source-files:
|
||||
static/js/jquery.js
|
||||
static/js/jquery.min.js
|
||||
static/js/jquery.url.js
|
||||
static/js/locales/bootstrap-datepicker.fi.min.js
|
||||
static/js/typeahead.bundle.js
|
||||
static/js/typeahead.bundle.min.js
|
||||
templates/add-form.hamlet
|
||||
|
||||
@ -14,6 +14,7 @@ $(document).ready(function() {
|
||||
autoclose: true,
|
||||
format: 'yyyy-mm-dd',
|
||||
todayHighlight: true,
|
||||
language: 'fi',
|
||||
weekStart: 1 // Monday
|
||||
});;
|
||||
|
||||
@ -109,11 +110,11 @@ function registerChart($container, series) {
|
||||
/* https://github.com/krzysu/flot.tooltip */
|
||||
tooltip: true,
|
||||
tooltipOpts: {
|
||||
xDateFormat: "%Y/%m/%d",
|
||||
xDateFormat: "%d.%m.%Y",
|
||||
content:
|
||||
function(label, x, y, flotitem) {
|
||||
var data = flotitem.series.data[flotitem.dataIndex];
|
||||
return data[3]+" balance on %x after "+data[2]+" posted by transaction:<pre>"+data[4]+"</pre>";
|
||||
return data[3]+" saldoa %x sen jälkeen, kun siirrettiin "+data[2]+" kirjauksella: <pre>"+data[4]+"</pre>";
|
||||
},
|
||||
onHover: function(flotitem, $tooltipel) {
|
||||
$tooltipel.css('border-color',flotitem.series.color);
|
||||
@ -193,8 +194,8 @@ function addformAddPosting() {
|
||||
$('#addform .account-postings').append( $('#addform .account-group:last').clone().addClass('added-row') );
|
||||
// renumber and clear the new last account and amount fields
|
||||
var n = $('#addform .account-group').length;
|
||||
$('.account-input:last').prop('placeholder', 'Account '+n).val('');
|
||||
$('.amount-input:last').prop('placeholder','Amount '+n).val(''); // XXX Enable typehead on dynamically created inputs
|
||||
$('.account-input:last').prop('placeholder', 'Tili '+n).val('');
|
||||
$('.amount-input:last').prop('placeholder','Summa '+n).val(''); // XXX Enable typehead on dynamically created inputs
|
||||
// and move the keypress handler to the new last amount field
|
||||
addformLastAmountBindKey();
|
||||
}
|
||||
|
||||
1
hledger-web/static/js/locales/bootstrap-datepicker.fi.min.js
vendored
Normal file
1
hledger-web/static/js/locales/bootstrap-datepicker.fi.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!function(a){a.fn.datepicker.dates.fi={days:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],daysShort:["sun","maa","tii","kes","tor","per","lau"],daysMin:["su","ma","ti","ke","to","pe","la"],months:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],monthsShort:["tam","hel","maa","huh","tou","kes","hei","elo","syy","lok","mar","jou"],today:"tänään",clear:"Tyhjennä",weekStart:1,format:"d.m.yyyy"}}(jQuery);
|
||||
@ -40,23 +40,23 @@
|
||||
<div .form-group .row .account-group style="padding-left:1em;">
|
||||
<div .col-sm-9.col-xs-9 :isJust accE:.has-error>
|
||||
<input .account-input.form-control.input-lg.typeahead type=text
|
||||
name=account placeholder="Account #{n}" value="#{acc}">
|
||||
name=account placeholder="Tili #{n}" value="#{acc}">
|
||||
$maybe err <- accE
|
||||
<span .help-block .error-block>_{err}
|
||||
<div .col-sm-3.col-xs-3 :isJust amtE:.has-error>
|
||||
<input .amount-input.form-control.input-lg type=text
|
||||
name=amount placeholder="Amount #{n}" value="#{amt}">
|
||||
name=amount placeholder="Summa #{n}" value="#{amt}">
|
||||
$maybe err <- amtE
|
||||
<span .help-block .error-block>_{err}
|
||||
|
||||
<div .row>
|
||||
<div .col-sm-9.col-xs-9>
|
||||
$if length files > 1
|
||||
Add to:
|
||||
Kirjaa tiedostoon:
|
||||
|
||||
<div style="display:inline-block; width:auto;" .form-group :isJust (fvErrors fileView):.has-error>
|
||||
^{fvInput fileView}
|
||||
$maybe err <- fvErrors fileView
|
||||
<span .help-block .error-block>#{err}
|
||||
<div .col-sm-3.col-xs-3 style="text-align:right;">
|
||||
<button type=submit .btn .btn-default .btn-lg name=submit style="font-weight:bold;">Save
|
||||
<button type=submit .btn .btn-default .btn-lg name=submit style="font-weight:bold;">Tallenna
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
<tr :here == journalR:.inacct>
|
||||
<td .top .acct>
|
||||
<a href=@{journalR} :here == journalR:.inacct
|
||||
title="Show general journal entries, most recent first">
|
||||
Journal
|
||||
title="Näytä päiväkirjan kirjaukset uusimmasta vanhimpaan">
|
||||
Kirjanpito
|
||||
<td .top>
|
||||
$forall (acct, adisplay, aindent, abal) <- items
|
||||
<tr
|
||||
@ -12,11 +12,11 @@ $forall (acct, adisplay, aindent, abal) <- items
|
||||
<div .ff-wrapper>
|
||||
\#{indent aindent}
|
||||
<a.acct-name href="@?{(registerR, [("q", replaceInacct q $ accountQuery acct)])}"
|
||||
title="Show transactions affecting this account and subaccounts">
|
||||
title="Näytä tähän tiliin ja sen alitileihin vaikuttavat kirjaukset">
|
||||
#{adisplay}
|
||||
$if hasSubAccounts acct
|
||||
<a href="@?{(registerR, [("q", replaceInacct q $ accountOnlyQuery acct)])}" .only.hidden-sm.hidden-xs
|
||||
title="Show transactions affecting this account but not subaccounts">only
|
||||
title="Näytä vain juuri tähän tiliin vaikuttavat kirjaukset">only
|
||||
<td>
|
||||
^{mixedAmountAsHtml abal}
|
||||
<tr .total>
|
||||
|
||||
@ -17,19 +17,19 @@ $if elem CapView caps
|
||||
<div #message .alert.alert-info>#{m}
|
||||
$if elem CapView caps
|
||||
<form#searchform.input-group method=GET>
|
||||
<input .form-control name=q value=#{q} placeholder="Search"
|
||||
title="Enter hledger search patterns to filter the data below">
|
||||
<input .form-control name=q value=#{q} placeholder="Hae"
|
||||
title="Syötä hakuehtoja rajataksesi alla olevaa dataa">
|
||||
<div .input-group-btn>
|
||||
$if not (T.null q)
|
||||
<a href=@{here} .btn .btn-default title="Clear search terms">
|
||||
<a href=@{here} .btn .btn-default title="Tyhjennä hakuehdot">
|
||||
<span .glyphicon .glyphicon-remove-circle>
|
||||
<button .btn .btn-default type=submit title="Apply search terms">
|
||||
<button .btn .btn-default type=submit title="Hae">
|
||||
<span .glyphicon .glyphicon-search>
|
||||
$if elem CapManage caps
|
||||
<a href="@{ManageR}" .btn.btn-default title="Manage journal files">
|
||||
<a href="@{ManageR}" .btn.btn-default title="Hallinnoi kirjanpidon tiedostoja">
|
||||
<span .glyphicon .glyphicon-wrench>
|
||||
<button .btn .btn-default type=button data-toggle="modal" data-target="#helpmodal"
|
||||
title="Show search and general help">
|
||||
title="Näytä käyttöohjeita">
|
||||
<span .glyphicon .glyphicon-question-sign>
|
||||
^{widget}
|
||||
|
||||
@ -38,43 +38,43 @@ $if elem CapView caps
|
||||
<div .modal-content>
|
||||
<div .modal-header>
|
||||
<button type="button" .close data-dismiss="modal" aria-hidden="true">×
|
||||
<h3 .modal-title #helpLabel>Help
|
||||
<h3 .modal-title #helpLabel>Ohjeet
|
||||
<div .modal-body>
|
||||
<div .row>
|
||||
<div .col-xs-6>
|
||||
<p>
|
||||
<b>Keyboard shortcuts
|
||||
<b>Pikanäppäimet
|
||||
<ul>
|
||||
<li> <code>h</code> or maybe <code>?</code> - view this help (escape or click to exit)
|
||||
<li> <code>j</code> - go to the Journal view (home)
|
||||
<li> <code>a</code> - add a transaction (escape to cancel)
|
||||
<li> <code>s</code> - toggle sidebar
|
||||
<li> <code>f</code> - focus search form ("find")
|
||||
<li> <code>e</code> - hide empty accounts in sidebar
|
||||
<li> <code>h</code> tai (selaimesta riippuen) myös <code>?</code> - näytä nämä ohjeet (paina <code>esc</code> tai klikkaa ruksia poistuaksesi)
|
||||
<li> <code>j</code> - siirry päiväkirjanäkymään (etusivulle)
|
||||
<li> <code>a</code> - lisää uusi kirjaus (paina <code>esc</code> peruaksesi)
|
||||
<li> <code>s</code> - vaihda sivupalkki näkyviin/piilotetuksi
|
||||
<li> <code>f</code> - kohdista hakukenttään
|
||||
<li> <code>e</code> - piilota nollasaldoiset tilit sivupalkista
|
||||
<p>
|
||||
<b>General
|
||||
<b>Yleistä
|
||||
<ul>
|
||||
<li> The Journal view shows general journal entries, representing zero-sum movements of money (or other commodity) between hierarchical accounts
|
||||
<li> The sidebar shows the resulting accounts and their final balances
|
||||
<li> Parent account balances include subaccount balances
|
||||
<li> Multiple currencies in balances are displayed one above the other
|
||||
<li> Click account name links to see transactions affecting that account, with running balance
|
||||
<li> Click date links to see journal entries on that date
|
||||
<li> Pääkirja näytää kirjauksia, jotka esittävät rahan (tai muun hyödykkeen) täydellisiä siirtoja tilien välillä. Siirron täydellisyydellä tarkoitetaan sitä, ettei siitä ole jätetty mitään osaa kirjaamatta, jolloin hyödykettä ei katoa eikä synny tyhjästä.
|
||||
<li> Sivupalkki näyttää käytetyt tilit ja niiden loppusaldot
|
||||
<li> Ylätilien saldot sisältävät niiden alatilien saldot
|
||||
<li> Eri valuutat esitetään saldoissa päällekkäin
|
||||
<li> Klikkaamalla tilin nimeä näet siihen vaikuttavat kirjaukset ja saldon joka siirron jälkeen
|
||||
<li> Klikkaamalla päiväystä näet silloin kirjatut tapahtumat
|
||||
<div .col-xs-6>
|
||||
<p>
|
||||
<b>Search
|
||||
<b>Haku
|
||||
<ul>
|
||||
<li> <code>acct:REGEXP</code> - filter on to/from account
|
||||
<li> <code>desc:REGEXP</code> - filter on description
|
||||
<li> <code>date:PERIODEXP</code>, <code>date2:PERIODEXP</code> - filter on date or secondary date
|
||||
<li> <code>code:REGEXP</code> - filter on transaction's code (eg check number)
|
||||
<li> <code>status:*</code>, <code>status:!</code>, <code>status:</code> - filter on transaction's cleared status (cleared, pending, uncleared)
|
||||
<!-- <li> <code>empty:BOOL</code> - filter on whether amount is zero -->
|
||||
<li> <code>amt:N</code>, <code>amt:<N</code>, <code>amt:>N</code> - filter on the unsigned amount magnitude. Or with a sign before N, filter on the signed value. (Single-commodity amounts only.)
|
||||
<li> <code>cur:REGEXP</code> - filter on the currency/commodity symbol (must match all of it). Dollar sign must be written as <code>\$</code>
|
||||
<li> <code>tag:NAME</code>, <code>tag:NAME=REGEX</code> - filter on tag name, or tag name and value
|
||||
<!-- <li> <code>depth:N</code> - filter out accounts below this depth -->
|
||||
<li> <code>real:BOOL</code> - filter on postings' real/virtual-ness
|
||||
<li> Enclose search patterns containing spaces in single or double quotes
|
||||
<li> Prepend <code>not:</code> to negate a search term
|
||||
<li> Description, account, status query terms are OR'ed, others are AND'ed.
|
||||
<li> <code>acct:REGEXP</code> - suodata tilin nimellä
|
||||
<li> <code>desc:REGEXP</code> - suodata selitteellä
|
||||
<li> <code>date:AIKAVÄLI</code>, <code>date2:AIKAVÄLI</code> - suodata päiväyksen tai toissijaisen päiväkysen perusteella.
|
||||
<li> <code>code:REGEXP</code> - suodata kirjauksen numerolla (esim. tilisiirron viitenumero)
|
||||
<li> <code>status:*</code>, <code>status:!</code>, <code>status:</code> - suodata kirjauksen tilan perusteella (valmis, kesken, tarkistamaton)
|
||||
<!-- <li> <code>empty:BOOL</code> - suodata sen perusteella, onko tilin saldo nolla -->
|
||||
<li> <code>amt:N</code>, <code>amt:<N</code>, <code>amt:>N</code> - suodata summan (itseisarvon) suuruuden perusteella. Etumerkin + tai − lisääminen luvun <code>N</code> eteen rajoittaa suodatuksen vain sen merkkisiin summiin. (ei yhdistä eri valuuttojen määriä)
|
||||
<li> <code>cur:REGEXP</code> - suodata valuutan/hyödykkeen tunnuksella. (koko tunnuksen täytyy täsmätä)
|
||||
<li> <code>tag:NIMI</code>, <code>tag:NIMI=REGEX</code> - suodata tunnisteen nimellä tai nimellä ja arvolla
|
||||
<!-- <li> <code>depth:N</code> - rajoita niihin tileihin, joilla on alle <code>N</code> ylätiliä -->
|
||||
<li> <code>real:BOOL</code> - suodata siirtojen todellisuuden/näennäisyyden perusteella. Näennäissiirtojen summa ei välttämättä ole nolla, eli ne voivat hävittää kirjanpidosta rahaa tai tuoda sitä sinne tyhjästä.
|
||||
<li> Hakuehdot erotellaan välilyönneillä. Välilyönnin voi sisällyttää hakuehtoon ympäröimällä ehdon yksin- tai kaksinkertaisilla suorilla lainausmerkeillä (<code>"</code> tai <code>'</code>)
|
||||
<li> Lisää ehdon alkuun <code>not:</code> valitaksesi ne tapahtumat, jotka eivät toteuta ehtoa
|
||||
<li> Selitteen, tilin nimen ja kirjauksen tilan hakuehdoista riittää toteuttaa yksi, muista ehdoista tapahtuman pitää toteuttaa kaikki tullakseen valituksi.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
#{extra}
|
||||
<h2>
|
||||
Edit file #
|
||||
Muokkaa tiedostoa #
|
||||
<i>#{f}
|
||||
<div.alert.alert-danger>
|
||||
Are you sure? This will overwrite your journal!
|
||||
Oletko varma? Tämä korvaa vanhan tiedoston täysin!
|
||||
<table.table.table-condensed>
|
||||
<tr>
|
||||
<td colspan=2 style="border:0">
|
||||
@ -11,7 +11,7 @@
|
||||
<tr>
|
||||
<td style="border:0">
|
||||
<span.help>
|
||||
^{helplink "file-format" "File format help"}
|
||||
^{helplink "file-format" "Apua tiedostomudon kanssa (englanniksi)"}
|
||||
<td .text-right style="border:0">
|
||||
<a.btn.btn-default href="@{ManageR}">Go back
|
||||
<input.btn.btn-default type=submit value="Save">
|
||||
<a.btn.btn-default href="@{ManageR}">Peruuta
|
||||
<input.btn.btn-default type=submit value="Tallenna">
|
||||
|
||||
@ -3,16 +3,16 @@
|
||||
|
||||
$if elem CapAdd caps
|
||||
<a #addformlink href="#" role="button" style="cursor:pointer; margin-top:1em;"
|
||||
data-toggle="modal" data-target="#addmodal" title="Add a new transaction to the journal">
|
||||
Add a transaction
|
||||
data-toggle="modal" data-target="#addmodal" title="Lisää uusi tapahtuma kirjanpitoon.">
|
||||
Kirjaa tapahtuma
|
||||
|
||||
<div .table-responsive>
|
||||
<table .transactionsreport .table .table-condensed>
|
||||
<thead>
|
||||
<th .date style="text-align:left;">Date
|
||||
<th .description style="text-align:left;">Description
|
||||
<th .account style="text-align:left;">Account
|
||||
<th .amount style="text-align:right;">Amount
|
||||
<th .date style="text-align:left;">Päiväys
|
||||
<th .description style="text-align:left;">Selite
|
||||
<th .account style="text-align:left;">Tili
|
||||
<th .amount style="text-align:right;">Summa
|
||||
|
||||
$forall torig <- items
|
||||
<tr .title ##{transactionFrag torig} title="#{showTransaction torig}">
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
<h2>
|
||||
Your journal's files
|
||||
Kirjanpitosi tiedostot
|
||||
|
||||
<div.row>
|
||||
<div .col-md-6.col-sm-8.col-xs-12>
|
||||
<table .table.table-condensed>
|
||||
<thead>
|
||||
<th>
|
||||
File
|
||||
Tiedosto
|
||||
<th>
|
||||
<tbody>
|
||||
$forall (path, _) <- jfiles j
|
||||
@ -15,8 +15,8 @@
|
||||
#{path}
|
||||
<td style="text-align:right">
|
||||
<a.btn.btn-default href=@{EditR path}>
|
||||
Edit
|
||||
Muokkaa
|
||||
<a.btn.btn-default href=@{UploadR path}>
|
||||
Upload
|
||||
Korvaa uudella
|
||||
<a.btn.btn-default href=@{DownloadR path}>
|
||||
Download
|
||||
Imuroi
|
||||
|
||||
@ -9,11 +9,11 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:left;">
|
||||
Date
|
||||
Päiväys
|
||||
<span .glyphicon.glyphicon-chevron-up>
|
||||
<th style="text-align:left;">Description
|
||||
<th style="text-align:left;">To/From Account(s)
|
||||
<th style="text-align:right; white-space:normal;">Amount Out/In
|
||||
<th style="text-align:left;">Kuvaus
|
||||
<th style="text-align:left;">Tileille/Tileiltä
|
||||
<th style="text-align:right; white-space:normal;">Siirretty summa
|
||||
<th style="text-align:right; white-space:normal;">
|
||||
#{balancelabel}
|
||||
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
<h2>
|
||||
Upload to file #
|
||||
Korvaa tiedosto #
|
||||
<i>#{f}
|
||||
<div.alert.alert-danger>
|
||||
Are you sure? This will overwrite your journal!
|
||||
Oletko varma? Tämä korvaa vanhan tiedoston täysin!
|
||||
<div.form-group>
|
||||
<label .btn.btn-primary for="file">
|
||||
<input type=file id=file name=file style="display:none"
|
||||
onchange="\$('#file-info').html(this.files[0].name)" />
|
||||
Select file
|
||||
Valitse korvattava tiedosto
|
||||
<span .label.label-info id="file-info">
|
||||
<div.form-group>
|
||||
<input .btn.btn-default type=submit value="Upload">
|
||||
<input .btn.btn-default type=submit value="Korvaa">
|
||||
#{extra}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user