Skip to content

Commit e8b7086

Browse files
committed
Use translations for common constants
Yes/No may lose shortcuts but these are currently non-translatable anyway. Signed-off-by: Alexander Shopov <ash@kambanaria.org>
1 parent cfadcb3 commit e8b7086

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

gui-lib/mred/private/messagebox.rkt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
racket/string
55
racket/snip/private/style
66
racket/draw
7+
string-constants
78
(prefix-in wx: "kernel.rkt")
89
"const.rkt"
910
"check.rkt"
@@ -101,7 +102,7 @@
101102
(send w popup-menu
102103
(let ([m (make-object popup-menu%)])
103104
(make-object menu-item%
104-
"Copy Message"
105+
(string-constant install-pkg-copy)
105106
m
106107
(lambda (i e)
107108
(send (wx:get-the-clipboard)
@@ -270,11 +271,11 @@
270271
(let-values ([(one two one-v two-v close-val default)
271272
(cond
272273
[(memq 'ok style)
273-
(values "OK" #f 'ok #f 1 'default=1)]
274+
(values (string-constant ok) #f 'ok #f 1 'default=1)]
274275
[(memq 'ok-cancel style)
275-
(values "OK" "Cancel" 'ok 'cancel 2 'default=1)]
276+
(values (string-constant ok) (string-constant cancel) 'ok 'cancel 2 'default=1)]
276277
[(memq 'yes-no style)
277-
(values "&Yes" "&No" 'yes 'no #f 'no-default)])])
278+
(values (string-constant yes) (string-constant no) 'yes 'no #f 'no-default)])])
278279
(let-values ([(result checked?)
279280
(do-message-box/custom who
280281
title message

0 commit comments

Comments
 (0)