]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/googlecalendar.pm
* Deal better with rebuilds that involve moving files; track and clean up the
[git.ikiwiki.info.git] / IkiWiki / Plugin / googlecalendar.pm
index dc0df0ad3ff6d523571366b651a8f171e3799698..c6409e5e6db3732e1efd3ea4d5232b5dc66c76be 100644 (file)
@@ -3,7 +3,7 @@ package IkiWiki::Plugin::googlecalendar;
 
 use warnings;
 use strict;
-use IkiWiki;
+use IkiWiki 2.00;
 
 sub import { #{{{
        hook(type => "preprocess", id => "googlecalendar",
@@ -19,7 +19,7 @@ sub preprocess (@) { #{{{
        # Avoid XSS attacks..
        my ($url)=$params{html}=~m#iframe\s+src="http://www\.google\.com/calendar/embed\?([^"<>]+)"#;
        if (! defined $url || ! length $url) {
-               return "[[googlecalendar failed to find url in html]]";
+               return "[[googlecalendar ".gettext("failed to find url in html")."]]";
        }
        my ($height)=$params{html}=~m#height="(\d+)"#;
        my ($width)=$params{html}=~m#width="(\d+)"#;