Skip to content

Commit

Permalink
--wip-- [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelleduc committed Feb 29, 2024
1 parent cd0bd3a commit d78e09b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ return XWiki;
<code>// Retrieve the annotation settings from the configuration object
const config = JSON.parse(document.getElementById('annotation-config').text);

// TODO: Many messages below rely on string concatenation instead of parameters (XWIKI-21961).
define('xwiki-annotation-messages', {
prefix: '',
keys: [
Expand Down Expand Up @@ -1317,7 +1318,9 @@ require(['xwiki-l10n!xwiki-annotation-messages'], function(l10n) {
onFailure: function(response) {
var failureReason = response.statusText || 'Server not responding';
// show the error message at the bottom
this._x_notification = new XWiki.widgets.Notification(l10n.get('annotations.action.edit.form.loaderror') + failureReason, 'error', {timeout : 5});
this._x_notification = new
XWiki.widgets.Notification(l10n.get('annotations.action.edit.form.loaderror', failureReason),
'error', {timeout: 5});
// load the original content of the container
this.fillViewPanel(container, container.originalContentHTML, id, inBubble);
}.bind(this),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ annotations.action.edit.success=Annotation updated.
annotations.action.edit.loaderror=Failed:
annotations.action.edit.error.notfound=This annotation does not exist anymore. Please refresh the page for an updated view.

annotations.action.edit.form.loaderror=Failed: {0}

annotations.action.delete.text=[Delete]
annotations.action.delete.tooltip=Delete annotation
annotations.action.delete.confirm=Are you sure you want to delete this annotation?
Expand Down

0 comments on commit d78e09b

Please sign in to comment.