ae80f56720
We can't use format with dynamic strings so we can't use gettext response with format. To format translatable strings easily I've created a new module so we can use like this: ``` let literal = i18n("TESTINGx gettext"); let nonamed_params = i18n_f("TESTING! gettext {} and {}", &["one", "two"]); let named_params =i18n_k("TESTING2 gettext {one} and {two}", &[("one", "1"), ("two", "two")]); ```
50 lines
1.1 KiB
TOML
50 lines
1.1 KiB
TOML
[package]
|
|
authors = ["Daniel Garcia <danigm@wadobo.com>"]
|
|
build = "build.rs"
|
|
name = "fractal-gtk"
|
|
version = "3.29.0"
|
|
workspace = "../"
|
|
|
|
[dependencies]
|
|
failure = "0.1.1"
|
|
gdk = "0.8.0"
|
|
gdk-pixbuf = "0.4.0"
|
|
gdk-pixbuf-sys = "0.6.0"
|
|
gio = "0.4.1"
|
|
glib = "0.5.0"
|
|
notify-rust = "3.4.2"
|
|
pango = "0.4.0"
|
|
secret-service = "0.4.0"
|
|
serde = "1.0.43"
|
|
serde_derive = "1.0.43"
|
|
serde_json = "1.0.16"
|
|
url = "1.7.0"
|
|
rand = "0.4.2"
|
|
html2pango = { git = "https://gitlab.gnome.org/World/html2pango" }
|
|
comrak = "0.2.9"
|
|
gettext-rs = { git = "https://github.com/danigm/gettext-rs", branch = "no-gettext", features = ["gettext-system"] }
|
|
regex = "1.0.0"
|
|
|
|
# newer stuff do not compile inside flatpak
|
|
html5ever = "=0.22.0"
|
|
string_cache = "=0.7.1"
|
|
string_cache_codegen = "=0.4.0"
|
|
tree_magic = "0.2.0"
|
|
|
|
[dependencies.cairo-rs]
|
|
features = ["png"]
|
|
version = "0.4.1"
|
|
|
|
[dependencies.chrono]
|
|
features = ["serde"]
|
|
version = "0.4.2"
|
|
|
|
[dependencies.fractal-matrix-api]
|
|
path = "../fractal-matrix-api"
|
|
|
|
[dependencies.gspell]
|
|
git = "https://gitlab.gnome.org/jsparber/gspell-rs"
|
|
|
|
[dependencies.gtk]
|
|
features = ["v3_22"]
|
|
version = "0.4.0"
|