From f4b9c347c4346dda4a910b47626ef1660d1bfb1c Mon Sep 17 00:00:00 2001 From: Julian Pustkuchen <Julian@Pustkuchen.com> Date: Wed, 12 Feb 2014 10:14:23 +0100 Subject: [PATCH] Added Drupal.t context to the loading translation to make it more robust. --- jquery_loadinganimation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery_loadinganimation.js b/jquery_loadinganimation.js index 44c899a..86e2d1d 100644 --- a/jquery_loadinganimation.js +++ b/jquery_loadinganimation.js @@ -104,7 +104,7 @@ if ($("div#loadinganimation").length == 0) { $("body") .append( - '<div id="loadinganimation"><div class="loadinganimation-box"><div class="inner"><span class="loading-text">'+ Drupal.t('Loading') +'</span></div></div></div>'); + '<div id="loadinganimation"><div class="loadinganimation-box"><div class="inner"><span class="loading-text">'+ Drupal.t('Loading ...', {}, {context: "jquery_loadinganimation"}) +'</span></div></div></div>'); } }; -- GitLab