diff --git a/MMM-GoogleCalendar.js b/MMM-GoogleCalendar.js index 6669522..5a8c3bf 100644 --- a/MMM-GoogleCalendar.js +++ b/MMM-GoogleCalendar.js @@ -680,7 +680,7 @@ Module.register("MMM-GoogleCalendar", { event.today = event.startDate >= today && event.startDate < today + 24 * 60 * 60 * 1000; - event.title = event.summary; + event.title = event.summary === undefined ? this.translate("PRIVATE_EVENT") : event.summary; /* if sliceMultiDayEvents is set to true, multiday events (events exceeding at least one midnight) are sliced into days, * otherwise, esp. in dateheaders mode it is not clear how long these events are. diff --git a/translations/en.json b/translations/en.json index 4dca96f..a234e6d 100644 --- a/translations/en.json +++ b/translations/en.json @@ -6,5 +6,6 @@ "INVALID_CREDENTIALS_TYPE": "Invalid credentials.json format. Please ensure you are using 'Desktop application' credentials as per the setup guide (missing 'installed' key).", "ERROR_TOKEN_EXCHANGE": "Failed to exchange authorization code for token. Please try authorizing again or check server logs.", "ERROR_LOADING_CREDENTIALS": "Error loading credentials.json. Ensure the file exists in the module directory and has correct permissions.", - "ERROR_PARSING_CREDENTIALS": "Error parsing credentials.json. Please ensure the file is valid JSON." + "ERROR_PARSING_CREDENTIALS": "Error parsing credentials.json. Please ensure the file is valid JSON.", + "PRIVATE_EVENT": "Private Event" }