Skip to content

Commit 22ef403

Browse files
committed
UPD: rename translation function alias from _ to _i18n
1 parent 08ce6e4 commit 22ef403

File tree

5 files changed

+99
-99
lines changed

5 files changed

+99
-99
lines changed

jupyter_server/extension/application.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from jupyter_core.application import JupyterApp, NoStart
2020

2121
from jupyter_server.serverapp import ServerApp
22-
from jupyter_server.transutils import _
22+
from jupyter_server.transutils import _i18n
2323
from jupyter_server.utils import url_path_join
2424
from .handler import ExtensionHandlerMixin
2525

@@ -87,7 +87,7 @@ class ExtensionAppJinjaMixin(HasTraits):
8787
"""Use Jinja templates for HTML templates on top of an ExtensionApp."""
8888

8989
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
9191
""")
9292
).tag(config=True)
9393

@@ -222,25 +222,25 @@ def _default_static_url_prefix(self):
222222
return url_path_join(self.serverapp.base_url, static_url)
223223

224224
static_paths = List(Unicode(),
225-
help="""paths to search for serving static files.
225+
help=_i18n("""paths to search for serving static files.
226226
227227
This allows adding javascript/css to be available from the notebook server machine,
228228
or overriding individual files in the IPython
229229
"""
230230
).tag(config=True)
231231

232232
template_paths = List(Unicode(),
233-
help=_("""Paths to search for serving jinja templates.
233+
help=_i18n("""Paths to search for serving jinja templates.
234234
235235
Can be used to override templates from notebook.templates.""")
236236
).tag(config=True)
237237

238238
settings = Dict(
239-
help=_("""Settings that will passed to the server.""")
239+
help=_i18n("""Settings that will passed to the server.""")
240240
).tag(config=True)
241241

242242
handlers = List(
243-
help=_("""Handlers appended to the server.""")
243+
help=_i18n("""Handlers appended to the server.""")
244244
).tag(config=True)
245245

246246
def _config_file_name_default(self):
@@ -519,4 +519,4 @@ def launch_instance(cls, argv=None, **kwargs):
519519
try:
520520
serverapp.start()
521521
except NoStart:
522-
pass
522+
pass

0 commit comments

Comments
 (0)