# Support for the Italian language.
# This file is part of REMIND.
# REMIND is Copyright (C) 1992-2026 by Dianne Skoll
# This file is derived from a translation by Valerio Aimale

TRANSLATE "LANGID" "it"

SET $Sunday "Domenica"
SET $Monday "Lunedì"
SET $Tuesday "Martedì"
SET $Wednesday "Mercoledì"
SET $Thursday "Giovedì"
SET $Friday "Venerdì"
SET $Saturday "Sabato"

SET $January "Gennaio"
SET $February "Febbraio"
SET $March "Marzo"
SET $April "Aprile"
SET $May "Maggio"
SET $June "Giugno"
SET $July "Luglio"
SET $August "Agosto"
SET $September "Settembre"
SET $October "Ottobre"
SET $November "Novembre"
SET $December "Dicembre"

SET $Today "oggi"
SET $Tomorrow "domani"

TRANSLATE "yesterday" "Ieri"
TRANSLATE "are" "sono"
TRANSLATE "were" "erano"
TRANSLATE "done" "completato"

BANNER Promemoria per %w, %d %m %y%o:

SET $Am "am"
SET $Pm "pm"

SET $Ago "fa"
SET $Fromnow "da oggi"

SET $On ""
SET $Now "ora"
SET $At "alle"
SET $Minute "minuto"
SET $Hour "ora"
SET $Is "è"
SET $Was "era"
SET $And "e"
SET $Hplu "a"
SET $Mplu "i"

FSET - subst_bx(a, d, t) iif(d >= $U, "fra " + (d-$U) + " giorni", ($U-d) + " giorni fa")
FSET - subst_p(a, d, t) iif(d==$U+1, "o", "i")
FSET - subst_q(a, d, t) iif(d==$U+1, "a", "e")

FSET - subst_ax(a, d, t) wkday(d) + ", " + day(d) + " " + mon(d) + " " + year(d)
FSET - subst_jx(a, d, t) subst_ax(a, d, t)
FSET - subst_kx(a, d, t) wkday(d) + ", " + day(d) + " " + mon(d)
FSET - subst_ux(a, d, t) subst_ax(a, d, t)
FSET - subst_vx(a, d, t) subst_kx(a, d, t)

FSET - subst_1(a, d, t) iif((d-today())*1440+(t-now())==0, $Now, (d-today())*1440+(t-now())<0, subst_1a((now()-t)+(today()-d)*1440, $Ago), subst_1a((d-today())*1440+(t-now()), $Fromnow))
FSET - subst_1a(diff, when) subst_1b(diff/1440, diff%1440/60, diff%60) + " " + when

FSET - subst_1b(ddiff, hdiff, mdiff) iif(ddiff>0, subst_days(ddiff) + iif(hdiff==0 && mdiff==0, "", " " + $And + " " + subst_1c(hdiff, mdiff)), subst_1c(hdiff, mdiff))
FSET - subst_1c(hdiff, mdiff) iif(hdiff==0, subst_minutes(mdiff), mdiff==0, subst_hours(hdiff), subst_hours(hdiff) + " " + $And + " " + subst_minutes(mdiff))
FSET - subst_days(dd) iif(dd==1, "1 giorno", dd + " giorni")
FSET - subst_minutes(m) iif(m==1, "1 minuto", m + " minuti")
FSET - subst_hours(h) iif(h==1, "1 ora", h + " ore")

FSET - subst_0(a, d, t) iif(abs((d-today())*1440+(t-now()))/60==1, "a", "e")
FSET - subst_9(a, d, t) iif(abs((d-today())*1440+(t-now()))%60==1, "o", "i")
