[freenet-dev] [freenet-cvs] r12626 - trunk/freenet/src/freenet/l10n
Matthew Toseland
toad at amphibian.dyndns.org
Fri Apr 13 15:17:52 UTC 2007
On Fri, Apr 13, 2007 at 02:09:16PM +0000, nextgens at freenetproject.org wrote:
> Author: nextgens
> Date: 2007-04-13 14:09:16 +0000 (Fri, 13 Apr 2007)
> New Revision: 12626
>
> Modified:
> trunk/freenet/src/freenet/l10n/L10n.java
> Log:
> Doh
>
> Modified: trunk/freenet/src/freenet/l10n/L10n.java
> ===================================================================
> --- trunk/freenet/src/freenet/l10n/L10n.java 2007-04-13 14:06:20 UTC (rev 12625)
> +++ trunk/freenet/src/freenet/l10n/L10n.java 2007-04-13 14:09:16 UTC (rev 12626)
> @@ -96,9 +96,9 @@
> public static HTMLNode getHTMLNode(String key) {
> String value = getString(key, true);
> if(value != null)
> - return new HTMLNode("#", value);
> + return new HTMLNode("#", getDefaultString(value));
Eh? Surely ,value was right if value != null?
> else
> - return new HTMLNode("#", value).addChild("span", "id", "translate_it").addChild("a", "href", "/?translate=" + key).addChild("small", " (translate it in your native language!)");
> + return new HTMLNode("#", getDefaultString(value)).addChild("span", "id", "translate_it").addChild("a", "href", "/?translate=" + key).addChild("small", " (translate it in your native language!)");
> }
>
> public static String getDefaultString(String key) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://emu.freenetproject.org/pipermail/devl/attachments/20070413/ca7052e6/attachment.pgp
More information about the Devl
mailing list