Commit graph

29 commits

Author SHA1 Message Date
Sylvain Bellemare
b83800ba5a
fix: use runtime CARGO_MANIFEST_DIR
Problem: env!() bakes the path at compile time,
so it breaks when the binary runs from a different
location (e.g. a Guix/Nix sandbox or container).

Solution: use std::env::var() to read it at runtime.
2026-03-18 10:50:09 +09:00
bunnie
a8d9b53c26 Fix for #779
This patch removes the option to scan out-of-tree json files
for locales resolution.

When the time comes to have to incorporate out-of-tree apps
with locales, a method should be devised that doesn't expand
the dependency surface of the project beyond the immediate
repository.
2026-01-17 01:33:16 +08:00
bunnie
c7bfe8fe70 code formatting and typo fix on locales build script 2025-04-29 03:02:33 +08:00
Jeanie
3f6778450b small revision 2024-12-10 23:23:45 +09:00
Jeanie
4f5f4e2a90 small updates to the locales readme 2024-12-10 23:18:42 +09:00
bunnie
916c98fd5c regex search/replace instances of xous_ipc::String to String
split into multiple commits for easier committing
2024-09-22 14:18:19 +08:00
David Kotval
fa20e3c649 wip: debugging sigchat build fail due to missing translations 2024-01-24 16:46:08 +00:00
bunnie
8ec08c9c76 fix rust v1.75.0 warnings that are probably benign
a lot of re-import warnings have cropped up. While I appreciate
their studiousness on this, the problem is that removing some
of these exports in the API crate could mean that future users
who want access to some API features that aren't used in this
configuration are now unaccessible.

I think it's not a huge problem at the moment, just spam-cleaning
the warnings because there are too many to deal with carefully
at the moment.
2024-01-04 19:15:28 +08:00
Jean-Pierre De Jesus DIAZ
2af737b57e
xous-rs: move LANG variable to locales
This change is made with the intention of making the xous-rs crate a bit
more freestanding without depending on the xtask build system.

Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-06-15 18:23:12 +02:00
Jean-Pierre De Jesus DIAZ
8ec8892a56
locales: use no_std by default.
This way the crate will always fail to compile if it doesn't compile on
no_std.

It being no_std by default won't affect std build of other crates as
no_std and std crates can interop by default.

Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-06-15 18:10:59 +02:00
Tom Marble
006a69105c
Completes the i18n_helper.py tool
Added 'fr' translation
Added *.json to .gitattributes

Signed-off-by: Tom Marble <tmarble@info9.net>
2022-10-27 16:07:05 -05:00
Tom Marble
07cb2398d8
WIP: Adds new lang 'fr' for French
Adds new Internationalization Helper tool: i18n_helper.py

Signed-off-by: Tom Marble <tmarble@info9.net>
2022-10-26 22:32:49 -05:00
bunnie
02b80425f5 bump xous-rs to absorb change in language specification 2022-10-10 03:07:44 +08:00
bunnie
e32ea4d3f5 fix #174 2022-06-10 21:36:53 +08:00
bunnie
f614b70cda remove stale version of regex from cargo.lock
this version has a security vulnerability, but is not used
anywhere in the build. removing.
2022-06-07 14:08:13 +08:00
bunnie
21ad8d9283 change en-audio to en-tts 2022-03-10 15:38:55 +08:00
bunnie
a4752dbb59 app manifest and auto-gen infrastructure 2022-02-02 16:18:06 +08:00
bunnie
50064895f0 add the locales Cargo.lock file 2022-01-25 02:04:12 +08:00
bunnie
6089672960 add localization to the demo app 2022-01-24 04:42:35 +08:00
bunnie
b3788a54af clarify the dependency policy 2022-01-10 16:50:10 +08:00
bunnie
995915ed4e nail down a couple more dependencies, and add a policy note to Cargo.toml
Each Cargo.toml now includes a comment which remnids maintainers
of the dependency policy for Xous (that is, nail down every dependency
to the minor number).
2022-01-10 15:54:27 +08:00
bunnie
a8282413ef make locale builds only take in i18n.json files
because .json files are splattered everywhere and this causse troubles.
2022-01-04 21:58:04 +08:00
bunnie
c0ce66ee51 fix permissions. windows is sort of stupid and makes everything +x 2021-08-19 23:34:29 +08:00
Sean Cross
207662414e locales: generate locales as part of normal build
This makes `locales` its own package. As a result, the system will not
rebuild the locales unless necessary.

Additionally, the `generate-locales` command has been updated to simply
force a rebuild of this file in order to keep the previous behavior.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-04 12:19:06 +08:00
bunnie
1424eca689 remove a warning 2021-07-29 00:15:06 +08:00
bunnie
e10c80f370 make it so lib.rs exists by default so a clean build doesn't fail 2021-07-29 00:13:26 +08:00
bunnie
8a3c8c3908 don't commit the autogenerated lib.rs 2021-07-26 00:12:58 +08:00
bunnie
806451fa0f add locale docs and move locale def file to an autogen-friendly location
CI will need to do an auto-build to generate different locales
for users to download/install.
2021-07-26 00:05:10 +08:00
bunnie
2b57e1c4f8 add static localization 2021-07-25 23:46:03 +08:00