Kitaiti Makoto
2404ce7e93
Remove trailing whitespace
2 years ago
Vincent Breitmoser
d15fa92ef6
fix escaping of quotes and newlines
...
This is probably not exhaustive, but fixes what I need.
2 years ago
Ana Gelez
38f16d7418
Make it compile on stable
...
- Restore gettext_utils, to use it instead of runtime-fmt
- Don't use some Span API that are only on Nightly
- Introduce quote, syn and proc-macro2 to make parsing cleaner, easier and more correct in complex cases
4 years ago
Ana Gelez
c5395ab049
Fix build on latest nigthly
...
Fixes #11
5 years ago
Baptiste Gelez
c861e3d3fa
Document everything!
5 years ago
Baptiste Gelez
5e87a71712
Cargo fmt
5 years ago
Baptiste Gelez
763b54d046
Add a Config struct to read/write config
5 years ago
Baptiste Gelez
bee7f491b0
Add a t! macro to mark string as translated without actually translating them + allow non-literal expressions in i18n!
5 years ago
Baptiste Gelez
2768060710
Save .mo files in ./target
5 years ago
Baptiste Gelez
5db9a3f869
Add some options to init_i18n! ( fixes #4 , fixes #6 )
5 years ago
Baptiste Gelez
203efc20f4
Support for context ( fixes #3 )
5 years ago
Baptiste Gelez
3325c6b167
Better error messages
5 years ago
Baptiste Gelez
fafe0b461b
Use runtime-fmt ( fixes #5 )
5 years ago
Baptiste Gelez
27483faafe
Better handling of workspaces
...
And avoid to write anything to stdout because cargo-web is stupid and considers it means the build crashed
5 years ago
Baptiste Gelez
741a6075aa
Merge branch 'master' of https://github.com/Aardwolf-Social/gettext-macros
5 years ago
asonix
43e51be4c5
Don't write duplicate msgids
5 years ago
asonix
c5069babd1
Fix include_i18n, cargo fmt
5 years ago
Baptiste Gelez
6b17e04ada
Adjustments after real-world testing
5 years ago
Baptiste Gelez
8f4b4156f3
Big code simplification
...
Also added i18n_domain!, compile_i18n! and include_i18n!
5 years ago
Baptiste Gelez
7bb2631e5f
Add format args support
5 years ago
Baptiste Gelez
938bf51e54
First version
...
The code is ugly, but it works
5 years ago