Closed DjebbZ closed 6 years ago
After some exploration, it seems that the function returned by impl/str->vargs-fn
always returns 0 for the above mentioned strings:
((impl/str->vargs-fn "%1") ["toto"])
;; => 0
((impl/str->vargs-fn "hello %1") ["world"])
=> "hello world"
Hope this helps fixing the bug.
Hi Khalid,
Thanks for the clear error report (and for the follow-up)- that does indeed help with debugging. Will investigate and come back to you :+1:
Fixed with release of [com.taoensso/tempura "1.2.0"]
๐
Happy to have helped !๐
Le dim. 11 mars 2018 ร 14:02, Peter Taoussanis notifications@github.com a รฉcrit :
Fixed with release of [com.taoensso/tempura "1.2.0"] ๐
โ You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ptaoussanis/tempura/issues/20#issuecomment-372113856, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEt3kAevkheean8-5d02TaZvSJDhGyBks5tdSBzgaJpZM4SkCWR .
Hello,
When a string to translate contains only a fn-style arg (
%1
), tempura returns the number 0 instead of the argument.Bug occured inside my a app. I was able to reproduce it in my app and with a fresh clone of tempura, at tag
v1.1.2
in alein repl
.Note: I know that it's a bit silly to have a text to translate where you just have nothing to translate. We happen to have a translation workflow when it can occur that not everything is translated (or translated properly) at one point.