Skip to content

Commit 5b0ad4f

Browse files
author
Federico Fissore
committed
Switched to I18N.tr method (_ is deprecated)
1 parent a43757d commit 5b0ad4f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/src/cc/arduino/contributions/ContributionsSelfCheck.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import javax.swing.event.HyperlinkListener;
1515
import java.util.TimerTask;
1616

17-
import static processing.app.I18n._;
17+
import static processing.app.I18n.tr;
1818

1919
public class ContributionsSelfCheck extends TimerTask {
2020

@@ -59,11 +59,11 @@ public void run() {
5959

6060
String text;
6161
if (updatableLibraries > 0 && updatablePlatforms <= 0) {
62-
text = I18n.format(_("<br/>Update available for some of your {0}libraries{1}"), "<a href=\"http://librarymanager\">", "</a>");
62+
text = I18n.format(tr("<br/>Update available for some of your {0}libraries{1}"), "<a href=\"http://librarymanager\">", "</a>");
6363
} else if (updatableLibraries <= 0 && updatablePlatforms > 0) {
64-
text = I18n.format(_("<br/>Update available for some of your {0}boards{1}"), "<a href=\"http://boardsmanager\">", "</a>");
64+
text = I18n.format(tr("<br/>Update available for some of your {0}boards{1}"), "<a href=\"http://boardsmanager\">", "</a>");
6565
} else {
66-
text = I18n.format(_("<br/>Update available for some of your {0}boards{1} and {2}libraries{3}"), "<a href=\"http://boardsmanager\">", "</a>", "<a href=\"http://librarymanager\">", "</a>");
66+
text = I18n.format(tr("<br/>Update available for some of your {0}boards{1} and {2}libraries{3}"), "<a href=\"http://boardsmanager\">", "</a>", "<a href=\"http://librarymanager\">", "</a>");
6767
}
6868

6969
if (cancelled) {

0 commit comments

Comments
 (0)