Use sprintf().
authorJan Schneider <jan@horde.org>
Sat, 1 Jan 2011 21:38:26 +0000 (22:38 +0100)
committerJan Schneider <jan@horde.org>
Sat, 1 Jan 2011 21:52:17 +0000 (22:52 +0100)
ansel/lib/Widget/Geotag.php

index 26d9734..a9346f4 100644 (file)
@@ -154,7 +154,7 @@ class Ansel_Widget_Geotag extends Ansel_Widget_Base
                         $imgsrc .= '</div>';
                         $content .= sprintf(_("No location data present. Place using %s map %s or click on image to place at the same location."), $addLink, '</a>') . $imgsrc;
                     } else {
-                        $content .= _("No location data present. You may add some ") . $addLink . _("here") . '</a>';
+                        $content .= sprintf(_("No location data present. You may add some %s."), $addLink . _("here") . '</a>');
                     }
             } else {
                 // For now, just put up a notice. In future, maybe provide a link