diff --git a/core/misc/ajax.js b/core/misc/ajax.js index 4dba53e..ec3cd60 100644 --- a/core/misc/ajax.js +++ b/core/misc/ajax.js @@ -106,20 +106,20 @@ var responseText; var readyStateText; if (xmlhttp.status) { - statusCode = "\n" + Drupal.t("An AJAX HTTP error occurred.") + "\n" + Drupal.t("HTTP Result Code: !status", {'!status': xmlhttp.status}); + statusCode = "\n" + Drupal.t("An AJAX HTTP error occurred.") + "\n" + Drupal.t("HTTP Result Code: @status", {'@status': xmlhttp.status}); } else { statusCode = "\n" + Drupal.t("An AJAX HTTP request terminated abnormally."); } statusCode += "\n" + Drupal.t("Debugging information follows."); - pathText = "\n" + Drupal.t("Path: !uri", {'!uri': uri}); + pathText = "\n" + Drupal.t("Path: @uri", {'@uri': uri}); statusText = ''; // In some cases, when statusCode === 0, xmlhttp.statusText may not be // defined. Unfortunately, testing for it with typeof, etc, doesn't seem to // catch that and the test causes an exception. So we need to catch the // exception here. try { - statusText = "\n" + Drupal.t("StatusText: !statusText", {'!statusText': $.trim(xmlhttp.statusText)}); + statusText = "\n" + Drupal.t("StatusText: @statusText", {'@statusText': $.trim(xmlhttp.statusText)}); } catch (e) { // Empty. @@ -129,7 +129,7 @@ // Again, we don't have a way to know for sure whether accessing // xmlhttp.responseText is going to throw an exception. So we'll catch it. try { - responseText = "\n" + Drupal.t("ResponseText: !responseText", {'!responseText': $.trim(xmlhttp.responseText)}); + responseText = "\n" + Drupal.t("ResponseText: @responseText", {'@responseText': $.trim(xmlhttp.responseText)}); } catch (e) { // Empty. @@ -140,9 +140,9 @@ responseText = responseText.replace(/[\n]+\s+/g, "\n"); // We don't need readyState except for status == 0. - readyStateText = xmlhttp.status === 0 ? ("\n" + Drupal.t("ReadyState: !readyState", {'!readyState': xmlhttp.readyState})) : ""; + readyStateText = xmlhttp.status === 0 ? ("\n" + Drupal.t("ReadyState: @readyState", {'@readyState': xmlhttp.readyState})) : ""; - customMessage = customMessage ? ("\n" + Drupal.t("CustomMessage: !customMessage", {'!customMessage': customMessage})) : ""; + customMessage = customMessage ? ("\n" + Drupal.t("CustomMessage: @customMessage", {'@customMessage': customMessage})) : ""; /** * Formatted and translated error message. diff --git a/core/modules/ckeditor/js/ckeditor.js b/core/modules/ckeditor/js/ckeditor.js index f67ed62..ab924ce 100644 --- a/core/modules/ckeditor/js/ckeditor.js +++ b/core/modules/ckeditor/js/ckeditor.js @@ -34,7 +34,7 @@ // label so that screen readers say something that is understandable // for end users. var label = $('label[for=' + element.getAttribute('id') + ']').html(); - format.editorSettings.title = Drupal.t("Rich Text Editor, !label field", {'!label': label}); + format.editorSettings.title = Drupal.t("Rich Text Editor, @label field", {'@label': label}); // CKEditor initializes itself in a read-only state if the 'disabled' // attribute is set. It does not respect the 'readonly' attribute, diff --git a/core/modules/system/js/system.modules.js b/core/modules/system/js/system.modules.js index f9c08e4..0732e39 100644 --- a/core/modules/system/js/system.modules.js +++ b/core/modules/system/js/system.modules.js @@ -64,8 +64,8 @@ Drupal.announce( Drupal.t( - '!modules modules are available in the modified list.', - {'!modules': $rowsAndDetails.find('tbody tr:visible').length} + '@modules modules are available in the modified list.', + {'@modules': $rowsAndDetails.find('tbody tr:visible').length} ) ); } diff --git a/core/modules/tour/js/tour.js b/core/modules/tour/js/tour.js index c751329..127323c 100644 --- a/core/modules/tour/js/tour.js +++ b/core/modules/tour/js/tour.js @@ -256,7 +256,7 @@ .find('li') // Rebuild the progress data. .each(function (index) { - var progress = Drupal.t('!tour_item of !total', {'!tour_item': index + 1, '!total': total}); + var progress = Drupal.t('@tour_item of @total', {'@tour_item': index + 1, '@total': total}); $(this).find('.tour-progress').text(progress); }) // Update the last item to have "End tour" as the button.