Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use translations for common constants #166

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gui-lib/info.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"pict-lib"
"scheme-lib"
"scribble-lib"
["string-constants-lib" #:version "1.24"]
["string-constants-lib" #:version "1.33"]
"option-contract-lib"
"2d-lib"
"compatibility-lib"
Expand Down
9 changes: 5 additions & 4 deletions gui-lib/mred/private/messagebox.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
racket/string
racket/snip/private/style
racket/draw
string-constants
(prefix-in wx: "kernel.rkt")
"const.rkt"
"check.rkt"
Expand Down Expand Up @@ -101,7 +102,7 @@
(send w popup-menu
(let ([m (make-object popup-menu%)])
(make-object menu-item%
"Copy Message"
(string-constant install-pkg-copy)
m
(lambda (i e)
(send (wx:get-the-clipboard)
Expand Down Expand Up @@ -270,11 +271,11 @@
(let-values ([(one two one-v two-v close-val default)
(cond
[(memq 'ok style)
(values "OK" #f 'ok #f 1 'default=1)]
(values (string-constant ok) #f 'ok #f 1 'default=1)]
[(memq 'ok-cancel style)
(values "OK" "Cancel" 'ok 'cancel 2 'default=1)]
(values (string-constant ok) (string-constant cancel) 'ok 'cancel 2 'default=1)]
[(memq 'yes-no style)
(values "&Yes" "&No" 'yes 'no #f 'no-default)])])
(values (string-constant yes-mnemonic) (string-constant no-mnemonic) 'yes 'no #f 'no-default)])])
(let-values ([(result checked?)
(do-message-box/custom who
title message
Expand Down