It is not possible to translate po-file to string-constants, because msgid "One file removed" msgid_plural "%d files removed" msgstr[0] "%d slika je uklonjena" msgstr[1] "%d datoteke uklonjenih" msgstr[2] "%d slika uklonjenih"
cannot be represented in string-constants. And vice versa, (dont-exit "Cancel") (dont-quit "Cancel") cannot be represented in gettext po-file, where english representation is the msgid. I can easyly write one-way converter (id "text") -> msgid "id" msgstr "text" but is it really useful? среда, 2 октября 2019 г., 16:36:55 UTC+5 пользователь Alexander Shopov написал: > > String constants: > https://docs.racket-lang.org/string-constants/index.html > https://github.com/racket/string-constants > > I agree they do not support plurals and context, which should mean it > would be possible to convert the s-expressions (of Racker messages, not the > general case) to po-file and back again. > There are better tools to edit the translations in po-format compared to > doing that directly as s-expressions. > Kind regards: > al_shopov > > На ср, 2.10.2019 г. в 12:43 ч. Roman Klochkov <kalime...@gmail.com > <javascript:>> написа: > >> What is racket's own one? srfi-29? String-constants? >> >> Neither of them support plurals and contexts. Or do you mean something >> else? >> >> вторник, 1 октября 2019 г., 16:06:35 UTC+5 пользователь Alexander Shopov >> написал: >>> >>> We should be able to convert to and from po format to racket's own one. >>> >>> На вт, 1.10.2019 г. в 11:11 ч. Bogdan Popa <bog...@defn.io> написа: >>> >>>> This is great! Thank you. >>>> >>>> Roman Klochkov writes: >>>> >>>> > Now we have gettext: https://docs.racket-lang.org/gettext/index.html >>>> > >>>> > суббота, 9 февраля 2019 г., 18:56:59 UTC+5 пользователь cwebber >>>> написал: >>>> >> >>>> >> How are people currently translating their programs? >>>> >> I expected to see a gettext library or something, but haven't. >>>> >> >>>> >> I see that DrRacket is translated, but I did a few simple greps >>>> through >>>> >> the DrRacket repo and couldn't figure out how. >>>> >> >>>> >> Am I missing something? Or is this tooling that needs to be written? >>>> >> - cwebb >>>> >> >>>> >>>> -- >>>> 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...@googlegroups.com. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/racket-users/m2eezwvnik.fsf%40192.168.0.139 >>>> . >>>> >>> -- >> 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...@googlegroups.com <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/racket-users/3505fe7a-8383-476a-ac85-5b903b6cda40%40googlegroups.com >> >> <https://groups.google.com/d/msgid/racket-users/3505fe7a-8383-476a-ac85-5b903b6cda40%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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/7f03c9cf-fbed-410f-aaf2-183be6e78e3d%40googlegroups.com.