Author: juiceman
Date: 2008-12-28 05:27:43 +0000 (Sun, 28 Dec 2008)
New Revision: 24805
Modified:
trunk/freenet/src/freenet/clients/http/SimpleHelpToadlet.java
trunk/freenet/src/freenet/l10n/L10n.java
Log:
A few more.
Modified: trunk/freenet/src/freenet/clients/http/SimpleHelpToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/SimpleHelpToadlet.java
2008-12-28 02:49:24 UTC (rev 24804)
+++ trunk/freenet/src/freenet/clients/http/SimpleHelpToadlet.java
2008-12-28 05:27:43 UTC (rev 24805)
@@ -49,8 +49,4 @@
return "GET";
}
- String l10n(String key, String pattern, String value) {
- return L10n.getString("SimpleHelpToadlet."+key, pattern, value);
- }
-
}
Modified: trunk/freenet/src/freenet/l10n/L10n.java
===================================================================
--- trunk/freenet/src/freenet/l10n/L10n.java 2008-12-28 02:49:24 UTC (rev
24804)
+++ trunk/freenet/src/freenet/l10n/L10n.java 2008-12-28 05:27:43 UTC (rev
24805)
@@ -418,7 +418,7 @@
//Provide a way to handle most basic html tags without manually
including the search strings in addL10nSubstitution.
//I know it's ugly, but will only be used rarely. -Juiceman.
public static void addL10nHTML(HTMLNode node, String key){
- addL10nSubstitution(node, key, new String[] { "p", "/p", "b",
"/b", "br", "hr", "pre", "/pre", "i", "/i", "ul", "/ul", "ol", "/ol", "li",
"center", "/center", "strike", "/strike", "blockquote", "/blockquote", "h1",
"/h1", "h2", "/h2", "h3", "/h3", "h4", "/h4", "h5", "/h5", "h6", "/h6",
"strong", "/strong" }, new String[] { "<p>", "</p>", "<b>", "</b>", "<br>",
"<hr>", "<pre>", "</pre>", "<i>", "</i>", "<ul>", "</ul>", "<ol>", "</ol>",
"<li>", "<center>", "</center>", "<strike>", "</strike>", "<blockquote>",
"</blockquote>", "<h1>", "</h1>", "<h2>", "</h2>", "<h3>", "</h3>", "<h4>",
"</h4>", "<h5>", "</h5>", "<h6>", "</h6>", "<strong>", "</strong>" });
+ addL10nSubstitution(node, key, new String[] { "p", "/p", "b",
"/b", "br", "hr", "pre", "/pre", "i", "/i", "ul", "/ul", "ol", "/ol", "li",
"center", "/center", "strike", "/strike", "blockquote", "/blockquote", "h1",
"/h1", "h2", "/h2", "h3", "/h3", "h4", "/h4", "h5", "/h5", "h6", "/h6",
"strong", "/strong", "table", "/table", "th", "/th", "tr", "/tr", "td", "/td"
}, new String[] { "<p>", "</p>", "<b>", "</b>", "<br>", "<hr>", "<pre>",
"</pre>", "<i>", "</i>", "<ul>", "</ul>", "<ol>", "</ol>", "<li>", "<center>",
"</center>", "<strike>", "</strike>", "<blockquote>", "</blockquote>", "<h1>",
"</h1>", "<h2>", "</h2>", "<h3>", "</h3>", "<h4>", "</h4>", "<h5>", "</h5>",
"<h6>", "</h6>", "<strong>", "</strong>", "<table>", "</table>", "<th>",
"</th>", "<tr>", "</tr>", "<td>", "</td>" });
}
public static String getString(String key, String pattern, String
value) {
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs