19
19
from jupyter_core .application import JupyterApp , NoStart
20
20
21
21
from jupyter_server .serverapp import ServerApp
22
- from jupyter_server .transutils import _
22
+ from jupyter_server .transutils import _i18n
23
23
from jupyter_server .utils import url_path_join
24
24
from .handler import ExtensionHandlerMixin
25
25
@@ -87,7 +87,7 @@ class ExtensionAppJinjaMixin(HasTraits):
87
87
"""Use Jinja templates for HTML templates on top of an ExtensionApp."""
88
88
89
89
jinja2_options = Dict (
90
- help = _ ("""Options to pass to the jinja2 environment for this
90
+ help = _i18n ("""Options to pass to the jinja2 environment for this
91
91
""" )
92
92
).tag (config = True )
93
93
@@ -230,24 +230,24 @@ def _default_static_url_prefix(self):
230
230
).tag (config = True )
231
231
232
232
template_paths = List (Unicode (),
233
- help = _ ("""Paths to search for serving jinja templates.
233
+ help = _i18n ("""Paths to search for serving jinja templates.
234
234
235
235
Can be used to override templates from notebook.templates.""" )
236
236
).tag (config = True )
237
237
238
238
settings = Dict (
239
- help = _ ("""Settings that will passed to the server.""" )
239
+ help = _i18n ("""Settings that will passed to the server.""" )
240
240
).tag (config = True )
241
241
242
242
handlers = List (
243
- help = _ ("""Handlers appended to the server.""" )
243
+ help = _i18n ("""Handlers appended to the server.""" )
244
244
).tag (config = True )
245
245
246
246
def _config_file_name_default (self ):
247
247
"""The default config file name."""
248
248
if not self .name :
249
249
return ''
250
- return 'jupyter_{}_config' .format (self .name .replace ('-' ,'_' ))
250
+ return 'jupyter_{}_config' .format (self .name .replace ('-' , '_' ))
251
251
252
252
def initialize_settings (self ):
253
253
"""Override this method to add handling of settings."""
@@ -519,4 +519,4 @@ def launch_instance(cls, argv=None, **kwargs):
519
519
try :
520
520
serverapp .start ()
521
521
except NoStart :
522
- pass
522
+ pass
0 commit comments