# innovaphone.presence (14r2 or higher)

A library that contains various functions related to presence.

translateNote(note, lang)
  Translated a note as given by the calendar app to the desired language.
  Parameters:
  note
    The note as received.
  lang
    The two-letter code of the desired language, e.g. "fr"
  return value
    The translated text
  Remarks:
  - The file innovaphone.presence.texts.js needs to be included as well.

var note = "Frei bis 21.03.2024, 14:00 (Beschäftigt: Suggested Fixes) #free #until:1711026000000 #next-activity:busy #next:41:15:42:15"; var translatedNote = innovaphone.presence.translateNote(note, "fr"); document.getElementById("out").innerHTML = translatedNote;