mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-18 11:55:46 +08:00
Allow translation of shutdown dialog
This commit is contained in:
parent
8a97003a6a
commit
9359a73788
@ -4,29 +4,25 @@
|
||||
define([
|
||||
'jquery',
|
||||
'base/js/dialog',
|
||||
'base/js/events',
|
||||
'base/js/promises',
|
||||
'base/js/page',
|
||||
'base/js/i18n',
|
||||
'base/js/utils'
|
||||
], function(
|
||||
$,
|
||||
dialog,
|
||||
events,
|
||||
promises,
|
||||
page,
|
||||
i18n,
|
||||
utils
|
||||
){
|
||||
"use strict";
|
||||
|
||||
function display_shutdown_dialog() {
|
||||
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(
|
||||
$('<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({
|
||||
title: "Server stopped",
|
||||
title: i18n.msg._("Server stopped"),
|
||||
body: body
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user