Koka / gettext-rs

GNU Gettext FFI binding for Rust
51 stars 25 forks source link

Reintroduce macros #89

Closed mks-h closed 1 year ago

mks-h commented 2 years ago

I am reintroducing macros based on @zecakeh's idea. The idea is to validate provided str at compile-time and generate the needed formatter in place. If it fails to format the translated String, fall back to formatting the provided str (already validated at compile-time).

As for features, the formatter has to support named arguments and escaping. Adding other formatting capabilities is out of scope for this PR.

Resolves #86