X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2FL10nFilter.java;h=d667811d558b02cdc083515d9122920fabf4c80a;hb=e7afeda8d0658bd4c392803cf444f5810fe18471;hp=7ca9a5cae02fe1ac65f77e8e6e079bc04f242bf0;hpb=ffd92ca2374c0b2218e583d02e0bdd24b8c110ae;p=Sone.git
diff --git a/src/main/java/net/pterodactylus/sone/freenet/L10nFilter.java b/src/main/java/net/pterodactylus/sone/freenet/L10nFilter.java
index 7ca9a5c..d667811 100644
--- a/src/main/java/net/pterodactylus/sone/freenet/L10nFilter.java
+++ b/src/main/java/net/pterodactylus/sone/freenet/L10nFilter.java
@@ -1,5 +1,5 @@
/*
- * Sone - L10nFilter.java - Copyright © 2010â2016 David Roden
+ * Sone - L10nFilter.java - Copyright © 2010â2019 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
@@ -25,29 +25,21 @@ import java.util.Map;
import javax.annotation.Nonnull;
-import net.pterodactylus.sone.web.WebInterface;
import net.pterodactylus.util.template.Filter;
import net.pterodactylus.util.template.TemplateContext;
+import freenet.l10n.BaseL10n;
+
/**
* {@link Filter} implementation replaces {@link String} values with their
* translated equivalents.
- *
- * @author David âBombeâ Roden
*/
public class L10nFilter implements Filter {
- /** The web interface. */
- private final WebInterface webInterface;
+ private final BaseL10n l10n;
- /**
- * Creates a new L10n filter.
- *
- * @param webInterface
- * The Sone web interface
- */
- public L10nFilter(WebInterface webInterface) {
- this.webInterface = webInterface;
+ public L10nFilter(BaseL10n l10n) {
+ this.l10n = l10n;
}
/**
@@ -58,9 +50,9 @@ public class L10nFilter implements Filter {
List