try {
return JSAN._makeNamespace(js, pkg);
} catch (e) {
- JSAN._handleError("Could not create namespace[" + pkg + "]: " + e);
+ JSAN._handleError(document.getElementById('offlineStrings').getFormattedString('jsan.namespace.creation.error', [pkg, e]));
}
return null;
}
if (this._req.status == 200 || this._req.status == 0)
return this._req.responseText;
} catch (e) {
- JSAN._handleError("File not found: " + url);
+ JSAN._handleError(document.getElementById('offlineStrings').getFormattedString('jsan.file_not_found.error', [url]));
return null;
};
- JSAN._handleError("File not found: " + url);
+ JSAN._handleError(document.getElementById('offlineStrings').getFormattedString('jsan.file_not_found.error', [url]));
return null;
}
};
circ.offline_register.missing.id.type.list=Missing identification type list.
circ.offline_register.missing.required.surveys=Missing required surveys.
circ.offline_register.missing.files.error=ERROR: Offline patron registration requires some server-generated files. Please login periodically to retrieve these files.
+jsan.file_not_found.error=File not found: %1$s
+jsan.namespace.creation.error=Could not create namespace[%1$s]: %2$s