Allow translation of shutdown dialog

This commit is contained in:
Thomas Kluyver 2018-03-29 12:17:19 +02:00
parent 8a97003a6a
commit 9359a73788

View File

@ -4,29 +4,25 @@
define([ define([
'jquery', 'jquery',
'base/js/dialog', 'base/js/dialog',
'base/js/events', 'base/js/i18n',
'base/js/promises',
'base/js/page',
'base/js/utils' 'base/js/utils'
], function( ], function(
$, $,
dialog, dialog,
events, i18n,
promises,
page,
utils utils
){ ){
"use strict"; "use strict";
function display_shutdown_dialog() { function display_shutdown_dialog() {
var body = $('<div/>').append( var body = $('<div/>').append(
$('<p/>').text("You have shut down Jupyter. You can now close this tab.") $('<p/>').text(i18n.msg._("You have shut down Jupyter. You can now close this tab."))
).append( ).append(
$('<p/>').text("To use Jupyter again, you will need to relaunch it.") $('<p/>').text(i18n.msg._("To use Jupyter again, you will need to relaunch it."))
); );
dialog.modal({ dialog.modal({
title: "Server stopped", title: i18n.msg._("Server stopped"),
body: body body: body
}) })
} }