Skip to content

Commit

Permalink
SAK-43507. Changes to show tool names internationalized in Portal Bul…
Browse files Browse the repository at this point in the history
…lhorns alerts (sakaiproject#8919)

Co-authored-by: Mateu Llas Rubio <[email protected]>
  • Loading branch information
mateullas and Mateu Llas Rubio authored Jan 4, 2021
1 parent bcddd00 commit e8f01d2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
10 changes: 5 additions & 5 deletions library/src/morpheus-master/js/src/sakai.morpheus.bullhorns.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@

const formattedStartDate = formatDate({epochSecond: startDate});

var toolName = "Announcements";
var toolName = i18n.announcementsTool;
if ("assignments" === tool) {
toolName = "Assignments";
toolName = i18n.assignmentsTool;
} else if ("commons" === tool) {
toolName = "Commons";
toolName = i18n.commonsTool;
} else if ("lessonbuilder" === tool) {
toolName = "Lessons";
toolName = i18n.lessonsTool;
} else if ("profile" === tool) {
toolName = "Social Alerts";
toolName = i18n.socialAlerts;
}

return `
Expand Down
5 changes: 5 additions & 0 deletions portal/portal-impl/impl/src/bundle/bullhorns.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ unrecognisedAlert = Unrecognised alert
academicCommentCreated = \u0020commented on your post, or on a post you commented on, in "{0}"
academicLessonBuilderCommentCreate = \u0020commented on a lessons page in "{0}"
alertsFrom = alerts from
announcementsTool = Announcements
assignmentsTool = Assignments
commonsTool = Commons
lessonsTool = Lessons
socialAlerts = Social Alerts
5 changes: 5 additions & 0 deletions portal/portal-impl/impl/src/bundle/bullhorns_ca.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ unrecognisedAlert=Alerta desconeguda
academicCommentCreated=comentat en una entrada vostra, o en una entrada que heu comentat, a "{0}"
academicLessonBuilderCommentCreate=ha fet comentaris en una p\u00e0gina de l''eina Lli\u00e7ons a "{0}"
alertsFrom=alertes des de
announcementsTool = Anuncis
assignmentsTool = Activitats
commonsTool = Mur
lessonsTool = Lli\u00e7ons
socialAlerts = Alertes socials
5 changes: 5 additions & 0 deletions portal/portal-impl/impl/src/bundle/bullhorns_es.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ unrecognisedAlert=Alerta desconocida
academicCommentCreated=comentado en su entrada, o en una entrada que usted ha comentado, en "{0}"
academicLessonBuilderCommentCreate=\ ha comentado en una p\u00e1gina de contenidos en "{0}"
alertsFrom=alertas desde
announcementsTool = Anuncios
assignmentsTool = Tareas
commonsTool = Muro
lessonsTool = Contenidos
socialAlerts = Alertas sociales

0 comments on commit e8f01d2

Please sign in to comment.