You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// if accessibility mode and board updates are available set the button name and clear the anchors
96
+
if(setAccessible && updatablePlatforms) {
97
+
button1Name = tr("Boards");
98
+
openAnchorBoards = "";
99
+
closeAnchorBoards = "";
100
+
}
101
+
else { // when not accessibility mode or no boards to update no button is needed
102
+
button1Name = null;
103
+
}
104
+
105
+
// if accessibility mode and libraries updates are available set the button name and clear the anchors
106
+
if (setAccessible && updatableLibraries) {
107
+
button2Name = tr("Libraries");
108
+
openAnchorLibraries = "";
109
+
closeAnchorLibraries = "";
110
+
}
111
+
else { // when not accessibility mode or no libraries to update no button is needed
112
+
button2Name = null;
113
+
}
114
+
85
115
if (updatableLibraries && !updatablePlatforms) {
86
-
text = I18n.format(tr("Updates available for some of your {0}libraries{1}"), "<a href=\"http://librarymanager/DropdownUpdatableLibrariesItem\">", "</a>");
116
+
text = I18n.format(tr("Updates available for some of your {0}libraries{1}"), openAnchorLibraries, closeAnchorLibraries);
text = I18n.format(tr("Updates available for some of your {0}boards{1}"), "<a href=\"http://boardsmanager/DropdownUpdatableCoresItem\">", "</a>");
118
+
text = I18n.format(tr("Updates available for some of your {0}boards{1}"), openAnchorBoards, closeAnchorBoards);
89
119
} else {
90
-
text = I18n.format(tr("Updates available for some of your {0}boards{1} and {2}libraries{3}"), "<a href=\"http://boardsmanager/DropdownUpdatableCoresItem\">", "</a>", "<a href=\"http://librarymanager/DropdownUpdatableLibrariesItem\">", "</a>");
120
+
text = I18n.format(tr("Updates available for some of your {0}libraries{1} and {2}libraries{3}"), openAnchorBoards, closeAnchorBoards, openAnchorLibraries, closeAnchorLibraries);
0 commit comments