Re: [racket-users] Re: i18n / srfi-29
I dont like (unless (load-bundle! specifier) ...) clause. If you change the translation in source code, old version will be used, because (load-bundle! specifier) will load old version and return #t. вторник, 23 июля 2019 г., 12:00:25 UTC+5 пользователь Bogdan Popa написал: > > > Is it OK to wrap declare-bundle! + store-bundle inside (begin-for-syntax > > ...) to make side effect during raco setup? If not, what is preferred > way > > to do it? > > Is there any reason not to do it at runtime? This[1] is what I do in > forms-lib. Other modules depend on that module so the bundles are > declared the first time it is loaded. It's not optimal for versioning, > but it gets the job done. > > > [1]: > https://github.com/Bogdanp/racket-forms/blob/master/forms-lib/private/l10n.rkt#L27-L33 > > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/8b12ad2c-5342-4960-861e-f33ec00c0c4b%40googlegroups.com.
Re: [racket-users] Re: i18n / srfi-29
> Is it OK to wrap declare-bundle! + store-bundle inside (begin-for-syntax > ...) to make side effect during raco setup? If not, what is preferred way > to do it? Is there any reason not to do it at runtime? This[1] is what I do in forms-lib. Other modules depend on that module so the bundles are declared the first time it is loaded. It's not optimal for versioning, but it gets the job done. [1]: https://github.com/Bogdanp/racket-forms/blob/master/forms-lib/private/l10n.rkt#L27-L33 -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/m2v9vtjkvw.fsf%40192.168.0.139.
[racket-users] Re: i18n / srfi-29
Is it OK to wrap declare-bundle! + store-bundle inside (begin-for-syntax ...) to make side effect during raco setup? If not, what is preferred way to do it? понедельник, 22 июля 2019 г., 15:56:13 UTC+5 пользователь Roman Klochkov написал: > > Hello! > > I'm trying to use srfi/29. As far as I understand, it provide > declare-bundle! + store-bundle to make a localization and load-bundle! to > use it. > But I cannot find, how to use raco pkg install to run declare-bundle! + > store-bundle. Or is there any other way to run post-install command in > Racket? > > P.S. Why DrRacket doesn't use srfi/29? > > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/3a189add-4a0f-4e98-8852-ffceb514e13c%40googlegroups.com.