Skip to content

Commit 244228c

Browse files
committed
Make translatable.
1 parent 552c19b commit 244228c

File tree

9 files changed

+564
-431
lines changed

9 files changed

+564
-431
lines changed

bpython/cli.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1991,14 +1991,18 @@ def main_curses(scr, args, config, interactive=True, locals_=None, banner=None):
19911991

19921992
# XXX these deprecation warnings need to go at some point
19931993
clirepl.write(
1994-
"WARNING: You are using `bpython-cli`, the curses backend for `bpython`. This backend has been deprecated in version 0.19 and might disappear in a future version."
1994+
_(
1995+
"WARNING: You are using `bpython-cli`, the curses backend for `bpython`. This backend has been deprecated in version 0.19 and might disappear in a future version."
1996+
)
19951997
)
19961998
clirepl.write("\n")
19971999

19982000
if sys.version_info[0] == 2:
19992001
# XXX these deprecation warnings need to go at some point
20002002
clirepl.write(
2001-
"WARNING: You are using `bpython` on Python 2. Support for Python 2 has been deprecated in version 0.19 and might disappear in a future version."
2003+
_(
2004+
"WARNING: You are using `bpython` on Python 2. Support for Python 2 has been deprecated in version 0.19 and might disappear in a future version."
2005+
)
20022006
)
20032007
clirepl.write("\n")
20042008

bpython/curtsies.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,9 @@ def main(args=None, locals_=None, banner=None, welcome_message=None):
205205
if sys.version_info[0] == 2:
206206
# XXX these deprecation warnings need to go at some point
207207
print(
208-
"WARNING: You are using `bpython` on Python 2. Support for Python 2 has been deprecated in version 0.19 and might disappear in a future version."
208+
_(
209+
"WARNING: You are using `bpython` on Python 2. Support for Python 2 has been deprecated in version 0.19 and might disappear in a future version."
210+
)
209211
)
210212

211213
global repl

0 commit comments

Comments
 (0)