X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fajax%2FGetTimesAjaxPage.java;h=02fd0c1c917ebec45036230319a0d978f45d63ef;hb=135f9f7972e551fb8001f078e5379e386764e947;hp=97706a988194339a1ce78ced914d4dc2a97c22e9;hpb=1e9a08c2b73b16dc178437eb8c8025aaa083fcca;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/ajax/GetTimesAjaxPage.java b/src/main/java/net/pterodactylus/sone/web/ajax/GetTimesAjaxPage.java index 97706a9..02fd0c1 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/GetTimesAjaxPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/GetTimesAjaxPage.java @@ -1,5 +1,5 @@ /* - * Sone - GetTimesAjaxPage.java - Copyright © 2010–2015 David Roden + * Sone - GetTimesAjaxPage.java - Copyright © 2010–2016 David Roden * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software @@ -150,10 +150,10 @@ public class GetTimesAjaxPage extends JsonPage { String text; long refresh; if (age < 0) { - text = webInterface.getL10n().getDefaultString("View.Time.InTheFuture"); + text = webInterface.getL10n().getString("View.Time.InTheFuture"); refresh = TimeUnit.MINUTES.toMillis(5); } else if (age < TimeUnit.SECONDS.toMillis(20)) { - text = webInterface.getL10n().getDefaultString("View.Time.AFewSecondsAgo"); + text = webInterface.getL10n().getString("View.Time.AFewSecondsAgo"); refresh = TimeUnit.SECONDS.toMillis(10); } else if (age < TimeUnit.SECONDS.toMillis(45)) { text = webInterface.getL10n().getString("View.Time.HalfAMinuteAgo");