Skip to content

Commit e9578a7

Browse files
committed
use string constants in the macro stepper
related to racket/string-constants#67
1 parent d467648 commit e9578a7

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

drracket/info.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
["racket-doc" #:version "1.1"]
2424
"scheme-lib"
2525
["snip-lib" #:version "1.2"]
26-
["string-constants-lib" #:version "1.47"]
26+
["string-constants-lib" #:version "1.51"]
2727
"tex-table"))
2828

2929
(define build-deps '("gui-doc"

drracket/macro-debugger/tool.rkt

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
macro-debugger/view/prefs
1313
images/compile-time
1414
(for-syntax racket/base images/icons/tool)
15+
string-constants
1516
;; FIXME:
1617
drracket/private/syncheck/local-member-names
1718
drracket/private/eval-helpers-and-pref-init)
@@ -84,7 +85,7 @@
8485
(super-new)))
8586

8687

87-
(define macro-stepper-button-label "Macro Stepper")
88+
(define macro-stepper-button-label (string-constant macro-stepper))
8889

8990
(define macro-debugger-bitmap (compiled-bitmap (macro-stepper-icon)))
9091
(define small-macro-debugger-bitmap (compiled-bitmap (small-macro-stepper-icon)))
@@ -151,7 +152,7 @@
151152
(let ([lang-menu (get-language-menu)])
152153
(new separator-menu-item% (parent lang-menu))
153154
(new menu-item%
154-
(label "Macro Stepper")
155+
(label (string-constant macro-stepper))
155156
(parent lang-menu)
156157
(callback (lambda _ (run-macro-stepper))))))
157158

@@ -356,13 +357,10 @@
356357
(define (handle-macro-limit c)
357358
(define option
358359
(message-box/custom
359-
"Macro stepper"
360-
(string-append "Macro expansion has taken a suspiciously large number of steps.\n"
361-
"\n"
362-
"Click Stop to stop macro expansion and see the steps taken "
363-
"so far, or click Continue to let it run a bit longer.")
364-
"Continue"
365-
"Stop"
360+
(string-constant macro-stepper)
361+
(string-constant macro-stepper-warning-message)
362+
(string-constant macro-stepper-continue)
363+
(string-constant macro-stepper-stop)
366364
#f
367365
(get-top-level-window)))
368366
(case option

0 commit comments

Comments
 (0)