From 5b0ad4fadacbc30ed528cf805ca68d865c0a952d Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Wed, 5 Aug 2015 11:12:57 +0200 Subject: [PATCH] Switched to I18N.tr method (_ is deprecated) --- .../cc/arduino/contributions/ContributionsSelfCheck.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/cc/arduino/contributions/ContributionsSelfCheck.java b/app/src/cc/arduino/contributions/ContributionsSelfCheck.java index 83491108e..176049944 100644 --- a/app/src/cc/arduino/contributions/ContributionsSelfCheck.java +++ b/app/src/cc/arduino/contributions/ContributionsSelfCheck.java @@ -14,7 +14,7 @@ import javax.swing.*; import javax.swing.event.HyperlinkListener; import java.util.TimerTask; -import static processing.app.I18n._; +import static processing.app.I18n.tr; public class ContributionsSelfCheck extends TimerTask { @@ -59,11 +59,11 @@ public class ContributionsSelfCheck extends TimerTask { String text; if (updatableLibraries > 0 && updatablePlatforms <= 0) { - text = I18n.format(_("
Update available for some of your {0}libraries{1}"), "", ""); + text = I18n.format(tr("
Update available for some of your {0}libraries{1}"), "", ""); } else if (updatableLibraries <= 0 && updatablePlatforms > 0) { - text = I18n.format(_("
Update available for some of your {0}boards{1}"), "", ""); + text = I18n.format(tr("
Update available for some of your {0}boards{1}"), "", ""); } else { - text = I18n.format(_("
Update available for some of your {0}boards{1} and {2}libraries{3}"), "", "", "", ""); + text = I18n.format(tr("
Update available for some of your {0}boards{1} and {2}libraries{3}"), "", "", "", ""); } if (cancelled) {