Localize loading message.
authorJan Schneider <jan@horde.org>
Mon, 15 Nov 2010 17:48:26 +0000 (18:48 +0100)
committerJan Schneider <jan@horde.org>
Mon, 15 Nov 2010 22:22:13 +0000 (23:22 +0100)
horde/templates/common-header-mobile.inc

index 3c87bbc..31a4334 100644 (file)
@@ -4,7 +4,10 @@
   <title><?php echo htmlspecialchars(Horde_Util::nonInputVar('title')) ?></title>
   <link type="text/css" rel="stylesheet" href="<?php echo $GLOBALS['registry']->get('jsuri', 'horde') ?>/jquery.mobile/jquery.mobile.min.css" />
   <script type="text/javascript" src="<?php echo $GLOBALS['registry']->get('jsuri', 'horde') ?>/jquery.mobile/jquery.min.js"></script>
-  <script type="text/javascript" src="<?php echo $GLOBALS['registry']->get('jsuri', 'horde') ?>/jquery.mobile/jquery.mobile.min.js"></script>
   <script type="text/javascript">
-  $.mobile.page.prototype.options.backBtnText = '<?php echo _("Back") ?>';
+  $(window.document).bind('mobileinit', function() {
+      $.mobile.page.prototype.options.backBtnText = '<?php echo _("Back") ?>';
+      $.mobile.loadingMessage = '<?php echo _("loading") ?>';
+  });
   </script>
+  <script type="text/javascript" src="<?php echo $GLOBALS['registry']->get('jsuri', 'horde') ?>/jquery.mobile/jquery.mobile.min.js"></script>