Skip to content

Commit

Permalink
[nbTranslate] use traitlets > 4.1 tag API
Browse files Browse the repository at this point in the history
also use the 'alias' metadata tag over the deprecated 'shortname'
  • Loading branch information
jcb91 committed Oct 23, 2017
1 parent f105d1d commit fa1e444
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,11 @@ class NotebookLangExporter(NotebookExporter):
"""
)

# language = CaselessStrEnum(langs.keys(), shortname="rh",
# help="Selected language").tag(config=True)
# language = CaselessStrEnum(
# langs.keys(), help="Selected language").tag(config=True, alias="lang")

language = Unicode('en', shortname="rh",
help="Selected language").tag(config=True)
language = Unicode(
'en', help="Selected language").tag(config=True, alias="lang")

addSuffix = Bool(True, help="Use language tag as suffix")

Expand Down

0 comments on commit fa1e444

Please # to comment.