Commit graph

51 commits

Author SHA1 Message Date
Trinity
e81b6f1d49
Merge pull request #22 from Valodim/go-async
fix for 0.0.5-rc.1
2022-01-20 16:05:20 +01:00
Vincent Breitmoser
027f5d2af4 fix for 0.5.0-rc.1 2022-01-13 13:04:57 +01:00
6ff7e2a7dd
fix clippy complaints 2020-05-07 23:46:36 +02:00
8ae59fd568
switch to using #[rocket::async_trait]! 2020-05-07 23:45:58 +02:00
a6c8cfb3c5
fix clippy warnings 2020-01-25 23:15:51 +01:00
f0fc5bdfae
move i18n's rocket implementation over to async 2020-01-25 23:15:25 +01:00
c9f220b272
use newer version of rust nightly (same as plume now) 2020-01-22 12:46:08 +01:00
42eea9d3e6
bump rocket version to try it for async… 2019-09-12 15:50:56 +02:00
asonix
3eca920593 Fix docs 2019-09-01 21:19:16 +02:00
asonix
ee253eca27 Upgrade actix, gettext 2019-09-01 21:19:16 +02:00
Llaurence
ada273e4a9 Add I18n.lang
Used to get the language for the current request. It can be used for
database requests or to adapt the UI.

Signed-off-by: Llaurence <llaurence.git@laposte.net>
2019-03-23 17:24:22 +01:00
Baptiste Gelez
72f8e0076e Merge branch 'master' of github.com:BaptisteGelez/rocket_i18n 2019-01-20 19:02:42 +01:00
Baptiste Gelez
3efc3c3c13 v0.4.0 2019-01-20 19:01:02 +01:00
Baptiste Gelez
a1e7c9299c Use gettext_macros macros 2019-01-20 13:13:47 +01:00
Trinity Pointard
9fc10a9aae Modify all link to match new repository location
And fix compilation issues by upgrading compiler
2018-12-19 19:09:47 +01:00
Olivier Goffart
88215b6093 Recommand people to use the xtr tool instead of manually generating the .pot 2018-12-09 14:16:10 +01:00
Baptiste Gelez
90ba4f41b2 Version bump: 0.3.1 2018-11-30 13:24:12 +01:00
Trinity Pointard
7a397ffdfe Add documentation for include_i18n! 2018-11-30 13:23:44 +01:00
Trinity Pointard
6a6f6e38f2 Add new macro importing translation to the final binary
Add a new macro include_i18n!, taking similar arguments to i18n(),
and expanding to the same type. It allow to include translations in
the final binary, so that once compiled, it can be run from anywhere,
without depending on `.mo`s to be present
2018-11-30 13:23:44 +01:00
Baptiste Gelez
4148b79c18 Bump version to 0.3.0 2018-11-29 20:37:44 +01:00
Baptiste Gelez
c90fde6e17 Use &str instead of String in build methods 2018-11-29 20:36:13 +01:00
asonix
f8f9913f6f Require domain in i18n init 2018-11-22 19:07:25 +01:00
asonix
b0902bf709 Fix build methods I think 2018-11-22 19:07:25 +01:00
Baptiste Gelez
0f4774cbe0 Make Translations public 2018-11-21 17:50:44 +01:00
asonix
5615407ec4 Add actix-web support 2018-11-21 13:11:36 +01:00
Baptiste Gelez
9b2a5a75a9 Update dependencies 2018-11-20 18:59:23 +01:00
Baptiste Gelez
040afe6a23 Fix some issues with macros 2018-11-20 18:59:09 +01:00
Baptiste Gelez
ef7bf55767 Force u64 2018-11-10 14:28:52 +01:00
Baptiste Gelez
8417b8c93a Merge branch 'master' of github.com:BaptisteGelez/rocket_i18n 2018-11-10 14:12:19 +01:00
Baptiste Gelez
a5cbdcbd56 Fix the i18n macro for ngettext syntax 2018-11-10 14:12:01 +01:00
Trinity Pointard
c76d8381a0 Wait for process to finish successfully
Fix #7
Change gettext to an existing repository
Update to rocket 0.4.0-rc.1
Require newer rust toolchain
2018-11-01 19:25:50 +01:00
Baptiste Gelez
7fa1b0bd6b Update README.md 2018-10-25 22:22:22 +01:00
Baptiste Gelez
b79aa0776b Better error handling in try_format 2018-10-25 22:19:54 +01:00
Baptiste Gelez
1cede79b5d Use the native gettext crate (and change almost all the API) 2018-10-25 19:04:44 +01:00
Baptiste Gelez
d5d44c2951
Add Travis Badge 2018-09-15 13:46:13 +01:00
Baptiste Gelez
1b7c94a0c6
Merge pull request #6 from fdb-hiroshima/feature/add-ci
Add continuous integration
2018-09-15 13:25:03 +01:00
Baptiste Gelez
4eec3d2fe3
Merge pull request #5 from fdb-hiroshima/feature/multiple-local
Try to explore other locals if first is unknown
2018-09-15 13:24:48 +01:00
Trinity Pointard
74bf2141ca Fix tests
Fix doc-tests
    Add dev-dependency to rocket_contrib
    Set some doc-tests to no_run as files are missing for theme to work
Remove format!(gettext()) from docs as it won't compile
Reexport gettextrs to match what the doc's says
2018-09-15 14:13:24 +02:00
Trinity Pointard
3ae492644e Add travis.yml 2018-09-15 13:28:18 +02:00
Trinity Pointard
40a8278694 Try to explore other locals if first is unknown
Try to find the best local client and server both supports
Assume client's locals are ordered by q-factor weighting
2018-09-15 13:14:50 +02:00
Baptiste Gelez
75a3bfd7b8
Merge pull request #3 from lthms/recent_rocket
Use a more recent version of rocket
2018-09-08 09:52:37 +01:00
Thomas Letan
b9bd6b9674 Use a more recent version of rocket 2018-09-08 00:17:06 +02:00
Bat
4ccd0b081d Update to a more recent version of Rocket
To make this crate work correctly with Aardwolf
2018-07-08 16:04:30 +02:00
Bat
5b4225d5be Ignore the country code. Fix #1 2018-06-17 23:02:50 +01:00
Bat
5b29d96504 Update installation instructions 2018-06-17 15:35:07 +01:00
Bat
457b88c59e Use the master branch of Rocket
It makes sense since we recommend using the rocket_contrib::Template::custom function

Also edit a bit the README
2018-06-17 15:22:24 +01:00
Bat
4e39f2508b 5 keywords max 2018-06-17 15:03:46 +01:00
Bat
05c8415516 Add metadata + document the crate 2018-06-17 14:46:46 +01:00
Bat
35ec9d6ab6 Add README.md 2018-06-17 14:31:37 +01:00
Bat
4a34e5dd73 Add some documentation 2018-06-17 13:18:31 +01:00